/* XPERT-ROBOT V5 — coque du site. Une seule police (Archivo variable, auto-hébergée),
   un seul accent (ambre industriel), une seule grammaire de mouvement (fondu + 16px). */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-var.woff2') format('woff2-variations'),
       url('fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0C11;
  --s1: #12151C;
  --s2: #1A1E27;
  --fg: #F2F0EA;
  --fg2: #A9ADB7;
  --amber: #FFB020;
  --orange: #FF6A00;
  --grad: linear-gradient(100deg, #FFB020, #FF6A00);
  --line: rgba(242, 240, 234, .08);
  --line-strong: rgba(242, 240, 234, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --radius: 6px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-stretch: 75%; font-weight: 700; line-height: 1.04; letter-spacing: -.015em; margin: 0; }
/* Un titre coupe « Toutes les marques, / une seule equipe. » se lit ; le meme
   titre avec un mot seul sur la 2e ligne se subit. `balance` repartit les
   lignes d'un titre court, `pretty` empeche la veuve en fin de paragraphe. */
h1, h2, h3, h4, .interlude__quote { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
/* iOS : pas de flash gris a l'appui (on a deja notre propre reponse a l'appui),
   et pas de temporisation de 300 ms sur le tap. */
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-stretch: 85%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 176, 32, .35); color: var(--fg); }
[id] { scroll-margin-top: var(--hdr); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phone-link { display: inline-flex; align-items: center; gap: .5em; color: var(--fg2); text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; transition: color .3s; }
.phone-link:hover { color: var(--amber); }
.phone-link .ico { width: 1.05em; height: 1.05em; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--bg); font-weight: 600; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Toile 3D (module) ---------- */
#stage3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }

/* ---------- Éléments partagés ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--amber); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--amber); flex: none; }
.lede { color: var(--fg2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; max-width: 62ch; }
.section { padding: clamp(88px, 11vw, 160px) 0; }
.section--solid { background: var(--bg); position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg), #0C0F15 30%, #0C0F15 70%, var(--bg)); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section__head h2 { margin-bottom: 20px; max-width: 18ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn--sm { min-height: 44px; padding: 0 1.2rem; font-size: .9rem; }
/* Ambre plein, sans dégradé ni halo : le bouton dégradé qui rayonne est la
   signature des pages d'accueil de gabarit. Ici l'ambre suffit à désigner
   l'action, il n'a pas besoin de briller pour ça. */
.btn--primary { background: var(--amber); color: var(--bg); }
.btn--primary:hover { background: #FFC24D; }
/* Bouton secondaire : un matériau translucide, pas une boîte vide. */
.btn--ghost { color: var(--fg); border-color: var(--line-strong); background: rgba(18, 21, 28, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: rgba(26, 30, 39, .72); }
/* Réponse à l'appui : immédiate (le .5s du survol est trop lent pour un clic). */
.btn:active, .nav-toggle:active, .slider__btn:active, .site-nav__list a:active {
  transform: scale(.975); transition-duration: .09s;
}
.btn .ico { transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 176, 32, .35); background: rgba(255, 176, 32, .08); color: var(--amber); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); flex: none; }

.card__list { list-style: none; display: grid; gap: 8px; margin-top: 18px; color: var(--fg2); font-size: .95rem; }
.card__list li { position: relative; padding-left: 20px; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--amber); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; background: var(--s1); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); background: rgba(255, 176, 32, .05); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-stretch: 80%; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
tbody td { color: var(--fg2); }
tbody tr { transition: background-color .3s; }
tbody tr:hover { background: rgba(255, 176, 32, .04); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--hdr);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s;
}
.scrolled .site-header { background: rgba(10, 12, 17, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-color: var(--line); }
/* Menu ouvert : pas de backdrop-filter (il ferait du header le bloc conteneur du panneau fixed). */
.scrolled .site-header.is-open, .site-header.is-open { background: rgba(10, 12, 17, .97); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 42px; width: auto; filter: url(#logo-dark); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; list-style: none; gap: 4px; }
.site-nav__list a { display: inline-block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--fg); transition: color .3s, background-color .3s; }
.site-nav__list a:hover { color: var(--amber); background: rgba(255, 176, 32, .07); }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(18, 21, 28, .6); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1360px) {
  }

/* ---------- Hero (transparent) ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--hdr)); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
/* Voile de lisibilité côté texte (invisible sur le rendu 3D sombre, utile sur l'image de repli). */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10, 12, 17, .88) 0%, rgba(10, 12, 17, .55) 42%, rgba(10, 12, 17, 0) 68%); }
.hero > * { position: relative; z-index: 1; }
.hero__in { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; padding-top: calc(var(--hdr) + 24px); padding-bottom: 96px; }
.hero__copy { max-width: 620px; }
.hero__title {
  margin: 26px 0 22px; max-width: 11ch;
  font-size: clamp(2.9rem, 1.6rem + 6.4vw, 6.4rem); line-height: .97; letter-spacing: -.025em;
  background: linear-gradient(108deg, #F2F0EA 0%, #FFB020 52%, #FF6A00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.hero__lede { color: var(--fg2); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__brands { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg2); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fg2); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: opacity .5s var(--ease), color .3s; }
.hero__scroll:hover { color: var(--amber); }
.hero__scroll .ico { animation: nudge 2.2s var(--ease) infinite; }
.hero__scroll { transition: opacity .5s, visibility 0s; }
.scrolled .hero__scroll { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility 0s .5s; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Scène robot (transparent, sticky) ---------- */
.stage { position: relative; height: 200vh; }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__in { height: 100%; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-content: start; gap: 24px; padding-top: calc(var(--hdr) + 20px); padding-bottom: 32px; }
.stage__head { grid-column: 1; max-width: 520px; }
.stage__head h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); max-width: 16ch; }
.stage__hint { margin-top: 12px; color: var(--fg2); font-size: .92rem; }
.legends { grid-column: 1; list-style: none; display: grid; gap: 6px; max-width: 480px; margin-top: 8px; }
.legend { display: grid; grid-template-columns: 2.3rem 1fr; gap: 10px; align-items: start; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .35s, background-color .35s; }
.js .legend { opacity: 0; transform: translateY(16px); }
.js .legend.is-shown { opacity: 1; transform: none; }
.legend.is-focus { border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .07); }
.legend__num { font-stretch: 75%; font-weight: 700; font-size: 1.05rem; line-height: 1.5; color: var(--amber); }
.legend h3 { font-size: 1rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.legend p { color: var(--fg2); font-size: .86rem; line-height: 1.4; margin-top: 1px; }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.stage-progress__bar { height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left center; }
@media (max-height: 760px) and (min-width: 900px) {
  .stage__in { padding-top: calc(var(--hdr) + 8px); }
  .stage__head h2 { font-size: clamp(1.6rem, 2vw, 2.2rem); }
  .stage__hint { display: none; }
  .legend { padding: 5px 10px; }
  .legend p { font-size: .8rem; }
}

/* ---------- Prestations ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--s1); border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease), background-color .4s; }
.card:hover { border-color: rgba(255, 176, 32, .4); background: var(--s2); transform: translateY(-3px); }
.card h3 { margin: 18px 0 10px; }
.card > p, .card__body > p { color: var(--fg2); }
.card--wide { grid-column: span 2; }
.card--photo { padding: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; }
.card__body { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.card__body .btn { margin-top: 22px; }
.card > .btn { margin-top: 22px; align-self: flex-start; }
.card__media { position: relative; min-height: 240px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--s1), transparent 35%); pointer-events: none; }
/* Le carre ambre a icone en haut de chaque carte est LA signature des pages
   d'accueil de gabarit — c'est le premier detail qui fait dire « genere ».
   Retire (10/09). A la place, un numero, la meme grammaire que le 01 / 02 / 03
   des zones d'intervention : ca vient de nous, pas d'une bibliotheque d'icones. */
.card__icon { display: none; }
#prestations .cards { counter-reset: presta; }
#prestations .card h3 { margin-top: 0; }
#prestations .card h3::before {
  counter-increment: presta;
  content: counter(presta, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  color: var(--amber); font-stretch: 100%; font-weight: 600;
  font-size: .72rem; letter-spacing: .18em;
}

/* ---------- Marques ---------- */
/* ---------- Les armoires ----------
   Momo, 10/09 : « on doit parler des armoires, un paragraphe avec plusieurs
   photos d'armoires ». Les rendus constructeurs sont detoures (fond blanc
   retire au remplissage depuis les bords, pas au seuil global — sinon les faces
   claires de la tole partaient avec) et poses a meme le fond nuit : une vignette
   sur fond blanc aurait fait catalogue de pieces au milieu d'une page sombre. */
.armoires { margin-top: clamp(48px, 7vw, 80px); }
.armoires__texte { color: var(--fg2); font-size: clamp(1rem, .97rem + .2vw, 1.1rem); line-height: 1.65; max-width: 62ch; }
.armoires__strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(28px, 4vw, 44px); }
.armoire { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.armoire img { width: 100%; height: auto; object-fit: contain; }
.armoire__nom { color: var(--fg2); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.armoire__nom b { color: var(--fg); font-weight: 700; }
.armoires__credit { margin-top: 18px; color: var(--fg2); font-size: .74rem; letter-spacing: .04em; opacity: .75; }

/* Trois colonnes, pas cinq : depuis que la carte porte ses armoires ET ses
   modeles (le tableau qui repetait l'information a ete supprime le 10/09),
   cinq colonnes coupaient « R-30iB Plus » en deux. */
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin-bottom: 24px; }
.brand__specs { display: grid; gap: 10px; margin-top: 16px; }
.brand__specs > div { display: grid; grid-template-columns: 8.6ch minmax(0, 1fr); gap: 12px; align-items: baseline; }
.brand__specs dt { color: var(--amber); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; }
.brand__specs dd { margin: 0; color: var(--fg2); font-size: .92rem; }
.brand { display: flex; flex-direction: column; gap: 6px; padding: 28px 22px; border-radius: 6px; background: var(--s1); border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease); }
.brand:hover { border-color: rgba(255, 176, 32, .4); transform: translateY(-3px); }
.brand__name { font-stretch: 75%; font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: .01em; line-height: 1; }
.brand__sub { color: var(--fg2); font-size: .85rem; letter-spacing: .04em; }
.brands__more { margin-top: 22px; color: var(--fg); font-stretch: 80%; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.brands__more span { color: var(--fg2); font-stretch: 100%; font-weight: 400; font-size: .95rem; letter-spacing: 0; margin-left: 8px; }

/* Clients — logos réels, grille statique. Pas de marquee : 8 noms se lisent d'un coup,
   et un défilement laisserait croire qu'on en cache le manque. */
.clients__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(30px, 5vw, 62px) clamp(34px, 6vw, 88px); max-width: 940px; list-style: none; padding: clamp(16px, 2.5vw, 32px) 0; }
.clients__grid li { flex: 0 0 auto; }
.clients__grid img { display: block; width: clamp(120px, 13vw, 168px); height: auto; filter: grayscale(1) brightness(1.9); opacity: .78; transition: opacity .4s var(--ease); }
.clients__grid li:hover img { opacity: 1; }
/* ...sauf sur téléphone, où les 8 logos tombent en quatre rangées : une ligne qui
   défile se lit mieux qu'un empilement. Le rail n'existe qu'en dessous de 640px. */
.clients__rail { overflow: hidden; }
@media (max-width: 640px) {
  .clients__rail {
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .clients__grid.is-marquee {
    flex-wrap: nowrap; width: max-content; max-width: none;
    gap: 0 44px; padding-left: 22px; padding-right: 22px;
    animation: clients-marquee 34s linear infinite;
  }
  .clients__grid.is-marquee img { width: 132px; }
}
@keyframes clients-marquee { to { transform: translateX(-50%); } }

/* ---------- Méthode (slider) ---------- */
.method-slider { position: relative; }
.slider__viewport { overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: var(--s1); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slider__track { display: flex; transition: transform .85s var(--ease); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.slide__body { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.slide__num { font-stretch: 75%; font-weight: 700; font-size: clamp(4.5rem, 3rem + 7vw, 9rem); line-height: .85; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; margin-bottom: 18px; }
.slide__body h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-bottom: 14px; }
.slide__body > p { color: var(--fg2); max-width: 46ch; }
.slide__media { position: relative; min-height: 260px; }
.slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; /* sinon le drag natif de l'image avale le swipe souris */ }
.slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--s1), transparent 30%); pointer-events: none; }
.slide__body > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide:not(.is-active) .slide__body > * { opacity: 0; transform: translateY(16px); }
.slide.is-active .slide__body > :nth-child(1) { transition-delay: 150ms; }
.slide.is-active .slide__body > :nth-child(2) { transition-delay: 230ms; }
.slide.is-active .slide__body > :nth-child(3) { transition-delay: 310ms; }
.slide.is-active .slide__body > :nth-child(4) { transition-delay: 390ms; }
.slider__bar { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.slider__btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--s1); cursor: pointer; transition: border-color .3s, color .3s, transform .5s var(--ease); }
.slider__btn:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.slider__counter { min-width: 6ch; text-align: center; font-stretch: 75%; font-weight: 700; font-size: 1.5rem; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.slider__dots { display: flex; margin-left: auto; }
.slider__dot { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
/* largeur fixe, on anime l echelle : pas de recalcul de mise en page */
.slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 8px; border-radius: 999px; background: var(--fg2); transform: translate(-50%, -50%) scaleX(.286); transition: transform .5s var(--ease), background-color .3s; }
.slider__dot[aria-current="true"]::before { transform: translate(-50%, -50%) scaleX(1); background: var(--amber); }
.slider__dot:hover::before { background: var(--amber); }

/* ---------- Intermède ---------- */
.interlude { position: relative; height: clamp(340px, 62vh, 680px); overflow: hidden; background: var(--bg); }
.interlude img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 17, .85), rgba(10, 12, 17, .15) 35%, rgba(10, 12, 17, .25) 65%, rgba(10, 12, 17, .9)); pointer-events: none; }
.interlude__quote { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(36px, 9vh, 88px); padding: 0 var(--gutter); text-align: center; font-stretch: 75%; font-weight: 700; font-size: clamp(1.7rem, 1rem + 3vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(10, 12, 17, .8); }

/* ---------- Rapport ---------- */
.report { max-width: 980px; margin: 0 auto; border-radius: 6px; border: 1px solid var(--line); background: var(--s1); overflow: hidden; }
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; padding: 30px 34px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 176, 32, .09), transparent 55%); }
.report__id { display: flex; flex-direction: column; gap: 4px; }
.report__label { color: var(--amber); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.report__id strong { font-stretch: 75%; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.05; }
.report__meta { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; }
.report__meta div { display: flex; flex-direction: column; gap: 2px; }
.report__meta dt { color: var(--fg2); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.report__meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.report .table-wrap { border: 0; border-radius: 0; background: transparent; }
.report__table tbody th { font-stretch: 100%; font-weight: 600; font-size: 1rem; }
.chip { display: inline-block; padding: 5px 11px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--fg); font-size: .85rem; white-space: nowrap; }
.chip--done { border-color: rgba(242, 240, 234, .35); }
.chip--warn { border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .1); color: var(--amber); }
.report__sub { margin: 0 0 12px; color: var(--fg2); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.report__volets { padding: 24px 34px; border-bottom: 1px solid var(--line); }
.report__volets ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.report__volets li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg2); font-size: .84rem; }
/* coche = volet realise ; le contour ambre suffit, pas de remplissage */
.report__volets li.is-on { border-color: rgba(255, 176, 32, .45); color: var(--fg); }
.report__volets li.is-on::before { content: "✓"; margin-right: 7px; color: var(--amber); }
.report__jeu { padding: 24px 34px; border-top: 1px solid var(--line); }
.jeu { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.jeu li { padding: 6px 14px; border-radius: 3px; font-size: .84rem; font-weight: 600; }
.jeu--ok { background: rgba(74, 168, 96, .18); color: #7BD79A; }
.jeu--mid { background: rgba(255, 176, 32, .16); color: var(--amber); }
.jeu--bad { background: rgba(255, 106, 0, .18); color: #FF9052; }
.jeu--out { background: rgba(242, 240, 234, .07); color: var(--fg2); }
.report__suite { margin-top: 16px; color: var(--fg2); font-size: .88rem; line-height: 1.6; max-width: 70ch; }
.report__jeu .report__label, .report__volets .report__label { margin-bottom: 12px; }
.report__notice { padding: 16px 34px; border-top: 1px solid var(--line); color: var(--fg2); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact__copy h2 { margin-bottom: 20px; }
.contact__mail { display: inline-block; margin: 34px 0 30px; font-stretch: 75%; font-weight: 700; font-size: clamp(1.6rem, .8rem + 3.6vw, 3.6rem); line-height: 1; letter-spacing: -.01em; color: var(--amber); text-decoration: none; overflow-wrap: anywhere; border-bottom: 2px solid rgba(255, 176, 32, .35); padding-bottom: 6px; transition: border-color .3s, color .3s; }
.contact__mail:hover { border-color: var(--amber); color: var(--fg); }
.contact__phone { margin: -16px 0 28px; }
.contact__note { color: var(--fg2); max-width: 52ch; }
.contact__card { padding: clamp(26px, 3.5vw, 44px); border-radius: 24px; border: 1px solid var(--line); background: var(--s1); }
.contact__card .eyebrow { margin-bottom: 26px; }
.contact__list { list-style: none; display: grid; gap: 0; counter-reset: step; margin-bottom: 30px; }
.contact__list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 6px 12px; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: step; }
.contact__list li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-stretch: 75%; font-weight: 700; font-size: 1.15rem; color: var(--amber); line-height: 1.4; }
.contact__list strong { font-weight: 600; }
.contact__list span { grid-column: 2; color: var(--fg2); font-size: .92rem; line-height: 1.45; }
.contact__card .btn { width: 100%; white-space: normal; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; background: #07080C; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 36px; color: var(--fg2); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin: 18px 0 14px; max-width: 40ch; }
.footer__mail { color: var(--amber); text-decoration: none; font-weight: 600; }
.footer__mail:hover { text-decoration: underline; }
.footer__col h3 { color: var(--fg); font-size: .8rem; font-stretch: 100%; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: var(--fg2); transition: color .3s; }
.footer__col a:hover { color: var(--amber); }
.footer__legal { padding-top: 28px; display: grid; gap: 12px; font-size: .84rem; line-height: 1.6; }
.footer__legal a { color: var(--fg); }
.footer__bsd { max-width: 96ch; }

/* ---------- Apparitions au scroll (une seule grammaire) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Pages licence-bsd.php / mentions-legales.php ---------- */
.plate { width: min(100% - 2 * var(--gutter), 860px); margin: 0 auto; padding: clamp(56px, 8vw, 120px) 0; }
.plate__title { margin-bottom: 32px; display: grid; gap: 14px; }
.plate h3 { margin: 40px 0 14px; font-stretch: 100%; }
.plate p, .plate li { color: var(--fg2); line-height: 1.7; max-width: 70ch; }
.plate ul { margin: 14px 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.plate ul li { padding-left: 1.2em; position: relative; }
.plate ul li::before { content: "—"; position: absolute; left: 0; color: var(--amber); }
.licence { margin: 0; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--s1); color: var(--fg2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .armoires__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 899px) {
  :root { --hdr: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 24px var(--gutter) 40px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.35rem; font-stretch: 85%; font-weight: 600; }
  .site-nav__cta { align-self: flex-start; }
      .logo img { height: 36px; }

  /* minmax(0, …) et non 1fr : « 1fr » vaut minmax(auto, 1fr), donc la colonne ne
     peut pas passer sous la largeur naturelle du marquee (nowrap). Elle gonflait
     à 620 px sur un écran de 390 et Safari dézoomait toute la page. */
  .hero__in { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: calc(var(--hdr) + 28px); padding-bottom: 120px; }
  .hero__copy { position: relative; }
  .hero__copy::before { content: ""; position: absolute; inset: -32px -24px -24px; z-index: -1; background: radial-gradient(ellipse at 30% 30%, rgba(10, 12, 17, .8), rgba(10, 12, 17, 0) 70%); pointer-events: none; }
  .hero__brands { margin-top: 32px; }

  .stage__in { grid-template-columns: 1fr; align-content: space-between; padding-top: calc(var(--hdr) + 16px); padding-bottom: 28px; }
  .stage__head h2 { max-width: 14ch; }
  .legends { max-width: none; position: relative; min-height: 90px; margin-top: 0; }
  .js .legend { position: absolute; left: 0; right: 0; bottom: 0; visibility: hidden; background: rgba(18, 21, 28, .88); border-color: var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 12px 14px; }
  .js .legend.is-focus { visibility: visible; opacity: 1; transform: none; border-color: rgba(255, 176, 32, .5); }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__in { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .slide__media { order: -1; min-height: 220px; height: 220px; }
  .slide__media::after { background: linear-gradient(180deg, transparent 50%, var(--s1)); }
  .slider__counter { font-size: 1.25rem; }
}
@media (max-width: 899px) {
  /* Cibles tactiles. Mesure au telephone : les liens du pied de page faisaient
     16 px de haut, les liens mail 16 a 35 px — sous les 44 px tenables au
     pouce. On agrandit la zone d'appui, pas le texte. */
  .footer__col ul { gap: 0; }
  .footer__col a { display: flex; align-items: center; min-height: 44px; }
  .footer__mail, .contact__mail, .phone-link { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__legal a { display: inline-block; padding: 4px 0; }
}
/* ---------- Le rapport d'intervention sur telephone ----------
   Trois colonnes techniques dans 390 px, c'etait un tableau qu'il fallait
   pousser du doigt sur le cote — et rien ne disait qu'il y avait autre chose a
   droite. Chaque ligne devient une fiche : le point controle en titre, le
   constat et l'action sous leur intitule (`data-l` dans le HTML). */
@media (max-width: 640px) {
  .table-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .report__table { display: block; min-width: 0; }
  .report__table thead { display: none; }
  .report__table tbody,
  .report__table tr,
  .report__table th,
  .report__table td { display: block; }
  .report__table tr {
    border: 1px solid var(--line); border-radius: 6px; background: var(--s1);
    padding: 14px 16px; margin-bottom: 8px;
  }
  .report__table tr:hover { background: var(--s1); }
  .report__table tbody th {
    border: 0; padding: 0 0 6px; font-size: 1.1rem;
  }
  /* Intitule a gauche, valeur a droite, sur la meme ligne : en pleine hauteur
     chaque ligne prenait 600 px et la section devenait un couloir. */
  .report__table td {
    border: 0; padding: 7px 0 0;
    display: grid; grid-template-columns: 8.6ch minmax(0, 1fr); gap: 12px; align-items: baseline;
  }
  .report__table td::before {
    content: attr(data-l);
    color: var(--amber); font-size: .68rem; font-weight: 600; line-height: 1.7;
    letter-spacing: .1em; text-transform: uppercase;
  }
  .report .table-wrap { padding: 0 22px 8px; }
  /* Les cinq pastilles de marques repetent mot pour mot les deux premieres
     colonnes du tableau. Sur grand ecran c'est une bande visuelle a cote d'un
     tableau compact ; empile sur telephone, c'etait la meme information deux
     fois sur 1 200 px. La fiche garde tout, y compris les modeles. */
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card, .card__body { padding: 24px; }
  .card--wide { grid-column: auto; }
  .card--photo { grid-template-columns: 1fr; }
  .card__media { order: -1; min-height: 200px; height: 200px; }
  .card__media::after { background: linear-gradient(180deg, transparent 55%, var(--s1)); }
  /* Une seule colonne : a deux, « R-30iA · R-30iB · R-30iB Plus » sortait a un
     mot par ligne. La carte porte deux lignes de specs depuis le 10/09. */
  .brands { grid-template-columns: 1fr; }
  .brand { padding: 20px 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .slider__bar { flex-wrap: wrap; }
  .slider__dots { margin-left: 0; width: 100%; justify-content: center; }
  .hero__cta .btn { width: 100%; }
  .report__head, .report__notice, .report__volets, .report__jeu { padding-left: 22px; padding-right: 22px; }
  th, td { padding: 14px 16px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .legend { opacity: 1; transform: none; }
  .legends { display: grid; }
  .slider__track { transition: none; }
  .interlude img { transform: none !important; }
  .clients__grid.is-marquee { animation: none; }
}

/* ---------- Transparence réduite ---------- */
/* Le flou devient opaque : sinon le texte passe sur le contenu qui défile dessous. */
@media (prefers-reduced-transparency: reduce) {
  .scrolled .site-header, .site-header.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn--ghost, .nav-toggle { background: var(--s1); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .legend { background: var(--s2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* petits ecrans : le badge tient sur une ligne, MITSUBISHI reste dans sa carte */
@media (max-width: 640px) {
  .pill { letter-spacing: .06em; font-size: .68rem; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1.45rem; overflow-wrap: anywhere; }
}
