/* Le site reprend la forme de celui d'EncreBrume (rail des routes, quatre temps, une seule scène sombre, pied siliceum) avec
   les jetons de l'appli Bourgeon (design/tokens.json) : fond presque blanc, texte presque noir, le vert agit, peu de
   couleurs et chacune avec un sens. Fraunces Display pour les titres (le lien de famille avec EncreBrume), Geist pour le
   corps (la police de l'appli), aucune italique. */
@font-face { font-family: Fraunces; src: url(fonts/Fraunces-Display.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist-Latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --pierre: #fcfcfb;          /* bg */
  --carte: #ffffff;
  --creux: #f1f2ef;           /* fill */
  --brume: #e7f2eb;           /* le haut de page, un voile de vert */
  --ombre: 0 18px 40px -18px rgba(13, 59, 39, 0.32), 0 4px 10px -4px rgba(13, 59, 39, 0.14);
  --encre: #171a18;           /* text */
  --encre-douce: #3c433f;
  --encre-pale: #5a615d;      /* text-muted */
  --accent: #0d3b27;          /* la sève : titres, scène sombre, pied */
  --sur-accent: #ffffff;
  --action: #0f6b46;          /* green : boutons, liens, mots mis en avant */
  --action-fonce: #0b5236;    /* green-dark */
  --voile: #e3efe8;
  --texte-voile: #cdeedb;     /* hue-green-100 */
  --vive: #8fd1ab;            /* le vert clair de la marque, sur fond sombre */
  --sur-seve: #b9d6c6;
  /* Les paires pâles de l'appli (org-*) : fond et texte vérifiés à plus de 6:1. */
  --teinte-1: #cdeedb; --encre-1: #0d4a2f;
  --teinte-2: #d3e4fb; --encre-2: #174a8b;
  --teinte-3: #e6dcfa; --encre-3: #4a2b8f;
  --teinte-4: #fad7ea; --encre-4: #86225f;
  --rayon: 10px;
  --titre: Fraunces, Georgia, "Times New Roman", serif;
  --corps: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 8rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: linear-gradient(180deg, var(--brume) 0, var(--pierre) 38rem) no-repeat, var(--pierre); color: var(--encre); font: 400 1.125rem/1.6 var(--corps); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:focus-visible, .bouton:focus-visible, summary:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); color: var(--accent); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--action); }
p { margin: 0; }
.conteneur { width: min(100% - 2rem, 76rem); margin-inline: auto; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.marque { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--accent); font: 600 1.6rem/1 var(--titre); }
.marque img { width: 40px; height: 40px; }
.entete nav { display: flex; align-items: center; gap: 1.6rem; }
.entete nav a { color: var(--encre-douce); text-decoration: none; font-weight: 600; font-size: 1rem; }
.entete nav a:hover { color: var(--accent); }
.entete nav .bouton { color: var(--sur-accent); }
.barre-haut { position: sticky; top: 0; z-index: 30; background: rgba(231, 242, 235, 0.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Boutons : l'action principale est pleine de vert, comme dans l'appli ; la secondaire est un fond voilé */
.bouton { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0 1.4rem; border-radius: var(--rayon); font: 600 1.05rem/1 var(--corps); text-decoration: none; white-space: nowrap; background: var(--action); color: var(--sur-accent); transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms; }
.bouton:hover { background: var(--action-fonce); transform: translateY(-1px); }
.bouton.second { background: var(--voile); color: var(--accent); }
.bouton.second:hover { background: var(--texte-voile); }
.bouton.petit { min-height: 44px; padding: 0 1.1rem; font-size: 0.98rem; }

/* Le rail : les routes des écrans de l'appli, en marge */
.page { position: relative; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.page::before { content: ""; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--texte-voile); border-radius: 2px; }
.route { position: relative; padding: 0.35rem 0 0 1.6rem; font: 600 0.85rem/1.3 var(--corps); letter-spacing: 0.04em; color: var(--action); }
.route::before { content: ""; position: absolute; left: 0.5rem; top: 0.55rem; width: 12px; height: 12px; margin-left: -5px; background: var(--action); border-radius: 3px; }
.route small { display: block; margin-top: 0.2rem; color: var(--encre-pale); font-weight: 400; letter-spacing: 0; }
.bloc { display: contents; }
.corps { padding-bottom: 6rem; }

/* Accueil */
.heros { padding-top: 1.5rem; }
.heros h1 { font-size: clamp(2.8rem, 5.4vw, 4.9rem); line-height: 1; text-wrap: balance; }
.accroche { margin-top: 1.8rem; font: 600 clamp(1.25rem, 2.2vw, 1.55rem)/1.35 var(--corps); color: var(--encre); max-width: 36rem; }
.accroche em { font-style: normal; color: var(--action); }
.chapeau { margin-top: 0.9rem; color: var(--encre-douce); max-width: 35rem; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.note { margin-top: 1rem; color: var(--encre-pale); font-size: 0.98rem; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }

/* La scène : la sève, une grande pousse en filigrane, l'Inbox dans sa fenêtre, et un ticket qui se range */
.scene { position: relative; min-height: 36rem; border-radius: 28px; overflow: hidden; background: radial-gradient(60% 50% at 75% 18%, rgba(143, 209, 171, 0.42), transparent 70%), radial-gradient(55% 45% at 15% 90%, rgba(47, 143, 91, 0.55), transparent 70%), linear-gradient(160deg, #13603f, #0a2a1c 72%); }
.scene .pousse { position: absolute; width: 88%; right: -20%; bottom: -10%; opacity: 0.16; filter: brightness(0) invert(1); }
.scene .fenetre { position: absolute; top: 4.2rem; left: 2.2rem; width: 150%; max-width: none; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.puce { position: absolute; z-index: 4; padding: 0.5rem 0.85rem; background: var(--carte); color: var(--accent); border-radius: 999px; font: 600 0.88rem/1.2 var(--corps); box-shadow: var(--ombre); }
.puce b { color: var(--action); font-weight: 700; }
.puce.haut { top: 1.2rem; left: 1.2rem; background: var(--texte-voile); }
.puce.bas { bottom: 1.4rem; right: 1.2rem; background: var(--teinte-2); color: var(--encre-2); }
.puce.bas b { color: var(--encre-2); }

.tri { position: absolute; left: 1.2rem; bottom: 4.6rem; z-index: 3; width: min(21rem, calc(100% - 2.4rem)); padding: 1rem 1.1rem; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); font-size: 0.98rem; line-height: 1.35; }
.tri-entree { font-weight: 600; color: var(--encre); }
.tri-source { display: inline-block; margin-right: 0.35rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--creux); color: var(--encre-pale); font-size: 0.82rem; font-weight: 600; vertical-align: 0.08em; }
.tri-regle { margin-top: 0.55rem; color: var(--encre-pale); font-size: 0.92rem; }
.tri-regle::before { content: "↳ "; color: var(--action); font-weight: 700; }
.tri-sortie { margin-top: 0.45rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-weight: 600; font-size: 0.95rem; }
.tri-sortie .crit { color: #b3261e; }
.tri-sortie .crit::before { content: "⬣ "; }
.tri-sortie .vers { color: var(--accent); }

/* Les chiffres : un fond teinté chacun, les paires pâles de l'appli */
.chiffres { margin-top: 4.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.chiffres div { padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--rayon); }
.chiffres div:nth-child(1) { background: var(--teinte-1); color: var(--encre-1); }
.chiffres div:nth-child(2) { background: var(--teinte-2); color: var(--encre-2); }
.chiffres div:nth-child(3) { background: var(--teinte-3); color: var(--encre-3); }
.chiffres div:nth-child(4) { background: var(--teinte-4); color: var(--encre-4); }
.chiffres strong { display: block; font: 600 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--titre); letter-spacing: -0.02em; }
.chiffres span { display: block; margin-top: 0.5rem; font-size: 1rem; line-height: 1.35; font-weight: 600; }

/* Les quatre temps : un écran de bureau, donc un cadre plus large que le téléphone d'EncreBrume */
.temps { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: center; }
.temps.inverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.temps.inverse .texte-bloc { order: 2; }
.numero { font: 600 clamp(5rem, 11vw, 9rem)/0.85 var(--titre); color: var(--action); }
.temps .texte-bloc > h2 { margin-top: 1rem; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; text-wrap: balance; }
.temps .texte-bloc > p { margin-top: 1.2rem; color: var(--encre-douce); max-width: 31rem; text-wrap: pretty; }
.cadre { width: 100%; }
.cadre .barre { display: inline-flex; margin-bottom: 0.8rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--texte-voile); color: var(--encre-1); font: 600 0.88rem/1.2 var(--corps); letter-spacing: 0.03em; }
.cadre img { border-radius: 14px; box-shadow: var(--ombre); background: var(--pierre); }

/* Titres de section hors des quatre temps */
.titre-section { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; text-wrap: balance; max-width: 52rem; }
.intro-section { margin-top: 1.2rem; color: var(--encre-douce); max-width: 40rem; text-wrap: pretty; }

/* Le parcours d'un ticket : six étapes sur la tige, de l'arrivée à la mesure */
.parcours { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem; position: relative; }
.parcours::before { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; top: 2.15rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--vive), var(--action)); }
.parcours li { position: relative; padding-top: 3.4rem; }
.parcours li::before { content: ""; position: absolute; left: 0; top: 1.6rem; width: 14px; height: 14px; border-radius: 50%; background: var(--pierre); border: 3px solid var(--action); }
.etape-heure { position: absolute; top: 0; left: 0; font: 600 0.85rem/1.3 var(--corps); color: var(--encre-pale); letter-spacing: 0.02em; }
.parcours h3 { font-size: 1.35rem; line-height: 1.15; }
.parcours p { margin-top: 0.5rem; color: var(--encre-douce); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }

/* Le détail d'un temps : des puces en forme de petite feuille, un mot en gras d'abord */
.detail { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 33rem; }
.detail li { position: relative; padding-left: 1.6rem; color: var(--encre-douce); font-size: 1.02rem; line-height: 1.5; text-wrap: pretty; }
.detail li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; border-radius: 0 60% 0 60%; background: var(--action); }
.detail b { color: var(--encre); font-weight: 600; }
.detail.roles li { padding-block: 0.15rem; }
.detail.roles b { display: inline-block; min-width: 8.2rem; }
.temps p.apres-detail { margin-top: 1.4rem; font-size: 1.02rem; }

/* Le terminal : une session Claude Code qui travaille dans Bourgeon */
.terminal { border-radius: 14px; overflow: hidden; background: #0e1712; box-shadow: var(--ombre); }
.terminal-barre { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; background: #16241c; }
.terminal-barre i { width: 10px; height: 10px; border-radius: 50%; background: #2f4a3b; }
.terminal-barre span { margin-left: 0.6rem; color: #8fb3a0; font: 600 0.85rem/1 var(--corps); }
.terminal pre { margin: 0; padding: 1.3rem 1.4rem 1.5rem; overflow-x: auto; color: #dfeee5; font: 400 0.92rem/1.6 ui-monospace, "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace; }
.t-vous { color: #cdeedb; font-weight: 700; }
.t-agent { color: #8fd1ab; font-weight: 700; }
.t-outil { color: #b9a6f2; }
.t-retour { color: #8fb3a0; }
.t-ok { color: #8fd1ab; font-weight: 700; }
.t-signal { color: #f0c36b; }

/* Le fil de livraison : un schéma, à la forme de celui de la fiche */
.livraison { padding: 1.6rem 1.7rem 1.4rem; background: var(--carte); border-radius: 14px; box-shadow: var(--ombre); }
.livraison-tete { font-weight: 600; color: var(--encre); line-height: 1.35; }
.livraison-ref { margin-right: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--creux); color: var(--encre-pale); font: 600 0.85rem/1.4 ui-monospace, Menlo, Consolas, monospace; }
.livraison ol { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 0; }
.livraison li { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.6rem 0 0.6rem 1.6rem; }
.livraison li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--action); }
.livraison li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 1.6rem; bottom: -0.4rem; width: 2px; background: var(--texte-voile); }
.livraison li.fin::before { width: 14px; height: 14px; left: -2px; top: 0.85rem; background: var(--action); box-shadow: 0 0 0 4px var(--texte-voile); }
.jalon { font-weight: 600; color: var(--accent); font-size: 0.98rem; }
.livraison code { color: var(--encre-douce); font: 400 0.9rem/1.4 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.livraison .fin code { color: var(--action); font-weight: 600; }
.livraison-note { margin-top: 1rem; color: var(--encre-pale); font-size: 0.88rem; }

/* La comparaison */
.comparer { padding-block: 6rem 2rem; }
.comparer h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; text-wrap: balance; max-width: 50rem; }
.tableau-comparer { margin-top: 2.5rem; overflow-x: auto; border-radius: 14px; background: var(--carte); box-shadow: 0 1px 2px rgba(13, 59, 39, 0.06), 0 10px 24px -14px rgba(13, 59, 39, 0.25); }
.tableau-comparer:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.tableau-comparer table { width: 100%; min-width: 52rem; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.tableau-comparer th, .tableau-comparer td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--creux); }
.tableau-comparer tbody tr:last-child > * { border-bottom: 0; }
.tableau-comparer thead th { font: 600 1.15rem/1.2 var(--titre); color: var(--accent); vertical-align: bottom; }
.tableau-comparer thead small { display: block; margin-top: 0.3rem; font: 400 0.88rem/1.3 var(--corps); color: var(--encre-pale); }
.tableau-comparer tbody th { width: 10rem; font-weight: 600; color: var(--encre); }
.tableau-comparer td { color: var(--encre-douce); }
.tableau-comparer .nous { background: var(--brume); color: var(--accent); font-weight: 600; }
.tableau-comparer thead .nous { color: var(--action); font-size: 1.35rem; }
.pas-encore { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--rayon); background: var(--creux); max-width: 52rem; }
.pas-encore h3 { font-size: 1.35rem; }
.pas-encore p { margin-top: 0.5rem; color: var(--encre-douce); font-size: 1.02rem; text-wrap: pretty; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Et aussi : une fiche technique dense, deux ou trois colonnes de définitions */
.aussi { padding-block: 6rem 0; }
.aussi h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; }
.aussi-liste { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.aussi-liste div { padding: 1.1rem 0 1.2rem; border-top: 1px solid rgba(13, 59, 39, 0.14); }
.aussi-liste dt { font: 600 1.25rem/1.2 var(--titre); color: var(--accent); }
.aussi-liste dd { margin: 0.4rem 0 0; color: var(--encre-douce); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }

/* La scène sombre, une seule : la sève pleine, pour ce qui ne se perd pas */
.seve { background: var(--accent); color: var(--texte-voile); padding-block: 6rem; margin-top: 1rem; }
.seve h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; max-width: 46rem; }
.seve h2 em { color: var(--vive); }
.seve .intro { margin-top: 1.4rem; color: var(--sur-seve); max-width: 38rem; }
.lignes { margin-top: 3rem; display: grid; gap: 0.8rem; }
.ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: var(--rayon); background: rgba(255, 255, 255, 0.06); }
.ligne h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; }
.ligne p { margin-top: 0.4rem; color: var(--sur-seve); font-size: 1.02rem; max-width: 40rem; }
.ligne code { padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(143, 209, 171, 0.16); color: var(--texte-voile); font: 600 0.88rem/1.3 var(--corps); white-space: nowrap; }
.seve .lien { margin-top: 2.5rem; display: inline-block; color: #fff; font-weight: 600; }

/* Questions */
.faq { padding-block: 6rem 4rem; }
.faq h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; }
.faq-liste { margin-top: 2.5rem; display: grid; gap: 0.7rem; }
details { background: var(--carte); border-radius: var(--rayon); box-shadow: 0 1px 2px rgba(13, 59, 39, 0.06), 0 6px 16px -10px rgba(13, 59, 39, 0.2); }
summary { cursor: pointer; list-style: none; padding: 1.2rem 1.5rem; font: 600 clamp(1.2rem, 2.2vw, 1.5rem)/1.2 var(--titre); color: var(--accent); display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--voile); font: 600 1.4rem/1 var(--corps); color: var(--accent); transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 4rem 1.5rem 1.5rem; color: var(--encre-douce); max-width: 46rem; }

/* L'appel final : la brume pleine, l'invitation à gauche, trois gestes en frise à droite */
.appel { background: var(--brume); padding-block: 6rem; }
.appel .conteneur.acces-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: center; }
.acces-gauche h2 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 0.98; text-wrap: balance; }
.acces-gauche p { margin-top: 1.4rem; color: var(--encre-douce); max-width: 30rem; }
.bouton.gros { margin-top: 2rem; min-height: 3.6rem; padding-inline: 2rem; font-size: 1.1rem; box-shadow: 0 14px 30px -14px rgba(13, 59, 39, 0.6); }
.acces-gauche .acces-note { margin-top: 1.1rem; font-size: 0.98rem; line-height: 1.5; }
.acces-etapes { list-style: none; margin: 0; padding: 2.4rem 2.4rem 2.6rem; background: var(--carte); border-radius: calc(var(--rayon) * 1.6); box-shadow: 0 24px 50px -28px rgba(13, 59, 39, 0.45), 0 2px 6px rgba(13, 59, 39, 0.06); }
.acces-etapes li { position: relative; display: flex; gap: 1.4rem; align-items: flex-start; padding-bottom: 2.2rem; }
.acces-etapes li:last-child { padding-bottom: 0; }
.acces-etapes li:not(:last-child)::before { content: ""; position: absolute; left: 1.55rem; top: 3.5rem; bottom: -0.2rem; width: 2px; margin-left: -1px; background: linear-gradient(var(--action), rgba(13, 59, 39, 0.12)); }
.acces-num { flex: none; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--action); color: #fff; font: 600 1.5rem/1 var(--titre); box-shadow: 0 8px 18px -8px rgba(13, 59, 39, 0.6); }
.acces-etapes h3 { font: 600 1.6rem/1.15 var(--titre); color: var(--accent); padding-top: 0.45rem; }
.acces-etapes p { margin-top: 0.4rem; max-width: 26rem; font-size: 1.05rem; color: var(--encre-douce); text-wrap: pretty; }

/* Le pied de page : le modèle de siliceum.com (colonnes, barre du bas) aux couleurs de l'appli */
.pied { position: relative; overflow: hidden; background: var(--accent); color: var(--texte-voile); padding: 5rem 0 0; }
.pied-deco { position: absolute; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(143, 209, 171, 0.16) 0%, transparent 70%); }
.pied-deco.haut { top: -140px; right: -100px; }
.pied-deco.bas { bottom: -160px; left: -120px; }
.pied .conteneur { position: relative; }
.pied a { color: var(--texte-voile); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-principal { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 3rem; }
.signature-marque { display: inline-flex; align-items: center; gap: 1rem; }
.boite-logo { display: inline-flex; width: 70px; height: 70px; overflow: hidden; border-radius: 17px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.boite-logo img { width: 100%; height: 100%; }
.signature-marque:hover .boite-logo { transform: rotate(-6deg) scale(1.06); }
.signature-texte { display: grid; gap: 0.1rem; font: 400 1.05rem/1.2 var(--corps); color: var(--sur-seve); }
.signature-texte strong { font: 600 1.6rem/1.1 var(--titre); color: #fff; }
.devise { margin-top: 1.4rem; max-width: 17rem; color: var(--sur-seve); line-height: 1.6; }
.pied-titre { display: block; margin-bottom: 1.1rem; font: 700 0.78rem/1 var(--corps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--vive); }
.pied-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 1rem; line-height: 1.5; }
.pied-bas { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 4rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #a9c8b7; font-size: 0.95rem; align-items: center; }
.par-siliceum { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--sur-seve); text-decoration: none; }
.par-siliceum:hover { color: #fff; text-decoration: none; }
.mini-boite { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #000; }
.mini-boite img { width: 22px; height: 22px; }

/* Pages de texte (confidentialité, mentions légales) */
.texte { max-width: 46rem; padding-block: 3rem 6rem; }
.texte h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; }
.texte h2 { font-size: 1.7rem; margin-top: 2.8rem; }
.texte p, .texte ul { margin-top: 1rem; color: var(--encre-douce); }
.texte ul { padding-left: 1.3rem; }
.texte li { margin-top: 0.5rem; }
.texte strong { color: var(--encre); }
.resume { background: var(--texte-voile); padding: 1.3rem 1.5rem; border-radius: var(--rayon); margin-top: 1.8rem; color: var(--accent); }
.resume strong { color: var(--accent); }
.maj { color: var(--encre-pale); margin-top: 1rem; font-size: 1rem; }

/* La vidéo de présentation (branchée quand le film est rendu) */
.video { padding-block: 4rem 2rem; }
.video video { display: block; width: 100%; height: auto; margin-top: 1.5rem; border-radius: 22px; background: var(--accent); box-shadow: var(--ombre); aspect-ratio: 16 / 9; }

@media (max-width: 62rem) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .page::before { display: none; }
  .route { padding: 0 0 0.8rem 1.4rem; }
  .route::before { left: 0; margin-left: 0; top: 0.4rem; }
  .corps { padding-bottom: 4rem; }
  .hero-grille, .temps, .temps.inverse, .appel .conteneur.acces-grille { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .temps.inverse .texte-bloc { order: 0; }
  .scene { min-height: 30rem; }
  .parcours { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .parcours::before { left: 6px; right: auto; top: 0.5rem; bottom: 0.5rem; width: 3px; height: auto; background: linear-gradient(180deg, var(--vive), var(--action)); }
  .parcours li { padding: 0 0 1.6rem 2.2rem; }
  .parcours li::before { top: 0.15rem; }
  .etape-heure { position: static; display: block; margin-bottom: 0.2rem; }
  .aussi-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparer, .aussi { padding-top: 4rem; }
  .chiffres { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
  .entete nav a:not(.bouton) { display: none; }
  .ligne { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .ligne code { justify-self: start; white-space: normal; }
  .seve, .appel { padding-block: 4rem; }
  .faq { padding-block: 4rem 2rem; }
  details p { padding-right: 1.5rem; }
  .pied { padding-top: 3.5rem; }
  .pied-principal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; }
  .pied-marque { grid-column: 1 / -1; }
  .pied-bas { margin-top: 2.5rem; }
}
@media (max-width: 34rem) {
  .pied-principal { grid-template-columns: minmax(0, 1fr); }
  .marque { font-size: 1.3rem; gap: 0.5rem; }
  .marque img { width: 34px; height: 34px; }
  .entete { gap: 0.6rem; }
  .bouton.petit { padding: 0 0.85rem; font-size: 0.92rem; }
  .scene .fenetre { left: 1.2rem; width: 190%; }
  .aussi-liste { grid-template-columns: minmax(0, 1fr); }
  .livraison li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .detail.roles b { display: inline; min-width: 0; }
}

/* Animations. Le contenu est toujours visible par défaut : les animations n'ajoutent que du mouvement, et se coupent avec
   « réduire les animations » (règle en tête de fichier). */
@keyframes monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(32px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes respire { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.05) rotate(-2deg); } }

.heros h1, .accroche, .chapeau, .actions, .note { animation: monte 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.accroche { animation-delay: 120ms; }
.chapeau { animation-delay: 200ms; }
.actions { animation-delay: 280ms; }
.note { animation-delay: 340ms; }
.scene { animation: apparait 900ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both; }
.scene .fenetre { animation: flotte 8s ease-in-out infinite; }
.scene .pousse { animation: respire 10s ease-in-out infinite; transform-origin: 30% 90%; }
.puce { animation: pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.puce.haut { animation-delay: 700ms; }
.puce.bas { animation-delay: 900ms; }

/* Le tri : le ticket entre, la règle le reconnaît, il repart rangé ; puis tout s'efface et recommence. */
@keyframes etape { 0% { opacity: 0; transform: translateY(8px); } 5%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
.tri { animation: pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both; }
.tri-entree, .tri-regle, .tri-sortie { animation: etape 9s cubic-bezier(0.16, 1, 0.3, 1) infinite backwards; }
.tri-entree { animation-delay: 1.6s; }
.tri-regle { animation-delay: 2.8s; }
.tri-sortie { animation-delay: 3.6s; }

.chiffres div, .ligne, .bouton, details { transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms; }
.chiffres div:hover { transform: translateY(-4px); }
.ligne:hover { background: rgba(255, 255, 255, 0.1); }
details[open] p { animation: monte 320ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Au défilement (Chrome, Edge, Safari récents ; ailleurs la page reste simplement immobile) */
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
@keyframes revele { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes marqueur { from { transform: scale(0.3); opacity: 0.3; } to { transform: none; opacity: 1; } }
@keyframes gros { from { opacity: 0; transform: translateY(36px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes parallaxe { from { transform: translateY(30px); } to { transform: translateY(-30px); } }
@keyframes c100 { from { --n: 0; } to { --n: 100; } }
@supports (animation-timeline: view()) {
  .temps .texte-bloc, .cadre, .terminal, .livraison, .parcours li, .aussi-liste div, .chiffres div, .ligne, details, .seve h2, .seve .intro, .faq h2, .appel .conteneur > * {
    animation: revele linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
  }
  .chiffres div:nth-child(2) { animation-range: entry 6% entry 61%; }
  .chiffres div:nth-child(3) { animation-range: entry 12% entry 67%; }
  .chiffres div:nth-child(4) { animation-range: entry 18% entry 73%; }
  .route::before { animation: marqueur linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  .numero { animation: gros linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .cadre img { animation: parallaxe linear both; animation-timeline: view(); }
  /* Le compteur : le vrai texte reste dans la page, il n'est remplacé que là où le navigateur sait compter. */
  .compte span { display: none; }
  .compte::before { counter-reset: n var(--n); content: counter(n); }
  .compte.c100::before { animation: c100 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
}

/* La FAQ s'ouvre et se ferme en douceur là où le navigateur sait animer un <details> ; ailleurs, d'un coup. */
@supports selector(details::details-content) {
  details { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease, content-visibility 420ms allow-discrete;
  }
  details[open]::details-content { block-size: auto; opacity: 1; }
  details[open] p { animation: none; }
  summary::after { transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms; }
}
@media (prefers-reduced-motion: reduce) {
  details::details-content, summary::after { transition: none !important; }
}
