/* ==========================================================================
   Afoodi — chrome partagée
   Tokens, base, boutons, navbar, bandeau CTA, footer.
   Repris du design de l'accueil (bundle Claude Design) pour que chaque page
   portée dans le repo parle la même langue : Archivo + palette OKLCH.
   Les styles propres à une page vivent dans leur propre feuille.
   ========================================================================== */

:root {
  --green:        oklch(0.30 0.045 165);
  --green-deep:   oklch(0.26 0.045 165);
  --green-dark:   oklch(0.19 0.035 165);
  --green-ink:    oklch(0.17 0.03 165);
  --cream:        oklch(0.96 0.02 90);
  --cream-dim:    oklch(0.84 0.03 120);
  --cream-panel:  oklch(0.955 0.015 90);
  --cream-pure:   oklch(0.99 0.008 90);
  --orange:       oklch(0.68 0.16 45);
  --orange-bright:oklch(0.73 0.17 48);
  --mint:         oklch(0.74 0.10 160);
  --panel-line:   oklch(0.55 0.04 165 / .28);
  --ink-line:     oklch(0.30 0.045 165 / .14);
  --ink-soft:     oklch(0.42 0.03 165);
  --font: "Archivo", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font);
  color: var(--cream);
  background: var(--green-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--orange-bright); }
img, video, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(22px, 4vw, 60px); }
.wrap--narrow { max-width: 980px; }

/* Repli texte des schémas : lu par les lecteurs d'écran et les moteurs,
   invisible à l'œil. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: oklch(0.99 0.01 90);
  font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: oklch(0.99 0.01 90); }

/* ----- Boutons ----- */
.btn {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--orange); color: oklch(0.99 0.01 90); box-shadow: 0 10px 26px -10px oklch(0.68 0.16 45 / .8); }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); color: oklch(0.99 0.01 90); }
.btn-outline { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px oklch(0.75 0.04 160 / .5); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--cream); color: var(--cream); transform: translateY(-2px); }
.btn-dark { background: var(--green-dark); color: var(--cream); }
.btn-dark:hover { background: var(--green); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: oklch(0.99 0.01 90); box-shadow: inset 0 0 0 1.5px oklch(0.99 0.01 90 / .7); }
.btn-ghost:hover { background: oklch(0.99 0.01 90 / .12); color: oklch(0.99 0.01 90); }

/* ----- Éléments de titrage partagés ----- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mint);
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--mint); opacity: .7; }
.kicker--center { justify-content: center; }
.kicker--ink { color: var(--orange); }
.kicker--ink::before { background: var(--orange); }

.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  color: var(--green-ink);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}
.lnk:hover { color: var(--orange); }
.lnk-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}

/* ==========================================================================
   Navigation
   Barre commune à toutes les pages : entrées simples, entrées à sous-menu,
   et panneau mobile. Le sous-menu s'ouvre au survol sur grand écran et au
   clic partout — le <button> parent garde le clavier opérationnel.
   ========================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: oklch(0.17 0.03 165 / .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.navbar.stuck { border-bottom-color: var(--panel-line); background: oklch(0.15 0.028 165 / .93); }
.navbar nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); padding: 16px 0; }
.logo { display: block; flex: none; }
.logo img { height: clamp(30px, 2.6vw, 40px); width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu a,
.nav-sub-btn {
  font-family: var(--font);
  font-size: 15px; font-weight: 600;
  color: var(--cream);
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-sub-btn:hover { color: var(--orange-bright); }
.nav-menu a[aria-current="page"] { color: var(--orange); }
/* L'entrée parente d'une page ouverte reste signalée. */
.nav-has-sub.is-current > .nav-sub-btn { color: var(--orange); }
.nav-sub-btn svg { width: 11px; height: 11px; fill: currentColor; transition: transform .2s ease; }
.nav-sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 240px;
  list-style: none;
  display: grid; gap: 2px;
  padding: 10px;
  background: oklch(0.15 0.028 165 / .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px oklch(0 0 0 / .6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* Bande transparente entre le parent et le panneau : le curseur peut
   descendre sans que le survol se rompe. */
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub,
.nav-sub-btn[aria-expanded="true"] + .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-sub a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.nav-sub a:hover { background: oklch(0.30 0.045 165 / .7); color: var(--cream); }
.nav-sub a[aria-current="page"] { color: var(--orange); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* Bouton du panneau mobile — masqué tant que la barre tient en largeur. */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
  grid-auto-flow: row;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--cream);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-burger { display: grid; }
  .navbar nav { gap: 14px; }
  .nav-right { margin-left: auto; }

  /* Le menu devient un panneau plein sous la barre. */
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; gap: 0;
    align-items: stretch;
    padding: 8px clamp(22px, 4vw, 60px) 22px;
    background: oklch(0.15 0.028 165 / .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-line);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-menu > li { border-top: 1px solid var(--panel-line); }
  .nav-menu > li > a,
  .nav-sub-btn { width: 100%; padding: 16px 0; font-size: 16px; justify-content: space-between; }

  /* En accordéon : le sous-menu pousse le contenu au lieu de le survoler. */
  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 12px 14px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    display: none;
    opacity: 1; visibility: visible;
  }
  .nav-sub::before { display: none; }
  .nav-has-sub:hover .nav-sub,
  .nav-has-sub:focus-within .nav-sub { display: none; }
  .nav-sub-btn[aria-expanded="true"] + .nav-sub { display: grid; }
  .nav-sub a { padding: 11px 12px; font-size: 15px; }
}

@media (max-width: 560px) {
  .nav-right .btn { font-size: 13.5px; padding: 12px 16px; }
}

/* ==========================================================================
   Bandeau écosystème — partagé par /a-propos et /equipe
   Trois groupes de logos, chacun sous son libellé : ce qui distingue un
   soutien d'une co-fondation doit rester lisible d'un coup d'œil.
   Les fichiers de logo portent eux-mêmes leur cadre provisoire ; les
   remplacer suffit, rien à retirer côté CSS.
   ========================================================================== */
.ecosysteme { background: var(--cream); color: var(--green-ink); padding: clamp(52px, 6vw, 92px) 0; }
.eco__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
  margin-top: clamp(32px, 3.6vw, 50px);
}
.eco__groupe { display: grid; gap: 14px; }
.eco__l {
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
}
.eco__logos { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.2vw, 16px); }
.eco__logos li {
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 14px 18px;
  display: grid;
  place-items: center;
  min-width: 150px;
}
.eco__logos img { height: clamp(34px, 3.4vw, 46px); width: auto; max-width: 100%; object-fit: contain; }
/* Food Hotel Tech ne diffuse que la version claire de son logo : elle réclame
   un fond sombre. La pastille passe au vert d'encre pour cet emplacement. */
.eco__logos li.eco__logos--sombre { background: var(--green-ink); border-color: transparent; }
/* Les séparateurs disent la hiérarchie sans ajouter de mots. */
.eco__grid > .eco__groupe + .eco__groupe { border-left: 1px solid var(--ink-line); padding-left: clamp(24px, 3vw, 52px); }

@media (max-width: 1080px) {
  .eco__grid { grid-template-columns: 1fr; gap: clamp(22px, 3vw, 34px); }
  .eco__grid > .eco__groupe + .eco__groupe { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-line); padding-top: clamp(22px, 3vw, 34px); }
}

/* ==========================================================================
   Bandeau de logos clients (orange, pleine largeur)
   Repris de l'accueil. La piste contient deux fois la même série et se
   déplace de -50 % : arrivée au bout, elle recommence exactement là où l'œil
   l'attend. La seconde série est un doublon visuel — masquée aux lecteurs
   d'écran, qui entendraient sinon la liste deux fois.
   ========================================================================== */
.band { background: var(--orange); padding: clamp(34px, 4vw, 52px) 0 clamp(40px, 4.4vw, 60px); }
.band__pill {
  display: block;
  width: max-content;
  max-width: calc(100% - 44px);
  margin: 0 auto clamp(26px, 3vw, 42px);
  border: 1.5px solid oklch(0.99 0.01 90 / .65);
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 700;
  color: oklch(0.99 0.01 90);
  text-align: center;
}
/* Le masque évite que les logos n'apparaissent et disparaissent net sur les
   bords : ils s'effacent en entrant et en sortant du champ. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(48px, 5.5vw, 96px);
  align-items: center;
  list-style: none;
  animation: defile 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-slot { flex: none; width: 178px; height: 74px; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }

/* Mouvement réduit : plus de défilement du tout. Les logos se rangent en
   grille centrée et le doublon disparaît — sinon la série s'afficherait
   deux fois, à l'arrêt. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(26px, 3vw, 48px);
  }
  .logo-slot--clone { display: none; }
}

/* ==========================================================================
   Colonne latérale des fiches (/guides/{slug}, /glossaire/{terme})
   Trois blocs : l'inscription à la newsletter, puis les deux sommaires qui
   relient les 22 fiches entre elles. Partagée par les deux familles de
   pages, d'où sa place ici plutôt que dans l'une des deux feuilles.
   ========================================================================== */
.rail { display: grid; gap: clamp(20px, 2.2vw, 28px); align-content: start; }

.rail__k {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rail__k--clair { color: var(--mint); }

/* L'encadré d'inscription passe en vert : sur une page crème, c'est ce qui
   le détache du texte sans crier. */
.rail__news {
  background: var(--green-ink);
  color: var(--cream);
  border-radius: 20px;
  padding: clamp(20px, 2vw, 26px);
}
.rail__t {
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-top: 8px;
  color: var(--cream);
}
.rail__d { font-size: 14px; line-height: 1.5; color: var(--cream-dim); margin-top: 10px; }
.rail__form { display: grid; gap: 8px; margin-top: 16px; }
.rail__form input {
  font-family: var(--font);
  font-size: 14px;
  color: var(--cream);
  background: oklch(0.24 0.04 165 / .6);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
}
.rail__form input::placeholder { color: oklch(0.84 0.03 120 / .55); }
.rail__form input:focus-visible { border-color: var(--orange); }
.rail__form .btn { justify-content: center; font-size: 14px; padding: 11px 16px; }
.rail__ou {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.rail__ou::before,
.rail__ou::after { content: ""; flex: 1; height: 1px; background: var(--panel-line); }
.rail__news .news__li { margin-top: 14px; font-size: 13.5px; padding: 10px 16px; }

/* Chaque sommaire porte son illustration : elle sépare les deux listes et
   donne un repère visuel à la colonne, qui sans elles n'est qu'une suite de
   liens. Même cadre 4:3 pour les deux, pour qu'elles s'alignent. */
.rail__illu {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--ink-line);
}
.rail__nav ul { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.rail__nav a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 2px solid var(--ink-line);
  text-wrap: pretty;
}
.rail__nav a:hover { color: var(--green-ink); border-left-color: var(--orange); }
/* La fiche en cours reste dans la liste, mais cesse d'être un lien à suivre. */
.rail__nav a[aria-current="page"] {
  color: var(--green-ink);
  font-weight: 800;
  border-left-color: var(--orange);
}

/* ==========================================================================
   Citation isolée (.verbatim)
   Un client ou une source de marché, sur une page qui n'a pas son propre
   traitement de témoignage. À poser dans une section déjà claire
   (class="light verbatim") : le filet orange fait tout le travail.
   ========================================================================== */
.verbatim { padding: clamp(38px, 4.6vw, 70px) 0; }
.verbatim blockquote {
  max-width: 880px;
  margin-inline: auto;
  border-left: 3px solid var(--orange);
  padding-left: clamp(20px, 2.6vw, 34px);
}
.verbatim blockquote p {
  font-size: clamp(19px, 2.1vw, 30px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-wrap: pretty;
}
.verbatim footer { margin-top: clamp(16px, 1.8vw, 24px); font-size: 14px; line-height: 1.55; }
.verbatim__nom { display: block; font-weight: 800; }
.verbatim__role { display: block; color: var(--ink-soft); }
/* Renvoi vers le cas complet, aligné sur la citation qu'il prolonge. */
.verbatim__lien { max-width: 880px; margin: clamp(18px, 2vw, 26px) auto 0; padding-left: clamp(23px, 2.6vw, 37px); }

/* ==========================================================================
   Bandeau CTA + footer
   ========================================================================== */
.cta { background: var(--orange); color: oklch(0.99 0.01 90); padding: clamp(60px, 7vw, 104px) 0; text-align: center; }
.cta h2 { font-size: clamp(34px, 4.8vw, 70px); font-weight: 900; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.cta p { font-size: 17px; line-height: 1.55; margin: 20px auto 0; max-width: 560px; color: oklch(0.99 0.01 90 / .9); }
.cta .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta a { color: oklch(0.99 0.01 90); }

.site-footer { background: var(--green-ink); padding: 40px 0; }
/* ----- Newsletter, en tête du pied de page -----
   Présente sur toutes les pages. Le formulaire n'a pas encore de destination :
   tant que data-endpoint est vide, newsletter.js bloque l'envoi plutôt que de
   laisser croire à une inscription enregistrée. */
.news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-bottom: 34px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--panel-line);
}
.news__k { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--mint); }
.news__t {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  margin-top: 10px;
  color: var(--cream);
  text-wrap: balance;
}
.news__d { font-size: 15.5px; line-height: 1.55; color: var(--cream-dim); margin-top: 14px; max-width: 52ch; text-wrap: pretty; }

.news__form { display: grid; gap: 10px; }
.news__champs { display: flex; gap: 10px; flex-wrap: wrap; }
.news__champs input {
  flex: 1; min-width: 220px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--cream);
  background: oklch(0.24 0.04 165 / .6);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.news__champs input::placeholder { color: oklch(0.84 0.03 120 / .55); }
.news__champs input:focus-visible { border-color: var(--orange); }
.news__form .btn { flex: none; }
.news__legal { font-size: 12.5px; line-height: 1.5; color: var(--cream-dim); }
.news__legal a { color: var(--cream-dim); text-decoration: underline; text-underline-offset: 2px; }
.news__legal a:hover { color: var(--orange-bright); }
/* Retour d'envoi, rempli par le script. */
.news__msg { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--orange-bright); }
.news__msg:empty { display: none; }

/* ----- Deuxième porte d'entrée : la newsletter LinkedIn -----
   Deux chemins vers le même contenu. Celui-ci fonctionne dès aujourd'hui,
   là où le formulaire attend encore son endpoint. */
.news__voies { display: grid; gap: 16px; }
.news__ou {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.news__ou::before,
.news__ou::after { content: ""; flex: 1; height: 1px; background: var(--panel-line); }
/* Le bleu est celui de LinkedIn : c'est ce qui rend le bouton reconnaissable
   d'un coup d'œil. Le reste — police, hauteur, rayon — suit le site. */
.news__li {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0A66C2;
  color: oklch(0.99 0.01 90);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  border-radius: 999px;
  padding: 12px 20px;
  transition: background .2s ease, transform .2s ease;
}
.news__li:hover { background: #0B5CAB; color: oklch(0.99 0.01 90); transform: translateY(-2px); }
.news__li svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

@media (max-width: 900px) {
  .news { grid-template-columns: 1fr; gap: 24px; }
}
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--cream-dim); }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__links a { color: var(--cream-dim); }
.foot__links a:hover { color: var(--orange-bright); }
