/* === Variables globales === */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --text-primary: #1a1a18;
  --text-secondary: #6b6a65;
  --accent: #2d6a4f;
  --accent-hover: #1b4332;
  --accent-light: #d8f3dc;
  --border: #dddbd4;
  --border-hover: #a8c5b5;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --font: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Trebuchet MS', 'Lucida Grande', sans-serif;

  /* Tailles de police fluides (clamp: min, valeur fluide, max) */
  --fs-title: clamp(1.4rem, 5vw, 2.2rem);
  --fs-link:  clamp(0.88rem, 2.5vw, 0.95rem);
  --pad-h:    clamp(1rem, 5vw, 3rem);
  --pad-side: clamp(1rem, 4vw, 1.5rem);
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Corps === */
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--pad-h) var(--pad-side);
  line-height: 1.6;
}

/* === Titre principal === */
body > :first-child {
  font-family: var(--font);
  font-size: var(--fs-title);
  font-weight: normal;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

/* === Chaque paragraphe contenant un lien === */
p {
  width: 100%;
  max-width: min(480px, 100%);
  margin-bottom: 0.75rem;
}

/* === Les liens === */
a {
  display: block;
  padding: clamp(0.75rem, 2.5vw, 0.9rem) clamp(1rem, 3vw, 1.25rem);
  padding-right: 2.5rem;
  background-color: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--fs-link);
  font-weight: 500;
  font-family: var(--font-ui);
  box-shadow: var(--shadow);
  position: relative;
  /* Évite que le texte long déborde */
  overflow-wrap: break-word;
  word-break: break-word;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

a::after {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--border-hover);
  transition: right 0.18s ease, color 0.18s ease;
}

/* === Hover (desktop uniquement) === */
@media (hover: hover) {
  a:hover {
    background-color: var(--accent-light);
    border-color: var(--border-hover);
    color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  a:hover::after {
    right: 0.75rem;
    color: var(--accent);
  }
}

/* === Tap mobile : feedback visuel au toucher === */
a:active {
  background-color: var(--accent-light);
  border-color: var(--border-hover);
  transform: scale(0.98);
  box-shadow: var(--shadow);
}

/* === Focus accessibilité (clavier / tab) === */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* === Très petits écrans (< 360px) === */
@media (max-width: 360px) {
  body {
    padding: 1.25rem 0.75rem;
  }

  a {
    border-radius: 8px;
  }
}
