/* ============================================================
   GREENFOOD LABEL · Système de design v0.1
   Palette : vert teal (#059e85) / vert profond (#006959) / beige (#fffcf5)
   Typo    : Playfair Display (titres) + Inter (corps)
   Éco-conception : 1 fichier CSS unique, 0 framework, 0 JS,
   polices auto-hébergées WOFF2, DOM < 500 nœuds par page.
   ============================================================ */

/* Polices auto-hébergées (WOFF2 variables, latin) — 1 fichier = tous les poids.
   Téléchargées via python3 _build/fetch_fonts.py. */
@font-face{
  font-family:"Playfair Display";
  font-style:normal;
  font-weight:400 900;
  font-display:swap;
  src:url("/fonts/playfair-display-variable.woff2") format("woff2-variations"),
      url("/fonts/playfair-display-variable.woff2") format("woff2");
}
@font-face{
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("/fonts/inter-variable.woff2") format("woff2-variations"),
      url("/fonts/inter-variable.woff2") format("woff2");
}

:root{
  /* Couleurs principales */
  --primary:#059e85;
  --primary-deep:#006959;
  --primary-soft:#7ad6c4;
  --primary-pale:#e6f4f0;

  /* Fonds */
  --beige:#fffcf5;
  --beige-2:#f8f1e0;
  --white:#ffffff;

  /* Texte */
  --text:#1a1a1a;
  --text-soft:#3a3a3a;
  --muted:#7a7268;

  /* Bordures */
  --border:#e8dfca;
  --border-soft:#f0e9d8;

  /* Espacements & rayons */
  --radius-sm:8px;
  --radius:16px;
  --radius-lg:24px;
  --radius-xl:32px;
  --pill:999px;

  /* Ombres (douces, food-friendly) */
  --shadow-sm:0 2px 8px rgba(0,105,89,.05);
  --shadow:0 12px 32px rgba(0,105,89,.08);
  --shadow-lg:0 24px 60px rgba(0,105,89,.12);

  /* Typo stacks */
  --serif:"Playfair Display",Georgia,Cambria,"Times New Roman",serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{font-size:17px;scroll-behavior:smooth}
body{background:var(--beige);color:var(--text);font-family:var(--sans);line-height:1.6;-webkit-font-smoothing:antialiased}

h1,h2,h3,h4,blockquote{font-family:var(--serif);letter-spacing:-0.012em;font-weight:500}

.container{max-width:1180px;margin:0 auto;padding:0 28px}
.container-narrow{max-width:780px;margin:0 auto;padding:0 28px}
section{padding:6rem 0}

.section-beige{background:var(--beige)}
.section-beige-2{background:var(--beige-2)}
.section-white{background:var(--white)}
.section-green{background:var(--primary-deep);color:var(--beige)}
.section-green-pale{background:var(--primary-pale)}

/* Labels et puces décoratives */
.label{display:inline-block;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--primary-deep);font-weight:600;margin-bottom:1.2rem;background:var(--primary-pale);padding:.4rem .9rem;border-radius:var(--pill)}
.label.dark{color:var(--beige);background:rgba(255,252,245,.15)}

/* Topbar (placeholder, sans score EcoIndex tant que pas mesuré) */
.topbar{background:var(--primary-deep);color:var(--beige);font-size:.78rem;line-height:1;padding:0;border-bottom:1px solid rgba(255,252,245,.1)}
.topbar-wrap{max-width:1280px;margin:0 auto;padding:.55rem 28px;display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap}
.tb-item{color:rgba(255,252,245,.82);text-decoration:none;letter-spacing:.02em}
.tb-item:hover{color:var(--primary-soft)}
.tb-badge{display:inline-flex;align-items:center;gap:.45rem;color:var(--beige);text-decoration:none;background:rgba(255,252,245,.08);padding:.32rem .7rem;border-radius:var(--pill);font-weight:600;border:1px solid rgba(255,252,245,.15)}
.tb-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--primary-soft);animation:pulse 2s infinite}
@media(max-width:880px){.topbar{display:none}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* Header */
header{position:sticky;top:0;background:rgba(255,252,245,.94);backdrop-filter:blur(12px);z-index:100;border-bottom:1px solid var(--border-soft)}
.header-wrap{display:flex;justify-content:space-between;align-items:center;padding:1rem 28px;max-width:1280px;margin:0 auto;gap:1.5rem}
.logo{font-family:var(--serif);font-size:1.6rem;color:var(--primary-deep);text-decoration:none;font-weight:600;letter-spacing:-.01em;flex-shrink:0;display:inline-flex;align-items:center;gap:.5rem}
.logo svg{height:36px;width:auto}
nav{flex:1}
.nav-list{display:flex;gap:1.4rem;list-style:none;align-items:center;justify-content:center}
.nav-list>li>a{color:var(--text);text-decoration:none;font-size:.92rem;padding:.5rem 0;font-weight:500;transition:color .2s}
.nav-list>li>a:hover{color:var(--primary)}
.nav-list>li>a[aria-current="page"]{color:var(--primary-deep);border-bottom:2px solid var(--primary)}
.header-cta{display:flex;gap:.5rem;align-items:center;flex-shrink:0}

/* === Sous-menus dropdown (Le Label, Ils parlent de nous) === */
.nav-list>li{position:relative}
.has-dropdown>a::after,.has-dropdown>.nav-trigger::after{content:" ▾";font-size:.7em;color:var(--muted);margin-left:.2em;transition:color .15s}
.has-dropdown>.nav-trigger{color:var(--text);font-size:.92rem;padding:.5rem 0;display:inline-block;font-weight:500;cursor:default;user-select:none;transition:color .2s}
.has-dropdown:hover>.nav-trigger,.has-dropdown:hover>a,.has-dropdown:focus-within>.nav-trigger,.has-dropdown:focus-within>a{color:var(--primary)}
.dropdown{position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(-4px);min-width:220px;background:var(--white);border:1px solid var(--border-soft);border-radius:var(--radius);box-shadow:var(--shadow);padding:.6rem 0;list-style:none;margin:0;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:101}
.has-dropdown:hover .dropdown,.has-dropdown:focus-within .dropdown{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.dropdown li{margin:0}
.dropdown a{display:block;padding:.5rem 1.2rem;color:var(--text);text-decoration:none;font-size:.9rem;white-space:nowrap;transition:background .12s,color .12s}
.dropdown a:hover{background:var(--primary-pale);color:var(--primary-deep)}

/* Boutons */
.btn,.btn-primary,.btn-secondary,.btn-light{display:inline-block;text-decoration:none;font-size:.95rem;padding:.85rem 1.6rem;border-radius:var(--pill);transition:all .25s;cursor:pointer;border:1px solid transparent;font-family:inherit;letter-spacing:.01em;font-weight:500}
.btn-primary{background:var(--primary);color:var(--white);border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-deep);border-color:var(--primary-deep);transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-secondary{background:transparent;color:var(--primary-deep);border-color:var(--primary-deep)}
.btn-secondary:hover{background:var(--primary-deep);color:var(--beige)}
.btn-light{background:var(--beige);color:var(--primary-deep);border-color:var(--beige)}
.btn-light:hover{background:var(--white);border-color:var(--white)}
.btn-sm{padding:.6rem 1.2rem;font-size:.88rem}
.btn-arrow::after{content:" →";display:inline-block;transition:transform .2s}
.btn-arrow:hover::after{transform:translateX(4px)}

/* Hero générique (home + pages de contenu) */
.hero{padding:7rem 0 5rem;background:linear-gradient(180deg,var(--beige) 0%,var(--beige-2) 100%);position:relative;overflow:hidden}
.hero h1{font-size:clamp(2.4rem,5vw,4.2rem);color:var(--primary-deep);line-height:1.05;margin-bottom:1.6rem;max-width:22ch}
.hero .lead{font-size:1.2rem;color:var(--text-soft);max-width:60ch;line-height:1.6;margin-bottom:2rem}
.hero-cta{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}

/* Page-hero (pages intérieures) */
.page-hero{padding:5rem 0 3.5rem;background:var(--beige-2)}
.page-hero h1{font-size:clamp(2rem,4vw,3.2rem);color:var(--primary-deep);line-height:1.1;margin-bottom:1.2rem;max-width:24ch}
.page-hero .lead{font-size:1.1rem;color:var(--text-soft);max-width:62ch;line-height:1.6}

/* Fil d'ariane */
.crumbs{padding:1.2rem 28px 0;font-size:.85rem;color:var(--muted);max-width:1180px;margin:0 auto}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--primary)}
.crumbs span{color:var(--border);margin:0 .4rem}

/* 3 promesses (home) */
.promises{padding:6rem 0;background:var(--white)}
.promises-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:3rem}
.promise{padding:2rem;background:var(--beige);border-radius:var(--radius-lg);border:1px solid var(--border-soft)}
.promise h3{font-size:1.4rem;color:var(--primary-deep);margin-bottom:.8rem}
.promise p{color:var(--text-soft);line-height:1.55;font-size:.98rem}
@media(max-width:760px){.promises-grid{grid-template-columns:1fr;gap:1.2rem}}

/* Prose (articles, piliers, méthodos) */
.prose{font-size:1.05rem;line-height:1.75}
.prose p{margin-bottom:1.4rem;max-width:64ch}
.prose h2{font-size:clamp(1.7rem,3vw,2.4rem);margin:3rem 0 1rem;color:var(--primary-deep);line-height:1.2}
.prose h3{font-size:clamp(1.3rem,2vw,1.6rem);margin:2rem 0 .8rem;color:var(--primary-deep);line-height:1.3}
.prose ul,.prose ol{margin:1rem 0 1.4rem 1.4rem;max-width:62ch}
.prose ul li,.prose ol li{margin-bottom:.5rem}
.prose blockquote{font-family:var(--serif);font-style:italic;font-size:1.3rem;line-height:1.5;color:var(--primary-deep);border-left:3px solid var(--primary);padding:.5rem 0 .5rem 1.5rem;margin:2rem 0;max-width:62ch}
.prose strong{font-weight:600;color:var(--primary-deep)}
.prose a{color:var(--primary-deep);text-decoration:underline;text-decoration-color:var(--primary-soft);text-underline-offset:.2em}
.prose a:hover{color:var(--primary)}

/* Encart vert (témoignages, mises en avant) */
.card-green{background:var(--primary-deep);color:var(--beige);padding:2rem 2.4rem;border-radius:var(--radius-lg);margin:2.5rem 0;max-width:62ch}
.card-green h4{font-size:.85rem;letter-spacing:.18em;text-transform:uppercase;color:var(--primary-soft);font-weight:600;margin-bottom:1rem}
.card-green p{margin:0;font-size:1rem;line-height:1.6;color:var(--beige)}

/* FAQ (details/summary, zéro JS) */
.faq-list{max-width:74ch;margin:2.5rem 0;background:var(--white);border:1px solid var(--border-soft);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm)}
.faq-list details{border-bottom:1px solid var(--border-soft)}
.faq-list details:last-child{border-bottom:0}
.faq-list details[open]{background:var(--beige)}
.faq-list summary{font-family:var(--serif);font-size:1.15rem;color:var(--primary-deep);cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;font-weight:500;padding:1.4rem 1.8rem;gap:1rem}
.faq-list summary:hover{color:var(--primary)}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";color:var(--primary);font-weight:300;font-size:1.6rem;line-height:1;transition:transform .25s;flex-shrink:0;width:2rem;height:2rem;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--primary-pale)}
.faq-list details[open] summary::after{transform:rotate(45deg);background:var(--primary);color:var(--white)}
.faq-list details p{margin:0 1.8rem 1.4rem;font-size:1rem;line-height:1.65;color:var(--text)}

/* CTA-box (fin de page) */
.cta-box{background:var(--primary-deep);color:var(--beige);text-align:center;padding:4rem 28px;border-radius:var(--radius-xl);margin:4rem auto;max-width:880px}
.cta-box h2{font-size:clamp(1.7rem,3vw,2.6rem);color:var(--beige);margin-bottom:1rem;line-height:1.15}
.cta-box p{color:rgba(255,252,245,.85);max-width:54ch;margin:0 auto 2rem;font-size:1.05rem;line-height:1.55}
.cta-box .btn-light:hover{background:var(--primary);color:var(--white);border-color:var(--primary)}

/* Footer */
footer{background:var(--primary-deep);color:var(--beige);padding:5rem 0 2.5rem}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:3rem;padding-bottom:3rem;border-bottom:1px solid rgba(255,252,245,.15);margin-bottom:2.5rem}
.footer-brand .footer-logo{font-family:var(--serif);font-size:2rem;color:var(--beige);margin-bottom:1rem;display:inline-block;font-weight:600;text-decoration:none}
.footer-brand p{color:rgba(255,252,245,.7);font-size:.95rem;line-height:1.6;margin-bottom:1.5rem;max-width:380px}
.footer-col h4{font-size:.78rem;text-transform:uppercase;letter-spacing:.15em;color:rgba(255,252,245,.5);margin-bottom:1.2rem;font-weight:600;font-family:var(--sans)}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:.7rem}
.footer-col a{color:var(--beige);text-decoration:none;font-size:.93rem;transition:color .2s}
.footer-col a:hover{color:var(--primary-soft)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1.5rem}
.footer-signature{font-family:var(--serif);font-style:italic;font-size:.95rem;color:rgba(255,252,245,.85);max-width:480px}
.footer-legal{font-size:.78rem;color:rgba(255,252,245,.45);display:flex;gap:1.5rem;flex-wrap:wrap}
.footer-legal a{color:rgba(255,252,245,.45);text-decoration:none}
.footer-legal a:hover{color:var(--beige)}
@media(max-width:880px){.footer-grid{grid-template-columns:1fr 1fr;gap:2rem}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr;gap:1.5rem}}

/* === Bloc "chantier" (placeholder staging) === */
.chantier{padding:8rem 0 6rem;text-align:center;background:linear-gradient(180deg,var(--beige) 0%,var(--beige-2) 100%)}
.chantier .badge{display:inline-block;background:var(--primary);color:var(--white);padding:.5rem 1.2rem;border-radius:var(--pill);font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;margin-bottom:2rem}
.chantier h1{font-size:clamp(2.4rem,5vw,4.2rem);color:var(--primary-deep);line-height:1.05;margin-bottom:1.5rem;max-width:22ch;margin-left:auto;margin-right:auto}
.chantier .lead{font-size:1.15rem;color:var(--text-soft);max-width:56ch;margin:0 auto 2rem;line-height:1.6}
.chantier .signature{font-family:var(--serif);font-style:italic;color:var(--muted);font-size:.95rem;margin-top:3rem}

/* === Logo Greenfood (SVG dans header + footer) === */
.gf-logo-mark{width:46px;height:50px;flex-shrink:0;display:block}
.gf-logo-full{height:120px;width:auto;display:block}
.footer-logo-mark{width:48px;height:52px;display:inline-block;vertical-align:middle;margin-right:.6rem}

/* === Bandeau de chiffres (sous le hero) === */
.stats-band{background:var(--primary-deep);color:var(--beige);padding:3rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;text-align:center}
.stat{padding:0 1rem}
.stat .num{font-family:var(--serif);font-size:clamp(2rem,4vw,3rem);font-weight:600;color:var(--beige);line-height:1;display:block;margin-bottom:.4rem}
.stat .lbl{font-size:.85rem;color:rgba(255,252,245,.75);letter-spacing:.05em;text-transform:uppercase}
@media(max-width:760px){.stats-grid{grid-template-columns:1fr 1fr;gap:1.6rem}}

/* === 3 étapes du processus === */
.steps{padding:6rem 0;background:var(--beige-2)}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem;margin-top:3rem}
.step{position:relative;padding:1.5rem 0}
.step-num{font-family:var(--serif);font-size:3rem;color:var(--primary);line-height:1;font-weight:500;margin-bottom:1rem;display:block}
.step h3{font-size:1.35rem;color:var(--primary-deep);margin-bottom:.7rem}
.step p{color:var(--text-soft);line-height:1.6;font-size:.98rem;max-width:34ch}
@media(max-width:760px){.steps-grid{grid-template-columns:1fr;gap:1.8rem}}

/* === Restaurants vedettes (cards) === */
.restos{padding:6rem 0;background:var(--white)}
.restos-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.6rem;margin-top:3rem}
.resto-card{background:var(--beige);border:1px solid var(--border-soft);border-radius:var(--radius-lg);overflow:hidden;transition:transform .25s,box-shadow .25s;text-decoration:none;color:inherit;display:flex;flex-direction:column;min-height:100%}
.resto-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
/* Photo : ratio 4/3 verrouillé. Toutes les cards ont la même hauteur photo,
   peu importe l'orientation du fichier source. object-fit:cover recadre. */
.resto-card .photo{
  width:100%;
  aspect-ratio:4/3;
  background:linear-gradient(135deg,var(--primary-pale),var(--primary-soft));
  display:flex;align-items:center;justify-content:center;
  color:var(--primary-deep);font-family:var(--serif);font-style:italic;font-size:1.1rem;
  overflow:hidden;
  flex-shrink:0;
}
.resto-card .photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Body : flex-grow pour que toutes les cards aient la même hauteur dans la grille,
   beige rempli également. min-height garantit un visuel équilibré même avec peu de texte. */
.resto-card .body{
  padding:1.4rem;
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:170px;
}
.resto-card h3{font-size:1.2rem;color:var(--primary-deep);margin-bottom:.3rem;line-height:1.25}
.resto-card .ville{font-size:.88rem;color:var(--muted);margin-bottom:.6rem;letter-spacing:.02em}
/* Description : tronquée à 3 lignes max pour ne pas casser l'équilibre */
.resto-card .desc{
  font-size:.92rem;color:var(--text-soft);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;
}

/* === Pre-footer CTA (vert profond) === */
.pre-footer{background:var(--primary-deep);color:var(--beige);padding:6rem 0;text-align:center}
.pre-footer h2{font-size:clamp(2rem,4vw,3.2rem);color:var(--beige);margin-bottom:1.2rem;line-height:1.15;max-width:24ch;margin-left:auto;margin-right:auto}
.pre-footer p{color:rgba(255,252,245,.85);max-width:56ch;margin:0 auto 2.2rem;font-size:1.1rem;line-height:1.55}
.pre-footer .btn-light:hover{background:var(--primary);color:var(--white);border-color:var(--primary)}

/* === Section manifeste court (home) === */
.home-manifeste{padding:6rem 0;background:var(--beige);text-align:center}
.home-manifeste blockquote{font-family:var(--serif);font-style:italic;font-size:clamp(1.4rem,2.6vw,1.9rem);color:var(--primary-deep);max-width:42rem;margin:0 auto 1.5rem;line-height:1.4;border:0;padding:0}
.home-manifeste cite{font-style:normal;color:var(--muted);font-size:.95rem;letter-spacing:.05em;display:block}

/* ============================================================
   Frise chronologique (timeline) — page /notre-histoire/
   Éco-conçue : 0 image, 0 JS, ~600 octets CSS, ligne verticale + pastilles
   ============================================================ */
.timeline{position:relative;max-width:46rem;margin:2.5rem auto;padding-left:2.8rem}
.timeline::before{content:"";position:absolute;left:1rem;top:.4rem;bottom:.4rem;width:2px;background:linear-gradient(to bottom,var(--primary) 0%,var(--primary-deep) 100%)}
.timeline-step{position:relative;margin-bottom:2.8rem}
.timeline-step:last-child{margin-bottom:0}
.timeline-step .year{position:absolute;left:-2.8rem;top:-.3rem;width:2.2rem;height:2.2rem;border-radius:50%;background:var(--primary);color:#fff;font-weight:700;font-size:.7rem;display:flex;align-items:center;justify-content:center;line-height:1;text-align:center;box-shadow:0 0 0 4px var(--beige)}
.timeline-step .year.long{font-size:.55rem;letter-spacing:-.02em}
.timeline-step h3{font-family:var(--serif);font-size:clamp(1.25rem,2.2vw,1.55rem);color:var(--primary-deep);margin:0 0 .6rem;line-height:1.25}
.timeline-step p{margin:0 0 .8rem;line-height:1.6}
.timeline-step p:last-child{margin-bottom:0}
.timeline-step blockquote{margin:.8rem 0;padding:.7rem 1.1rem;border-left:3px solid var(--primary);background:rgba(5,158,133,.05);font-style:italic;color:var(--primary-deep);font-family:var(--serif);font-size:1.05rem;border-radius:0 4px 4px 0}

/* Double bloc "Pour les consos / Pour les restaurateurs" */
.histoire-duo{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin:2rem 0}
@media(max-width:640px){.histoire-duo{grid-template-columns:1fr}}
.histoire-duo > div{background:#fff;border:1px solid rgba(0,105,89,.12);border-radius:var(--radius-lg);padding:1.6rem}
.histoire-duo h3{font-family:var(--serif);color:var(--primary-deep);margin:0 0 .6rem;font-size:1.2rem}
.histoire-duo p{margin:0;line-height:1.55;color:var(--text)}

/* Accessibility */
:focus-visible{outline:3px solid var(--primary);outline-offset:3px;border-radius:4px}
