/* ==========================================================================
   Bwa Lévé · feuille de style principale
   Conception mobile d'abord : les règles de base visent le téléphone,
   les @media (min-width) adaptent ensuite tablette et ordinateur.
   ========================================================================== */

/* ---------- Polices (hébergées sur le site, pas d'appel à Google) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Charte Bwa Lévé ---------- */
:root {
  /* couleurs relevées sur les logos et les cartes du jeu */
  --brown: #543012;        /* principale : logo marron */
  --brown-dark: #3a200a;   /* texte */
  --brown-soft: #ab886d;
  --beige: #f7e9d5;        /* secondaire : logo beige */
  --paper: #f3eadb;        /* fond « papier kraft » de la plaquette */
  --green: #86b786;        /* accent : logo vert */
  --green-dark: #417241;
  --orange: #ff5c00;       /* cartes « Crises » */
  --cream: #fff6e1;        /* cartes « Solutions » */
  --sand: #ead6b8;         /* texte sur fond sombre : beige plutôt que blanc */
  --sand-muted: rgba(234, 214, 184, .76);

  /* touche « liquid glass » : verre dépoli léger */
  --glass-light: linear-gradient(135deg, rgba(255, 251, 244, .74), rgba(255, 248, 236, .42));
  --glass-dark: linear-gradient(135deg, rgba(255, 240, 220, .16), rgba(255, 240, 220, .04));
  --glass-edge: rgba(255, 255, 255, .62);
  --glass-blur: blur(18px) saturate(1.6);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(84, 48, 18, .06), 0 12px 32px -16px rgba(58, 32, 10, .4);

  --text: var(--brown-dark);
  --muted: #7a6450;

  --font-title: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 64px;
  --gutter: 20px;
  --max: 1180px;
  --radius: 18px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* grain papier, très léger */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .19 0 0 0 0 .07 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 100;
  background: var(--brown); color: var(--beige); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.creole { font-style: italic; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary {
  background: linear-gradient(180deg, #6b3e19 0%, var(--brown) 55%, #4a2a10 100%);
  color: var(--sand); border-color: rgba(255, 236, 210, .16);
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, .35), 0 10px 22px -10px rgba(42, 22, 6, .7);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 236, 210, .45), 0 14px 26px -10px rgba(42, 22, 6, .75); }
/* sur les fonds sombres, le bouton passe en beige pour rester lisible */
.flow .btn--primary, .site-footer .btn--primary {
  background: linear-gradient(180deg, #f6e8d2, var(--sand)); color: var(--brown-dark);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px -10px rgba(0, 0, 0, .5);
}
.btn--ghost {
  background: linear-gradient(135deg, rgba(255, 245, 230, .24), rgba(255, 245, 230, .06));
  border: 1px solid rgba(255, 245, 230, .45); color: var(--sand);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--ghost:hover { background: rgba(255, 245, 230, .3); }
.btn--sm { min-height: 40px; padding: 0 1.05em; font-size: .875rem; }

/* mention rassurante à côté des boutons */
.cta-note { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; color: var(--green-dark); }
.cta-note::before { content: "✓"; font-weight: 800; }
.flow .cta-note { color: var(--green); }
.cta-note--form { justify-self: center; margin-top: -6px; }
.btn__icon { width: 1.2em; height: 1.2em; }
/* sur téléphone, les longs libellés passent sur deux lignes au lieu de déborder */
@media (max-width: 520px) {
  .btn:not(.btn--sm) { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; max-width: 100%; }
}

/* ==========================================================================
   1. Barre de menu
   ========================================================================== */
/* barre flottante en verre dépoli, logo et textes en marron #543012 */
.site-header {
  position: fixed; top: 10px; left: 10px; right: 10px; z-index: 50;
  max-width: calc(var(--max) + 40px); margin: 0 auto;
  height: var(--header-h);
  color: var(--brown);
  border-radius: 20px;
  background: var(--glass-light);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  transition: background .3s;
}
.site-header.is-solid { background: linear-gradient(135deg, rgba(255, 251, 244, .88), rgba(255, 248, 236, .7)); }
.site-header__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 12px 0 10px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: auto; }
.brand__name { font-family: var(--font-title); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  height: 40px; padding: 0 10px; border: 0; background: none;
  font-weight: 800; font-size: .8125rem; letter-spacing: .04em;
}
.lang-toggle [data-lang] { opacity: .5; transition: opacity .2s; }
.lang-toggle__sep { opacity: .35; }
html[lang="fr"] .lang-toggle [data-lang="fr"],
html[lang="en"] .lang-toggle [data-lang="en"] { opacity: 1; }

/* Hamburger (mobile) */
.nav-toggle { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; margin-right: -8px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menu déroulant mobile */
.main-nav {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  border-radius: 20px; color: var(--brown-dark);
  background: linear-gradient(135deg, rgba(255, 251, 244, .94), rgba(255, 248, 236, .84));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
}
.main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .4s var(--ease-out); }
.main-nav ul { list-style: none; margin: 0; padding: 4px 20px 10px; }
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a {
  display: block; padding: 14px 0; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 1.5rem;
  border-bottom: 1px dashed rgba(84, 48, 18, .2);
}

/* Très petits écrans : on garde le bouton devis, on raccourcit la marque */
@media (max-width: 380px) {
  .brand__name { display: none; }
}
/* téléphone : on resserre la barre pour garder le logo entier à côté du bouton */
@media (max-width: 480px) {
  .brand { flex: none; }
  .brand__mark { width: 34px; }
  .site-header__inner { gap: 6px; }
  .site-header__actions { gap: 4px; }
  .lang-toggle { padding: 0 6px; }
  .site-header .btn--sm { font-size: .78rem; padding: 0 .85em; }
  .nav-toggle { width: 36px; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; --gutter: 32px; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static; z-index: auto; transform: none; visibility: visible; opacity: 1;
    background: none; border: 0; box-shadow: none; color: inherit; transition: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .main-nav ul { display: flex; gap: 4px; padding: 0; }
  .main-nav a {
    font-family: var(--font-body); font-size: .9375rem; font-weight: 700; border: 0;
    padding: 8px 14px; border-radius: var(--radius-pill); transition: background-color .2s;
  }
  .main-nav a:hover { background: rgba(134, 183, 134, .25); }
  .site-header__actions { margin-left: 8px; }
  .site-header { top: 14px; left: 24px; right: 24px; border-radius: var(--radius-pill); }
  .site-header__inner { padding: 0 12px 0 18px; }
}

/* ==========================================================================
   2. Accroche (hero)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) var(--gutter) 88px;
  color: var(--sand);
  background: var(--brown-dark) url("../assets/video/hero-poster.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(58, 32, 10, .55) 0%, rgba(58, 32, 10, 0) 22%),
    linear-gradient(0deg, rgba(42, 22, 6, .92) 0%, rgba(58, 32, 10, .55) 50%, rgba(58, 32, 10, .15) 100%);
}
.hero__content { width: 100%; max-width: var(--max); margin: 0 auto; }

/* la traduction passe sous la phrase créole, plus petite et inclinée dans l'autre sens */
.hero__kicker { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 18px; }
.hero__kicker .creole {
  font-family: var(--font-title); font-weight: 700; font-style: normal; font-size: 1rem;
  background: linear-gradient(180deg, #6b3e19 0%, var(--brown) 55%, #4a2a10 100%); color: var(--sand);
  border: 1px solid rgba(255, 236, 210, .18);
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, .35), 0 8px 18px -10px rgba(0, 0, 0, .6);
  padding: 4px 12px; border-radius: var(--radius-pill); transform: rotate(-2deg);
}
.hero__kicker-tr {
  font-size: .75rem; font-style: italic; opacity: .6;
  margin-left: 22px; transform: rotate(2deg); transform-origin: left center;
}

.hero__title {
  font-size: clamp(2.35rem, 9.5vw, 5.25rem); font-weight: 800;
  max-width: 13ch; text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--green); }
.hero__lead { margin-top: 18px; max-width: 38rem; font-size: 1.0625rem; opacity: .92; text-wrap: pretty; }

.hero__ctas { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
/* bouton principal de l'accroche : même vert que « en jouant. » */
.hero .btn--primary {
  background: linear-gradient(180deg, #9cc89c 0%, var(--green) 55%, #74a874 100%);
  color: var(--brown-dark); border-color: rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 22px -10px rgba(0, 0, 0, .6);
}
.hero__facts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .875rem; font-weight: 700;
}
.hero__facts li { display: flex; align-items: center; gap: 6px; opacity: .85; }
.hero__fact-icon { font-size: 1.05em; line-height: 1; }

/* flèche qui invite à défiler */
.hero__scroll { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; padding: 10px; color: var(--sand); }
.hero__scroll-arrow { width: 28px; height: 28px; opacity: .8; animation: arrow-bob 2.4s var(--ease-out) infinite; }
@keyframes arrow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (min-width: 600px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 120px; }
  .hero__lead { font-size: 1.25rem; }
  .hero__kicker .creole { font-size: 1.125rem; }
}

/* ==========================================================================
   Sections : éléments communs
   ========================================================================== */
.section { padding: 72px var(--gutter); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section__head { margin-bottom: 40px; }
.kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; font-size: .875rem; color: var(--muted); font-style: italic; }
.kicker .creole {
  font-family: var(--font-title); font-weight: 700; font-style: normal; font-size: .9375rem;
  background: var(--brown); color: var(--beige);
  padding: 3px 12px; border-radius: var(--radius-pill); transform: rotate(-2deg);
}
.section__title { font-size: clamp(2rem, 7.5vw, 3.5rem); font-weight: 800; color: var(--brown); max-width: 18ch; text-wrap: balance; }
.section__lead { margin-top: 14px; max-width: 40rem; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; }
.section__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 48px; }

@media (min-width: 900px) {
  .section { padding: 112px var(--gutter); }
  .section__head { text-align: center; margin-bottom: 72px; }
  .section__head .kicker { justify-content: center; }
  .section__title, .section__lead { margin-inline: auto; }
  .section__lead { font-size: 1.1875rem; }
}

/* ==========================================================================
   Cartes du jeu en 3D
   La carte montre son dos (verso) puis pivote vers sa face (recto) au scroll.
   Sans JavaScript, la face est affichée directement.
   ========================================================================== */
.card-stage {
  --card-w: 128px;
  position: relative;
  display: flex; justify-content: flex-start;
  padding: 18px 0 8px 18px;
  perspective: 900px;
}
.card-stage--right { justify-content: flex-end; padding: 18px 18px 8px 0; }

.game-card { width: var(--card-w); aspect-ratio: 2 / 3; rotate: -5deg; }
.card-stage--right .game-card { rotate: 5deg; }
.game-card__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
/* les images des cartes ont déjà leurs coins arrondis transparents (15 % de la largeur) :
   l'ombre suit le même arrondi */
.game-card__face {
  position: absolute; inset: 0;
  border-radius: calc(var(--card-w) * .15);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 30px -14px rgba(58, 32, 10, .55), 0 2px 0 rgba(58, 32, 10, .15);
}
.game-card__face img { width: 100%; height: 100%; }
.game-card__face--back { transform: rotateY(180deg); }

@media (min-width: 600px) { .card-stage { --card-w: 160px; } }
@media (min-width: 900px) {
  .card-stage { --card-w: 230px; perspective: 1400px; padding: 0; justify-content: center; }
  .card-stage--right { padding: 0; justify-content: center; }
}

/* ==========================================================================
   3. Bénéfices
   ========================================================================== */
.benefits, .quote {
  position: relative;
  background:
    radial-gradient(42rem 28rem at 88% 10%, rgba(134, 183, 134, .22), transparent 70%),
    radial-gradient(36rem 26rem at 6% 90%, rgba(255, 92, 0, .08), transparent 70%);
}
.benefit-row { display: grid; gap: 20px; }
.benefit-row + .benefit-row { margin-top: 56px; }

.benefit-group__title {
  font-size: 1.75rem; font-weight: 800; color: var(--brown); margin-bottom: 20px;
}
.benefit-group__for {
  display: block; font-family: var(--font-body); font-size: .8125rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 2px;
}

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 252, 246, .9), rgba(255, 249, 238, .55));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -22px rgba(58, 32, 10, .45);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
}
.benefit h4 { font-family: var(--font-title); font-size: 1.125rem; font-weight: 700; line-height: 1.2; color: var(--brown-dark); margin: 4px 0 4px; }
.benefit p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }

/* pictogrammes de la charte, posés sur une forme organique colorée */
.picto {
  --bg: var(--green);
  flex: none; position: relative;
  width: 54px; height: 54px;
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: var(--bg);
}
.picto::after {
  content: ""; position: absolute; inset: 11px;
  background: var(--picto) center / contain no-repeat;
}
.picto--green { --bg: var(--green); }
.picto--green-dark { --bg: var(--green-dark); }
.picto--brown { --bg: var(--brown); }
.picto--orange { --bg: var(--orange); }
.benefit:nth-child(even) .picto { border-radius: 55% 45% 48% 52% / 46% 54% 46% 54%; }

@media (min-width: 900px) {
  .benefit-row { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .benefit-row--reverse { grid-template-columns: 7fr 5fr; }
  .benefit-row--reverse .card-stage { order: 2; }
  .benefit-row + .benefit-row { margin-top: 112px; }
  /* la carte reste à côté du texte pendant la lecture */
  .benefit-row .card-stage { position: sticky; top: calc(var(--header-h) + 12vh); min-height: 420px; align-items: center; }
  .benefit-group__title { font-size: 2.25rem; margin-bottom: 28px; }
  .benefit-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .benefit { flex-direction: column; padding: 24px; gap: 14px; transition: transform .35s var(--ease-out), box-shadow .35s; }
  .benefit:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 16px 30px -18px rgba(58, 32, 10, .4); }
  .picto { width: 62px; height: 62px; }
}

/* ==========================================================================
   4. Le déroulé de l'atelier
   Fond sombre façon plateau de jeu, frise verticale dont la ligne est un bâton.
   ========================================================================== */
.flow {
  --on-dark-muted: var(--sand-muted);
  margin: 0 8px; border-radius: 28px;
  background:
    radial-gradient(40rem 30rem at 88% 6%, rgba(134, 183, 134, .16), transparent 70%),
    radial-gradient(36rem 30rem at 8% 55%, rgba(255, 92, 0, .1), transparent 70%),
    var(--grain), var(--brown-dark);
  color: var(--sand);
}
.flow .section__title { color: var(--sand); }
.flow .section__lead, .flow .kicker { color: var(--on-dark-muted); }
.flow .kicker .creole { background: var(--green); color: var(--brown-dark); }

.flow-facts {
  list-style: none; padding: 0; margin: 0 auto 56px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.flow-facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--glass-dark);
  border: 1px solid rgba(255, 240, 220, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .9375rem; font-weight: 700;
}
.flow-facts strong { font-family: var(--font-title); font-size: 1.0625rem; }
.flow-facts .flow-facts__highlight { background: var(--green); border-color: var(--green); color: var(--brown-dark); }

/* Frise */
.timeline { position: relative; --line-x: 17px; }
.timeline__list { list-style: none; margin: 0; padding: 0; }
.timeline__line {
  position: absolute; top: 18px; bottom: 18px; left: calc(var(--line-x) - 3px);
  width: 6px; border-radius: 3px;
  background: rgba(247, 233, 213, .12);
}
.timeline__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, #a8774a, #e2bf92 45%, #94643a);
  transform-origin: top;
}

.tl-item { position: relative; padding: 0 0 48px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.125rem;
  background: var(--brown); color: var(--beige);
  box-shadow: 0 0 0 4px var(--brown-dark), 0 0 0 6px rgba(226, 191, 146, .6);
}
.tl-item--mini .tl-node { width: 20px; height: 20px; left: 8px; top: 6px; background: #e2bf92; }
.tl-item--savoir .tl-node { background: var(--green); color: var(--brown-dark); }
.tl-item--crise .tl-node { background: var(--orange); color: #fff; }
.tl-item--solution .tl-node { background: var(--cream); color: var(--brown-dark); }

.tl-item__tag {
  font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 4px;
}
.tl-item--savoir .tl-item__tag { color: var(--green); }
.tl-item--crise .tl-item__tag { color: #ff8a47; }
.tl-item--solution .tl-item__tag { color: #e2bf92; }
.tl-item h3 { font-size: 1.75rem; font-weight: 800; color: var(--sand); margin-bottom: 8px; }
.tl-item--mini h3 { font-size: 1.25rem; }
.tl-item p:not(.tl-item__tag) { color: var(--on-dark-muted); max-width: 34rem; }

.tl-item__head { margin-bottom: 8px; }
.tl-item__head h3 { margin-bottom: 0; }

/* photo de l'étape, avec la carte 3D posée en superposition sur un coin */
.tl-item__photo { position: relative; margin: 16px 0 8px; width: min(78%, 260px); aspect-ratio: 4 / 3; }
.tl-item__photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  border: 1px solid rgba(255, 240, 220, .2);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .65);
}
.card-stage--mini {
  --card-w: 58px;
  position: absolute; right: -22px; bottom: -20px; z-index: 1;
  padding: 0; perspective: 600px;
}
.card-stage--mini .game-card { rotate: 8deg; }

/* Galerie photos */
.flow-gallery { margin-top: 72px; }
.flow-gallery__label {
  font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; margin-bottom: 16px;
}
.flow-gallery__track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
}
.flow-gallery__track::-webkit-scrollbar { display: none; }
.flow-gallery figure {
  margin: 0; flex: none; scroll-snap-align: start;
  height: 260px; max-width: 78vw; border-radius: var(--radius); overflow: hidden;
  background: rgba(247, 233, 213, .08);
}
.flow-gallery img { height: 100%; width: auto; object-fit: cover; }

@media (min-width: 900px) {
  .flow { margin: 0 24px; border-radius: 44px; }
  .flow-facts { justify-content: center; margin-bottom: 96px; }

  /* frise centrée : texte et carte de part et d'autre du bâton */
  .timeline { --line-x: 50%; }
  .tl-item {
    display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center;
    padding: 0 0 52px;
  }
  .tl-item > * { grid-row: 1; }
  .tl-node, .tl-item--mini .tl-node { position: static; grid-column: 2; justify-self: center; }
  .tl-item--mini .tl-node { width: 22px; height: 22px; }
  .tl-item__body { grid-column: 1; text-align: right; }
  .tl-item__body p:not(.tl-item__tag) { margin-left: auto; }
  .tl-item--flip .tl-item__body { grid-column: 3; text-align: left; }
  .tl-item--flip .tl-item__body p:not(.tl-item__tag) { margin-left: 0; }
  /* photo contre la frise, texte en face ; la carte déborde sur le coin extérieur */
  .tl-item__photo { grid-column: 3; justify-self: start; width: 100%; max-width: 300px; margin: 0; }
  .tl-item--flip .tl-item__photo { grid-column: 1; justify-self: end; }
  .card-stage--mini { --card-w: 82px; right: -32px; bottom: -26px; }
  .tl-item--flip .card-stage--mini { right: auto; left: -32px; }
  .tl-item--flip .card-stage--mini .game-card { rotate: -8deg; }
  .tl-item h3 { font-size: 2.25rem; }
  .tl-item--mini h3 { font-size: 1.375rem; }


  .flow-gallery { margin-top: 112px; }
  .flow-gallery__label { text-align: center; font-size: 1.5rem; margin-bottom: 24px; }
  .flow-gallery__track {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    overflow: visible; margin: 0; padding: 0;
  }
  .flow-gallery figure { height: 320px; max-width: none; }
  .flow-gallery figure:nth-child(even) { translate: 0 28px; }
  .flow-gallery img { width: 100%; }
}

/* ==========================================================================
   5. Ils nous font confiance
   ========================================================================== */
/* Bandeau de logos qui défile, sur toute la largeur */
.section > .logo-marquee { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.logo-marquee {
  overflow: hidden;
  padding: 28px 0;
  background: var(--glass-light);
  border-block: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 34px -26px rgba(58, 32, 10, .35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; width: max-content;
  animation: marquee 32s linear infinite;
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee li { flex: none; padding: 0 30px; display: flex; align-items: center; height: 76px; }
.logo-marquee img { height: calc(var(--h, 56px) * .82); width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (min-width: 900px) {
  .section > .logo-marquee { margin-inline: calc(-1 * var(--gutter)); }
  .logo-marquee { padding: 36px 0; }
  .logo-marquee li { padding: 0 48px; height: 90px; }
  .logo-marquee img { height: var(--h, 56px); }
}

/* Coupures de presse */
.press { margin-top: 72px; }
.press__title {
  font-size: clamp(1.6rem, 5.5vw, 2.25rem); font-weight: 800; color: var(--brown);
  margin-bottom: 28px;
}
.press__grid { display: grid; gap: 28px; }

.clipping {
  position: relative;
  display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: start;
  padding: 22px 20px 24px;
  background: #fffaf0 var(--grain);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(84, 48, 18, .08), 0 18px 34px -22px rgba(58, 32, 10, .45);
  rotate: -.8deg;
  transition: rotate .4s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s;
}
.clipping--tilt { rotate: .9deg; }

/* photo façon Polaroid */
.clipping__photo {
  margin: 0; padding: 6px 6px 18px; background: #fff;
  box-shadow: 0 8px 18px -10px rgba(58, 32, 10, .5);
  rotate: -3deg;
}
.clipping--tilt .clipping__photo { rotate: 3deg; }
.clipping__photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }

.clipping__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.clipping__outlet { font-family: var(--font-title); font-weight: 800; font-size: 1.125rem; letter-spacing: .02em; text-transform: uppercase; color: var(--brown-dark); }
.clipping__meta time { font-size: .8125rem; color: var(--muted); }
.clipping__badge {
  display: inline-block; margin-bottom: 10px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--green); color: var(--brown-dark);
  font-size: .8125rem; font-weight: 800; line-height: 1.35;
}
.clipping__quote { margin: 0 0 12px; }
.clipping__quote p, .clipping__headline {
  font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: 1rem; line-height: 1.5; color: var(--brown-dark); letter-spacing: 0;
}
.clipping__headline { font-weight: 700; font-size: 1.0625rem; margin-bottom: 8px; }
.clipping__text { font-size: .9375rem; color: var(--muted); margin-bottom: 12px; }
.clipping__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: .9375rem; color: var(--brown);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: var(--green);
}
.clipping__link svg { width: 16px; height: 16px; }
.clipping__link:hover { text-decoration-color: var(--brown); }

@media (min-width: 900px) {
  .press { margin-top: 112px; }
  .press__title { text-align: center; margin-bottom: 48px; }
  .press__grid { grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1040px; margin: 0 auto; }
  .clipping { grid-template-columns: 140px 1fr; gap: 24px; padding: 28px; }
  .clipping:hover { rotate: 0deg; transform: translateY(-4px); box-shadow: 0 1px 0 rgba(84, 48, 18, .08), 0 26px 40px -22px rgba(58, 32, 10, .5); }
  .clipping__quote p { font-size: 1.0625rem; }
}

/* ==========================================================================
   6. Demande de devis
   Sur mobile, le lien « par téléphone » passe au-dessus du formulaire
   pour rester visible sans défiler.
   ========================================================================== */
.quote__layout { display: flex; flex-direction: column; gap: 20px; }
.quote-aside { display: contents; }
.phone-switch { order: 0; }
.quote-card { order: 1; }
.quote-aside__contacts, .quote-aside__points { order: 2; }

.quote-card {
  position: relative;
  padding: 24px 20px 28px;
  background: var(--glass-light);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), 0 30px 60px -40px rgba(58, 32, 10, .55);
}

/* Champs */
.quote-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: .9375rem; color: var(--brown-dark); padding: 0; }
.field__hint { font-weight: 400; color: var(--muted); }
.field input[type="text"] {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1rem; /* 16 px : évite le zoom automatique sur iPhone */
  color: var(--brown-dark); background: #fff;
  border: 2px solid rgba(84, 48, 18, .18); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #a8968a; }
.field input:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(134, 183, 134, .3); }
.field__error { display: none; font-size: .8125rem; font-weight: 700; color: #b23a00; }
.field.is-invalid input { border-color: #d9541a; }
.field.is-invalid .field__error { display: block; }

/* Choix du nombre de participants en pastilles (un seul toucher) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1px solid rgba(84, 48, 18, .16);
  background: linear-gradient(145deg, #fff, rgba(255, 249, 238, .7));
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(58, 32, 10, .3);
  font-weight: 700; font-size: .9375rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--beige); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(134, 183, 134, .5); }

.btn--block { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.quote-form__privacy { font-size: .8125rem; color: var(--muted); text-align: center; }
.quote-form__status {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 92, 0, .1); color: #8a2c00; font-size: .9375rem; font-weight: 600;
}

/* Message de confirmation */
.quote-success { text-align: center; padding: 32px 8px; outline: none; }
.quote-success img { width: 72px; margin: 0 auto 16px; }
.quote-success h3 { font-size: 1.75rem; font-weight: 800; color: var(--brown); margin-bottom: 8px; }
.quote-success p { color: var(--muted); }

/* Agenda Google intégré */
.calendar-frame { min-height: 640px; border-radius: 14px; overflow: hidden; background: #fff; }
.calendar-frame iframe { display: block; width: 100%; height: 640px; border: 0; }

/* Bouton « Je préfère en parler par téléphone » */
.phone-switch {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 18px; text-align: left;
  background: linear-gradient(180deg, #6b3e19 0%, var(--brown) 55%, #4a2a10 100%); color: var(--sand);
  border: 1px solid rgba(255, 236, 210, .16); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, .35), 0 14px 28px -14px rgba(42, 22, 6, .7);
  transition: transform .25s var(--ease-out), filter .2s;
}
.phone-switch:hover { transform: translateY(-2px); filter: brightness(1.08); }
.phone-switch__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: var(--brown-dark);
}
.phone-switch__icon svg { width: 22px; height: 22px; }
.phone-switch__text { display: grid; gap: 2px; }
.phone-switch strong { font-family: var(--font-title); font-size: 1.125rem; line-height: 1.2; }
.phone-switch small { font-size: .875rem; opacity: .8; }
.phone-switch[aria-expanded="true"] [data-when="form"],
.phone-switch[aria-expanded="false"] [data-when="calendar"] { display: none; }
.phone-switch[aria-expanded="true"] { background: linear-gradient(180deg, #4f8a4f, var(--green-dark)); }

.quote-aside__contacts, .quote-aside__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quote-aside__contacts a { font-weight: 800; color: var(--brown); text-decoration-color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.quote-aside__points li { display: flex; gap: 10px; font-size: .9375rem; color: var(--muted); }
.quote-aside__points li::before { content: ""; flex: none; margin-top: .55em; width: 14px; height: 4px; border-radius: 2px; background: var(--green-dark); rotate: -20deg; }

@media (min-width: 900px) {
  .quote__layout { display: grid; grid-template-columns: 7fr 4fr; gap: 40px; align-items: start; }
  .quote-aside { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
  .quote-card { order: 0; padding: 40px 40px 36px; }
  .quote-form { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  /* nom et entreprise côte à côte, le reste sur toute la largeur */
  .quote-form > .field--chips, .quote-form > div.field:nth-of-type(n+3),
  .quote-form > button, .quote-form > p { grid-column: 1 / -1; }
  .phone-switch { padding: 20px 22px; }
}

/* ==========================================================================
   7. Pied de page
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  padding: 56px var(--gutter) 96px; /* marge basse : le bouton WhatsApp ne masque rien */
  background: var(--grain), var(--brown-dark);
  color: var(--sand);
  border-radius: 28px 28px 0 0;
}
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.site-footer .brand { margin: 0 0 14px; }
.site-footer .brand__mark { width: 44px; }
.site-footer .brand__name { font-size: 1.5rem; }
.site-footer__tagline { color: var(--sand-muted); max-width: 26rem; margin-bottom: 22px; }
.site-footer__tagline .creole { color: var(--green); font-weight: 700; }
.site-footer__title {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.site-footer__list, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list li { color: var(--sand-muted); }
.site-footer a { color: var(--sand); text-decoration-color: rgba(134, 183, 134, .7); text-underline-offset: 4px; }
.site-footer__list a { font-weight: 700; }
.socials a {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700;
}
.socials svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: rgba(247, 233, 213, .1); transition: background-color .2s, color .2s;
}
.socials a:hover svg { background: var(--green); color: var(--brown-dark); }

.site-footer__bottom {
  max-width: var(--max); margin: 48px auto 0; padding-top: 20px;
  border-top: 1px dashed rgba(247, 233, 213, .2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .875rem; color: rgba(247, 233, 213, .6);
}

@media (min-width: 900px) {
  .site-footer { margin: 40px 24px 0; padding: 80px var(--gutter) 112px; border-radius: 44px 44px 0 0; }
  .site-footer__inner { grid-template-columns: 5fr 3fr 3fr; gap: 56px; }
}

/* ==========================================================================
   Page mentions légales
   ========================================================================== */
.legal-header { background: var(--paper); border-bottom: 1px solid rgba(84, 48, 18, .12); }
.legal-header .site-header__inner { height: var(--header-h); color: var(--brown-dark); }
.legal-back { font-weight: 800; color: var(--brown); text-decoration-color: var(--green); text-underline-offset: 4px; }
.legal { max-width: 46rem; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.legal h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; color: var(--brown); margin-bottom: 8px; }
.legal__updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.5rem; font-weight: 800; color: var(--brown); margin: 40px 0 12px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--brown); font-weight: 700; text-decoration-color: var(--green); text-underline-offset: 3px; }
/* informations encore à fournir : bien visibles tant qu'elles ne sont pas remplies */
.todo { background: #ffe1c7; color: #8a2c00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ==========================================================================
   Fenêtre vidéo
   ========================================================================== */
.video-modal {
  width: min(100% - 24px, 1100px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible;
}
.video-modal::backdrop { background: rgba(26, 16, 8, .85); backdrop-filter: blur(4px); }
.video-modal[open] { animation: modal-in .35s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } }
.video-modal__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute; top: -52px; right: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--beige); color: var(--brown-dark); display: grid; place-items: center;
}
.video-modal__close svg { width: 20px; height: 20px; }

/* ==========================================================================
   Bouton WhatsApp flottant
   ========================================================================== */
.whatsapp-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 4px rgba(255, 255, 255, .4), 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.08) rotate(-6deg); }
.whatsapp-fab svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .whatsapp-fab { right: 28px; bottom: 28px; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* bandeau de logos immobile : on affiche la liste une seule fois, centrée */
  .logo-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-marquee li[aria-hidden="true"] { display: none; }
}
