/* ============================================================
   Cheval 3F — design system partagé.
   Direction « signalétique d'écurie » : panneaux nets, aplats francs,
   une couleur par F. Les noms de variables --c-moss / --c-clay sont
   conservés pour les autres feuilles de style, mais leur sens a changé :
     --c-moss   = vert prairie (Friends, liens, titres de tableau)
     --c-clay   = jaune paille (Forage, boutons principaux)
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Les trois F : repères de couleur discrets */
  --f-forage: #d9a93a;
  --f-friends: #4a8062;
  --f-freedom: #4a76a8;

  --c-bg: #ffffff;
  --c-bg-alt: #f4f5f2;
  --c-surface: #ffffff;
  --c-ink: #1e2924;
  --c-ink-soft: #55615b;
  --c-moss: #2f5d46;
  --c-moss-light: #4a8062;
  --c-moss-pale: #e6efe9;
  --c-clay: #d9a93a;
  --c-clay-dark: #7a5800;
  --c-line: #e4e8e5;
  --c-alert: #b83a32;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-card: none;
  --content-width: 1160px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Focus clavier visible partout : ne jamais le supprimer sans équivalent. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--f-freedom);
  outline-offset: 3px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.68;
  word-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
picture { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-spacing: 0.08em;
  color: var(--c-ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.92rem;
  color: var(--c-ink-soft); margin-bottom: 0.6em;
}

.lede { font-size: 1.2rem; line-height: 1.6; color: var(--c-ink-soft); max-width: 58ch; }

/* --- Boutons : pastilles pleines, sans ombre --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em; padding: 0.95em 1.7em; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-moss); color: #fff; }
.btn-primary:hover { background: #244a37; }

.btn-secondary { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-secondary:hover { background: var(--c-ink); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--c-ink-soft); padding: 0.6em 0.2em; border: none;
  text-decoration: underline; text-underline-offset: 3px;
}

/* --- En-tête --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--c-ink);
}
.brand span { color: var(--c-moss); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none; color: var(--c-ink); font-weight: 500; font-size: 0.95rem;
  opacity: 0.85;
}
.site-nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.site-nav .btn { padding: 0.65em 1.3em; font-size: 0.95rem; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid currentColor;
  border-radius: 999px; font-size: 0.95rem; font-weight: 600; line-height: 1;
  padding: 9px 16px; cursor: pointer; color: var(--c-ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 24px 20px; border-bottom: 1px solid var(--c-line); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); opacity: 1; }
  .site-nav .btn { margin-top: 14px; }
}

/* --- Pied de page --- */
.site-footer { background: #17231d; color: #e4ebe6; padding: 64px 0 28px; margin-top: 96px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #9cc9ae; }
.footer-tagline { color: #a9b8af; max-width: 340px; margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #e4ebe6; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  max-width: var(--content-width); margin: 40px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14); color: #9fb0a6; font-size: 0.85rem;
}

/* --- Blocs --- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 28px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--c-bg-alt); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* Ancien accent en dégradé : neutralisé (n'est plus utilisé). */
.text-gradient { color: inherit; }

/* Animations d'apparition retirées : le contenu est toujours visible. */
.reveal { opacity: 1; transform: none; }

.footer-legal {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .85rem;
}
.footer-legal a { color: inherit; opacity: .85; }
.footer-legal a:hover { opacity: 1; }
.site-footer > .footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer:has(> .footer-bottom:first-child) { padding-top: 28px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.footer-bottom p { margin: 0; }

/* --- Formulaire d'inscription (fiche d'urgence) --- */
.optin-bloc { background: var(--c-moss-pale); border-radius: var(--radius-l); padding: 32px 36px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px 40px; align-items: center; }
.optin-bloc h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 8px; }
.optin-bloc p { margin: 0 0 8px; }
.optin { display: grid; gap: 10px; }
.optin input[type="text"], .optin input[type="email"] { width: 100%; padding: 13px 16px; border: 1.5px solid #c9d5ce; border-radius: 12px; font: inherit; background: #fff; }
.optin label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--c-ink-soft); line-height: 1.4; }
.optin label.consent input { margin-top: 3px; }
.optin .optin-msg { margin: 0; color: var(--c-alert); font-size: .9rem; min-height: 1.2em; }
.optin .optin-legal { font-size: .8rem; color: var(--c-ink-soft); margin: 0; }
.optin-ok { margin: 0; font-size: 1.05rem; }
.optin-pot { position: absolute; left: -9999px; }
@media (max-width: 860px) { .optin-bloc { grid-template-columns: 1fr; padding: 26px 22px; } }

/* --- Fenêtre de retenue --- */
.popup-fond { position: fixed; inset: 0; z-index: 100; background: rgba(12, 18, 14, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup { position: relative; background: #fff; border-radius: var(--radius-l); max-width: 480px; width: 100%; padding: 32px 30px 26px; }
.popup h2 { font-size: 1.5rem; margin: 0 28px 10px 0; }
.popup > p { color: var(--c-ink-soft); margin: 0 0 16px; }
.popup-fermer { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--c-ink-soft); }
