/* =========================================================================
   EcomWhy — Design system
   Premium, minimal, technique. Aucune dependance, aucun framework.
   Ordre : tokens > reset > base > layout > composants > sections > utilitaires
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --ink:          #0A0C0B;
  --ink-soft:     #161A18;
  --paper:        #FFFFFF;
  --surface:      #F4F1EB;
  --surface-2:    #EBE6DD;
  --line:         #E4DFD5;
  --line-strong:  #CCC5B8;
  --text:         #121614;
  --muted:        #5B6662;
  --muted-on-dark:#A6B2AD;

  --accent:       #00A870;
  --accent-dark:  #00714B;
  --accent-soft:  #E7F7F0;
  --accent-line:  #B9E5D2;
  /* Vert clair reserve aux fonds sombres : le vert principal y manque de
     contraste et de punch. */
  --mint:         #7BE8A5;
  --mint-strong:  #98F0B8;

  /* Typo */
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Grotesque a axe optique : les grands titres se resserrent tout seuls. */
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', -apple-system,
                  BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
               'Liberation Mono', monospace;

  --fs-display: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  --fs-h1:      clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --fs-h2:      clamp(1.7rem, 1.25rem + 2vw, 2.6rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  --fs-lead:    clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  --fs-body:    1rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  /* Espacement */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --header-h: 72px;
  --container: 1180px;
  --container-narrow: 780px;

  /* Rayons genereux : c'est ce qui donne l'aspect "cartes posees". */
  --radius:    18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(10,12,11,.05), 0 1px 3px rgba(10,12,11,.04);
  --shadow-md: 0 4px 14px rgba(10,12,11,.06), 0 1px 3px rgba(10,12,11,.04);
  --shadow-lg: 0 18px 48px rgba(10,12,11,.10), 0 2px 8px rgba(10,12,11,.05);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.02em; font-weight: 650; }
h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 650; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }
strong { font-weight: 620; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'evitement — accessibilite clavier */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--muted-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: #fff; }
.section--line-top { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Deux colonnes texte / media, empilees en mobile */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split--sticky { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .split--sticky > :first-child { position: sticky; top: 120px; }
}

/* ---------- Blocs d'intitule ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dark);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--accent);
}
.section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; }
.section--dark .lead { color: var(--muted-on-dark); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.5rem;
  font: inherit; font-size: var(--fs-sm); font-weight: 580;
  line-height: 1.2; letter-spacing: -0.005em;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none !important;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--accent { background: var(--accent); color: #04150F; }
.btn--accent:hover { background: #00C182; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

/* Bouton pose sur une photo : verre depoli plutot que fond plein. */
.btn--glass {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 1px 2px rgba(10,12,11,.06);
}
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }

.section--dark .btn--primary { background: #fff; color: var(--ink); }
.section--dark .btn--primary:hover { background: var(--accent); color: #04150F; }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }

/* Le hero sombre n'est pas une .section--dark : il lui faut les memes
   variantes. Reserve a .hero--dark ; le hero photo est clair. */
.hero--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero--dark .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.hero--dark .btn--primary { background: #fff; color: var(--ink); }
.hero--dark .btn--primary:hover { background: var(--accent); color: #04150F; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* Bouton WhatsApp : vert de la marque WhatsApp, distinct de l'accent EcomWhy
   pour que le canal soit reconnu au premier coup d'oeil. */
.btn--wa { background: #25D366; color: #05291A; border-color: #25D366; }
.btn--wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: #05291A; }
.btn__wa-icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.btn__wa-icon svg { width: 100%; height: 100%; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem;
  background: #25D366;
  color: #05291A;
  border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(5,41,26,.28), 0 2px 6px rgba(5,41,26,.18);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), padding .22s var(--ease);
}
.wa-fab:hover {
  background: #1EBE5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(5,41,26,.34), 0 3px 8px rgba(5,41,26,.2);
}
.wa-fab__icon { display: inline-flex; width: 28px; height: 28px; flex: none; }
.wa-fab__icon svg { width: 100%; height: 100%; }

/* Le libelle n'apparait qu'au survol sur grand ecran : la pastille reste
   discrete tant qu'on ne la vise pas. */
.wa-fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0;
  transition: max-width .28s var(--ease), opacity .22s var(--ease),
              margin-right .28s var(--ease);
}
@media (min-width: 700px) {
  .wa-fab:hover .wa-fab__label,
  .wa-fab:focus-visible .wa-fab__label {
    max-width: 14rem; opacity: 1; margin-right: .35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab__label { transition: none; }
}

/* ---------- Carte de contact WhatsApp ---------- */
.contact-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(37,211,102,.14), transparent 62%),
    var(--accent-soft);
}
.contact-card__icon {
  display: inline-flex; width: 40px; height: 40px;
  color: #128C4A; margin-bottom: var(--sp-4);
}
.contact-card__icon svg { width: 100%; height: 100%; }
.contact-card h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.contact-card p { color: var(--muted); font-size: var(--fs-sm); }
.contact-card__number {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--ink) !important;
  margin-top: var(--sp-4);
}
.contact-card__note { margin-top: var(--sp-4); font-size: var(--fs-xs) !important; }

/* Lien fleche */
.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 570; font-size: var(--fs-sm); color: var(--ink);
}
.arrow-link::after {
  content: '\2192'; transition: transform .18s var(--ease); font-size: 1.05em;
}
.arrow-link:hover { text-decoration: none; color: var(--accent-dark); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Cartes ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--muted); font-size: var(--fs-sm); }

a.card, .card--link { display: block; color: inherit; }
a.card:hover, .card--link:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.card__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark);
  margin-bottom: var(--sp-4); border: 1px solid var(--accent-line);
}
.card__icon svg { width: 20px; height: 20px; }

.card__list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.card__list li {
  position: relative; padding-left: 1.4rem; font-size: var(--fs-sm);
  color: var(--muted); margin-bottom: var(--sp-2);
}
.card__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .7rem;
  font-size: var(--fs-xs); font-weight: 560; letter-spacing: -.005em;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted);
}
.badge--accent {
  background: var(--accent-soft); border-color: var(--accent-line);
  color: var(--accent-dark);
}
.badge--dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.section--dark .badge {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14);
  color: var(--muted-on-dark);
}

.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Stack technique */
.tech-tag {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  padding: .35rem .7rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.section--dark .tech-tag {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12);
  color: var(--muted-on-dark);
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }

/* Header transparent : il sort du flux pour que le hero occupe vraiment le
   haut de l'ecran. Sans cela il reste une bande blanche au-dessus de la photo.
   Le hero compense par un padding haut de la hauteur du header. */
.header--overlay { position: fixed; top: 0; left: 0; right: 0; }
.header--overlay ~ main .hero--image { padding-top: var(--header-h); }

/* ---------- Header transparent pose sur un hero sombre ----------
   Tant que le hero est visible, le header n'a ni fond ni bordure : la photo
   monte jusqu'en haut de l'ecran. Il reprend son fond clair des qu'on a
   depasse le hero (classe .is-scrolled posee par main.js). */
.header--overlay:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.header--overlay:not(.is-scrolled) .logo { color: #fff; }
.header--overlay:not(.is-scrolled) .logo__mark { background: #fff; color: var(--ink); }
.header--overlay:not(.is-scrolled) .logo__mark span { color: var(--accent-dark); }
.header--overlay:not(.is-scrolled) .nav__link { color: rgba(255,255,255,.78); }
.header--overlay:not(.is-scrolled) .nav__link:hover,
.header--overlay:not(.is-scrolled) .nav__item:hover > .nav__link,
.header--overlay:not(.is-scrolled) .nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.header--overlay:not(.is-scrolled) .burger {
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
/* CTA en verre depoli tant qu'il est sur la photo. */
.header--overlay:not(.is-scrolled) .header__cta {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header--overlay:not(.is-scrolled) .header__cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
/* Le menu mobile ouvert a toujours besoin d'un fond opaque. */
.header--overlay:not(.is-scrolled) .mobile-menu {
  background: var(--ink);
  border-top-color: rgba(255,255,255,.12);
}
.header--overlay:not(.is-scrolled) .mobile-menu a { color: #fff; border-bottom-color: rgba(255,255,255,.12); }
.header--overlay:not(.is-scrolled) .mobile-menu .mobile-menu__sub a { color: rgba(255,255,255,.7); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 72px;
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem; letter-spacing: -.04em;
  color: var(--ink); text-decoration: none !important; flex: none;
}
.logo__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; line-height: 1;
  letter-spacing: -.02em; white-space: nowrap; flex: none;
}
.logo__mark span { color: var(--accent); }

.nav { display: none; }
@media (min-width: 1000px) { .nav { display: flex; align-items: center; gap: var(--sp-2); } }

.nav__list {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; padding: 0; margin: 0;
}
.nav__item { position: relative; margin: 0; }
.nav__panel ul { list-style: none; padding: 0; margin: 0; }
.nav__panel li { margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 520; color: var(--muted);
  text-decoration: none !important;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--ink); background: var(--surface); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__chev { width: 12px; height: 12px; opacity: .55; transition: transform .18s var(--ease); }
.nav__item:hover .nav__chev { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px; padding: var(--sp-2);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a {
  display: block; padding: .55rem .7rem; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: var(--text); text-decoration: none !important;
}
.nav__panel a:hover { background: var(--surface); color: var(--accent-dark); }

.header__cta { display: none; }
@media (min-width: 1000px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger svg { width: 20px; height: 20px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: var(--sp-4) 0 var(--sp-6);
}
.mobile-menu.is-open { display: block; }
@media (min-width: 1000px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  display: block; padding: .7rem 0; font-size: 1.05rem; font-weight: 560;
  color: var(--ink); border-bottom: 1px solid var(--line);
  text-decoration: none !important;
}
.mobile-menu .mobile-menu__sub a {
  font-size: var(--fs-sm); font-weight: 480; color: var(--muted);
  padding: .5rem 0 .5rem 1rem; border-bottom: 0;
}
.mobile-menu .btn { width: 100%; margin-top: var(--sp-5); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--muted-on-dark);
  padding-block: clamp(4.5rem, 3rem + 8vw, 8.5rem);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(0,168,112,.16), transparent 62%),
    radial-gradient(45% 45% at 12% 92%, rgba(0,168,112,.09), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(75% 65% at 50% 30%, #000, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--fs-display); color: #fff;
  letter-spacing: -.035em; font-weight: 660; max-width: 17ch;
}
.hero__lead { font-size: var(--fs-lead); color: var(--muted-on-dark); max-width: 58ch; margin-bottom: var(--sp-6); }
.hero .btn-row { margin-bottom: var(--sp-7); }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .hero__lead { margin-inline: auto; }
.hero--center .btn-row, .hero--center .eyebrow { justify-content: center; }

/* Bandeau de preuves sous le hero */
.hero__stats {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,.12);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); font-weight: 660;
  letter-spacing: -.03em; color: #fff; line-height: 1.1;
}
.stat__label { font-size: var(--fs-xs); color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .07em; }

/* Hero clair pour les pages internes */
.hero--light {
  background: var(--surface); color: var(--muted);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero--light::before, .hero--light::after { display: none; }
.hero--light h1 { color: var(--ink); font-size: var(--fs-h1); max-width: 20ch; }
.hero--light .hero__lead { color: var(--muted); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs { font-size: var(--fs-xs); color: var(--muted); padding-top: var(--sp-5); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Process ---------- */
.steps { display: grid; gap: var(--sp-5); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--line); }
.step--accent { border-top-color: var(--accent); }
.step__num {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600;
  color: var(--accent-dark); letter-spacing: .06em; display: block;
  margin-bottom: var(--sp-3);
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); }
.section--dark .step { border-top-color: rgba(255,255,255,.16); }
.section--dark .step__num { color: var(--accent); }

/* ---------- Liste de preuves / arguments ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.check-list li { position: relative; padding-left: 2rem; margin: 0; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .28em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300714B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--accent-line);
}
.check-list strong { display: block; margin-bottom: .15rem; }
.check-list p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.section--dark .check-list li::before { background-color: rgba(0,168,112,.16); border-color: rgba(0,168,112,.35); }
.section--dark .check-list p,
.section--dark .step p { color: var(--muted-on-dark); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-5); padding: var(--sp-5) 0; cursor: pointer;
  font-size: 1.08rem; font-weight: 580; color: var(--ink);
  list-style: none; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: .18rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6662' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { color: var(--accent-dark); }
.faq__answer { padding-bottom: var(--sp-5); max-width: 78ch; color: var(--muted); }
.faq__answer p { font-size: var(--fs-sm); }

/* ---------- Case studies ---------- */
.case-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.case-card__head {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.case-card__body { padding: clamp(1.5rem, 2.5vw, 2rem); display: grid; gap: var(--sp-4); flex: 1; }
.case-card__block h4 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .35rem; font-weight: 620;
}
.case-card__block p { font-size: var(--fs-sm); color: var(--text); margin: 0; }
.metrics {
  display: grid; gap: var(--sp-4); margin-top: auto;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  padding-top: var(--sp-4); border-top: 1px solid var(--line);
}
.metric__value {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 660; letter-spacing: -.03em;
  color: var(--accent-dark); line-height: 1.15;
}
.metric__label { font-size: var(--fs-xs); color: var(--muted); }

/* Bandeau placeholder — a retirer une fois les vrais chiffres fournis */
.placeholder-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: #FFF8E6; border: 1px solid #F2DFAE;
  border-radius: var(--radius); font-size: var(--fs-sm); color: #6B5312;
}
.placeholder-note strong { color: #4E3C08; }
.placeholder-note svg { width: 20px; height: 20px; flex: none; margin-top: .18rem; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .45rem; }
.field label { font-size: var(--fs-sm); font-weight: 560; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .req { color: var(--accent-dark); }

.input, .select, .textarea {
  width: 100%; padding: .75rem .9rem;
  font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: #8B968F; }
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6662' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
  background-size: 16px; padding-right: 2.4rem;
}
.field--error .input, .field--error .select, .field--error .textarea { border-color: #B02A1B; }
.error-msg { font-size: var(--fs-xs); color: #B02A1B; }
.form__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); }
.form__consent input { margin-top: .25rem; flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--radius);
  font-size: var(--fs-sm); border: 1px solid var(--accent-line);
  background: var(--accent-soft); color: var(--accent-dark);
}

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center;
  font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-3);
}
.post-card h3 { font-size: 1.15rem; }
.post-card p { flex: 1; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { margin-bottom: var(--sp-5); }
.prose > p:first-child { font-size: var(--fs-lead); color: var(--muted); }
.prose blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-5); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { font-size: var(--fs-lead); color: var(--ink); }
.prose code {
  font-family: var(--font-mono); font-size: .875em;
  background: var(--surface-2); padding: .12em .4em; border-radius: 4px;
}
.prose pre {
  background: var(--ink); color: #E6EDE9; padding: var(--sp-5);
  border-radius: var(--radius); overflow-x: auto; font-size: var(--fs-sm);
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table-wrap { overflow-x: auto; margin-bottom: var(--sp-5); }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 620; color: var(--ink); background: var(--surface); }

.toc {
  padding: var(--sp-5); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-sm); margin-bottom: var(--sp-7);
}
.toc h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 var(--sp-3); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { color: var(--text); }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; font-size: var(--fs-h2); }
.cta-band .lead { max-width: 56ch; margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-band .btn-row { justify-content: center; }
.cta-band__meta { margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--muted-on-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-on-dark); padding-block: var(--sp-8) var(--sp-6); }
.footer h2, .footer h3 { color: #fff; }
.footer a { color: var(--muted-on-dark); text-decoration: none; font-size: var(--fs-sm); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding-bottom: var(--sp-7);
}
.footer__brand { grid-column: 1 / -1; max-width: 34ch; }
@media (min-width: 900px) { .footer__brand { grid-column: span 2; } }
.footer__brand .logo { color: #fff; }
.footer__brand .logo__mark { background: #fff; color: var(--ink); }
.footer__brand p { font-size: var(--fs-sm); margin-top: var(--sp-4); }
.footer h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer li { margin: 0; }
.footer address { font-style: normal; font-size: var(--fs-sm); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  align-items: center; padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- Animations legeres ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

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

/* =========================================================================
   Ergonomie tactile
   Un audit a 390 px relevait 71 cibles sous 44 px de haut : logo, burger,
   fil d'Ariane, liens du pied de page, etiquettes de categorie. On agrandit
   la zone cliquable sans changer la taille apparente du texte.
   ========================================================================= */

.burger { width: 46px; height: 46px; }
.logo { min-height: 44px; }
.link-arrow { min-height: 44px; box-sizing: border-box; }

@media (max-width: 899px) {
  /* Fil d'Ariane : cible dense, on vise les 24 px du critere AA 2.5.8. */
  .breadcrumbs a,
  .breadcrumbs [aria-current="page"] {
    display: inline-block;
    padding-block: .45rem;
  }

  /* Pied de page : liens isoles, on vise les 44 px. */
  .footer ul a,
  .footer__legal a,
  .footer address a {
    display: inline-block;
    padding-block: .62rem;
  }
  .footer ul { gap: .1rem; }
  .footer__legal { gap: var(--sp-5); }

  /* Etiquette de categorie cliquable sur les articles. */
  a.badge { min-height: 44px; padding-inline: .9rem; }

  /* Vignettes du carrousel : deja larges, mais on garantit la hauteur. */
  .reel { min-height: 44px; }
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0; }
.max-60 { max-width: 60ch; }

/* =========================================================================
   Blocs ajoutes avec les medias reels : hero photo, reels, portfolio, equipe
   ========================================================================= */

/* ---------- Hero sombre, la photo en fond ---------- */
/* Fond quasi noir du cote du texte, photo lisible a droite. L'accent passe
   au vert menthe : le vert de marque est trop sombre sur ce fond. */
.hero--image {
  position: relative;
  isolation: isolate;
  background: #080A09;
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.hero--image::before, .hero--image::after { display: none; }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.hero--image .hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem);
}

.hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 var(--sp-5);
}

.hero--image h1 {
  color: #fff;
  font-size: clamp(2.3rem, 1rem + 4.1vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-bottom: var(--sp-5);
}
.hero__accent { color: var(--mint); display: inline-block; }

.hero--image .hero__lead {
  color: rgba(255,255,255,.72);
  max-width: 34rem;
  margin-bottom: var(--sp-7);
}

/* Actions : pastille pleine + lien souligne, comme la reference. */
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.btn--mint { background: var(--mint); color: #05291A; border-color: var(--mint); }
.btn--mint:hover { background: var(--mint-strong); border-color: var(--mint-strong); color: #05291A; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding-bottom: .35rem;
  font-size: var(--fs-sm); font-weight: 560;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.35);
  text-decoration: none !important;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--mint); border-bottom-color: var(--mint); }
.link-arrow:hover span { transform: translateX(4px); }

/* Rangee de chiffres, separee par des filets verticaux. */
.hero__stats {
  display: flex; flex-wrap: wrap;
  list-style: none; padding: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  gap: 0;
}
.hero__stats li {
  margin: 0;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(255,255,255,.16);
}
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, .95rem + .7vw, 1.5rem);
  font-weight: 700; letter-spacing: -.03em; color: #fff;
  line-height: 1.15;
}
.hero__stat-label {
  display: block;
  font-size: var(--fs-xs); color: rgba(255,255,255,.6);
  max-width: 16ch; line-height: 1.35;
}

/* --- Mobile : la photo reste en fond, tres assombrie --- */
@media (max-width: 899px) {
  .hero--image { min-height: auto; }
  .hero__bg img { object-position: 66% center; }
  .hero__bg::after {
    background:
      linear-gradient(to bottom,
        rgba(8,10,9,.82) 0%, rgba(8,10,9,.88) 45%, rgba(8,10,9,.95) 100%);
  }
  .hero--image .hero__inner { padding-block: clamp(3rem, 10vw, 4.5rem); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { align-self: flex-start; }
  /* Les filets verticaux n'ont pas de sens sur une colonne. */
  .hero__stats { flex-direction: column; gap: var(--sp-4); }
  .hero__stats li { padding: 0 0 0 var(--sp-4); border-left: 1px solid rgba(255,255,255,.16); }
  .hero__stats li:first-child { padding-left: var(--sp-4); border-left: 1px solid rgba(255,255,255,.16); }
  .hero__stat-label { max-width: none; }
}

/* --- Desktop : texte a gauche sur fond noir, photo lisible a droite --- */
@media (min-width: 900px) {
  .hero--image { min-height: min(94svh, 860px); display: grid; align-items: center; }
  /* Marge basse : la bande de captures remonte dessus sans masquer les chiffres. */
  .hero--image .hero__inner { padding-bottom: clamp(7rem, 11vw, 10rem); }
  .hero__bg img { object-position: 72% center; }
  .hero__bg::after {
    background:
      linear-gradient(100deg,
        rgba(8,10,9,.97) 0%, rgba(8,10,9,.95) 32%,
        rgba(8,10,9,.72) 50%, rgba(8,10,9,.42) 72%,
        rgba(8,10,9,.34) 100%),
      linear-gradient(to bottom, rgba(8,10,9,.5) 0%, rgba(8,10,9,0) 28%);
  }
  .hero--image .hero__col { max-width: 40rem; }
}

/* ---------- Bandeau de chiffres ---------- */
.figures {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  background: var(--line);
  border-block: 1px solid var(--line);
}
.figure {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
}

/* Carte de chiffres posee a cheval sur le bas du hero (effet verre). */
.figures-section { position: relative; z-index: 3; }
.figures--float {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--line);
}
.figures--float .figure {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
.figures--float .figure--accent { background: rgba(231,247,240,.92); }
@media (min-width: 900px) {
  .figures-section { margin-top: clamp(-5rem, -4vw, -3.5rem); }
}
.figure--accent { background: var(--accent-soft); }
.figure__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  font-weight: 660; letter-spacing: -.03em; line-height: 1.1;
  color: var(--ink); margin-bottom: .3rem;
}
.figure--accent .figure__value {
  font-family: var(--font-display); color: var(--accent-dark); }
.figure__label { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }

/* ---------- Grille bento des services ---------- */
/* Cartes de tailles inegales plutot qu'une grille reguliere : la hierarchie
   se lit d'un coup d'oeil et l'ensemble respire davantage. */
.bento {
  display: grid;
  gap: clamp(.75rem, 1.5vw, 1rem);
  grid-template-columns: repeat(12, 1fr);
}
.bento__card { grid-column: span 12; }
@media (min-width: 700px) {
  .bento__card { grid-column: span 6; }
  .bento__card--md { grid-column: span 6; }
}
@media (min-width: 1040px) {
  .bento__card { grid-column: span 6; }
  .bento__card--md { grid-column: span 4; }
  .bento__card--full { grid-column: span 12; }
}

.bento__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  min-height: 15rem;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
/* Halo diffus revele au survol, sous le contenu. */
.bento__card::before {
  content: '';
  position: absolute; inset: -1px; z-index: -1;
  background: radial-gradient(120% 90% at 12% 0%, rgba(0,168,112,.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.bento__card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(10,12,11,.08);
}
.bento__card:hover::before { opacity: 1; }

/* Numero fantome en filigrane */
.bento__num {
  position: absolute; top: clamp(.75rem, 2vw, 1.25rem); right: clamp(1rem, 2.4vw, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1;
  color: var(--ink);
  opacity: .05;
  pointer-events: none;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.bento__card:hover .bento__num { opacity: .12; color: var(--accent-dark); }

.bento__icon {
  width: 30px; height: 30px;
  color: var(--accent-dark);
  transition: transform .3s var(--ease);
}
.bento__icon svg { width: 100%; height: 100%; stroke-width: 1.6; }
.bento__card:hover .bento__icon { transform: translateY(-2px); }

.bento__card h3 {
  margin: 0;
  font-size: clamp(1.15rem, .95rem + .7vw, 1.45rem);
  max-width: 22ch;
}
.bento__card p {
  margin: 0; color: var(--muted); font-size: var(--fs-sm);
  max-width: 52ch;
}

.bento__tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; padding: 0; margin: auto 0 0;
}
.bento__tags li { margin: 0; }
.bento__tags span {
  display: inline-block;
  font-size: var(--fs-xs); color: var(--muted);
  padding: .28rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.bento__card:hover .bento__tags span { border-color: var(--accent-line); color: var(--accent-dark); }

.bento__go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: var(--sp-4);
  font-weight: 580; font-size: var(--fs-sm); color: var(--ink);
}
.bento__go::after {
  content: '\2192';
  transition: transform .25s var(--ease);
}
.bento__card:hover .bento__go { color: var(--accent-dark); }
.bento__card:hover .bento__go::after { transform: translateX(5px); }

/* Carte pleine largeur : passage en deux colonnes sur grand ecran. */
@media (min-width: 1040px) {
  .bento__card--full { flex-direction: row; align-items: center; gap: clamp(2rem, 4vw, 4rem); min-height: 12rem; }
  .bento__card--full .bento__body { flex: 1 1 60%; display: flex; flex-direction: column; gap: var(--sp-3); }
  .bento__card--full .bento__tags { flex: 0 1 auto; margin: 0; max-width: 22rem; justify-content: flex-end; }
  .bento__card--full h3 { max-width: 30ch; }
}

/* Variante sombre pour la derniere carte */
.bento__card--dark {
  background: var(--ink);
  border-color: transparent;
}
.bento__card--dark h3 { color: #fff; }
.bento__card--dark p { color: var(--muted-on-dark); }
.bento__card--dark .bento__num { color: #fff; opacity: .09; }
.bento__card--dark .bento__icon { color: var(--accent); }
.bento__card--dark .bento__go { color: #fff; }
.bento__card--dark .bento__tags span {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: var(--muted-on-dark);
}
.bento__card--dark:hover { border-color: var(--accent); }
.bento__card--dark:hover .bento__num { color: var(--accent); opacity: .2; }
.bento__card--dark:hover .bento__tags span { border-color: rgba(0,168,112,.4); color: var(--accent); }

/* ---------- Bande de captures chevauchant le hero ---------- */
.work-strip {
  position: relative;
  z-index: 3;
  margin-top: var(--sp-6);
  /* Remontee sur le hero : les cartes mordent sur la photo. */
  padding-bottom: var(--sp-7);
}
@media (min-width: 900px) {
  .work-strip { margin-top: clamp(-6rem, -7vw, -3.5rem); }
}
.work-strip__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 300px);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  list-style: none;
  padding: 0 clamp(1.25rem, 4vw, 2rem) var(--sp-4);
  margin: 0 calc(clamp(1.25rem, 4vw, 2rem) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.work-strip__list li { margin: 0; scroll-snap-align: start; }
@media (min-width: 900px) {
  .work-strip__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.strip-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(6,10,8,.28);
  text-decoration: none !important;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.strip-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s var(--ease);
}
.strip-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,10,8,.86) 0%, rgba(6,10,8,.2) 45%, rgba(6,10,8,0) 70%);
}
.strip-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(6,10,8,.34); }
.strip-card:hover img { transform: scale(1.04); }

.strip-card__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1rem, 2vw, 1.35rem);
  display: flex; flex-direction: column; gap: .15rem;
}
.strip-card__client {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; color: #fff;
}
.strip-card__scope { font-size: var(--fs-xs); color: rgba(255,255,255,.72); }

/* Les cartes paires descendent : rythme decale plutot qu'un alignement plat. */
@media (min-width: 900px) {
  .work-strip__list li:nth-child(even) .strip-card { transform: translateY(2rem); }
  .work-strip__list li:nth-child(even) .strip-card:hover { transform: translateY(calc(2rem - 4px)); }
}

/* ---------- Bandeau de clients ---------- */
.clients {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  align-items: center; justify-content: center;
  list-style: none; padding: 0; margin: 0;
}
.clients li { margin: 0; }
.clients__item {
  font-size: clamp(1rem, .9rem + .5vw, 1.35rem);
  font-weight: 620; letter-spacing: -.02em;
  color: var(--line-strong);
  transition: color .2s var(--ease);
}
a.clients__item:hover { color: var(--ink); text-decoration: none; }

/* ---------- Carrousel de creations (reels) ---------- */
.reels {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(74vw, 270px);
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: var(--sp-4);
  list-style: none;
  /* Le carrousel deborde volontairement jusqu au bord de l ecran. */
  margin-inline: calc(clamp(1.25rem, 4vw, 2rem) * -1);
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.reels li { margin: 0; }
.reels::-webkit-scrollbar { height: 6px; }
.reels::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.reels::-webkit-scrollbar-track { background: transparent; }

.reel {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  color: #fff;
  text-align: left;
  font: inherit;
}
.reel img, .reel video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.reel video { z-index: 1; }
.reel__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(6,8,7,.88) 0%, rgba(6,8,7,.25) 42%, rgba(6,8,7,0) 70%);
  pointer-events: none;
}
.reel__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: var(--sp-4); pointer-events: none;
}
.reel__client { font-weight: 620; font-size: var(--fs-sm); color: #fff; }
.reel__label { font-size: var(--fs-xs); color: rgba(255,255,255,.82); line-height: 1.35; }
.reel__play {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease), opacity .2s var(--ease);
  pointer-events: none;
}
.reel__play svg { width: 20px; height: 20px; margin-left: 3px; }
.reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.reel.is-playing .reel__play,
.reel.is-playing .reel__scrim,
.reel.is-playing .reel__meta { opacity: 0; }

.scroll-hint {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-4);
}
.scroll-hint svg { width: 16px; height: 16px; }

/* ---------- Portfolio ---------- */
.work { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.work-card {
  display: grid; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.work-card:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 860px) {
  .work-card { grid-template-columns: 1.05fr .95fr; }
  .work-card:nth-child(even) .work-card__media { order: -1; }
}

.work-card__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.work-card__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease);
}
a.work-card__media:hover img { transform: scale(1.02); }

/* Projet sans capture : bloc typographique a la place de l image. */
.work-card__placeholder {
  aspect-ratio: 16 / 10;
  display: grid; place-content: center; text-align: center;
  gap: var(--sp-3); padding: var(--sp-6);
  background: var(--ink); color: var(--muted-on-dark);
}
.work-card__placeholder .figure__value {
  font-family: var(--font-display); color: #fff; margin: 0; }
.work-card__placeholder .figure__label { color: var(--muted-on-dark); }

.work-card__body h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: var(--sp-3); }
.work-card__block { margin-bottom: var(--sp-4); }
.work-card__block h4 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .25rem; font-weight: 620;
}
.work-card__block p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Fondateurs ---------- */
.founders { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .founders { grid-template-columns: 1fr 1fr; } }

.founder { display: flex; flex-direction: column; }
.founder__photo {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); margin-bottom: var(--sp-5);
  aspect-ratio: 1 / 1; width: 100%; max-width: 240px;
  border: 1px solid var(--line);
}
.founder__photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* Les deux portraits n ont pas le meme rendu d origine : le passage en
     nuances de gris les harmonise, la couleur revient au survol. */
  filter: grayscale(1) contrast(1.04);
  transition: filter .4s var(--ease), transform .4s var(--ease);
}
.founder:hover .founder__photo img { filter: grayscale(0); transform: scale(1.02); }
.founder__role {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-dark); font-weight: 620; margin-bottom: .4rem;
}
.founder h3 { margin-bottom: var(--sp-3); }
.founder p { color: var(--muted); font-size: var(--fs-sm); }
