/* ══════════════════════════════════════════════════════════════════════
   KLS Europe — feuille de style.

   LA DIRECTION : un showroom la nuit. Le noir du logo porte le site ; le
   rouge n'est jamais une décoration, il signale (un bouton, un repère, un
   prix demandé). Trois motifs, tous tirés de la marque elle-même :

     · les TROIS POINTS du logo (rouge, acier, noir), qui ponctuent les
       repères, la pagination et le pied ;
     · la DIAGONALE des livrées de course — KLS habille une GT3 de WRT et
       sa propre Fun Cup : elle découpe les héros et penche les boutons ;
     · le PANNEAU PERFORÉ du showroom, au dos du mur des marques.

   Les jetons sont nommés par leur RÔLE (--fond, --texte, --accent),
   jamais par leur pigment. Les sections claires et sombres redéfinissent
   les MÊMES jetons : un composant s'écrit une fois.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* Les pigments, relevés AU PIXEL dans le logo. Ils n'alimentent que les
     jetons ci-dessous. Le rouge du logo (#f80000) porte mal le texte blanc
     (4,0:1) : sa version PROFONDE porte les boutons, sa version CLAIRE se
     lit sur le noir, le rouge pur ne fait que des filets. */
  --p-noir:          #0d0d0f;
  --p-encre:         #070708;
  --p-carbone:       #17171a;
  --p-studio:        #202020;   /* le fond des photos produit, relevé */
  --p-rouge:         #d4070d;   /* 5,5:1 sous du blanc */
  --p-rouge-surface: #b80509;
  --p-rouge-clair:   #ff5a5f;   /* 6,4:1 sur le noir */
  --p-rouge-vif:     #f80000;   /* le rouge du logo : filets seulement */
  --p-acier:         #8a9099;   /* le gris du « LS » */
  --p-blanc:         #ffffff;

  /* Les rôles, en clair. Fond blanc, jamais gris. */
  --fond:           var(--p-blanc);
  --fond-carte:     var(--p-blanc);
  --fond-relief:    #f3f3f4;
  --texte:          var(--p-noir);
  --texte-doux:     #464950;
  --texte-faible:   #5d6068;
  --accent:         var(--p-rouge);
  --accent-lisible: var(--p-rouge);
  --accent-texte:   var(--p-blanc);
  --lisere:         rgba(13, 13, 15, .1);
  --lisere-fort:    rgba(13, 13, 15, .22);
  --ombre:          0 1px 2px rgba(13, 13, 15, .06), 0 10px 30px rgba(13, 13, 15, .08);
  --ombre-forte:    0 2px 6px rgba(13, 13, 15, .1), 0 24px 60px rgba(13, 13, 15, .18);

  /* Rythme : héros ≈ 6rem, section ≈ 4,4rem, carte ≈ 1,5rem. */
  --t-hero:    clamp(2.6rem, 5.6vw, 6rem);
  --t-section: clamp(2.1rem, 4.2vw, 4.4rem);
  --t-carte:   clamp(1.15rem, 1.35vw, 1.4rem);
  --t-chapo:   clamp(1.05rem, 1.2vw, 1.28rem);

  --large:  1480px;
  --marge:  clamp(1.15rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 8.5vw, 9rem);
  --rayon:  6px;
  --rayon-s: 4px;
  --biais: -12deg;   /* l'angle des livrées : boutons, filets, découpes */

  /* Saira ÉLARGIE pour les titres — un lettrage large et gras, comme celui
     du logo, de la famille des numéros de course. Archivo pour le corps. */
  --titre-police: Saira, 'Arial Black', system-ui, sans-serif;
  --texte-police: Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --barre-appel: 0px;
  --entete-min: 76px;
  --haut-entete: 76px;   /* MESURÉE par script.js — jamais en min-height */
  --duree-ruban: 70s;

  /* Les alias que lisent les modules du parc (édition en ligne,
     réservation) : sans eux, ils retombent sur le cyan d'un autre site. */
  --accent-color: var(--p-rouge);
  --secondary-color: var(--p-rouge);
  --primary-color: var(--p-noir);
}

/* La variante sombre : les MÊMES jetons. */
.section--sombre, .pied, .entete, .hero, .tiroir, .appel, .erreur {
  --fond:           var(--p-noir);
  --fond-carte:     var(--p-carbone);
  --fond-relief:    #141417;
  --texte:          var(--p-blanc);
  --texte-doux:     rgba(255, 255, 255, .74);
  --texte-faible:   rgba(255, 255, 255, .58);
  --accent-lisible: var(--p-rouge-clair);
  --lisere:         rgba(255, 255, 255, .12);
  --lisere-fort:    rgba(255, 255, 255, .26);
  --ombre:          0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --ombre-forte:    0 2px 8px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
}

/* ── Les surfaces du navigateur ────────────────────────────────────── */

::selection { background: var(--p-rouge); color: #fff; }
input, textarea, [contenteditable] { caret-color: var(--p-rouge); }
.section--sombre input, .section--sombre textarea { caret-color: var(--p-rouge-clair); }
html { scrollbar-width: thin; scrollbar-color: #45474d transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3c42; border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }

/* ── Réinitialisation ──────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
  scroll-padding-top: calc(var(--haut-entete) + 1rem);
  background: var(--p-noir);
}

body {
  margin: 0;
  background: var(--p-blanc);
  color: var(--texte);
  font: 400 clamp(1.01rem, .97rem + .2vw, 1.09rem)/1.62 var(--texte-police);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

button, [role="button"], .bouton, .pastille, .pagination button,
.tiroir-bascule, .mosaique__case, .circuits__photo, .choix-langue__bouton,
.select-habille__bouton, .barre-appel a, .tiroir__nav a, .ruban__pause {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--titre-police);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
  /* Un mot plus long que la ligne se coupe plutôt que de déborder. */
  overflow-wrap: break-word;
}
/* Le néerlandais et l'allemand soudent leurs mots : « Carrosserieproducten »
   dépassait d'un écran de 390 px. La césure, dans ces deux langues et sur
   les grands titres seulement — en français elle hachait les titres
   (« préci-sion », « polyuré-thane ») sans rien sauver. */
:is(:lang(nl), :lang(de)) :is(.titre-hero, .titre-section) { hyphens: auto; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-lisible);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Une icône dans un lien : sans inline-flex sur le lien, elle se retrouve
   SEULE sur sa ligne (la réinitialisation met les svg en block). */
.ic { flex: none; display: inline-block; vertical-align: middle; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: .8rem 1.3rem; background: var(--p-rouge); color: #fff; font-weight: 600;
}
.saut-contenu:focus { left: .5rem; top: .5rem; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.conteneur {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* ── Sections et titres ────────────────────────────────────────────── */

.section {
  background: var(--fond);
  color: var(--texte);
  padding-block: var(--section-y);
  position: relative;
}
.section--sombre { background: var(--p-noir); }
/* Deux sections claires qui se suivent : un filet, jamais un aplat gris. */
.section--douce { border-top: 1px solid var(--lisere); }
.section--sombre:not([hidden]) + .section--sombre { padding-top: 0; }

/* filet → titre → chapô, en flux normal : jamais en lignes d'une grille
   voisine, qui s'étireraient sur la hauteur de l'autre colonne. */
.bloc-titre { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.bloc-titre--centre { margin-inline: auto; text-align: center; }
.titre-section { font-size: var(--t-section); max-width: 17em; }
.bloc-titre--centre .titre-section { margin-inline: auto; }
.titre-hero { font-size: var(--t-hero); max-width: 13em; font-weight: 800; line-height: .96; }

.chapo {
  margin-top: 1.2rem;
  font-size: var(--t-chapo);
  line-height: 1.6;
  color: var(--texte-doux);
  max-width: 46ch;
}
.bloc-titre--centre .chapo { margin-inline: auto; }

.section__tete {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}
.section__tete .bloc-titre { margin: 0; }

.sous-titre {
  margin: clamp(3.5rem, 6vw, 5.5rem) 0 1.6rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  display: flex; align-items: center; gap: .9rem;
}
.sous-titre::after { content: ''; flex: 1; height: 1px; background: var(--lisere); }

.texte { color: var(--texte-doux); max-width: 62ch; }
.texte + .texte { margin-top: 1rem; }
.texte--grand { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; color: var(--texte); max-width: 40ch; }
.note { margin-top: 1.2rem; font-size: .92rem; color: var(--texte-faible); max-width: 60ch; }

/* Les trois points du logo : rouge, acier, noir (blanc sur fond sombre). */
.trois-points, .hero__credit::before, .pied__bas::before {
  --pt: 7px;
  content: '';
  display: inline-block; flex: none;
  width: calc(var(--pt) * 4.2); height: var(--pt);
  background:
    radial-gradient(circle at calc(var(--pt) / 2) 50%, var(--p-rouge-vif) calc(var(--pt) / 2 - .5px), transparent calc(var(--pt) / 2)),
    radial-gradient(circle at calc(var(--pt) * 2.1) 50%, var(--p-acier) calc(var(--pt) / 2 - .5px), transparent calc(var(--pt) / 2)),
    radial-gradient(circle at calc(var(--pt) * 3.7) 50%, currentColor calc(var(--pt) / 2 - .5px), transparent calc(var(--pt) / 2));
}

/* ── Boutons ───────────────────────────────────────────────────────────
   Penchés comme une livrée : le FOND est un pseudo-élément biaisé, le
   texte reste droit et le contour de focus rectangulaire (un clip-path
   l'aurait coupé). `nowrap` : un bouton sur deux lignes perd sa forme —
   d'où des libellés courts. */

.bouton {
  --b-fond: var(--accent);
  --b-texte: var(--accent-texte);
  --b-bord: transparent;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  min-height: 48px;
  border: 0; background: none;
  color: var(--b-texte);
  font: 600 .98rem/1.1 var(--texte-police);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s;
}
.bouton::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--b-fond);
  border: 1.5px solid var(--b-bord);
  border-radius: 3px;
  transform: skewX(var(--biais));
  transition: background .2s, border-color .2s, transform .25s cubic-bezier(.25, 1, .5, 1);
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover::before { transform: skewX(var(--biais)) translateX(2px); }
}
.bouton:active::before { transform: skewX(var(--biais)) scale(.98); }
.bouton--accent { --b-fond: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .bouton--accent:hover { --b-fond: var(--p-rouge-surface); }
}
.bouton--clair { --b-fond: var(--p-blanc); --b-texte: var(--p-noir); }
@media (hover: hover) and (pointer: fine) {
  .bouton--clair:hover { --b-fond: #e9e9eb; }
}
.bouton--contour { --b-fond: transparent; --b-texte: var(--texte); --b-bord: var(--lisere-fort); }
@media (hover: hover) and (pointer: fine) {
  .bouton--contour:hover { --b-bord: var(--accent-lisible); --b-texte: var(--accent-lisible); }
}
.bouton--grand { padding: 1.1rem 1.9rem; font-size: 1.04rem; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--accent-lisible);
}
.lien-fleche .ic { transition: transform .2s cubic-bezier(.25, 1, .5, 1); }
@media (hover: hover) and (pointer: fine) {
  .lien-fleche:hover .ic { transform: translateX(4px); }
}

/* ── En-tête ───────────────────────────────────────────────────────── */

.entete {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--p-noir) 96%, transparent);
  backdrop-filter: blur(12px);
  color: var(--texte);
}
/* Le filet du bas : rouge à gauche, acier, puis rien — la livrée. */
.entete::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--p-rouge-vif) 0 22%, var(--p-acier) 22% 26%, transparent 26%);
}
.entete__dedans {
  display: flex; align-items: center; gap: 1.4rem;
  max-width: var(--large); margin-inline: auto;
  padding: .55rem var(--marge);
  min-height: var(--entete-min);
}
.marque { display: inline-flex; align-items: center; flex: none; }
.marque__logo { width: auto; height: 54px; }

/* ⚠ La poussée vit sur .entete__actions, PAS sur .menu : celui-ci passe
   en display:none sous 1280 px et emporterait sa marge — le bloc de
   droite se recollait au logo. */
.menu { margin-left: auto; margin-right: .6rem; }
.menu ul { display: flex; gap: .1rem; }
.menu a {
  position: relative; display: block;
  padding: .6rem .78rem;
  font-weight: 500; font-size: .94rem;
  color: var(--texte-doux);
  transition: color .16s;
}
.menu a::after {
  content: ''; position: absolute; left: .78rem; right: .78rem; bottom: .2rem; height: 2px;
  background: var(--p-rouge-vif);
  transform: scaleX(0) skewX(var(--biais)); transform-origin: left;
  transition: transform .25s cubic-bezier(.25, 1, .5, 1);
}
@media (hover: hover) and (pointer: fine) {
  .menu a:hover { color: var(--texte); }
  .menu a:hover::after { transform: scaleX(1) skewX(var(--biais)); }
}
.menu a.est-actif { color: var(--texte); }
.menu a.est-actif::after { transform: scaleX(1) skewX(var(--biais)); }

.entete__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
/* Menu visible : c'est lui qui pousse, les actions le suivent. */
@media (min-width: 1281px) { .entete__actions { margin-left: 0; } }
.entete__appel { padding: .72rem 1.2rem; min-height: 44px; font-size: .92rem; }

.choix-langue { position: relative; }
.choix-langue__bouton {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; padding: .55rem .8rem;
  background: transparent; border: 1px solid var(--lisere-fort); border-radius: 3px;
  color: var(--texte-doux); font-size: .84rem; font-weight: 600; letter-spacing: .06em;
}
@media (hover: hover) and (pointer: fine) {
  .choix-langue__bouton:hover { color: var(--texte); border-color: var(--p-rouge-clair); }
}
.choix-langue__liste {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 20;
  display: none; flex-direction: column; min-width: 10rem; padding: .35rem;
  background: var(--p-carbone); border: 1px solid var(--lisere); border-radius: var(--rayon-s);
  box-shadow: var(--ombre-forte);
}
.choix-langue[data-ouvert] .choix-langue__liste { display: flex; }
.choix-langue__liste a, .choix-langue__liste span {
  padding: .6rem .75rem; border-radius: 3px; font-size: .9rem; color: rgba(255, 255, 255, .78);
}
@media (hover: hover) and (pointer: fine) {
  .choix-langue__liste a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}
.choix-langue__liste span { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .07); }

.tiroir-bascule {
  display: none; position: relative;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--lisere-fort); border-radius: 3px;
  color: var(--texte);
}
.tiroir-bascule > span {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: opacity .2s, transform .25s cubic-bezier(.25, 1, .5, 1);
}
.tiroir-bascule__croix { opacity: 0; transform: rotate(-90deg); }
.tiroir-bascule[aria-expanded="true"] .tiroir-bascule__menu { opacity: 0; transform: rotate(90deg); }
.tiroir-bascule[aria-expanded="true"] .tiroir-bascule__croix { opacity: 1; transform: none; }
.tiroir-bascule[aria-expanded="true"] { border-color: var(--p-rouge-clair); }

/* ── Le tiroir ─────────────────────────────────────────────────────── */

.tiroir {
  position: fixed; inset: var(--haut-entete) 0 0; z-index: 89;
  display: flex; flex-direction: column;
  padding: .5rem var(--marge) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--p-encre); color: #fff;
  overflow-y: auto; overscroll-behavior: contain;
}
.tiroir[hidden] { display: none; }
.tiroir__nav { flex: 1; }
.tiroir__nav ul { display: flex; flex-direction: column; counter-reset: rang; }
.tiroir__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--titre-police); font-stretch: 112%;
  font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .92);
}
.tiroir__nav a::before {
  counter-increment: rang; content: counter(rang, decimal-leading-zero);
  font: 600 .78rem var(--texte-police); color: rgba(255, 255, 255, .4); letter-spacing: .08em;
}
.tiroir__nav a.est-actif { color: var(--p-rouge-clair); }
.tiroir__pied { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.8rem; }
.tiroir__appel {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem;
  background: rgba(212, 7, 13, .14); border: 1px solid rgba(255, 90, 95, .35); border-radius: var(--rayon);
}
.tiroir__appel-icone { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: var(--p-rouge); color: #fff; border-radius: 3px; transform: skewX(var(--biais)); }
.tiroir__appel-icone .ic { transform: skewX(calc(var(--biais) * -1)); }
.tiroir__appel-texte { display: flex; flex-direction: column; line-height: 1.2; }
.tiroir__appel-texte i { font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.tiroir__appel-texte b { font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.tiroir__adresse { font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.tiroir__langues { display: flex; gap: .4rem; flex-wrap: wrap; }
.tiroir__langues a, .tiroir__langues span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .9rem;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 3px;
  font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .7);
}
.tiroir__langues span { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; font-weight: 600; }

/* ── Bandeau d'annonce ─────────────────────────────────────────────── */

.annonce {
  background: var(--p-rouge-surface); color: #fff;
  display: grid; grid-template-rows: 1fr;
  animation: annonce-deplier .42s cubic-bezier(.25, 1, .5, 1);
}
.annonce > * { min-height: 0; }
.annonce[hidden] { display: none; }
@keyframes annonce-deplier { from { grid-template-rows: 0fr; opacity: 0; } }
.annonce__dedans { display: flex; align-items: center; gap: .7rem; padding-block: .6rem; font-size: .92rem; }
.annonce__dedans a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.annonce__fermer { margin-left: auto; padding: .4rem; background: transparent; border: 0; color: inherit; opacity: .85; }

/* ── Héros ─────────────────────────────────────────────────────────────
   100 % de l'écran ET plein : les repères sont dedans, en pied d'écran.
   En `grid`, jamais en `flex` (un flex:1 écrase la largeur du dedans, les
   marges disparaissent sans que rien ne déborde). Le contenu est ancré EN
   HAUT, à padding constant : le titre tombe à la même hauteur partout. */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  min-height: calc(100svh - var(--haut-entete) - var(--barre-appel));
  background: var(--p-noir); color: var(--texte);
}
.hero[hidden] { display: none; }
.hero__fond { position: absolute; inset: 0; z-index: -2; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero__voile {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, .94) 0%, rgba(7, 7, 8, .78) 34%, rgba(7, 7, 8, .25) 68%, rgba(7, 7, 8, .1) 100%),
    linear-gradient(0deg, rgba(7, 7, 8, .92) 0%, rgba(7, 7, 8, 0) 34%);
}
.hero__dedans {
  display: grid; grid-template-rows: 1fr auto auto;
  width: 100%; max-width: var(--large); margin-inline: auto;
  padding: clamp(3rem, 10vh, 7.5rem) var(--marge) 0;
  gap: 1.6rem;
}
.hero__texte { align-self: start; max-width: min(48rem, 64vw); }
/* La bande de livrée au-dessus du titre : le seul ornement du site. */
.hero__texte::before {
  content: ''; display: block;
  width: 92px; height: 10px; margin-bottom: 1.6rem;
  background: linear-gradient(90deg, var(--p-rouge-vif) 0 62%, transparent 62% 70%, var(--p-acier) 70% 84%, transparent 84%);
  transform: skewX(var(--biais));
}
.chapo--hero { color: rgba(255, 255, 255, .84); max-width: 46ch; }
.hero__boutons { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 2.2rem; }

.hero__credit {
  justify-self: end; align-self: end;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .68);
}

/* Les repères, en pied d'écran. Une valeur tient en un mot. */
.reperes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-block: 1.4rem clamp(1.6rem, 4vh, 2.6rem);
  container-type: inline-size;
}
.repere { display: flex; flex-direction: column; padding: .2rem 1.4rem; border-left: 1px solid rgba(255, 255, 255, .14); min-width: 0; }
.repere:first-child { border-left: 0; padding-left: 0; }
.repere b {
  font: 800 clamp(1.4rem, 2.4vw, 2.3rem)/1.05 var(--titre-police); font-stretch: 112%;
  letter-spacing: -.02em; white-space: nowrap;
}
.repere > span { margin-top: .35rem; font-size: .84rem; color: rgba(255, 255, 255, .66); line-height: 1.35; }
.repere__note { display: inline-flex; align-items: center; gap: .35rem; }
.repere__note .ic { color: var(--p-rouge-clair); fill: currentColor; }
.repere__note i { font-style: normal; font-size: .55em; color: rgba(255, 255, 255, .6); }

/* ── Héros B · Cabine : l'aplat noir porte le titre, la photo à côté,
   découpée en biais comme une livrée. ─────────────────────────────── */

.hero--cabine {
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(212, 7, 13, .2), transparent 70%),
    var(--p-noir);
}
.hero--cabine .hero__dedans {
  max-width: none; padding: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: 1fr auto;
  gap: 0;
}
.hero--cabine .hero__texte {
  grid-column: 1; grid-row: 1; max-width: none;
  padding: clamp(3rem, 10vh, 7.5rem) clamp(1.5rem, 4vw, 4rem) 2rem max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge)));
}
.hero--cabine .titre-hero { max-width: 11em; }
.hero--cabine .reperes {
  grid-column: 1; grid-row: 2;
  margin-left: max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge)));
  margin-right: clamp(1.5rem, 4vw, 4rem);
}
.hero__visuel {
  grid-column: 2; grid-row: 1 / span 2;
  position: relative; margin: 0;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__visuel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7, 7, 8, .7), transparent 30%);
}
.hero__visuel .hero__credit { position: absolute; right: var(--marge); bottom: 1.4rem; z-index: 1; }

/* ── Héros C · Piste : la GT3 de WRT, le titre centré, le ruban. ───── */

.hero--piste .hero__voile {
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(7, 7, 8, .66) 0%, rgba(7, 7, 8, .9) 70%),
    linear-gradient(0deg, rgba(7, 7, 8, .96) 0%, rgba(7, 7, 8, 0) 40%);
}
.hero--piste .hero__fond img { object-position: 50% 60%; }
.hero--piste .hero__dedans { grid-template-rows: 1fr auto auto auto; }
.hero__texte--centre { margin-inline: auto; text-align: center; max-width: 60rem; }
.hero__texte--centre::before { margin-inline: auto; }
.hero__texte--centre .titre-hero { margin-inline: auto; text-transform: uppercase; font-style: italic; letter-spacing: -.01em; max-width: 15em; }
.hero__texte--centre .chapo--hero { margin-inline: auto; }
.hero__texte--centre .hero__boutons { justify-content: center; }
.hero--piste .hero__credit { justify-self: center; }

/* ── Le ruban des marques ──────────────────────────────────────────── */

.ruban {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding-right: 3rem;
}
.ruban__piste { display: flex; width: max-content; animation: ruban var(--duree-ruban) linear infinite; }
.ruban__lot { display: flex; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); padding-right: clamp(2rem, 4vw, 3.5rem); }
/* Chaque logo sur sa plaque, comme un sticker de sponsor sur une livrée :
   les couleurs des marques restent les leurs. */
.ruban .marque-logo { aspect-ratio: auto; height: 50px; padding: 8px 14px; flex: none; transform: skewX(var(--biais)); border-radius: 3px; }
.ruban .marque-logo__img { height: 34px; width: auto; max-width: 120px; transform: skewX(calc(var(--biais) * -1)); }
.ruban .marque-logo::after { display: none; }
@keyframes ruban { to { transform: translateX(-50%); } }
.ruban:hover .ruban__piste, .ruban:focus-within .ruban__piste, .ruban.est-arrete .ruban__piste { animation-play-state: paused; }
.ruban__pause {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 3px; color: #fff;
}
.ruban.est-arrete .ruban__pause { background: var(--p-rouge); border-color: var(--p-rouge); }

/* ── Les univers : quatre tuiles photo ─────────────────────────────── */

.tuiles { display: grid; gap: clamp(.6rem, 1vw, 1rem); }
.tuiles--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tuile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; aspect-ratio: 3 / 4;
  background: var(--p-noir); color: #fff;
  border-radius: var(--rayon);
}
.tuile__photo { position: absolute; inset: 0; z-index: -2; }
.tuile__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.tuile__voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 7, 8, .95) 0%, rgba(7, 7, 8, .5) 42%, rgba(7, 7, 8, .05) 70%); }
.tuile__corps { margin-top: auto; display: flex; flex-direction: column; gap: .45rem; padding: clamp(1.2rem, 2vw, 1.8rem); width: 100%; }
.tuile__rang { font: 700 .8rem var(--texte-police); letter-spacing: .12em; color: var(--p-rouge-clair); }
.tuile__corps b { font: 700 var(--t-carte)/1.1 var(--titre-police); font-stretch: 112%; letter-spacing: -.015em; }
.tuile__corps i { font-style: normal; font-size: .93rem; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.tuile__lien { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-weight: 600; font-size: .92rem; }
.tuile::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--p-rouge-vif);
  transform: scaleX(.18); transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .tuile:hover .tuile__photo img { transform: scale(1.06); }
  .tuile:hover::after { transform: scaleX(1); }
  .tuile:hover .tuile__lien .ic { transform: translateX(4px); }
}
.tuile__lien .ic { transition: transform .2s; }

/* ── Image + texte ─────────────────────────────────────────────────── */

.duo__dedans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center;
}
.duo--inverse .duo__image { order: 2; }
.duo__image { position: relative; height: 100%; min-height: 22rem; }
.duo__image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon); }
/* Une équerre rouge dans l'angle — le cadre d'une photo d'atelier. */
.duo__image::after {
  content: ''; position: absolute; left: -12px; bottom: -12px; width: 88px; height: 88px;
  border-left: 4px solid var(--p-rouge-vif); border-bottom: 4px solid var(--p-rouge-vif);
  pointer-events: none;
}
.duo--inverse .duo__image::after { left: auto; right: -12px; border-left: 0; border-right: 4px solid var(--p-rouge-vif); }
.duo__image--studio { background: var(--p-studio); border-radius: var(--rayon); }
.duo__image--studio img { object-fit: contain; padding: 8%; }
.duo__texte .bloc-titre { margin-bottom: 1.6rem; }
.duo__texte .bouton { margin-top: 2rem; }
.duo__texte .liste-check { margin-top: 1.8rem; }

.deux-textes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.deux-textes .bloc-titre { margin-bottom: 1.4rem; }

.liste-check { display: flex; flex-direction: column; gap: 0; }
.liste-check li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 0; border-top: 1px solid var(--lisere);
  color: var(--texte);
}
.liste-check li:last-child { border-bottom: 1px solid var(--lisere); }
.liste-check .ic, .liste-drapeaux .ic, .pied__coordonnees .ic {
  /* L'icône se CENTRE sur la première ligne du texte, quelle que soit la
     taille du corps : (hauteur de ligne − taille de l'icône) / 2. */
  margin-top: calc((1lh - 17px) / 2);
}
.liste-check .ic { color: var(--accent-lisible); }

.liste-drapeaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.6rem; margin-top: 2rem; }
.liste-drapeaux li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.liste-drapeaux .ic { color: var(--p-rouge-clair); }

/* ── Mosaïque du showroom ──────────────────────────────────────────────
   Un pavage qui REMPLIT ses rangées — huit cases, quatre colonnes :

     ┌───────┬───┬───┐   1 : 2×2
     │   1   │ 2 │ 3 │   6 : 2×1
     │       ├───┼───┤   le reste : 1×1
     │       │ 4 │ 5 │   trois rangées pleines,
     ├───────┼───┼───┤   aucune case orpheline
     │   6   │ 7 │ 8 │
     └───────┴───┴───┘

   Les légendes sont TOUJOURS lisibles — un survol n'existe pas au doigt. */

.mosaique {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 14vw, 15rem);
  gap: .5rem;
}
.mosaique__case, .circuits__photo {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 0; border: 0; border-radius: var(--rayon-s);
  background: var(--p-carbone); cursor: zoom-in;
}
.mosaique__case:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaique__case:nth-child(6) { grid-column: span 2; }
.mosaique__case img, .circuits__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.mosaique__case::after, .circuits__photo::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(0deg, rgba(7, 7, 8, .78) 0%, rgba(7, 7, 8, 0) 46%);
}
/* Un BADGE opaque, pas un simple dégradé : sur une photo claire (le
   plafond blanc du showroom, un ciel), le texte blanc disparaissait. */
.mosaique__legende {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 1;
  max-width: calc(100% - 1.4rem);
  padding: .35rem .65rem;
  background: rgba(13, 13, 15, .82); backdrop-filter: blur(6px);
  border-radius: 3px;
  color: #fff; font-size: .82rem; font-weight: 600; text-align: left; line-height: 1.3;
}
@media (hover: hover) and (pointer: fine) {
  .mosaique__case:hover img, .circuits__photo:hover img { transform: scale(1.05); }
}

/* ── Le mur des marques, sur le panneau perforé du showroom ────────── */

.marques {
  background-color: var(--p-noir);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .075) 1.6px, transparent 2px);
  background-size: 22px 22px;
}
.marques__mur {
  /* En FLEX centré, pas en grille : la dernière rangée, incomplète, se
     centre au lieu de laisser une case seule contre le bord gauche. */
  --par-rang: min(var(--rang-ideal, 8), 8);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .55rem;
}
.marques__mur > .marque-logo { flex: 0 0 calc((100% - (var(--par-rang) - 1) * .55rem) / var(--par-rang)); }
@media (max-width: 1180px) { .marques__mur { --par-rang: min(var(--rang-ideal, 6), 6); } }
@media (max-width: 860px)  { .marques__mur { --par-rang: 4; } }
@media (max-width: 560px)  { .marques__mur { --par-rang: 3; } }
@media (max-width: 380px)  { .marques__mur { --par-rang: 2; } }
.marque-logo {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  padding: 1rem 1.2rem;
  background: var(--p-blanc);
  border-radius: var(--rayon-s);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}
.marque-logo[data-fond-sombre="1"] { background: #1c1c20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
/* Borné sur ses DEUX côtés : un logo carré à hauteur fixe paraîtrait trois
   fois plus petit qu'un logo allongé. */
.marque-logo__img { width: auto; height: auto; max-width: 100%; max-height: 3.4rem; object-fit: contain; }
.marque-logo__img:not([hidden]) + .marque-logo__nom { display: none; }
.marque-logo__img[hidden] { display: none; }
.marque-logo__nom { font: 800 1.15rem var(--titre-police); font-stretch: 118%; letter-spacing: .02em; color: var(--p-noir); text-transform: uppercase; }
.marque-logo[data-fond-sombre="1"] .marque-logo__nom { color: #fff; }
.marque-logo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--p-rouge-vif); transform: scaleX(0); transition: transform .3s;
}
@media (hover: hover) and (pointer: fine) {
  a.marque-logo[href]:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
  a.marque-logo[href]:hover::after { transform: scaleX(1); }
}

/* ── La vitrine Avel Color ─────────────────────────────────────────── */

.vitrine__dedans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.vitrine__logo { width: 92px; height: auto; margin-bottom: 1.8rem; padding: 10px; background: var(--p-noir); border-radius: var(--rayon-s); }
.vitrine__texte .bouton { margin-top: 2rem; }
.vitrine__pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.vitrine__piece {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--p-studio); color: #fff;
  border-radius: var(--rayon-s);
}
.vitrine__piece:nth-child(even) { transform: translateY(2.2rem); }
.vitrine__piece::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, .12), transparent 70%);
}
.vitrine__piece img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.vitrine__piece figcaption { padding: .8rem .9rem 1rem; font-size: .84rem; font-weight: 600; line-height: 1.3; border-top: 2px solid var(--p-rouge-vif); }

/* ── Sur les circuits ──────────────────────────────────────────────── */

.circuits__dedans { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.circuits__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: .55rem; }
.circuits__photo--1 { grid-column: span 2; aspect-ratio: 16 / 9; }
.circuits__photo--2, .circuits__photo--3 { aspect-ratio: 4 / 3; }
.circuits__photo--1 img { object-position: 50% 62%; }
.circuits__photo--2 img { object-position: 50% 70%; }

/* ── Les fiches produit ────────────────────────────────────────────────
   La photo garde son fond de studio (#202020) ; la carte, blanche, porte
   le nom et le bouton. Le dernier bloc se cale en bas : les boutons
   s'alignent d'une carte à l'autre. */

.produits {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: clamp(.8rem, 1.4vw, 1.3rem);
}
.produits--selection { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .produits--selection { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.produit {
  display: flex; flex-direction: column;
  background: var(--fond-carte);
  border: 1px solid var(--lisere);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s;
}
.produit.hors-filtre, .produit.hors-page { display: none; }
@media (hover: hover) and (pointer: fine) {
  .produit:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); border-color: transparent; }
  .produit:hover .produit__photo img { transform: scale(1.04); }
}
.produit__photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--p-studio);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.produit__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%);
}
.produit__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.produit__statut {
  position: absolute; left: .8rem; top: .8rem; z-index: 1;
  padding: .32rem .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--p-rouge);
  transform: skewX(var(--biais));
}
.produit__corps { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.produit__marque { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-lisible); }
.produit { position: relative; }
/* Le nom ouvre la fiche ; sa zone couvre la photo et le haut de la carte.
   Le lien « demander un prix » passe au-dessus. */
.produit__ouvrir {
  all: unset; cursor: pointer; display: inline;
}
.produit__ouvrir:focus-visible { outline: 3px solid var(--accent-lisible); outline-offset: 3px; border-radius: 3px; }
.produit__photo { cursor: zoom-in; }
@media (hover: hover) and (pointer: fine) {
  .produit:hover .produit__ouvrir { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
}
.produit__nom { margin-top: .4rem; font-size: 1.12rem; font-weight: 700; line-height: 1.18; font-stretch: 106%; }
.produit__texte {
  margin-top: .55rem; font-size: .9rem; line-height: 1.5; color: var(--texte-doux);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.produit__fiche { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .8rem; font-size: .8rem; }
.produit__fiche div { display: flex; gap: .35rem; }
.produit__fiche div[hidden] { display: none; }
.produit__fiche dt { color: var(--texte-faible); }
.produit__fiche dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.produit__pied {
  margin-top: auto; padding-top: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  border-top: 1px solid var(--lisere);
}
.produit__corps > .produit__fiche + .produit__pied, .produit__corps > .produit__texte + .produit__fiche { }
.produit__prix { font-size: .82rem; color: var(--texte-faible); }
.produit__pied .lien-fleche { font-size: .9rem; white-space: nowrap; }
.section--sombre .produit { border-color: rgba(255, 255, 255, .08); }

/* ── Le catalogue : recherche, gammes, compteur ────────────────────── */

.catalogue__outils { margin-bottom: 1rem; }
/* ── La barre collante des filtres ─────────────────────────────────────
   Collée SOUS l'en-tête (--haut-entete, remesurée quand il change). Le
   fond n'apparaît qu'une fois collée (.est-collee, posée par une mesure
   directe au défilement) : posé d'emblée, il ferait une pastille grise
   flottant sur rien. Fond à 97 % : des photos défilent dessous. */
.catalogue__barre {
  position: sticky; top: var(--haut-entete); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  margin-inline: calc(var(--marge) * -1); padding: .7rem var(--marge);
  margin-bottom: 1.4rem;
  transition: background-color .2s, box-shadow .2s;
}
.catalogue__barre.est-collee {
  background: color-mix(in srgb, var(--fond) 97%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--lisere), 0 10px 24px rgba(13, 13, 15, .08);
}
.recherche { position: relative; display: flex; align-items: center; max-width: 36rem; }
.recherche__loupe { position: absolute; left: 1rem; color: var(--texte-faible); pointer-events: none; }
.recherche input {
  width: 100%; min-height: 52px;
  padding: .85rem 3rem .85rem 2.9rem;
  font-size: max(16px, 1rem);
  background: var(--fond-carte); color: var(--texte);
  border: 1.5px solid var(--lisere-fort); border-radius: var(--rayon-s);
  transition: border-color .16s, box-shadow .16s;
  -webkit-appearance: none; appearance: none;
}
.recherche input::-webkit-search-cancel-button { display: none; }
.recherche input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 7, 13, .18); }
.recherche__effacer {
  position: absolute; right: .35rem;
  display: grid; place-items: center; width: 42px; height: 42px;
  background: transparent; border: 0; border-radius: 3px; color: var(--texte-faible);
}
.recherche__effacer[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .recherche__effacer:hover { color: var(--accent); background: var(--fond-relief); }
}
.catalogue__compteur { flex: none; font-size: .92rem; font-weight: 600; color: var(--texte-faible); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pastilles { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.pastille {
  display: inline-flex; align-items: center; min-height: 42px;
  padding: .5rem 1rem;
  background: var(--fond-carte); color: var(--texte-doux);
  border: 1px solid var(--lisere-fort); border-radius: 3px;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
@media (hover: hover) and (pointer: fine) {
  .pastille:hover { border-color: var(--p-noir); color: var(--texte); }
}
.pastille[aria-pressed="true"] { background: var(--p-noir); border-color: var(--p-noir); color: #fff; }
.catalogue__vide {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  padding: 3.5rem 1.5rem; text-align: center;
  border: 1.5px dashed var(--lisere-fort); border-radius: var(--rayon);
  color: var(--texte-doux);
}
.catalogue__vide[hidden] { display: none; }
.catalogue__vide .ic { color: var(--accent); }
.catalogue__vide-titre { font: 700 1.35rem var(--titre-police); font-stretch: 108%; color: var(--texte); }
.catalogue__vide p:not(.catalogue__vide-titre) { max-width: 52ch; }
.catalogue__vide .bouton { margin-top: .6rem; }
.catalogue__note { margin-top: 2.2rem; }

/* ── Cartes photo (gammes, catégories) ─────────────────────────────── */

.cartes-photo { display: grid; gap: clamp(.8rem, 1.4vw, 1.3rem); }
.cartes-photo--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cartes-photo--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carte-photo {
  display: flex; flex-direction: column;
  background: var(--fond-carte); border-radius: var(--rayon); overflow: hidden;
  border: 1px solid var(--lisere);
}
.carte-photo__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--p-studio); }
.carte-photo__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.carte-photo__corps { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.4rem 1.6rem; flex: 1; }
.carte-photo__corps b { font: 700 var(--t-carte)/1.15 var(--titre-police); font-stretch: 110%; letter-spacing: -.01em; }
.carte-photo__corps > span:not(.lien-fleche) { color: var(--texte-doux); font-size: .95rem; line-height: 1.55; }
.carte-photo__corps .lien-fleche { margin-top: auto; padding-top: .5rem; }
.carte-photo__corps b::before {
  content: ''; display: block; width: 34px; height: 4px; margin-bottom: .9rem;
  background: var(--p-rouge-vif); transform: skewX(var(--biais));
}
@media (hover: hover) and (pointer: fine) {
  .carte-photo:hover .carte-photo__image img { transform: scale(1.05); }
}

/* ── Les étapes (colorimétrie) ─────────────────────────────────────── */

.etapes { display: grid; gap: 1.2rem; counter-reset: etape; }
.etapes--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.etape { position: relative; display: flex; flex-direction: column; gap: 1.2rem; padding-right: 1rem; }
.etape__rang {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  font: 800 1.5rem var(--titre-police); font-stretch: 112%;
  color: #fff; background: var(--p-rouge);
  transform: skewX(var(--biais));
  position: relative; z-index: 1;
}
/* Le trait qui relie un numéro au suivant. */
.etape::after {
  content: ''; position: absolute; left: 4.2rem; right: -.4rem; top: 1.7rem; height: 2px;
  background: linear-gradient(90deg, var(--p-rouge-clair), rgba(255, 255, 255, .14));
}
.etape:last-child::after { display: none; }
.etape h3 { font-size: var(--t-carte); line-height: 1.15; }
.etape p { margin-top: .6rem; color: var(--texte-doux); font-size: .96rem; line-height: 1.6; }

/* ── Palinal et les marques de peinture ────────────────────────────── */

.palinal__logo { width: 168px; height: auto; margin-bottom: 1.6rem; border-radius: 2px; }
.palinal .bouton { margin-top: 1.6rem; }

.fiches-marques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
.fiche-marque {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.4rem; align-items: start;
  padding: 1.6rem 0; border-top: 1px solid var(--lisere);
}
.fiche-marque__logo {
  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: .7rem;
  background: var(--fond-carte); border: 1px solid var(--lisere); border-radius: var(--rayon-s);
}
.fiche-marque__logo[data-fond-sombre="1"] { background: #1c1c20; border-color: transparent; }
.fiche-marque__logo img { max-height: 3rem; width: auto; object-fit: contain; }
.fiche-marque h3 { font-size: 1.2rem; }
.fiche-marque p { margin-top: .45rem; font-size: .95rem; line-height: 1.6; color: var(--texte-doux); }

/* ── Le pack Avel Color ────────────────────────────────────────────── */

.carte-pack {
  display: flex; gap: 1.1rem; align-items: flex-start;
  margin-top: 2rem; padding: 1.4rem 1.5rem;
  background: var(--fond-relief); border-left: 4px solid var(--p-rouge-vif); border-radius: 0 var(--rayon) var(--rayon) 0;
}
.carte-pack > .ic { color: var(--accent); margin-top: -3px; }   /* centrée sur le titre */
.carte-pack h3 { font-size: 1.2rem; }
.carte-pack p { margin: .5rem 0 .8rem; color: var(--texte-doux); font-size: .95rem; }

/* ── Les actualités ────────────────────────────────────────────────── */

.actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.actu { display: flex; flex-direction: column; }
.actu.hors-page { display: none; }
.actu__photo { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--rayon-s); background: var(--p-carbone); }
.actu__photo img { width: 100%; height: 100%; object-fit: cover; }
.actu__passe {
  position: absolute; left: .8rem; top: .8rem;
  padding: .3rem .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(7, 7, 8, .82); color: #fff; backdrop-filter: blur(6px);
}
.actu__passe[hidden] { display: none; }
.actu__corps { padding-top: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.actu__lien { margin-top: auto; padding-top: 1rem; font-size: .92rem; }
.actu time { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-lisible); }
.actu h3 { margin-top: .5rem; font-size: 1.25rem; line-height: 1.15; }
.actu p { margin-top: .55rem; font-size: .94rem; line-height: 1.58; color: var(--texte-doux); }

/* ── Les avis ──────────────────────────────────────────────────────── */

.avis__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.avis {
  display: flex; flex-direction: column;
  padding: 1.8rem 1.6rem; margin: 0;
  background: var(--fond-carte); border: 1px solid var(--lisere); border-radius: var(--rayon);
}
.avis.hors-page { display: none; }
.avis__notes { display: flex; gap: .15rem; color: var(--p-rouge-clair); }
.avis__notes .ic { fill: currentColor; }
.avis__notes[data-note="4"] .ic:nth-child(n+5),
.avis__notes[data-note="3"] .ic:nth-child(n+4),
.avis__notes[data-note="2"] .ic:nth-child(n+3),
.avis__notes[data-note="1"] .ic:nth-child(n+2) { color: var(--lisere-fort); }
.avis[hidden] { display: none; }
.avis blockquote { margin: 1rem 0 0; font-size: 1.08rem; line-height: 1.55; color: var(--texte); }
.avis blockquote p::before { content: '« '; color: var(--p-rouge-clair); }
.avis blockquote p::after { content: ' »'; color: var(--p-rouge-clair); }
.avis figcaption { margin-top: auto; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; }
.avis figcaption b { font-weight: 600; }
.avis figcaption time { color: var(--texte-faible); }
.avis__source { margin-top: 2.2rem; text-align: center; }

/* ── Pagination : les trois points du logo deviennent des pages ────── */

.pagination { display: flex; justify-content: center; gap: .45rem; margin-top: 2.4rem; }
.pagination[hidden] { display: none; }
.pagination button {
  min-width: 44px; height: 44px; padding: 0 .9rem;
  background: transparent; border: 1px solid var(--lisere-fort); border-radius: 3px;
  color: var(--texte-doux); font-weight: 600; font-variant-numeric: tabular-nums;
}
.pagination button[aria-current="true"] { background: var(--p-rouge); border-color: var(--p-rouge); color: #fff; }

/* ── L'appel à l'action : un aplat rouge rayé comme une livrée ─────── */

.appel {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 7vw, 7rem);
  background:
    repeating-linear-gradient(-66deg, transparent 0 46px, rgba(255, 255, 255, .045) 46px 92px),
    linear-gradient(105deg, var(--p-rouge-surface), var(--p-rouge) 60%, #e0161c);
  color: #fff;
}
.appel__dedans { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; }
.appel .titre-section { max-width: 14em; }
.appel .chapo { color: rgba(255, 255, 255, .9); }
.appel__boutons { display: flex; flex-wrap: wrap; gap: .9rem; }
.appel .bouton--contour { --b-bord: rgba(255, 255, 255, .7); --b-texte: #fff; }
@media (hover: hover) and (pointer: fine) {
  .appel .bouton--contour:hover { --b-bord: #fff; --b-fond: rgba(255, 255, 255, .12); --b-texte: #fff; }
}
.appel .bouton--clair { --b-texte: var(--p-rouge-surface); }

/* ── Contact ───────────────────────────────────────────────────────── */

.contact__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__colonne .bloc-titre { margin-bottom: 1.6rem; }

.fiche { display: flex; flex-direction: column; }
.fiche__ligne {
  display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: 1rem;
  padding: 1.05rem 0; border-top: 1px solid var(--lisere);
}
.fiche__ligne:last-child { border-bottom: 1px solid var(--lisere); }
.fiche__ligne[hidden] { display: none; }
.fiche dt { display: flex; align-items: center; gap: .6rem; color: var(--texte-faible); font-size: .92rem; }
.fiche dt .ic { color: var(--accent-lisible); }
.fiche dd { font-weight: 500; }
.fiche dd a { text-decoration: underline; text-decoration-color: var(--lisere-fort); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .fiche dd a:hover { text-decoration-color: var(--accent); color: var(--accent-lisible); }
}
.sans-coupure { white-space: nowrap; }

.horaires { display: flex; flex-direction: column; }
.horaire {
  display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 1rem;
  padding: 1.05rem 0; border-top: 1px solid var(--lisere);
}
.horaire:last-child { border-bottom: 1px solid var(--lisere); }
.horaire dt { font-weight: 600; }
/* « Lundi au vendredi » : le second jour d'un groupe perd sa majuscule —
   en français et en néerlandais seulement, l'allemand la garde. */
:is(:lang(fr), :lang(nl)) .horaire dt span:nth-child(3) { text-transform: lowercase; }
.horaire dd { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-variant-numeric: tabular-nums; }
.horaire dd span { white-space: nowrap; }
.ferme { font-style: normal; color: var(--texte-faible); }

/* ── Formulaire ────────────────────────────────────────────────────── */

.formulaire { display: flex; flex-direction: column; gap: 1.1rem; }
.formulaire__rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem; }
.champ { display: flex; flex-direction: column; gap: .4rem; }
/* Deux lignes de haut, texte en bas : les champs d'une rangée s'alignent
   même si un libellé plie. */
.champ__libelle { display: flex; align-items: flex-end; min-height: 2.4em; font-size: .88rem; font-weight: 600; }
.champ input, .champ textarea, .champ select {
  width: 100%;
  font-size: max(16px, 1rem);   /* sous 16 px, iOS zoome et ne revient pas */
  padding: .85rem 1rem;
  background: var(--fond-carte); color: var(--texte);
  border: 1px solid var(--lisere-fort); border-radius: var(--rayon-s);
  transition: border-color .16s, box-shadow .16s;
}
.champ textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.champ input:focus, .champ textarea:focus { outline: 0; border-color: var(--accent-lisible); box-shadow: 0 0 0 3px rgba(255, 90, 95, .2); }
.champ__requis { color: var(--accent-lisible); font-weight: 700; }
.champ__aide { font-size: .82rem; color: var(--texte-faible); }
.champ__erreur { display: none; font-size: .84rem; color: #ff8a8d; }
.champ.est-fautif input, .champ.est-fautif textarea { border-color: #ff8a8d; }
.champ.est-fautif .champ__erreur { display: block; }

/* Le <select> natif, gardé hors de vue MAIS dans la page (c'est lui que
   le formulaire envoie). Dimensions FORCÉES : un width:100% l'emporterait. */
.select-habille { position: relative; }
.select-habille > select {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  opacity: 0; pointer-events: none;
}
.select-habille__bouton {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; min-height: 50px; padding: .85rem 1rem;
  background: var(--fond-carte); color: var(--texte);
  border: 1px solid var(--lisere-fort); border-radius: var(--rayon-s);
  text-align: left;
}
.select-habille__bouton .ic { color: var(--texte-faible); transform: rotate(90deg); transition: transform .18s; pointer-events: none; }
.select-habille__bouton > span { pointer-events: none; }
.select-habille[data-ouvert] .select-habille__bouton .ic { transform: rotate(-90deg); }
.select-habille[data-ouvert] .select-habille__bouton { border-color: var(--accent-lisible); }
.select-habille__liste {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 30;
  display: none; flex-direction: column; max-height: 16rem; overflow-y: auto; overscroll-behavior: contain;
  padding: .3rem;
  background: var(--fond-carte); border: 1px solid var(--lisere-fort); border-radius: var(--rayon-s);
  box-shadow: var(--ombre-forte);
}
.select-habille[data-ouvert] .select-habille__liste { display: flex; }
.select-habille[data-vers-haut] .select-habille__liste { top: auto; bottom: calc(100% + .35rem); }
.select-habille__liste button {
  min-height: 44px; padding: .6rem .75rem; border: 0; border-radius: 3px;
  background: transparent; color: var(--texte-doux); text-align: left; font-size: .95rem;
}
@media (hover: hover) and (pointer: fine) {
  .select-habille__liste button:hover { background: rgba(127, 127, 127, .14); color: var(--texte); }
}
.select-habille__liste button[aria-selected="true"] { color: var(--accent-lisible); font-weight: 600; }
.select-habille--sombre .select-habille__bouton { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.select-habille--sombre .select-habille__liste { background: #1c1c20; border-color: rgba(255, 255, 255, .18); }
.select-habille--sombre .select-habille__liste button { color: rgba(255, 255, 255, .8); }
.select-habille--sombre .select-habille__liste button[aria-selected="true"] { color: var(--p-rouge-clair); }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__mention { font-size: .84rem; color: var(--texte-faible); max-width: 68ch; }
.formulaire .bouton { align-self: flex-start; margin-top: .4rem; }
.formulaire__retour { padding: .9rem 1.1rem; border-radius: var(--rayon-s); font-size: .95rem; }
.formulaire__retour[hidden] { display: none; }
.formulaire__retour.est-reussi { background: rgba(46, 160, 96, .16); color: #84e6ad; }
.formulaire__retour.est-echoue { background: rgba(224, 62, 62, .18); color: #ffa3a5; }

/* ── La carte : une façade, Google seulement au clic ───────────────── */

.carte-lieu {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; margin-block: 1.5rem;
  border-radius: var(--rayon); background: var(--p-carbone);
}
.carte-lieu iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte-lieu__facade { position: absolute; inset: 0; }
.carte-lieu__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.carte-lieu__facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 8, .9), rgba(7, 7, 8, .1) 65%); }
.carte-lieu__boite {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
  color: #fff;
}
.carte-lieu__boite p { font-weight: 600; line-height: 1.4; }
.carte-lieu__boite small { font-size: .78rem; color: rgba(255, 255, 255, .7); }

/* ── Erreur 404 ────────────────────────────────────────────────────── */

.erreur { min-height: 70vh; display: grid; align-items: center; }
.erreur__dedans .chapo { margin-bottom: 2rem; }
.erreur__liens { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ── Pied de page ──────────────────────────────────────────────────── */

.pied { background: var(--p-encre); color: var(--texte); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.pied__dedans {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  max-width: var(--large); margin-inline: auto; padding-inline: var(--marge);
}
.pied .marque__logo { height: 64px; }
.pied__baseline { margin-top: 1rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--p-acier); }
.pied__apropos { margin-top: 1rem; font-size: .92rem; line-height: 1.6; color: var(--texte-faible); max-width: 34ch; }
.pied h2 { font: 700 .8rem var(--texte-police); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-faible); margin-bottom: 1.1rem; }
.pied__liens { display: flex; flex-direction: column; gap: .2rem; }
.pied__liens a { display: inline-block; padding: .3rem 0; color: var(--texte-doux); }
@media (hover: hover) and (pointer: fine) {
  .pied__liens a:hover, .pied__coordonnees a:hover { color: #fff; }
}
.pied__coordonnees { display: flex; flex-direction: column; gap: .9rem; font-size: .94rem; }
.pied__coordonnees li { display: flex; gap: .7rem; align-items: flex-start; color: var(--texte-doux); }
.pied__coordonnees li[hidden] { display: none; }
.pied__coordonnees .ic { color: var(--p-rouge-clair); }
.pied__horaires .horaire { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .6rem 0; font-size: .9rem; border-color: var(--lisere); }
.pied__horaires .horaire dt { white-space: nowrap; }
.pied__horaires .horaire dd { justify-content: flex-end; color: var(--texte-doux); flex-direction: column; align-items: flex-end; gap: .1rem; }
.pied__horaires .horaire dt { font-weight: 500; color: var(--texte-doux); }
.pied__bas {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem;
  max-width: var(--large); margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 1.4rem var(--marge) 1.6rem;
  border-top: 1px solid var(--lisere);
  font-size: .82rem; color: var(--texte-faible);
}
.pied__bas::before { color: #fff; }
.pied__signature { margin-left: auto; }
.pied__signature a { color: var(--texte-doux); text-decoration: underline; text-underline-offset: 3px; }

/* ── Barre d'action mobile : fond OPAQUE, séparateurs en bordure ───── */

.barre-appel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none;
  background: var(--p-noir); border-top: 2px solid var(--p-rouge-vif);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), visibility .4s;
}
.barre-appel a {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-height: 60px; padding: .55rem .3rem;
  border-left: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88); font-size: .78rem; font-weight: 600;
  min-width: 0; text-align: center; line-height: 1.15; text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
.barre-appel a:first-child { border-left: 0; color: var(--p-rouge-clair); }
.barre-appel.est-cachee { transform: translateY(100%); visibility: hidden; }

/* ── Visionneuse ───────────────────────────────────────────────────────
   ⚠ `display` CONDITIONNÉ à [open] : sans cela, un panneau noir vide
   reste à l'écran, que rien ne ferme. Zone identique pour tous les
   clichés (image hors flux, centrée). */

.visionneuse:not([open]) { display: none; }
.visionneuse[open] {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; gap: .6rem;
  position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: clamp(.8rem, 3vw, 2rem);
  border: 0; background: rgba(7, 7, 8, .97); color: #fff; overscroll-behavior: contain;
}
.visionneuse::backdrop { background: rgba(7, 7, 8, .9); }
.visionneuse__cadre { position: relative; grid-area: 1 / 2; min-height: 0; }
.visionneuse__cadre img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; }
.visionneuse__fermer {
  position: absolute; top: clamp(.8rem, 3vw, 2rem); right: clamp(.8rem, 3vw, 2rem); z-index: 2;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: rgba(255, 255, 255, .12); border: 0; border-radius: 3px; color: #fff;
}
.visionneuse__nav {
  align-self: center; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  background: rgba(255, 255, 255, .1); border: 0; border-radius: 3px; color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .visionneuse__nav:hover, .visionneuse__fermer:hover { background: var(--p-rouge); }
}
.visionneuse__nav--avant { grid-area: 1 / 1; }
.visionneuse__nav--avant .ic { transform: rotate(180deg); }
.visionneuse__nav--apres { grid-area: 1 / 3; }
.visionneuse__pied { grid-area: 2 / 1 / 3 / 4; display: grid; grid-template-columns: 4.5rem 1fr 4.5rem; align-items: center; height: 3.2rem; }
.visionneuse__legende { text-align: center; font-size: .94rem; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.visionneuse__compteur { text-align: right; font-size: .86rem; color: rgba(255, 255, 255, .6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.visionneuse__points { display: none; }
.visionneuse--seule .visionneuse__nav, .visionneuse--seule .visionneuse__compteur, .visionneuse--seule .visionneuse__points { display: none !important; }

/* ── La fiche d'un produit ─────────────────────────────────────────────
   ⚠ `display` CONDITIONNÉ à [open], comme la visionneuse. */

.fiche-produit:not([open]) { display: none; }
.fiche-produit[open] {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1080px, calc(100vw - 2.5rem)); max-height: min(760px, calc(100svh - 2.5rem));
  padding: 0; border: 0; border-radius: var(--rayon);
  background: var(--fond-carte); color: var(--texte);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: fiche-entree .32s cubic-bezier(.22, 1, .36, 1);
}
.fiche-produit::backdrop { background: rgba(7, 7, 8, .72); backdrop-filter: blur(4px); }
@keyframes fiche-entree { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.fiche-produit__fermer {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(13, 13, 15, .78); color: #fff; border: 0; border-radius: 3px;
}
@media (hover: hover) and (pointer: fine) { .fiche-produit__fermer:hover { background: var(--p-rouge); } }
.fiche-produit__photo {
  position: relative; background: var(--p-studio); min-height: 100%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%);
}
.fiche-produit__photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 45% at 50% 0%, rgba(255, 255, 255, .12), transparent 70%); }
.fiche-produit__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-produit__photo .produit__statut { left: 1rem; top: 1rem; }
.fiche-produit__photo .produit__statut[hidden] { display: none; }
.fiche-produit__corps > * { flex-shrink: 0; }   /* le corps DÉFILE : ses blocs ne s'écrasent pas */
.fiche-produit__corps { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.6rem, 3vw, 2.6rem); overflow-y: auto; overscroll-behavior: contain; }
.fiche-produit__marque { display: inline-flex; align-items: center; gap: .8rem; align-self: flex-start; padding-right: 3rem; }
.fiche-produit__marque img { height: 40px; width: auto; max-width: 120px; object-fit: contain; padding: 4px 8px; background: #fff; border: 1px solid var(--lisere); border-radius: 3px; }
.fiche-produit__marque img.est-sombre { background: #1c1c20; border-color: transparent; }
.fiche-produit__marque img[hidden] { display: none; }
.fiche-produit__marque b { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-lisible); }
.fiche-produit__nom { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; }
.fiche-produit__texte { color: var(--texte-doux); line-height: 1.65; }
.fiche-produit__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--lisere); border: 1px solid var(--lisere); border-radius: var(--rayon-s); overflow: hidden; }
.fiche-produit__specs > div { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; background: var(--fond-carte); }
.fiche-produit__specs > div[hidden] { display: none; }
.fiche-produit__specs dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-faible); }
.fiche-produit__specs dd { font-weight: 600; }
.fiche-produit__prix { font-size: .92rem; color: var(--texte-faible); }
.fiche-produit__actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: auto; padding-top: .6rem; }
.fiche-produit__actions .bouton[hidden] { display: none; }
@media (max-width: 760px) {
  .fiche-produit[open] {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0;
    margin: 0; inset: 0;
  }
  .fiche-produit__photo { min-height: 0; aspect-ratio: 4 / 3; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%); }
  .fiche-produit__corps { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
  .fiche-produit__actions .bouton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .fiche-produit[open] { animation: none; } }

/* ── Le commutateur de relecture des héros ─────────────────────────── */

.commutateur {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 95;
  width: 17rem; padding: 0 .7rem .7rem;
  background: rgba(13, 13, 15, .96); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--rayon);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.commutateur[hidden] { display: none; }
.commutateur.est-repliee { transform: translateY(calc(100% - 48px)); }
.commutateur__poignee {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px;
  padding: 0 .2rem; background: none; border: 0; color: #fff;
}
.commutateur__poignee .ic { transform: rotate(90deg); transition: transform .2s; }
.commutateur.est-repliee .commutateur__poignee .ic { transform: rotate(-90deg); }
.commutateur__titre { white-space: nowrap; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.commutateur__choix { display: grid; gap: .35rem; }
.commutateur__choix button {
  min-height: 44px; padding: .6rem .8rem; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid transparent; border-radius: 3px; color: rgba(255, 255, 255, .82);
}
.commutateur__choix button[aria-checked="true"] { background: rgba(212, 7, 13, .22); border-color: var(--p-rouge-clair); color: #fff; }
.commutateur__choix strong { font-size: .9rem; font-weight: 600; }

/* ── Entrées ───────────────────────────────────────────────────────────
   Seules les SUITES entrent, chaque élément à son tour (le retard est
   posé par le script). L'opacité de départ n'existe QUE sous html.js :
   un échec du script ne livre jamais une page vide. */

.js [data-entre] { opacity: 0; transform: translateY(16px); }
.js [data-entre].est-vue {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.25, 1, .5, 1), transform .6s cubic-bezier(.25, 1, .5, 1);
}
.js .vitrine__piece[data-entre]:nth-child(even) { transform: translateY(calc(2.2rem + 16px)); }
.js .vitrine__piece[data-entre].est-vue:nth-child(even) { transform: translateY(2.2rem); }
.js .etape::after { transform-origin: left center; transform: scaleX(0); }
.js .etape.est-vue::after { transform: scaleX(1); transition: transform .6s cubic-bezier(.25, 1, .5, 1) .15s; }

/* L'entrée du héros : une animation (elle part seule, sans observateur),
   le bloc et non les mots (le CMS écrit le H1 entier), courte. */
@keyframes hero-entree { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-livree { from { transform: skewX(var(--biais)) scaleX(0); } }
@keyframes hero-decoupe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
.hero__texte::before { transform-origin: left; animation: hero-livree .7s cubic-bezier(.22, 1, .36, 1) backwards; }
.hero__texte > *, .hero .reperes, .hero .ruban { animation: hero-entree .65s cubic-bezier(.25, 1, .5, 1) backwards; }
.hero__texte > .titre-hero { animation-delay: .08s; }
.hero__texte > .chapo { animation-delay: .17s; }
.hero__texte > .hero__boutons { animation-delay: .26s; }
.hero .ruban { animation-delay: .32s; }
.hero .reperes { animation-delay: .36s; }
.hero__visuel { animation: hero-decoupe 1s cubic-bezier(.77, 0, .18, 1) backwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-entre], .js [data-entre].est-vue { opacity: 1; transform: none; transition: none; }
  .js .vitrine__piece[data-entre]:nth-child(even) { transform: translateY(2.2rem); }
  .js .etape::after, .js .etape.est-vue::after { transform: none; transition: none; }
  .hero__texte::before, .hero__texte > *, .hero .reperes, .hero .ruban, .hero__visuel { animation: none; }
  .ruban__piste { animation: none; }
  .barre-appel { transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── Paliers ───────────────────────────────────────────────────────────
   Le palier du menu se règle sur la langue la PLUS LONGUE (l'allemand). */

@media (max-width: 1280px) {
  .menu { display: none; }
  .tiroir-bascule { display: inline-flex; }
}
@media (max-width: 1360px) {
  .entete__appel span { display: none; }
  .entete__appel { padding: .72rem .9rem; }
}
@media (max-width: 1180px) {
  .vitrine__pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vitrine__piece:nth-child(even), .js .vitrine__piece[data-entre].est-vue:nth-child(even) { transform: none; }
  .js .vitrine__piece[data-entre]:nth-child(even) { transform: translateY(16px); }
  .cartes-photo--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.6rem; }
  .etape:nth-child(2)::after { display: none; }
  .pied__dedans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 820px) and (min-width: 861px) {
  .hero__dedans { padding-top: clamp(2rem, 6vh, 3.5rem); gap: 1.1rem; }
  .hero--cabine .hero__texte { padding-top: clamp(2rem, 6vh, 3.5rem); }
  .hero__texte::before { margin-bottom: 1.1rem; }
  .hero__boutons { margin-top: 1.5rem; }
  .reperes { padding-block: 1rem 1.4rem; }
}
@media (max-width: 1024px) {
  .tuiles--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile { aspect-ratio: 4 / 3; }
  .circuits__dedans, .vitrine__dedans { grid-template-columns: 1fr; }
  .actus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiches-marques { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .duo__dedans, .deux-textes, .contact__grille { grid-template-columns: 1fr; }
  .duo--inverse .duo__image { order: 0; }
  .duo__image { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .cartes-photo--trois { grid-template-columns: 1fr; }
  .cartes-photo--trois .carte-photo { flex-direction: row; }
  .cartes-photo--trois .carte-photo__image { flex: 0 0 40%; aspect-ratio: auto; }

  /* Le héros B en colonne : texte, repères, PUIS la photo — placée avant
     les repères, elle les chasserait hors du premier écran. */
  .hero--cabine .hero__dedans { display: flex; flex-direction: column; }
  .hero--cabine .hero__texte { padding: clamp(2.4rem, 7vh, 4rem) var(--marge) 1.6rem; order: 1; }
  .hero--cabine .reperes { margin: 0 var(--marge); order: 2; }
  .hero__visuel { order: 3; min-height: 56vw; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 860px) {
  /* 60 px de cases + 2 px de filet rouge + la zone sûre de l'iPhone. */
  :root { --barre-appel: 62px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .barre-appel { display: flex; }
  html.js:has(.hero:not([hidden]) .hero__boutons) { --barre-appel: 0px; }

  .hero__voile {
    background: linear-gradient(180deg, rgba(7, 7, 8, .9) 0%, rgba(7, 7, 8, .62) 34%, rgba(7, 7, 8, .3) 56%, rgba(7, 7, 8, .95) 100%);
  }
  .hero__texte { max-width: none; }
  .hero__credit { display: none; }
  .hero__visuel .hero__credit { display: inline-flex; }
  .reperes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .4rem; }
  .repere { padding: .8rem 1rem; }
  .repere:nth-child(odd) { border-left: 0; padding-left: 0; }
  .repere:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .13); }
  .repere b { font-size: min(clamp(1.2rem, 4.6vw, 1.6rem), 9.5cqi); }
  .repere > span { font-size: .76rem; }
  .ruban .marque-logo { height: 42px; padding: 6px 11px; }
  .hero--piste .hero__dedans { gap: .9rem; }
  .ruban .marque-logo__img { height: 28px; max-width: 96px; }

  /* Sur téléphone, les gammes forment une bande qui défile de côté ; la
     pastille touchée se recentre (script.js). */
  .recherche { max-width: none; }
  /* Une seule bande collée au téléphone : les gammes, qui défilent de
     côté ; le compteur passe dessous et ne colle pas. */
  .catalogue__barre { flex-direction: column; align-items: stretch; gap: .4rem; padding-block: .55rem; }
  .catalogue__barre.est-collee .catalogue__compteur { display: none; }
  .pastilles {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--marge) * -1); padding-inline: var(--marge);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .pastilles::-webkit-scrollbar { display: none; }
  .liste-drapeaux { grid-template-columns: 1fr; }
  .appel__dedans { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9.5rem; }
  .mosaique__case:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mosaique__case:nth-child(6) { grid-column: span 2; }
  .actus { grid-template-columns: 1fr; }
  .etapes--quatre { grid-template-columns: 1fr; }
  .etape { flex-direction: row; gap: 1.2rem; padding-right: 0; }
  .etape__rang { flex: none; }
  .etape::after { display: block !important; left: 1.7rem; right: auto; top: 3.6rem; bottom: -1.4rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--p-rouge-clair), rgba(255, 255, 255, .1)); }
  .etape:last-child::after { display: none !important; }
  .js .etape::after { transform-origin: center top; transform: scaleY(0); }
  .js .etape.est-vue::after { transform: scaleY(1); }
  .fiche-marque { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
  .pied__dedans { grid-template-columns: 1fr; gap: 2.2rem; }
  .pied__signature { margin-left: 0; }
  /* Sept liens les uns sous les autres faisaient un pied interminable :
     deux colonnes. */
  .pied__liens { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
  .pied__liens a { padding: .45rem 0; }
  .pied__bas { padding-bottom: 1.4rem; }
  .cartes-photo--quatre { grid-template-columns: 1fr; }
  .cartes-photo--trois .carte-photo, .cartes-photo--quatre .carte-photo { flex-direction: column; }
  .cartes-photo--trois .carte-photo__image { flex: none; aspect-ratio: 16 / 9; }
  .visionneuse[open] { grid-template-rows: 1fr auto auto; row-gap: .5rem; padding-bottom: calc(clamp(.8rem, 3vw, 2rem) + env(safe-area-inset-bottom)); }
  .visionneuse__cadre { grid-area: 1 / 1 / 2 / 4; }
  .visionneuse__pied { display: contents; }
  .visionneuse__vide { display: none; }
  .visionneuse__legende { grid-area: 2 / 1 / 3 / 4; min-height: 1.4em; }
  .visionneuse__nav { width: 48px; height: 48px; }
  .visionneuse__nav--avant { grid-area: 3 / 1; }
  .visionneuse__nav--apres { grid-area: 3 / 3; }
  .visionneuse__compteur { grid-area: 3 / 2; align-self: start; margin-top: .2rem; text-align: center; font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
  .visionneuse__points { grid-area: 3 / 2; align-self: end; margin-bottom: .2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .visionneuse__points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
  .visionneuse__points i.est-actif { background: #fff; transform: scale(1.35); }
  .commutateur { left: .75rem; right: .75rem; width: auto; bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .entete .choix-langue { display: none; }
  .marque__logo { height: 40px; }
  .tuiles--quatre { grid-template-columns: 1fr; }
  .tuile { aspect-ratio: 16 / 10; }
  .produits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .produit__corps { padding: .9rem .9rem 1rem; }
  .produit__nom { font-size: 1rem; }
  .produit__texte { -webkit-line-clamp: 2; font-size: .86rem; }
  .produit__pied { flex-direction: column; align-items: flex-start; }
  .fiche__ligne, .horaire { grid-template-columns: 1fr; gap: .3rem; }
  .pied__horaires .horaire { grid-template-columns: 1fr auto; }
  .circuits__photos { grid-template-columns: 1fr; }
  .circuits__photo--1 { grid-column: auto; }
}
@media (max-width: 480px) {
  /* Le héros Piste en capitales italiques : les mots longs du néerlandais
     et de l'allemand débordaient à 320 px. Le ruban cède sa place — le mur
     des marques est plus bas sur la page. */
  .hero__texte--centre .titre-hero { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .hero--piste .ruban { display: none; }
}
@media (max-width: 420px) {
  .hero__boutons, .appel__boutons, .erreur__liens { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__boutons .bouton, .appel__boutons .bouton { width: 100%; }
  .hero__dedans { padding-top: clamp(1.6rem, 5vh, 2.4rem); gap: 1rem; }
  .hero__texte::before { margin-bottom: 1rem; width: 70px; height: 8px; }
  .hero__boutons { margin-top: 1.3rem; gap: .6rem; }
  .chapo--hero { font-size: 1rem; margin-top: .9rem; }
}
@media (max-width: 380px) {
  .produits { grid-template-columns: 1fr; }
}
/* Les petits téléphones (320 × 640) : en néerlandais et en allemand, les
   textes plus longs poussaient les repères sous le pli. Les écarts et
   l'ornement cèdent avant le contenu. */
@media (max-width: 480px) and (max-height: 820px) {
  :root { --t-hero: clamp(1.75rem, 8vw, 2.2rem); }
  .hero__dedans, .hero--cabine .hero__texte { padding-top: 1.1rem; gap: .7rem; }
  .hero__texte::before { display: none; }
  .chapo--hero { font-size: .93rem; line-height: 1.5; margin-top: .6rem; }
  .hero__boutons { margin-top: .9rem; gap: .5rem; }
  .hero__boutons .bouton { min-height: 44px; padding: .7rem 1.2rem; }
  .reperes { padding-block: .2rem .8rem; }
  .repere { padding: .5rem .8rem; }
  .repere > span { font-size: .72rem; margin-top: .15rem; }
  .hero__visuel { min-height: 40vw; }
}

/* ── Cibles tactiles : 44 px au doigt ──────────────────────────────────
   Par STRUCTURE plutôt que par liste : un lien seul dans son conteneur
   est un contrôle ; un lien au fil d'une phrase n'en est pas un. */
@media (pointer: coarse) {
  /* La zone de toucher grandit SANS toucher à la mise en page : un
     rembourrage vertical repris aussitôt par une marge négative.
     ⚠ Pas d'inline-flex ici : sur l'adresse (trois lignes séparées par
     des <br>), il mettait les lignes côte à côte et poussait le texte
     sous l'icône — visible au doigt seulement, jamais à la souris. */
  .pied__liens a, .pied__coordonnees a, .pied__signature a, .fiche dd a, .avis__source a {
    display: inline-block;
    padding-block: max(0px, calc((44px - 1lh) / 2));
    margin-block: min(0px, calc((1lh - 44px) / 2));
  }
  .lien-fleche { min-height: 44px; }
  .annonce__fermer { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
}
