/* ==========================================================================
   MCS — feuille de style unique (voir DESIGN.md)
   Identité : marine (#16233F) dominante + corail (#F08A5D) en accent.
   Concept : agence de métier — grille large, cartes posées, dégradé marine→corail
   employé avec parcimonie (hero, CTA « Devis », badges chiffrés).
   Budget : < 40 Ko gzippé, chargée en bloquant (pas de critical CSS séparé).
   ========================================================================== */

/* ---------- Polices (auto-hébergées, variables, latin) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* Repli à métriques ajustées : zéro CLS au swap */
@font-face {
  font-family: 'Inter-fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'SpaceGrotesk-fallback';
  src: local('Arial');
  size-adjust: 101%;
  ascent-override: 98%;
  descent-override: 29%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette de marque énergisée (marine du logo + accents vitaminés) */
  --navy: #16233F;          /* marine — titres, sections sombres, pied de page */
  --navy-2: #1B2A4A;        /* marine secondaire */
  --navy-deep: #101A2E;     /* marine profonde — pied de page (sépare du bandeau CTA) */
  --corail: #FF7A50;        /* corail vif — filets, icônes, anneaux, survols */
  --corail-fonce: #D64818;  /* corail profond — texte/chiffres sur blanc (AA) */
  --violet: #6D5BFF;        /* violet électrique — dégradés, section Pourquoi */
  --violet-d: #5546E8;      /* violet lisible sur fond clair */
  --violet-deep: #372A85;   /* violet profond — bas du bandeau Technologies */
  --teal: #14C6B2;          /* turquoise — section Références */
  --teal-d: #0B8A7C;
  --ambre: #FFB43C;         /* ambre — section Blog */
  --ambre-d: #9A6511;
  --rose: #FF5C8A;          /* rose punchy — dégradé CTA, section FAQ */
  --rose-d: #D42E62;
  --bleu: #3D7BFF;          /* bleu franc — section Zones */
  --bleu-d: #2257D6;
  --papier: #F7F8FA;        /* fond neutre */
  --blanc: #FFFFFF;         /* surfaces / cartes */
  --texte: #2B3340;         /* corps de texte sur clair */
  --texte-clair: #E8ECF3;   /* corps de texte sur sombre */
  --gris: #5A6577;          /* texte secondaire atténué */
  --ligne: #E3E7EE;         /* filets / hairlines */

  /* Lavis de section (fonds teintés très clairs, texte encre lisible AA) */
  --wash-coral:  #FFF1EA;
  --wash-violet: #F1EFFF;
  --wash-teal:   #E7FAF5;
  --wash-ambre:  #FFF6E3;
  --wash-bleu:   #EDF3FF;
  --wash-rose:   #FFEDF3;

  /* Accent de section : chaque section redéfinit --sx (kicker, index, survols) */
  --sx: var(--corail-fonce);
  --sx-vif: var(--corail);

  /* Alias rétro-compatibles : l'ancien code référence --encre / --cobalt */
  --encre: var(--navy);
  --cobalt: var(--corail-fonce);
  --cobalt-fonce: #C75F39;

  /* Dégradés signature : corail → rose → violet (énergie), marine verticale (sections sombres) */
  --grad: linear-gradient(135deg, #FF7A50 0%, #FF5C8A 55%, #6D5BFF 120%);
  --grad-cta: linear-gradient(120deg, #FF6A3D 0%, #FF4D8D 100%);
  --grad-navy: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);

  --font-display: 'Space Grotesk', 'SpaceGrotesk-fallback', Arial, sans-serif;
  --font-body: 'Inter', 'Inter-fallback', Arial, sans-serif;

  --t-7: clamp(2.6rem, 1.6rem + 4.5vw, 4.75rem);
  --t-6: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --t-5: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --t-4: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --t-3: 1.0625rem;
  --t-2: 0.9375rem;
  --t-1: 0.8125rem;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --container: 1200px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 16px;

  /* Ombres en couches, teintées marine */
  --shadow-card: 0 1px 2px rgb(22 35 63 / 0.04), 0 6px 16px rgb(22 35 63 / 0.06);
  --shadow-hover: 0 14px 30px rgb(22 35 63 / 0.12), 0 4px 10px rgb(22 35 63 / 0.06);
  --shadow-nav: 0 6px 24px rgb(22 35 63 / 0.08);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-3);
  line-height: 1.65;
  color: var(--texte);
  background: var(--papier);
}

::selection { background: var(--corail); color: var(--navy); }

/* Ancres : ne pas passer sous l'en-tête collant */
[id] { scroll-margin-top: 88px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-7); letter-spacing: -0.03em; }
h2 { font-size: var(--t-6); }
h3 { font-size: var(--t-5); }
h4 { font-size: var(--t-4); }

p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.2s; }
a:hover { color: var(--corail-fonce); }

img, svg, picture { max-width: 100%; height: auto; display: block; }

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.9em;
  background: rgb(22 35 63 / 0.07);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-s);
}

:focus-visible {
  outline: 3px solid var(--corail-fonce);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: 100; padding: var(--s-3) var(--s-5);
  background: var(--navy); color: var(--blanc);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; color: var(--blanc); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container--narrow { max-width: 820px; }

/* ---------- Cartouche / index de section ---------- */
.kicker {
  font-family: var(--font-display);
  font-size: var(--t-1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sx);
  margin: 0 0 var(--s-3);
}

.section {
  padding-block: clamp(48px, 8vw, 100px);
  border-top: 1px solid var(--ligne);
}
/* Titre : encre → accent de section (dégradé de texte), centré avec son chapo */
.section__title {
  max-width: 22ch;
  padding-bottom: 2px;
  background: linear-gradient(100deg, var(--navy) 55%, var(--sx) 140%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__lead {
  max-width: 62ch; color: var(--gris); font-size: var(--t-4);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Le kicker au-dessus d'un titre centré se centre aussi (le hero reste à gauche) */
.section .kicker, .tech .kicker { display: block; text-align: center; }
.section__more { margin-top: var(--s-6); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-2);
  letter-spacing: 0.01em;
  padding: 14px 28px;
  min-height: 44px;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
              background-color 0.2s, color 0.2s, border-color 0.2s,
              background-position 0.45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* CTA principal : dégradé corail → rose + balayage lumineux au survol */
.btn--primary {
  position: relative; overflow: hidden;
  background: var(--grad-cta);
  background-size: 140% 140%;
  background-position: 0% 50%;
  color: var(--blanc);
  box-shadow: 0 6px 18px rgb(255 90 90 / 0.32);
}
.btn--primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease-out);
}
.btn--primary:hover::after { left: 130%; }
.btn--primary:hover {
  color: var(--blanc);
  background-position: 100% 50%;
  box-shadow: 0 12px 28px rgb(255 77 141 / 0.4);
}
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--corail-fonce); color: var(--corail-fonce); }
.btn--light { background: var(--blanc); color: var(--navy); box-shadow: 0 6px 16px rgb(0 0 0 / 0.18); }
.btn--light:hover { background: var(--papier); color: var(--navy); }
.btn--ghost-light { border-color: rgb(255 255 255 / 0.5); color: var(--blanc); background: transparent; }
.btn--ghost-light:hover { border-color: var(--corail); color: var(--corail); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 248 250 / 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
  transition: box-shadow 0.25s var(--ease-out), background-color 0.25s;
}
.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow-nav);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 72px;
}
.site-logo {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--navy); text-decoration: none;
}
.site-logo__img { height: 38px; width: auto; display: block; }
/* (ancien wordmark conservé pour compat, non utilisé par défaut) */
.site-logo__text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  display: flex; flex-direction: column; line-height: 1.1;
}
.site-logo__text small {
  font-size: 0.62rem; font-weight: 500; color: var(--gris);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.nav-toggle {
  display: none; position: relative; z-index: 60;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--ligne); border-radius: var(--radius-s);
  cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ''; display: block; position: absolute; left: 11px;
  width: 20px; height: 2px; background: var(--navy);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -6px; left: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list {
  display: flex; align-items: center; gap: clamp(8px, 1.6vw, 24px);
  list-style: none; margin: 0; padding: 0;
}
.site-nav__list > li > a,
.site-nav__dropbtn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-2);
  color: var(--navy); text-decoration: none;
  padding: 10px 6px; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
/* soulignement animé corail */
.site-nav__list > li > a::after,
.site-nav__dropbtn::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px;
  height: 2px; border-radius: 2px; background: var(--corail);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.site-nav__list > li > a:hover::after,
.site-nav__list > li > a[aria-current="page"]::after,
.site-nav__dropbtn:hover::after,
.site-nav__dropbtn[aria-expanded="true"]::after { transform: scaleX(1); }
.site-nav__cta a::after { display: none; }
.site-nav__dropbtn svg { transition: transform 0.25s var(--ease-out); }
.site-nav__dropbtn[aria-expanded="true"] svg { transform: rotate(180deg); }

.site-nav__dropdown { position: relative; }
.site-nav__submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 264px;
  list-style: none; margin: 0; padding: var(--s-2);
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius-m); box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  pointer-events: none; z-index: 60;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
}
/* pont invisible : la souris peut franchir l'espace bouton → panneau */
.site-nav__submenu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.site-nav__submenu.is-open {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.site-nav__submenu a {
  display: block; padding: 11px 14px;
  color: var(--navy); text-decoration: none;
  font-size: var(--t-2); border-radius: var(--radius-s);
  transition: background-color 0.18s, color 0.18s, padding-left 0.18s;
}
.site-nav__submenu a:hover, .site-nav__submenu a[aria-current="page"] {
  background: var(--papier); color: var(--corail-fonce); padding-left: 18px;
}

@media (max-width: 919px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 55;
    background: var(--papier);
    padding: 96px clamp(16px, 6vw, 48px) var(--s-7);
    overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--ligne); }
  .site-nav__list > li > a, .site-nav__dropbtn {
    width: 100%; justify-content: space-between;
    font-size: var(--t-4); padding: 16px 4px;
  }
  /* le sous-menu redevient un accordéon empilé */
  .site-nav__submenu {
    position: static; display: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    box-shadow: none; border: 0; border-left: 2px solid var(--corail);
    border-radius: 0; margin: 0 0 var(--s-4) var(--s-2);
  }
  .site-nav__submenu.is-open { display: block; }
  .site-nav__cta { padding-block: var(--s-5); border-bottom: 0 !important; }
  .site-nav__cta a { width: 100%; text-align: center; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumbs { border-bottom: 1px solid var(--ligne); background: var(--blanc); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  list-style: none; margin: 0; padding: var(--s-3) 0;
  font-size: var(--t-1);
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--s-2); color: var(--gris); }
.breadcrumbs li + li::before { content: '/'; color: var(--ligne); }
.breadcrumbs a { color: var(--gris); }
.breadcrumbs a:hover { color: var(--corail-fonce); }
.breadcrumbs [aria-current="page"] {
  color: var(--navy); font-weight: 500;
  max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 124px); }
/* Nappes de couleur dérivantes (corail + violet + turquoise) */
.hero::before {
  content: ''; position: absolute; inset: -30% -15%; pointer-events: none;
  background:
    radial-gradient(34% 42% at 78% 26%, rgb(255 122 80 / 0.22), transparent 68%),
    radial-gradient(28% 36% at 12% 78%, rgb(109 91 255 / 0.16), transparent 70%),
    radial-gradient(20% 26% at 55% 92%, rgb(20 198 178 / 0.14), transparent 70%);
  animation: mcs-drift 18s ease-in-out infinite alternate;
}
/* Titre hero : dégradé animé, peint dès le premier rendu (aucun JS requis) */
.hero__title {
  background: linear-gradient(92deg, var(--navy) 0%, var(--violet-d) 38%, var(--corail-fonce) 62%, var(--navy) 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: mcs-ink-flow 9s linear infinite;
}
@keyframes mcs-ink-flow { to { background-position: -280% 0; } }
@keyframes mcs-drift {
  from { transform: translate3d(-2.5%, -2%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2.5%, 0) scale(1.07); }
}
/* Trame « plan d'exécution » : grille millimétrée très légère, effacée vers le bas */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, rgb(22 35 63 / 0.045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgb(22 35 63 / 0.045) 0 1px, transparent 1px 56px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-9); }
}
.hero .kicker { display: inline-flex; align-items: center; gap: 12px; }
.hero .kicker::before {
  content: ''; width: 30px; height: 3px; border-radius: 2px;
  background: var(--grad); flex: none;
}
.hero__title { max-width: 16ch; }
.hero__lead { max-width: 56ch; font-size: var(--t-4); color: var(--gris); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }

/* Fiche technique : cartouche posé */
.hero__spec {
  border: 1px solid var(--ligne);
  border-radius: var(--radius-l);
  background: var(--blanc);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__spec-title {
  margin: 0; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-size: var(--t-1);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad); color: var(--blanc);
}
.hero__spec dl { margin: 0; }
.hero__spec-row {
  display: grid; grid-template-columns: 92px 1fr; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
}
.hero__spec-row + .hero__spec-row { border-top: 1px solid var(--ligne); }
.hero__spec dt {
  font-family: var(--font-display); font-size: var(--t-1);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--corail-fonce); padding-top: 2px;
}
.hero__spec dd { margin: 0; font-size: var(--t-2); }

/* Entrée hero : tout sauf le h1 (peint immédiatement pour le LCP) */
@keyframes mcs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.js .hero .kicker { animation: mcs-rise 0.5s var(--ease-out) both; }
html.js .hero__lead { animation: mcs-rise 0.5s var(--ease-out) 0.08s both; }
html.js .hero__actions { animation: mcs-rise 0.5s var(--ease-out) 0.16s both; }
html.js .hero__spec { animation: mcs-rise 0.6s var(--ease-out) 0.22s both; }

/* ---------- Bandeau chiffres / confiance ---------- */
.stats { background: var(--grad-navy); color: var(--texte-clair); }
.stats__grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(2, 1fr);
  padding-block: clamp(40px, 6vw, 68px);
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; position: relative; }
@media (min-width: 768px) {
  .stat + .stat::before {
    content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
    width: 1px; background: rgb(255 255 255 / 0.12);
  }
}
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.25rem); line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #FFD9A8 0%, var(--corail) 48%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label {
  display: block; margin-top: var(--s-3);
  font-size: var(--t-2); color: rgb(232 236 243 / 0.72);
  letter-spacing: 0.02em;
}

/* ---------- Services ---------- */
.services__grid {
  list-style: none; margin: var(--s-7) 0 0; padding: 0;
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.services__card a {
  display: flex; flex-direction: column; gap: var(--s-2);
  height: 100%; padding: var(--s-6);
  background: var(--blanc); color: var(--navy);
  text-decoration: none; position: relative;
  border: 1px solid var(--ligne); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s;
}
.services__card a::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 3px; border-radius: var(--radius-m) var(--radius-m) 0 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.services__card a:hover::before { transform: scaleX(1); }
.services__card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--sx); }
/* Chaque carte service porte sa couleur d'accent (cycle de 6) */
.services__card:nth-child(6n+1) { --sx: var(--corail-fonce); }
.services__card:nth-child(6n+2) { --sx: var(--violet-d); }
.services__card:nth-child(6n+3) { --sx: var(--teal-d); }
.services__card:nth-child(6n+4) { --sx: var(--ambre-d); }
.services__card:nth-child(6n+5) { --sx: var(--rose-d); }
.services__card:nth-child(6n+6) { --sx: var(--bleu-d); }
.services__num {
  font-family: var(--font-display); font-size: var(--t-1);
  color: var(--sx); font-weight: 700; letter-spacing: 0.1em;
}
.services__num::before { content: '/ '; color: var(--gris); }
.services__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-4); color: var(--navy); }
.services__excerpt { color: var(--gris); font-size: var(--t-2); }
.services__arrow {
  margin-top: auto; align-self: flex-end;
  color: var(--sx); font-size: var(--t-4);
  transform: translateX(-4px); opacity: 0.4;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.services__card a:hover .services__arrow { transform: translateX(0); opacity: 1; }

/* ---------- Signature : la ligne de production ---------- */
.process__track {
  position: relative; margin-top: var(--s-8);
  padding-left: clamp(40px, 7vw, 64px);
}
.process__svg {
  position: absolute; left: 14px; top: 8px; bottom: 8px;
  width: 2px; height: calc(100% - 16px);
}
.process__rail { stroke: var(--ligne); stroke-width: 2; }
.process__line {
  stroke: var(--corail); stroke-width: 2;
  stroke-dasharray: 1; stroke-dashoffset: 0; /* sans JS : trait complet */
  filter: drop-shadow(0 0 5px rgb(255 122 80 / 0.75));
}
html.js .process__line { stroke-dashoffset: 1; } /* JS : se dessine au scroll */

.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7); }
.process__step { position: relative; }
.process__marker {
  position: absolute; left: calc(-1 * clamp(40px, 7vw, 64px) + 1px); top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-1);
  color: var(--blanc); background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(240 138 93 / 0.22);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.process__step.is-visible .process__marker { animation: mcs-pulse 2.6s ease-out infinite; }
@keyframes mcs-pulse {
  0%   { box-shadow: 0 0 0 4px rgb(255 122 80 / 0.4); }
  70%  { box-shadow: 0 0 0 14px rgb(255 122 80 / 0); }
  100% { box-shadow: 0 0 0 4px rgb(255 122 80 / 0); }
}
html.js .process__step { opacity: 0; transform: translateY(16px); }
html.js .process__step.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.process__step-title { margin-bottom: var(--s-1); font-size: var(--t-4); }
.process__step-text { color: var(--gris); margin: 0; max-width: 52ch; }

/* ---------- Cartes références : mockup navigateur ---------- */
.refs__grid {
  display: grid; gap: var(--s-6); margin-top: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .refs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .refs__grid { grid-template-columns: repeat(3, 1fr); } }
.refs__grid--page { margin-top: 0; }
.refs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-5) 0 var(--s-7);
}
.refs-filter__empty {
  margin-top: var(--s-6);
  color: var(--gris);
}

.refcard__link {
  display: flex; flex-direction: column; gap: var(--s-4);
  color: var(--navy); text-decoration: none; height: 100%;
}
.browser-frame {
  display: block; position: relative;
  border: 1px solid var(--ligne);
  border-radius: var(--radius-m); overflow: hidden;
  background: var(--blanc); box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s, transform 0.25s var(--ease-out);
}
.refcard__link:hover .browser-frame { box-shadow: var(--shadow-hover); border-color: var(--corail); transform: translateY(-4px); }
.browser-frame__bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-bottom: 1px solid var(--ligne);
  background: var(--papier); position: relative; z-index: 2;
}
.browser-frame__bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ligne); flex: none;
}
.browser-frame__bar i:first-child { background: var(--corail); }
.browser-frame__url {
  margin-left: var(--s-2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem; color: var(--gris);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-frame img { width: 100%; transition: transform 0.45s var(--ease-out); }
.refcard__link:hover .browser-frame img { transform: scale(1.05); }
/* voile + pastille au survol */
.browser-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(22 35 63 / 0.35), transparent 55%);
  opacity: 0; transition: opacity 0.25s var(--ease-out);
}
.browser-frame::after {
  content: '↗'; position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--corail-fonce); color: #fff;
  font-size: 18px; line-height: 1;
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.refcard__link:hover .browser-frame::before { opacity: 1; }
.refcard__link:hover .browser-frame::after { opacity: 1; transform: none; }
.browser-frame--large { margin-bottom: var(--s-7); }

.refcard__body { display: flex; flex-direction: column; gap: var(--s-1); }
.refcard__category {
  font-family: var(--font-display); font-size: var(--t-1);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--corail-fonce);
}
.refcard__name { font-family: var(--font-display); font-weight: 600; font-size: var(--t-4); color: var(--navy); }
.refcard__desc { color: var(--gris); font-size: var(--t-2); }
.refcard__meta { color: var(--gris); font-size: var(--t-1); }

.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;
}

.ref-facts {
  display: grid; gap: 0; margin: var(--s-6) 0;
  border: 1px solid var(--ligne); border-radius: var(--radius-m);
  overflow: hidden; background: var(--blanc); box-shadow: var(--shadow-card);
}
.ref-facts > div {
  display: grid; grid-template-columns: 140px 1fr; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
}
.ref-facts > div + div { border-top: 1px solid var(--ligne); }
.ref-facts dt {
  font-family: var(--font-display); font-size: var(--t-1); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--corail-fonce);
}
.ref-facts dd { margin: 0; }

.ref-gallery { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .ref-gallery { grid-template-columns: repeat(2, 1fr); } }
.ref-gallery figure { margin: 0; }
.ref-gallery img { border: 1px solid var(--ligne); border-radius: var(--radius-m); }
.ref-gallery figcaption { font-size: var(--t-1); color: var(--gris); margin-top: var(--s-2); }

/* ---------- Tableaux / Tarifs ---------- */
.table-scroll { overflow-x: auto; margin-top: var(--s-6); border-radius: var(--radius-m); }
.pricing__table {
  width: 100%; border-collapse: collapse;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius-m); overflow: hidden;
  font-size: var(--t-2);
  min-width: 560px;
  box-shadow: var(--shadow-card);
}
.pricing__table th, .pricing__table td {
  text-align: left; padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--ligne);
}
.pricing__table thead th {
  font-family: var(--font-display); font-size: var(--t-1);
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--grad); color: var(--blanc);
  border-bottom: 0;
}
.pricing__table tbody tr { transition: background-color 0.18s; }
.pricing__table tbody tr:nth-child(even) { background: var(--papier); }
.pricing__table tbody tr:hover { background: rgb(240 138 93 / 0.09); }
.pricing__table tbody tr:last-child th,
.pricing__table tbody tr:last-child td { border-bottom: 0; }
.pricing__table tbody th { font-weight: 600; color: var(--navy); }
/* chiffres de budget en corail */
.pricing__table tbody td:first-of-type {
  color: var(--corail-fonce); font-weight: 600; font-family: var(--font-display);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq__list { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.faq__item {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius-m); box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__item[open] { border-color: var(--sx); }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-3);
  min-height: 44px; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; flex: none;
  font-size: 1.3em; color: var(--sx);
  transition: transform 0.25s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 var(--s-5) var(--s-5); margin: 0; color: var(--gris); }

/* ---------- Listes utilitaires ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: var(--radius-s);
  background: var(--corail);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 40% 70%);
}
.linklist { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.linklist li { border-left: 2px solid var(--corail); padding-left: var(--s-4); }

.taglist {
  list-style: none; padding: 0; margin: var(--s-5) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.taglist a {
  display: inline-block; padding: 10px 16px; min-height: 44px;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius-s); color: var(--navy);
  text-decoration: none; font-size: var(--t-2);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.taglist a:hover { border-color: var(--corail); color: var(--corail-fonce); background: var(--papier); }

/* ---------- Pages article / contenu ---------- */
.page-head {
  padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 48px);
}
.page-head__lead { font-size: var(--t-4); color: var(--gris); max-width: 60ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); }

.service-hero {
  padding-block: clamp(72px, 10vw, 144px) clamp(96px, 12vw, 168px);
}
.service-hero .hero__title { max-width: 18ch; }
.service-hero .hero__lead { max-width: 64ch; }
.service-hero .hero__grid { z-index: 2; }

.service-content {
  position: relative;
  overflow: hidden;
}
.service-content::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(28% 34% at 82% 18%, color-mix(in srgb, var(--sx) 18%, transparent), transparent 70%),
    radial-gradient(24% 30% at 12% 82%, rgb(255 255 255 / 0.64), transparent 72%);
}
.service-content > .container {
  position: relative;
  z-index: 1;
}
.service-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 920px) {
  .service-content__grid {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
    gap: clamp(48px, 6vw, 88px);
  }
  .service-content__grid--reverse {
    grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  }
  .service-content__grid--reverse .service-content__body { order: 2; }
  .service-content__grid--reverse .service-content__media { order: 1; }
}
.service-content__body h2 {
  margin-top: 0;
  max-width: 18ch;
}
.service-content__body p {
  max-width: 66ch;
}
.service-content__intro {
  font-size: var(--t-4);
  color: var(--navy);
}
.service-content__media {
  margin: 0;
  color: var(--sx);
  border-radius: var(--radius-l);
  transform-origin: 50% 60%;
}
.service-content__svg {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, color-mix(in srgb, var(--sx) 15%, #fff), #fff 68%);
  border: 1px solid color-mix(in srgb, var(--sx) 24%, var(--ligne));
  box-shadow: var(--shadow-card);
  animation: mcs-service-float 7s ease-in-out infinite;
}
.service-content__media:hover .service-content__svg {
  animation-play-state: paused;
  box-shadow: var(--shadow-hover);
}
/* Image réelle de section (remplace le SVG générique quand définie dans le contenu) */
.service-content__img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-l);
  border: 1px solid color-mix(in srgb, var(--sx) 24%, var(--ligne));
  box-shadow: var(--shadow-card);
  animation: mcs-service-float 7s ease-in-out infinite;
}
.service-content__media:hover .service-content__img {
  animation-play-state: paused;
  box-shadow: var(--shadow-hover);
}
.service-band {
  position: relative;
}
.service-rich__grid,
.service-portfolio__grid,
.service-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 640px) {
  .service-rich__grid,
  .service-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .service-rich__grid { grid-template-columns: repeat(3, 1fr); }
  .service-rich__grid--wide { grid-template-columns: repeat(4, 1fr); }
  
  .service-testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}
.service-rich__card,
.service-testimonial,
.service-portfolio__card a {
  height: 100%;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.service-rich__card {
  padding: var(--s-6);
}
.service-process {
  list-style: none;
  padding: 0;
}
.service-rich__card:hover,
.service-testimonial:hover,
.service-portfolio__card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sx);
}
.service-rich__card h3 {
  font-size: var(--t-4);
  margin-bottom: var(--s-3);
}
.service-rich__card p { margin: 0; color: var(--gris); font-size: var(--t-2); }





.service-portfolio__result,
.service-testimonial span {
  color: var(--gris);
  font-size: var(--t-2);
}
.service-testimonial {
  margin: 0;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.service-testimonial img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--papier);
  border: 1px solid var(--ligne);
}
.service-testimonial blockquote {
  margin: 0;
  color: var(--navy);
  font-size: var(--t-3);
}
.service-testimonial figcaption {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}
.service-testimonial figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
}
@keyframes mcs-service-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.6deg); }
}
html.js .service-content__body[data-reveal] {
  transform: translateY(26px);
}
html.js .service-content__media[data-reveal] {
  transform: translateY(32px) scale(0.94);
}
html.js .service-content__body[data-reveal].is-visible,
html.js .service-content__media[data-reveal].is-visible {
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.section--article h2 { font-size: var(--t-5); margin-top: var(--s-6); }
.section--article .service-content__body h2 { margin-top: 0; }
.section--article h3 { font-size: var(--t-4); }

.post__cover { margin: 0 0 var(--s-7); }
.post__cover img { border-radius: var(--radius-m); border: 1px solid var(--ligne); }
.post__body h2 { font-size: var(--t-5); margin-top: var(--s-7); }
.post__body h3 { font-size: var(--t-4); margin-top: var(--s-6); }
.post__body img { border-radius: var(--radius-m); border: 1px solid var(--ligne); margin-block: var(--s-5); }
.post__body table { width: 100%; border-collapse: collapse; font-size: var(--t-2); margin-block: var(--s-5); }
.post__body th, .post__body td { border: 1px solid var(--ligne); padding: var(--s-3) var(--s-4); text-align: left; }
.post__body thead th { background: var(--navy); color: var(--blanc); }
.post__body blockquote {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--corail); background: var(--blanc);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}

/* ---------- Cartes blog ---------- */
.blogpreview__grid {
  display: grid; gap: var(--s-6); margin-top: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .blogpreview__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blogpreview__grid { grid-template-columns: repeat(3, 1fr); } }
.postcard__link {
  display: flex; flex-direction: column; gap: var(--s-3);
  height: 100%; padding: var(--s-6);
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius-m);
  color: var(--navy); text-decoration: none; box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.postcard__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--sx); }
.postcard__meta { font-size: var(--t-1); color: var(--gris); font-family: var(--font-display); letter-spacing: 0.06em; }
.postcard__title { font-family: var(--font-display); font-weight: 600; font-size: var(--t-4); color: var(--navy); }
.postcard__excerpt { color: var(--gris); font-size: var(--t-2); }
.postcard__more { margin-top: auto; color: var(--corail-fonce); font-weight: 600; font-size: var(--t-2); }

.pagination ul {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  list-style: none; padding: 0; margin: var(--s-7) 0 0;
}
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--ligne); border-radius: var(--radius-s);
  text-decoration: none; background: var(--blanc);
}
.pagination a:hover { border-color: var(--corail); color: var(--corail-fonce); }
.pagination [aria-current="page"] { background: var(--navy); color: var(--blanc); border-color: var(--navy); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-weight: 500; margin-bottom: var(--s-2); font-family: var(--font-display); color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; min-height: 48px;
  font: inherit; color: var(--texte);
  background: var(--blanc); border: 1.5px solid var(--ligne);
  border-radius: var(--radius-s);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--corail-fonce);
  outline: 2px solid rgb(240 138 93 / 0.3); outline-offset: 0;
}
.field__hint { color: var(--gris); font-size: var(--t-1); font-weight: 400; }
.field__error { color: #B3261E; font-size: var(--t-2); margin: var(--s-2) 0 0; }
.field--error input, .field--error textarea, .field--error select { border-color: #B3261E; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: var(--s-4) var(--s-5); border-radius: var(--radius-m); margin-bottom: var(--s-6); border: 1px solid; }
.alert p { margin: 0; }
.alert--success { background: #E8F5EC; border-color: #2E7D43; color: #1D5A2F; }
.alert--error { background: #FDEDEC; border-color: #B3261E; color: #8C1D17; }

.contact__grid { display: grid; gap: var(--s-8); grid-template-columns: 1fr; }
@media (min-width: 920px) { .contact__grid { grid-template-columns: 3fr 2fr; } }
.contact__aside {
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius-l); padding: var(--s-6);
  align-self: start; box-shadow: var(--shadow-card);
}
.contact__aside h2, .contact__aside h3 { font-size: var(--t-4); }
address { font-style: normal; }

.contact__map-section { padding-top: var(--s-7); }
.contact__map-title { margin: 0 0 var(--s-5); }
.contact__map {
  border: 1px solid var(--ligne); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card); overflow: hidden; line-height: 0;
}
.contact__map .gmap { display: block; width: 100%; height: 370px; border: 0; }
@media (min-width: 920px) { .contact__map .gmap { height: 440px; } }

/* Formulaire devis multi-étapes */
.devis-form__progress {
  display: flex; gap: 0; list-style: none; margin: 0 0 var(--s-7); padding: 0;
  counter-reset: step;
}
.devis-form__progress li {
  flex: 1; text-align: center; position: relative;
  font-family: var(--font-display); font-size: var(--t-1);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris);
  padding-top: 22px;
}
.devis-form__progress li::before {
  content: ''; position: absolute; top: 7px; left: 0; right: 0;
  height: 2px; background: var(--ligne);
}
.devis-form__progress li::after {
  content: ''; position: absolute; top: 0; left: calc(50% - 8px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--papier); border: 2px solid var(--ligne);
  transition: background-color 0.2s, border-color 0.2s;
}
.devis-form__progress li.is-active { color: var(--corail-fonce); }
.devis-form__progress li.is-active::after { border-color: var(--corail); background: var(--corail); }
.devis-form__progress li.is-done::before { background: var(--corail); }
.devis-form__progress li.is-done::after { border-color: var(--corail); background: var(--corail); }

.devis-form__step { border: 0; padding: 0; margin: 0; }
.devis-form__step legend {
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-5);
  margin-bottom: var(--s-5); padding: 0; color: var(--navy);
}
.devis-form__step .btn { margin-right: var(--s-3); margin-top: var(--s-3); }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy-deep); color: rgb(232 236 243 / 0.82);
  border-top: 1px solid rgb(255 255 255 / 0.06);
}
.site-footer a { color: var(--blanc); text-decoration-color: rgb(255 255 255 / 0.35); }
.site-footer a:hover { color: var(--corail); text-decoration-color: var(--corail); }
.site-footer__grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-block: clamp(48px, 7vw, 80px) var(--s-7);
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.site-footer__logo {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-5);
  margin-bottom: var(--s-3);
  background: linear-gradient(120deg, #FFFFFF 30%, var(--corail) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  width: max-content;
}
.site-footer__title {
  font-size: var(--t-1); font-family: var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.55); margin-bottom: var(--s-4);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer__col ul a { font-size: var(--t-2); }
.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 0.14);
  padding-block: var(--s-5);
  font-size: var(--t-1); color: rgb(255 255 255 / 0.55);
}
.site-footer__legal p { margin: 0; }
.site-footer__legal p + p { margin-top: var(--s-2); color: rgb(255 255 255 / 0.4); }

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 60; width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--navy); color: var(--corail);
  box-shadow: var(--shadow-hover); cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background-color 0.2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-2); transform: scale(1.08); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Système de surfaces — trois fonds seulement (clair / blanc / marine)
   + corail en accent. La couleur du texte suit la surface, pas la section.
   ========================================================================== */
.surface-light { background: var(--papier); }
.surface-white { background: var(--blanc); }
.surface-navy {
  background: var(--navy);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--texte-clair);
}

/* Bords francs autour d'une surface marine : pas de filet clair résiduel */
.section.surface-navy { border-top: 0; }
.surface-navy + .section { border-top: 0; }

/* Bascule automatique des couleurs de texte sur marine */
.surface-navy h1, .surface-navy h2, .surface-navy h3, .surface-navy h4 { color: #fff; }
.surface-navy .section__lead,
.surface-navy p { color: rgb(232 236 243 / 0.74); }
.surface-navy { --sx: var(--corail); }
.surface-navy .kicker { color: var(--corail); }       /* corail vif = AA sur marine */
/* Titres sur marine : dégradé blanc → pêche */
.surface-navy .section__title {
  background: linear-gradient(100deg, #FFFFFF 50%, #FFC9A8 130%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.surface-navy a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.surface-navy a:hover { color: var(--corail); }

/* Process sur marine : pastilles blanches (chiffre marine), anneau + trait corail */
.surface-navy .process__rail { stroke: rgb(255 255 255 / 0.18); }
.surface-navy .process__line { stroke: var(--corail); }
.surface-navy .process__marker { background: #fff; color: var(--navy); }
.surface-navy .process__step.is-visible .process__marker { animation: mcs-pulse 2.6s ease-out infinite; }
.surface-navy .process__step-title { color: #fff; }
.surface-navy .process__step-text { color: rgb(232 236 243 / 0.7); }

/* Cartes sur fond blanc (Surface B) : remplissage clair pour rester lisibles */
.surface-white .services__card a { background: var(--papier); }
.surface-white .services__card a:hover { background: var(--blanc); }
.surface-white .faq__item { background: var(--papier); }

/* ---------- Intro SEO « Agence Web Tunisie » (2 colonnes, sous le hero) ---------- */
.seo-intro .split__body p { max-width: 62ch; }

/* ---------- Paragraphe descriptif des cartes services ---------- */
.services__desc {
  color: var(--gris); font-size: var(--t-2); line-height: 1.6;
  margin-top: var(--s-1);
}

/* ---------- Formulaire « Demander un devis » (page d'accueil) ---------- */
.field__req { color: var(--corail-fonce); }
.quote-form__grid {
  display: grid; gap: var(--s-5) var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .quote-form__grid { grid-template-columns: 1fr 1fr; } }
.quote-form .field { margin-bottom: 0; }
.quote-form .field--full { grid-column: 1 / -1; }
.quote-form > .btn { margin-top: var(--s-6); }

/* ---------- Média hero : reprend le cadre corail décalé, sans le chevauchement « split » ---------- */
.hero__media { margin: 0; align-self: center; }
.hero__media img { margin-top: 0; border-radius: var(--radius-l); }
/* Accueil : colonne visuelle élargie pour un hero image plus grand (n'affecte pas .service-hero) */
@media (min-width: 920px) {
  .hero--visual .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- Services phares : trois cartes statiques en tête ---------- */
.features__grid {
  list-style: none; margin: var(--s-7) 0 0; padding: 0;
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.features__card {
  display: flex; flex-direction: column; gap: var(--s-3);
  height: 100%; padding: var(--s-6);
  background: var(--blanc); color: var(--navy);
  position: relative;
  border: 1px solid var(--ligne); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s;
}
.features__card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 3px; border-radius: var(--radius-m) var(--radius-m) 0 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.features__card:hover::before { transform: scaleX(1); }
.features__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--sx); }
/* Accent par carte (les trois métiers repris du diaporama) */
.features__card:nth-child(1) { --sx: var(--corail-fonce); }
.features__card:nth-child(2) { --sx: var(--violet-d); }
.features__card:nth-child(3) { --sx: var(--teal-d); }
.features__kicker {
  margin: 0;
  font-family: var(--font-display); font-size: var(--t-1);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sx);
}
.features__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--t-4); color: var(--navy); }
.features__text { margin: 0; color: var(--gris); font-size: var(--t-2); }
.features__card .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Grille éditoriale « split » : texte + média sur deux colonnes (desktop).
   Remplace les longues colonnes centrées ; le média est décoratif, jamais
   porteur d'information seule.
   ========================================================================== */
.split {
  display: grid; gap: var(--s-7);
  grid-template-columns: 1fr;
  align-items: center;
  margin-top: var(--s-6);
}
.split--top { align-items: start; }
@media (min-width: 920px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 88px); }
  .split--media-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--media-left .split__media { order: -1; }
  .split__media--sticky { position: sticky; top: 96px; align-self: start; }
}

.media-frame { margin: 0; position: relative; }
.media-frame img {
  width: 100%; height: auto;
  box-shadow: var(--shadow-card);
  margin-top: -4vw;
}
.media-frame figcaption { font-size: var(--t-1); color: var(--gris); margin-top: var(--s-3); }
/* Cadre décalé corail : rappel « plan technique », sans incidence layout */
.media-frame--accent::before {
  content: ''; position: absolute; z-index: -1;
  inset: 20px -16px -16px 20px;
  border: 2px solid rgb(240 138 93 / 0.4);
  border-radius: var(--radius-l);
}
.surface-navy .media-frame img { border-color: rgb(255 255 255 / 0.16); }
.surface-navy .media-frame figcaption { color: rgb(232 236 243 / 0.65); }
.smallerimg { width: 80% !important;}
/* ==========================================================================
   Clients : deux rangées de logos en défilé continu, sens opposés
   ========================================================================== */
.clients { overflow: hidden; }
.clients__scroller {
  margin-top: var(--s-7);
  display: grid; gap: var(--s-5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients__row { overflow: hidden; }
.clients__track {
  list-style: none; margin: 0; padding: 4px 0;
  display: flex; flex-wrap: nowrap; gap: var(--s-5);
  width: max-content;
  --marquee-gap: var(--s-5);
  animation: mcs-marquee 36s linear infinite;
}
.clients__track--reverse { animation-direction: reverse; animation-duration: 42s; }
.clients__row:hover .clients__track,
.clients__row:focus-within .clients__track { animation-play-state: paused; }
.clients__logo {
  display: grid; place-items: center;
  width: 190px; height: 180px; padding: 14px 20px; flex: none;
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.clients__logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--corail); }
.clients__logo img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.clients__logo:hover img { filter: none; opacity: 1; }

/* ---------- Pourquoi MCS : grille d'arguments factuels ---------- */
.why__grid {
  list-style: none; margin: var(--s-7) 0 0; padding: 0;
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
.why__card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6);
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--radius-m); box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s;
}
.why__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--sx); }
/* Cycle de couleurs : chaque engagement a sa teinte */
.why__card:nth-child(6n+1) { --sx: var(--corail-fonce); }
.why__card:nth-child(6n+2) { --sx: var(--violet-d); }
.why__card:nth-child(6n+3) { --sx: var(--teal-d); }
.why__card:nth-child(6n+4) { --sx: var(--ambre-d); }
.why__card:nth-child(6n+5) { --sx: var(--rose-d); }
.why__card:nth-child(6n+6) { --sx: var(--bleu-d); }
.why__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--sx) 13%, var(--blanc));
  color: var(--sx);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.why__card:hover .why__icon {
  transform: rotate(-8deg) scale(1.12);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--sx) 35%, transparent);
}
.why__icon svg { width: 24px; height: 24px; }
.why__card .why__title { color: var(--navy); }
.why__title { margin: 0; font-size: var(--t-4); }
.why__text { margin: 0; color: var(--gris); font-size: var(--t-2); }
.surface-white .why__card { background: var(--papier); }
.surface-white .why__card:hover { background: var(--blanc); }

/* ---------- Technologies : bandeau marine → violet + défilé continu ---------- */
.tech { padding-block: clamp(48px, 7vw, 80px); }
.tech.surface-navy { background: linear-gradient(180deg, var(--navy-2) 0%, var(--violet-deep) 100%); }
.tech .section__title { font-size: var(--t-5); }
/* Fenêtre du défilé : fondu sur les bords */
.tech__scroller {
  margin-top: var(--s-6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech__list {
  list-style: none; margin: 0; padding: 6px 0;
  display: flex; flex-wrap: nowrap; gap: var(--s-3);
  width: max-content;
  --marquee-gap: var(--s-3);
  animation: mcs-marquee 30s linear infinite;
}
.tech__scroller:hover .tech__list,
.tech__scroller:focus-within .tech__list { animation-play-state: paused; }
/* Boucle sans couture : décale d'une demi-liste + un demi-gap */
@keyframes mcs-marquee { to { transform: translateX(calc(-50% - var(--marquee-gap, 12px) / 2)); } }
/* Puce vitrée (glassmorphism) : logo sur pastille blanche + verre dépoli */
.tech__chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 12px; min-height: 60px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-3);
  color: #fff;
  background: rgb(255 255 255 / 0.09);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 10px 28px rgb(0 0 0 / 0.22);
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s;
}
.tech__chip:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgb(255 255 255 / 0.15);
  border-color: rgb(255 255 255 / 0.38);
}
.tech__chip img {
  width: 40px; height: 40px; flex: none; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 5px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.18);
}

/* ---------- Zones d'intervention (SEO local) ---------- */
.zones__grid { display: grid; gap: var(--s-6); margin-top: var(--s-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .zones__grid { grid-template-columns: 3fr 2fr; } }
.zones__text p { color: var(--gris); max-width: 62ch; }
.zones__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.zones__list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; min-height: 40px;
  font-size: var(--t-2); color: var(--navy);
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius-s);
}
.zones__list li svg { width: 14px; height: 14px; color: var(--sx); flex: none; }

/* ---------- Bouton WhatsApp flottant (canal n°1 en Tunisie) ---------- */
.whatsapp-fab {
  position: fixed; left: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 18px 12px 14px;
  background: #1EBE5D; color: #fff;
  border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-2);
  box-shadow: 0 10px 24px rgb(30 190 93 / 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s;
}
.whatsapp-fab:hover {
  background: #17A44F; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(30 190 93 / 0.42);
}
.whatsapp-fab svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 639px) {
  .whatsapp-fab { padding: 12px; }
  .whatsapp-fab__label { display: none; }
}
@media print { .whatsapp-fab { display: none; } }

/* ==========================================================================
   Lavis de section : chaque section de l'accueil a sa teinte + son accent --sx
   ========================================================================== */
.tone-coral  { background: var(--wash-coral);  --sx: var(--corail-fonce); }
.tone-violet { background: var(--wash-violet); --sx: var(--violet-d); }
.tone-teal   { background: var(--wash-teal);   --sx: var(--teal-d); }
.tone-ambre  { background: var(--wash-ambre);  --sx: var(--ambre-d); }
.tone-bleu   { background: var(--wash-bleu);   --sx: var(--bleu-d); }
.tone-rose   { background: var(--wash-rose);   --sx: var(--rose-d); }
[class*="tone-"].section { border-top: 0; }

/* ==========================================================================
   Séparateurs sculptés entre sections. Chaque frontière a sa forme :
   <div class="sep sep--vague" style="--f:…;--t:…"> — --f = couleur de la
   section du dessus, --t = couleur de celle du dessous. Formes en clip-path /
   border-radius / mask : responsives, zéro image, zéro JS.
   ========================================================================== */
.sep {
  --f: var(--papier); --t: var(--blanc);
  height: clamp(26px, 4vw, 46px);
  background: var(--t);            /* fond = section suivante : aucune bande intermédiaire */
  position: relative; overflow: hidden;
}
.sep::before { content: ''; position: absolute; inset: 0; background: var(--f); }
.sep + .section, .sep + section { border-top: 0; }

/* Couleur de la flèche = fond BAS de la section précédente. Classes (pas de
   style inline : la CSP publique est style-src 'self' et bloque les
   attributs style). Pour les sections en dégradé, on prend la couleur de fin. */
.sep--f-papier { --f: var(--papier); }
.sep--f-hero   { --f: #F3F7FA; }            /* flèche sous le hero des pages service */
.sep--f-blanc  { --f: var(--blanc); }
.sep--f-navy   { --f: var(--navy-2); }      /* fin du dégradé des sections marine */
.sep--f-coral  { --f: var(--wash-coral); }
.sep--f-violet { --f: var(--wash-violet); }
.sep--f-teal   { --f: var(--wash-teal); }
.sep--f-tech   { --f: var(--violet-deep); } /* fin du dégradé du bandeau Technologies */
.sep--f-ambre  { --f: var(--wash-ambre); }
.sep--f-bleu   { --f: var(--wash-bleu); }
.sep--f-rose   { --f: var(--wash-rose); }

/* 1. Dôme : la section du dessus bombe en demi-ellipse */
.sep--dome::before { border-radius: 0 0 50% 50% / 0 0 100% 100%; }

/* 2. Vasque : la section du dessous remonte en demi-ellipse */
.sep--vasque { background: var(--f); }
.sep--vasque::before { background: var(--t); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* 3. Diagonale (descend vers la droite) */
.sep--diag::before { clip-path: polygon(0 0, 100% 0, 0 100%); }

/* 4. Diagonale inverse */
.sep--diag-r::before { clip-path: polygon(0 0, 100% 0, 100% 100%); }

/* 5. Zigzag : dents de scie */
.sep--zigzag::before {
  clip-path: polygon(0 0, 100% 0, 100% 55%,
    93.75% 100%, 87.5% 55%, 81.25% 100%, 75% 55%, 68.75% 100%, 62.5% 55%,
    56.25% 100%, 50% 55%, 43.75% 100%, 37.5% 55%, 31.25% 100%, 25% 55%,
    18.75% 100%, 12.5% 55%, 6.25% 100%, 0 55%);
}

/* 6. Flèche : le séparateur n'occupe AUCUNE hauteur — les deux sections se
   touchent directement (aucune bande possible). Le triangle, couleur du bas
   de la section précédente (--f), est positionné en absolu, centré, et
   déborde vers le bas SUR la section suivante : la section du dessus
   « trempe » sa pointe dans la suivante. */
.sep--pointe {
  height: 0;
  background: transparent;
  overflow: visible;
  z-index: 3;                      /* au-dessus des sections positionnées (.glow) */
}
.sep--pointe::before {
  inset: auto;
  left: 50%; top: -1px;            /* -1px : soude le triangle à sa section */
  transform: translateX(-50%);
  width: clamp(140px, 22vw, 300px);
  height: clamp(25px, 3.8vw, 47px);
  background: var(--f);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 2;
}

/* 7. Vague : double ondulation (mask SVG, s'étire à toute largeur) */
.sep--vague::before {
  -webkit-mask: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"%3E%3Cpath d="M0,0 L100,0 L100,7 C82,17 68,1 50,9 C32,17 18,3 0,11 Z" fill="black"/%3E%3C/svg%3E') center / 100% 100% no-repeat;
  mask: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"%3E%3Cpath d="M0,0 L100,0 L100,7 C82,17 68,1 50,9 C32,17 18,3 0,11 Z" fill="black"/%3E%3C/svg%3E') center / 100% 100% no-repeat;
}

/* ==========================================================================
   Halo dérivant sur les sections sombres (corail + violet, transform only)
   ========================================================================== */
.glow { position: relative; overflow: hidden; }
.glow > .container { position: relative; z-index: 1; }
.glow::after {
  content: ''; position: absolute; inset: -25%; pointer-events: none;
  background:
    radial-gradient(34% 42% at 16% 22%, rgb(255 122 80 / 0.2), transparent 70%),
    radial-gradient(30% 40% at 86% 78%, rgb(109 91 255 / 0.28), transparent 70%),
    radial-gradient(18% 26% at 60% 10%, rgb(255 92 138 / 0.14), transparent 70%);
  animation: mcs-drift 16s ease-in-out infinite alternate;
}

/* ---------- Pages erreur ---------- */
.errorpage { border-top: 0; padding-block: clamp(64px, 12vw, 160px); }

/* ---------- Révélation au scroll ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px) scale(0.97); }
html.js [data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

/* ---------- Mouvement réduit : tout est désactivé ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  html.js [data-reveal], html.js .process__step { opacity: 1; transform: none; }
  html.js .process__line { stroke-dashoffset: 0 !important; }
  .to-top { transition: opacity 0.001s; }
  /* Défilés (technologies + clients) : listes statiques, retour à la ligne */
  .tech__list, .clients__track { animation: none !important; flex-wrap: wrap; width: auto; }
  .tech__list li[aria-hidden="true"], .clients__logo[aria-hidden="true"] { display: none; }
  .tech__scroller, .clients__scroller { -webkit-mask-image: none; mask-image: none; }
  .hero__title { animation: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .breadcrumbs, .skip-link, .to-top, .stats { display: none; }
  body { background: #fff; }
}
