/* =====================================================================
   Projet : Vitrine — feuille de style
   Design system : « Mercury » (sombre, monochrome, accent cobalt unique)
   Mobile-first. Voir DESIGN.md pour les tokens d'origine.
   ===================================================================== */

/* ---------- Fonts (variables, auto-hébergées, sous-ensemble latin) ---------- */
/* Geist : corps / UI — neo-grotesque sobre (substitut « Suisse Int'l » du design) */
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Oswald : la police du site RS (titres), pour la slide RS Pièces Auto */
@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/oswald-latin-var.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
/* Playfair Display : serif display (substitut « Lyon Display ») — titres héro + sections.
   Deux fontes : romain + vraie italique (pour les mots en emphase). */
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-latin-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-latin-italic-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --canvas:   #171721;   /* fond dominant */
  --card:     #1e1e2a;   /* surface élevée */
  --button:   #272735;   /* surface interactive secondaire */
  --border:   #2c2c3a;   /* hairline sur fond sombre */
  --border-strong: #3a3a4a;
  --ash:      #c3c3cc;   /* texte secondaire */
  --ivory:    #ededf3;   /* texte principal */
  --cobalt:   #5266eb;   /* action principale — unique note colorée */
  --cobalt-hi:#6577f0;
  --white:    #ffffff;

  /* Typo — Geist (corps/UI, substitut Suisse Int'l) + Playfair Display (display, subst. Lyon) */
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  /* Rythme */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 12vw, 8rem);

  /* Rayons */
  --r-card: 14px;
  --r-pill: 40px;

  /* Ombres (utilisées avec parcimonie) */
  --ring: 0 0 0 1px var(--border);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ivory);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: 0;
  transition: background-color .55s ease, color .55s ease;
}

/* ---------- Thème clair (piloté par le scroll via [data-theme] sur <body>) ---------- */
body[data-theme="light"] {
  --canvas: #f0f0f4;
  --card: #ffffff;
  --button: #e7e7ee;
  --border: #e4e4ec;
  --border-strong: #d3d3dd;
  --ash: #55555f;
  --ivory: #1a1a24;
}
/* Fondu doux des surfaces et des textes quand le thème bascule */
.card, .step, .steps, .stats, .stats__item, .perk, .offre__note,
.client--featured, .client--empty, .contact__form, .step__num,
.nav.is-scrolled, .nav__menu, .footer {
  transition: background-color .55s ease, border-color .55s ease, color .55s ease;
}
.field input, .field textarea {
  transition: border-color .2s ease, box-shadow .2s ease, background-color .55s ease, color .55s ease;
}
.eyebrow, .section__title, .section__lead,
.card__text, .stats__label, .client__desc, .step__text, .perk__text,
.contact__facts li, .field label, .footer__meta, .footer__copy, .nav__links a {
  transition: color .55s ease;
}
/* Le menu mobile suit le thème de la page en dessous */
body[data-theme="light"] .nav__menu {
  background: rgba(240, 240, 244, .94);
  border-bottom-color: var(--border);
}
/* Sections à fond sombre scopé (pas de bascule body, couleurs portées par la section) */
.clients-slider, .contact, .faq, .footer {
  --canvas: #171721; --card: #1e1e2a; --button: #272735;
  --border: #2c2c3a; --border-strong: #3a3a4a;
  --ash: #c3c3cc; --ivory: #ededf3;
  background: var(--canvas); color: var(--ivory);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--cobalt-hi); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-120%);
  top: 8px; z-index: 200; background: var(--cobalt); color: var(--white);
  padding: 10px 18px; border-radius: var(--r-pill); transition: transform .2s ease;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash);
}
.section__head { max-width: 42rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__title {
  font-family: var(--font-display);            /* Playfair : serif display sur tous les titres */
  font-size: clamp(1.9rem, 5.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  font-weight: 500;
  margin-top: .75rem;
}
.section__lead {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ash);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 480;
  font-size: 1rem;
  line-height: 1;
  transition: transform .18s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn--lg { padding: 1rem 1.75rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--cobalt); color: var(--white); }
.btn--primary:hover { background: var(--cobalt-hi); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--ivory); transform: translateY(-2px); }

.link-accent { color: var(--cobalt-hi); font-weight: 480; white-space: nowrap; }
.link-accent:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding: .85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 530; font-size: 1.05rem; letter-spacing: -.01em;
}
.nav__brand-colon { color: inherit; }
.nav__links { display: none; gap: .35rem; }
.nav__links a {
  color: var(--ash); padding: .5rem .9rem; border-radius: var(--r-pill);
  font-size: .95rem; transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover { color: var(--ivory); background: rgba(255,255,255,.05); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__cta { display: none; padding: .6rem 1.15rem; }

.nav__toggle {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--ivory); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .5rem var(--gutter) 1.5rem;
  background: rgba(23, 23, 33, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__menu[hidden] { display: none; }
.nav__menu a { padding: .85rem .25rem; color: var(--ash); font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.nav__menu a:last-child { border: none; margin-top: .75rem; color: var(--white); justify-content: center; }

/* =====================================================================
   HERO (vidéo scrubbée au scroll)
   ===================================================================== */
.hero { position: relative; height: 300vh; }              /* piste de scroll : scrub + séquence de texte */

.hero__pin {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: #0d0d14;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(23,23,33,.45) 0%, rgba(23,23,33,.10) 35%, rgba(23,23,33,.25) 70%, rgba(23,23,33,.85) 100%);
}
/* Voile sombre du fondu de fin (opacité pilotée par le scroll) */
.hero__fade {
  position: absolute; inset: 0; z-index: 2;
  background: #171721;
  opacity: 0;
}
/* Zone de texte : les deux étapes se superposent au centre */
.hero__intro {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
  perspective: 1200px;
}
.hero__layer {
  grid-area: 1 / 1;                 /* superposition */
  width: 100%; max-width: 60rem;
  transform-style: preserve-3d;
}
/* Étape 1 : manifeste, centré */
.hero__layer--manifest { text-align: center; }
.hero__manifest {
  font-family: var(--font-display);            /* Playfair : serif display « whisper-weight » */
  font-size: clamp(2.5rem, 7.8vw, 4.3rem);
  line-height: 1.05; letter-spacing: -.015em; font-weight: 400; text-wrap: balance;
  will-change: transform, opacity;
}
.hero__manifest em { font-style: italic; color: var(--cobalt); }
/* Étape 2 : « Projet: Vitrine » en grand + tagline (citation / auteur) */
.hero__layer--brand { display: flex; flex-direction: column; align-items: center; }
.hero__tagline {
  align-self: flex-end;
  margin-right: clamp(.5rem, 8vw, 6rem);
  margin-top: .75rem;
  overflow: hidden;                /* masque pour l'effet de révélation */
  color: var(--cobalt);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-style: italic; font-weight: 480;
}
.hero__tagline-in { display: inline-block; will-change: transform; }
.hero__brand-big {
  font-family: var(--font-display);            /* Playfair : serif display pour la marque en grand */
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 400; letter-spacing: -.02em; line-height: .95;
  text-align: center; will-change: transform, opacity;
}
/* Défaut (no-JS / prefers-reduced-motion) : on montre l'identité finale */
.hero__manifest { opacity: 0; }
/* JS + animations autorisées : états initiaux, tout est piloté au scroll */
.js:not(.no-scrub) .hero__brand-big { opacity: 0; }
.js:not(.no-scrub) .hero__tagline { opacity: 0; }
.js:not(.no-scrub) .hero__tagline-in { transform: translateY(115%); }

.hero__cue {
  position: absolute; z-index: 4; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
  transition: opacity .4s ease;
}
.hero__cue-line { width: 1px; height: 34px; background: linear-gradient(var(--ash), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* =====================================================================
   MANIFESTE
   ===================================================================== */

/* =====================================================================
   CARTES / GRILLES
   ===================================================================== */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid--3 { grid-template-columns: 1fr; }
.grid--clients { grid-template-columns: 1fr; }

.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--border);
}
.card__num { font-size: .8rem; font-weight: 500; letter-spacing: .1em; color: var(--cobalt-hi); }
.card__title { font-size: 1.3rem; font-weight: 480; margin: .9rem 0 .6rem; letter-spacing: -.01em; }
.card__text { color: var(--ash); }

/* Stats — repères clés, sans cases, chiffres en bleu */
.stats {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem);
}
.stats__item { display: flex; flex-direction: column; gap: .35rem; }
.stats__num { font-size: clamp(2rem, 5.5vw, 2.8rem); font-weight: 560; letter-spacing: -.02em; color: var(--cobalt); }
.stats__num sup { font-size: .5em; }
.stats__label { color: var(--ash); font-size: .95rem; }

/* =====================================================================
   CLIENTS
   ===================================================================== */
.client {
  border-radius: var(--r-card); padding: clamp(1.5rem, 4vw, 2rem);
  min-height: 200px; display: flex; flex-direction: column;
}
.client--featured {
  background: var(--card); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.client--featured::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--client-accent) 16%, transparent), transparent 60%);
  pointer-events: none;
}
.client__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.client__logo {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; letter-spacing: .02em;
  background: var(--client-accent, var(--button)); color: var(--white);
  font-size: 1.15rem;
}
.client__tag { font-size: .78rem; color: var(--ash); letter-spacing: .04em; }
.client__name { font-size: 1.5rem; font-weight: 480; margin-top: 1.25rem; letter-spacing: -.01em; position: relative; }
.client__desc { color: var(--ash); margin-top: .6rem; position: relative; }
.client__soon {
  margin-top: auto; padding-top: 1.25rem; position: relative;
  font-size: .8rem; color: var(--ash); display: inline-flex; align-items: center; gap: .5rem;
}
.client__soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--client-accent, var(--cobalt)); }

.client--empty {
  border: 1px dashed var(--border-strong); background: transparent;
  align-items: center; justify-content: center; text-align: center; gap: .5rem;
  color: var(--ash); min-height: 200px;
}
.client__plus { font-size: 2rem; line-height: 1; color: var(--border-strong); }
.client__empty-text { color: var(--ash); font-size: .95rem; }

/* --- Carte-fenêtre cliquable (ouvre le site du client) --- */
.client-win {
  display: flex; flex-direction: column; text-align: left;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  min-height: 200px; cursor: pointer; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .3s ease;
}
.client-win:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 40px -24px rgba(0,0,0,.7); }
.client-win__bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; background: var(--button);
  border-bottom: 1px solid var(--border);
}
.client-win__dots { display: inline-flex; gap: 6px; flex: none; }
.client-win__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.client-win:hover .client-win__dots i:nth-child(1) { background: #ff5f57; }
.client-win:hover .client-win__dots i:nth-child(2) { background: #febc2e; }
.client-win:hover .client-win__dots i:nth-child(3) { background: #28c840; }
.client-win__dots i { transition: background-color .3s ease; }
.client-win__addr {
  font-size: .8rem; color: var(--ash);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.client-win__body { padding: clamp(1.35rem, 4vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.client-win__body .client__logo { margin-bottom: 1rem; }
.client-win__name { font-size: 1.4rem; font-weight: 480; letter-spacing: -.01em; }
.client-win__desc { color: var(--ash); margin-top: .5rem; font-size: .96rem; }
.client-win__cta {
  margin-top: auto; padding-top: 1.1rem;
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--cobalt-hi); font-weight: 480; font-size: .95rem;
}
.client-win__cta svg { transition: transform .2s ease; }
.client-win:hover .client-win__cta svg { transform: translate(2px, -2px); }

/* =====================================================================
   FENÊTRE MODALE (aperçu d'un site)
   ===================================================================== */
/* =====================================================================
   NOS CLIENTS — slide intro (1re slide du slider)
   ===================================================================== */
.cslide__bg--intro { background: radial-gradient(120% 100% at 50% -10%, #1d1d29 0%, #0f0f16 62%); }
.cslide__inner--intro { text-align: center; }
.clients-intro__title { font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.02; }
.clients-intro__sub { margin-top: 1.5rem; max-width: 46rem; font-size: clamp(1.15rem, 3vw, 1.6rem); color: var(--ash); line-height: 1.5; text-wrap: balance; }
.clients-intro__sub em { font-style: normal; color: var(--cobalt); }

/* =====================================================================
   NOS CLIENTS — slider plein écran (photo de fond + fenêtre centrée)
   ===================================================================== */
.clients-slider { padding: 0; }
.cslider { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #0d0d14; }
/* Slide client : grand titre (Oswald) + sous-titre au-dessus de la fenêtre */
.cslide__head { text-align: center; display: flex; flex-direction: column; gap: .35rem; margin-top: clamp(1rem, 4vh, 2.5rem); margin-bottom: clamp(1rem, 3vh, 1.75rem); }
.cslide__toprow {
  position: relative; width: 100%; text-align: center;
}
.cslide__quote {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  max-width: min(280px, 30vw);
  padding-right: 1rem; border-right: 3px solid var(--accent, var(--cobalt)); text-align: right;
}
.cslide__quote blockquote {
  font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; font-style: normal;
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: .2px;
  color: var(--ivory); text-shadow: 0 2px 20px rgba(0,0,0,.65);
}
.cslide__quote figcaption {
  margin-top: .55rem; font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent, var(--cobalt-hi));
}
@media (max-width: 900px) { .cslide__quote { display: none; } }
.cslide__brand {
  font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .5px; line-height: .95;
  font-size: clamp(2.4rem, 7vw, 4.2rem); color: var(--ivory); text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.cslide__subtitle { color: var(--ash); font-size: clamp(.95rem, 2.2vw, 1.15rem); }
/* « Cliquez pour visiter » sous la fenêtre, dans l'accent du client — ouvre la fenêtre plein écran */
.cslide__cta {
  font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: clamp(1.05rem, 2.6vw, 1.5rem); color: var(--accent, var(--cobalt-hi));
  background: none; border: 0; padding: .25rem .4rem; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: text-decoration-color .25s ease, transform .2s ease, opacity .2s ease;
}
.cslide__cta:hover { transform: translateY(-1px); text-decoration-color: currentColor; }
.cslide__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.cslider__viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.cslider__viewport.is-grabbing { cursor: grabbing; }
.cslider__track { display: flex; height: 100%; will-change: transform; }
.cslider__track.is-anim { transition: transform .8s cubic-bezier(.7, 0, .2, 1); }
/* Petit cisaillement pendant le swipe (effet « swipe-slider ») */
.cslider__track.anim-next .cslide { animation: cSkewNext .8s cubic-bezier(.7, 0, .2, 1); }
.cslider__track.anim-prev .cslide { animation: cSkewPrev .8s cubic-bezier(.7, 0, .2, 1); }
@keyframes cSkewNext { 0%,100% { transform: skewX(0); } 32% { transform: skewX(-5deg); } }
@keyframes cSkewPrev { 0%,100% { transform: skewX(0); } 32% { transform: skewX(5deg); } }

.cslide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.cslide__bg {
  position: absolute; inset: -7%;
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.7, 0, .2, 1); will-change: transform;
}
.cslide__bg--empty { background: radial-gradient(120% 120% at 50% 25%, #23232f 0%, #12121a 65%); }
.cslide__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,20,.45) 0%, rgba(13,13,20,.22) 38%, rgba(13,13,20,.7) 100%);
}
.cslide__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: clamp(.85rem, 2.2vh, 1.35rem);
  padding: clamp(5rem, 10vh, 6.5rem) var(--gutter) clamp(3rem, 6vh, 4.5rem);
}

/* La fenêtre centrée */
.cframe {
  width: min(980px, 92vw); height: min(52vh, 560px);
  background: #0f0f16; border: 1px solid var(--border-strong); border-radius: 14px;
  overflow: hidden; box-shadow: 0 40px 90px -34px rgba(0,0,0,.9);
  display: flex; flex-direction: column;
}
.cframe[data-site] { cursor: pointer; transition: transform .25s ease, box-shadow .3s ease; }
.cframe[data-site]:hover { transform: translateY(-4px); box-shadow: 0 50px 100px -34px rgba(0,0,0,.95); }
.cframe__bar { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; background: #17171f; border-bottom: 1px solid var(--border); }
.cframe__dots { display: inline-flex; gap: 6px; flex: none; }
.cframe__dots i { width: 10px; height: 10px; border-radius: 50%; }
.cframe__dots i:nth-child(1) { background: #ff5f57; }
.cframe__dots i:nth-child(2) { background: #febc2e; }
.cframe__dots i:nth-child(3) { background: #28c840; }
.cframe__addr {
  flex: 1; font-size: .82rem; color: var(--ash);
  background: #0f0f16; border: 1px solid var(--border); border-radius: 7px;
  padding: .3rem .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cframe__expand { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ash); border-radius: 7px; }
.cframe[data-site]:hover .cframe__expand { color: var(--ivory); }
.cframe__body { position: relative; flex: 1; background: #fff; overflow: hidden; }
.cframe__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; pointer-events: none; }
.cframe--empty { background: rgba(18,18,26,.55); border-style: dashed; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cframe__body--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: transparent; }
.cframe__plus { font-size: 2.6rem; line-height: 1; color: var(--border-strong); }
.cframe__empty-text { color: var(--ash); }

.cslide__label { text-align: center; display: flex; flex-direction: column; gap: .25rem; }
.cslide__name { font-size: clamp(1.3rem, 3.6vw, 1.9rem); font-weight: 480; letter-spacing: -.01em; color: var(--ivory); }
.cslide__meta { color: var(--ash); font-size: .95rem; }

/* Contrôles */
.cslider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(18,18,26,.5); border: 1px solid var(--border-strong); color: var(--ivory);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.cslider__arrow:hover { background: rgba(30,30,42,.85); }
.cslider__arrow--prev { left: clamp(.75rem, 2vw, 1.5rem); }
.cslider__arrow--next { right: clamp(.75rem, 2vw, 1.5rem); }
/* Wiggle périodique + teinte bleue pour attirer l'œil vers le swipe */
/* Teinte du clignotement = accent de la slide active (piloté par JS via --wiggle-accent) */
.cslider__arrow.is-wiggle {
  color: var(--wiggle-accent, var(--cobalt-hi));
  border-color: var(--wiggle-accent, var(--cobalt));
  background: color-mix(in srgb, var(--wiggle-accent, var(--cobalt)) 26%, transparent);
}
.cslider__arrow--next.is-wiggle { animation: cWiggleNext .7s ease; }
.cslider__arrow--prev.is-wiggle { animation: cWigglePrev .7s ease; }
@keyframes cWiggleNext {
  0%,100% { transform: translateY(-50%) translateX(0); }
  30% { transform: translateY(-50%) translateX(9px); }
  55% { transform: translateY(-50%) translateX(1px); }
  80% { transform: translateY(-50%) translateX(6px); }
}
@keyframes cWigglePrev {
  0%,100% { transform: translateY(-50%) translateX(0); }
  30% { transform: translateY(-50%) translateX(-9px); }
  55% { transform: translateY(-50%) translateX(-1px); }
  80% { transform: translateY(-50%) translateX(-6px); }
}
.cslider__dots {
  position: absolute; z-index: 6; bottom: clamp(.5rem, 2.5vh, 1.25rem); left: 50%; transform: translateX(-50%);
  display: flex; gap: .1rem;
}
/* Bouton = grande cible tactile (44px), point visible = petit via ::before */
.cslider__dot { width: 44px; height: 44px; padding: 0; background: transparent; border-radius: 50%; position: relative; }
.cslider__dot::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: rgba(255,255,255,.35); transition: background-color .2s ease, transform .2s ease;
}
.cslider__dot.is-active::before { background: var(--ivory); transform: scale(1.35); }

@media (max-width: 640px) {
  .cslider__arrow { width: 48px; height: 48px; }
  .cframe { height: min(50vh, 480px); }
}

body.modal-open { overflow: hidden; }
.sitemodal { position: fixed; inset: 0; z-index: 200; display: flex; padding: clamp(.75rem, 3vw, 2rem); }
.sitemodal[hidden] { display: none; }
.sitemodal__backdrop { position: absolute; inset: 0; background: rgba(10,10,16,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: modalFade .25s ease; }
.sitemodal__window {
  position: relative; margin: auto; width: 100%; max-width: 1500px; height: min(94vh, 1080px);
  display: flex; flex-direction: column;
  background: #0f0f16; border: 1px solid var(--border-strong);
  border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  animation: modalPop .28s cubic-bezier(.2,.7,.2,1);
}
/* Contrôles flottants (plus de barre façon navigateur Mac) */
.sitemodal__controls {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; align-items: center; gap: .3rem; padding: 5px;
  border-radius: var(--r-pill); background: rgba(15,15,22,.7);
  border: 1px solid var(--border-strong); box-shadow: 0 6px 20px -8px rgba(0,0,0,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sitemodal__ext {
  display: inline-flex; align-items: center; gap: .35rem; flex: none;
  font-size: .82rem; color: var(--ivory); border-radius: var(--r-pill);
  padding: .4rem .8rem; transition: background-color .2s ease;
}
.sitemodal__ext:hover { background: rgba(255,255,255,.08); }
.sitemodal__close {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--ivory); border-radius: 50%; transition: background-color .2s ease;
}
.sitemodal__close:hover { background: rgba(255,255,255,.1); }
.sitemodal__body { position: relative; flex: 1; background: #fff; }
.sitemodal__frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.sitemodal__loading {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  color: var(--ash); background: #0f0f16; font-size: .95rem;
}
.sitemodal__loading[hidden] { display: none; }
.sitemodal__spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--cobalt);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sitemodal__fallback { text-align: center; padding: 2rem; color: var(--ash); max-width: 30rem; }
.sitemodal__fallback .btn { margin-top: 1.25rem; }

/* =====================================================================
   L'ENJEU — chemin animé à waypoints (GSAP ScrollTrigger)
   ===================================================================== */
.enjeu {
  display: grid; grid-template-columns: 54px 1fr;
  gap: clamp(1rem, 4vw, 2rem); margin-block: clamp(2.5rem, 7vw, 4rem);
}
.enjeu__rail { position: relative; }
.enjeu__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.enjeu__track, .enjeu__draw { fill: none; vector-effect: non-scaling-stroke; }
.enjeu__track { stroke: var(--border-strong); stroke-width: 2; }
.enjeu__draw { stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.enjeu__dot {
  position: absolute; top: 0; left: 0; width: 16px; height: 16px;
  margin: -8px 0 0 -8px; border-radius: 50%; background: var(--cobalt);
  box-shadow: 0 0 0 5px rgba(82,102,235,.18), 0 0 16px rgba(82,102,235,.6);
}
.enjeu__steps { display: flex; flex-direction: column; gap: clamp(2.5rem, 9vh, 5.5rem); padding-block: 1.5rem; }
.enjeu__step { display: flex; gap: 1rem; align-items: flex-start; }
.enjeu__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 530; font-size: .95rem;
  color: var(--cobalt); background: rgba(82,102,235,.12); border: 1px solid rgba(82,102,235,.35);
}
.enjeu__title { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 480; letter-spacing: -.01em; }
.enjeu__text { color: var(--ash); margin-top: .5rem; max-width: 34rem; }
@media (min-width: 700px) { .enjeu { grid-template-columns: 110px 1fr; } }

/* =====================================================================
   L'OFFRE — pile de cartes (card stack, GSAP ScrollTrigger)
   ===================================================================== */
.offre__grid { display: grid; gap: clamp(1.75rem, 5vw, 2.5rem); }
.offre__center { order: -1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.offre__center .section__title { margin-top: .75rem; }
.offre__center .section__lead { margin-inline: auto; }
.offre__center .btn { margin-top: 1.75rem; }
.ostack__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); text-align: center; margin-bottom: 1rem; }
.ostack__cards { display: flex; flex-direction: column; gap: 1rem; }
.ostack__card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(1.35rem, 4vw, 1.75rem); }
.ostack__card--photo { padding: 0; overflow: hidden; min-height: 260px; }
.ostack__num, .ostack__ico {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-weight: 530; color: var(--cobalt); margin-bottom: .9rem;
  background: rgba(82,102,235,.12); border: 1px solid rgba(82,102,235,.35);
}
.offre__logo {
  width: clamp(100px, 20vw, 220px); height: auto;
  margin-bottom: clamp(.75rem, 2vw, 1.25rem);
  will-change: transform;
}
@media (min-width: 900px) {
  .offre__logo { width: clamp(200px, 26vw, 360px); margin-top: -24rem; margin-bottom: 0; }
}
.ostack__title { font-size: 1.35rem; font-weight: 560; letter-spacing: -.01em; }
.ostack__text { color: var(--ivory); margin-top: .55rem; font-size: 1.05rem; line-height: 1.55; }

/* CTA de L'offre — « border trace » du design Origin (motion : borderTurn) :
   un trait de 1px trace le tour du bouton, un seul point lumineux qui circule.
   Sobre et précis (pas de gros halo) — juste une légère lueur sur le point. */
@property --offre-halo {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.offre__center .btn--lg { position: relative; isolation: isolate; }
.offre__center .btn--lg::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  z-index: 2; pointer-events: none;
  padding: 1px;                       /* épaisseur du trait */
  background: conic-gradient(from var(--offre-halo),
    rgba(255, 255, 255, 0)   0deg,
    rgba(255, 255, 255, 0)   312deg,
    rgba(255, 255, 255, .95) 350deg,
    rgba(255, 255, 255, 0)   360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .55));
  animation: offreHalo 2.5s linear infinite;
}
@keyframes offreHalo { to { --offre-halo: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .offre__center .btn--lg::after { animation: none; }
}

@media (min-width: 900px) {
  .offre { padding-block: 0; }   /* le bloc épinglé (100vh) gère l'espacement + le centrage */
  .offre__pin { min-height: 100vh; display: flex; align-items: center; }
  .offre__grid {
    grid-template-columns: 1fr minmax(280px, 380px) 1fr;
    grid-template-areas: "left center right";
    align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  }
  .ostack--left { grid-area: left; }
  .offre__center { grid-area: center; }
  .ostack--right { grid-area: right; }
  .ostack__cards { position: relative; height: 400px; }
  .ostack__card {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    box-shadow: 0 24px 50px -30px rgba(0,0,0,.5); will-change: transform;
  }
  .ostack__card--photo { padding: 0; overflow: hidden; }
  .ostack__card--photo img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { padding-block: clamp(2.5rem, 6vw, 4rem); }
.faq__wrap { max-width: 960px; margin-inline: auto; }
.faq .section__title { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.faq__list { display: grid; gap: 0; }
.faq__item {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(1rem, 2.5vw, 1.35rem);
}
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  cursor: pointer; font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.15rem);
  list-style: none; display: flex; align-items: center; gap: .75rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "+"; flex-shrink: 0;
  width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(82,102,235,.35);
  font-size: 1.15rem; font-weight: 300; color: var(--cobalt);
  transition: transform .3s ease;
}
.faq__item[open] .faq__q::before { transform: rotate(45deg); }
.faq__a {
  color: var(--ash); font-size: .95rem; line-height: 1.6;
  margin-top: .75rem; padding-left: calc(28px + .75rem);
}
@media (min-width: 700px) {
  .faq__list { grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 4vw, 3rem); }
  .faq__item:nth-child(2) { border-top: 1px solid var(--border); }
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact__grid { display: grid; gap: clamp(2rem, 6vw, 4rem); grid-template-columns: 1fr; }
.contact__facts { margin-top: 1.75rem; display: grid; gap: .65rem; }
.contact__facts li { color: var(--ash); padding-left: 1.1rem; position: relative; }
.contact__facts li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--cobalt); }
.contact__facts strong { color: var(--ivory); font-weight: 480; }

.contact__form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: clamp(1.5rem, 5vw, 2rem);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.field label { font-size: .9rem; color: var(--ash); font-weight: 480; }
.field .opt { color: var(--border-strong); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ivory);
  background: var(--canvas); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: .8rem .95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; border-radius: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #6a6a78; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(82,102,235,.22); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: .85rem; color: var(--ash); margin-top: .25rem; }
.form__note.is-error { color: #ff8a8a; }
.form__note.is-success { color: #86e0a5; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.footer__inner { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.footer__brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 530; font-size: 1.05rem; }
.footer__meta, .footer__copy { color: var(--ash); font-size: .9rem; }
.footer__legal { color: var(--ash); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.footer__legal:hover { color: var(--ivory); }

/* =====================================================================
   REVEAL (animations d'apparition)
   ===================================================================== */
/* Masqué uniquement quand JS est actif — sinon le contenu reste visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }

/* =====================================================================
   BREAKPOINTS
   ===================================================================== */
@media (min-width: 700px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--clients { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__menu { display: none !important; }
  .contact__grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .contact__intro { position: sticky; top: 6rem; }
}

/* =====================================================================
   PREFERS-REDUCED-MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__cue-line { animation: none; }
  .btn:hover { transform: none; }
  .hero { height: 100svh; }
  .hero__pin { position: relative; }
  .hero__intro { opacity: 1 !important; }
  .hero__fade { opacity: .5 !important; }
}
