/* ==========================================================================
   SCS-IT — feuille de style du site public
   Palette tiree du logo : noir, orange #F07800, chrome.
   ========================================================================== */

:root {
  --bg:          #0B0C0F;
  --bg-soft:     #121419;
  --bg-card:     #171A21;
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);

  --ink:         #F5F6F8;
  --ink-soft:    rgba(245,246,248,.68);
  --ink-faint:   rgba(245,246,248,.44);

  --accent:      #F07800;
  --accent-warm: #FF9A2E;
  --accent-ink:  #140B02;
  --chrome:      #B9BEC6;

  --radius:   14px;
  --radius-s: 10px;
  --maxw:     1180px;
  --gutter:   clamp(16px, 4vw, 40px);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* variables lues par le moteur de parcours */
  --sw-bg: var(--bg);
  --sw-ink: var(--ink);
  --sw-ink-soft: var(--ink-soft);
  --sw-accent: var(--accent);
  --sw-font-display: var(--font-display);
  --sw-font-body: var(--font-body);
}

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

/* Pas de defilement anime global : un saut d'ancre traverserait les 8 000 px
   du parcours en animation, ce qui donne l'impression que la page s'emballe. */
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}

/* --- lien d'evitement clavier ------------------------------------------ */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; font-weight: 600; border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { left: 0; }

/* ==========================================================================
   En-tete
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(11,12,15,.92), rgba(11,12,15,0));
  transition: background .3s ease, backdrop-filter .3s ease;
}
.site-header.is-stuck {
  background: rgba(11,12,15,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__logo img { height: 34px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 99px; text-decoration: none;
  font-size: .94rem; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.1); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); background: rgba(255,255,255,.04);
  color: var(--ink); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: currentColor; margin-inline: auto; transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-2px); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,12,15,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100dvh - 64px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 10px; border-radius: var(--radius-s); font-size: 1rem; }
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 0; border-radius: 99px;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 .97rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 28px rgba(240,120,0,.3); }
.btn:active { transform: none; }
.btn--ghost {
  --btn-bg: transparent; --btn-ink: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,.07); box-shadow: none; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* ==========================================================================
   Parcours (conteneur du moteur)
   ========================================================================== */
#parcours { background: var(--bg); }

.no-js-note, .fallback-note {
  max-width: 640px; margin: 0 auto; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); text-align: center;
}

/* ==========================================================================
   Sections de contenu
   ========================================================================== */
.section { padding: clamp(64px, 10vh, 128px) 0; }
.section--tight { padding: clamp(44px, 7vh, 84px) 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 56px); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }

/* --- grilles ------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* --- carte -------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.card__media { position: relative; aspect-ratio: 16/9; background: #0E1014; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .4em; }
.card__body p { color: var(--ink-soft); font-size: .96rem; }
.card__link { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; font-size: .94rem; text-decoration: none; }
.card__link::after { content: " \2192"; }
.card--link { text-decoration: none; }

/* mention image IA */
.mention-ia {
  margin: 8px 0 0; font-size: .76rem; line-height: 1.45; color: var(--ink-faint);
}
.card__media + .mention-ia { padding: 10px 22px 0; }

/* --- liste de specifications -------------------------------------------- */
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.specs li {
  position: relative; padding-left: 20px; font-size: .93rem; color: var(--ink-soft);
}
.specs li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* --- bandeau partenaires ------------------------------------------------ */
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partners span {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px;
  font-size: .85rem; color: var(--ink-soft);
}

/* --- tableau ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); font-weight: 600; background: rgba(255,255,255,.03); }
tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Nouveautes
   ========================================================================== */
.nouveaute { position: relative; }
.nouveaute__date { font-size: .82rem; color: var(--ink-faint); }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 99px;
  font: 600 .72rem/1.5 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(240,120,0,.14); color: var(--accent-warm);
}
.badge--une { background: var(--accent); color: var(--accent-ink); }

/* pop-up d'accueil */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(5,6,8,.78); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.popup-backdrop.is-open { opacity: 1; pointer-events: auto; }
.popup {
  position: relative; width: min(560px, 100%);
  max-height: min(86dvh, 760px); overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(14px) scale(.98); transition: transform .3s ease;
}
.popup-backdrop.is-open .popup { transform: none; }
.popup img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.popup__body { padding: 26px; }
.popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(11,12,15,.72); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.popup__close:hover { background: rgba(11,12,15,.95); }

/* ==========================================================================
   Formulaire
   ========================================================================== */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font: inherit; font-size: .97rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-faint); }
.form-status { margin-top: 14px; font-size: .94rem; min-height: 1.4em; }
.form-status.is-error { color: #FF8A7A; }
.form-status.is-ok { color: #6FD39A; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(48px, 7vh, 80px) 0 30px;
  font-size: .94rem;
}
.site-footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--ink-faint); font-size: .86rem;
}
.site-footer__logo img { height: 40px; margin-bottom: 16px; }

/* a completer par le client */
.todo {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 12px;
  color: var(--ink-faint); font-size: .86rem;
}

/* ==========================================================================
   Apparition au defilement
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Page interieure : banniere
   ========================================================================== */
.page-hero {
  position: relative; padding: calc(84px + clamp(40px,8vh,96px)) 0 clamp(40px,8vh,88px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90rem 40rem at 70% -20%, rgba(240,120,0,.16), transparent 60%), var(--bg);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.02rem,1.5vw,1.18rem); }

.breadcrumb { font-size: .86rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ==========================================================================
   Ajustements du moteur de parcours
   Les scenes filmees sont tres claires (lumiere du jour, murs blancs).
   Le voile par defaut du moteur ne suffit pas : on le renforce nettement,
   sinon le texte blanc devient illisible. Specificite .sw-root volontaire,
   le moteur injecte sa feuille APRES la notre.
   ========================================================================== */
.sw-root .sw-copylayer::before {
  width: min(72vw, 940px);
  background: linear-gradient(90deg,
    rgba(8,9,12,.97)  0%,
    rgba(8,9,12,.93) 26%,
    rgba(8,9,12,.74) 50%,
    rgba(8,9,12,.34) 76%,
    rgba(8,9,12,0)  100%);
}
.sw-root .sw-copy__num     { color: rgba(255,255,255,.58); }
.sw-root .sw-copy__eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.sw-root .sw-copy__title {
  color: #FFFFFF;
  text-shadow: 0 2px 30px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.55);
}
.sw-root .sw-copy__body {
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 18px rgba(0,0,0,.8);
}
.sw-root .sw-copy__tags li {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.24);
  color: #FFFFFF;
  backdrop-filter: blur(5px);
}
.sw-root .sw-btn--ghost {
  border-color: rgba(255,255,255,.4);
  color: #FFFFFF;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(5px);
}

@media (max-width: 860px) {
  .sw-root .sw-copylayer::before {
    width: 100%; height: 80%; top: auto; bottom: 0;
    background: linear-gradient(0deg,
      rgba(8,9,12,.97)  0%,
      rgba(8,9,12,.91) 28%,
      rgba(8,9,12,.58) 60%,
      rgba(8,9,12,0)  100%);
  }
}

/* Sur telephone, l'invite a defiler chevauchait les etiquettes de la premiere
   scene. On remonte le bloc de texte et on retrecit l'invite. */
@media (max-width: 860px) {
  .sw-root .sw-copy {
    bottom: calc(clamp(104px, 17dvh, 150px) + env(safe-area-inset-bottom));
  }
  .sw-root .sw-hint {
    bottom: calc(14px + env(safe-area-inset-bottom));
    font-size: .68rem; gap: 7px;
  }
  .sw-root .sw-hint i { width: 19px; height: 29px; }
}

/* Le moteur dessine son bouton principal en blanc sur --sw-ink. Comme notre
   encre EST blanche, le libelle devenait invisible. On reprend le bouton
   orange du site. */
.sw-root .sw-btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(240,120,0,.32);
}
.sw-root .sw-btn--primary:hover { filter: brightness(1.07); }

/* Une fois le parcours termine, TOUTES ses couches fixes doivent disparaitre,
   sinon elles recouvrent le contenu qui suit. Seule la piste (.sw-track) reste :
   c'est elle qui donne sa hauteur au parcours. La classe est posee par site.js. */
.sw-root > * { transition: opacity .35s ease, visibility .35s ease; }
.sw-root.sw-fini > *:not(.sw-track) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
