/* OBENIERE · nouveau design v2
   Les couleurs viennent de ../assets/couleurs.css (palette de la marque, inchangée). */

:root {
  --bg: var(--ink);
  --on: #ffffff;
  --on-2: rgba(255, 255, 255, .72);   /* texte secondaire sur fond sombre */
  --on-3: rgba(255, 255, 255, .5);    /* légendes */
  --rule: rgba(255, 255, 255, .14);   /* filets sur fond sombre */
  --pad: clamp(20px, 3.4vw, 50px);
  --display: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--bg); color: var(--on);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: #fff; color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 0; }
.arr { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Typographie d'affichage : capitales condensées ── */
.kick {
  margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-2);
}
.h1, .h2, .hero__title {
  margin: 0; font-family: var(--display); font-weight: 300; text-transform: uppercase;
  line-height: .98; letter-spacing: .005em; text-wrap: balance;
}
.h1 { font-size: clamp(44px, 6.4vw, 96px); }
.h2 { font-size: clamp(36px, 4.6vw, 68px); }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 15px;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.btn--wine { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn--wine:hover { background: #fff; color: var(--wine); border-color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; min-height: 44px; padding: 0 20px; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--text { padding: 0; min-height: 52px; color: #fff; }
.btn--text:hover .arr { transform: translateX(4px); }
.btn .arr { transition: transform .2s; }

/* ── Hero : cadre arrondi, panneau en verre, carrousel ── */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__frame { position: relative; height: calc(100svh - var(--hdr)); min-height: 620px; overflow: hidden; isolation: isolate;
  background: var(--night); }
.hero__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 10, 10, .68) 0%, rgba(10, 10, 10, 0) 40%), linear-gradient(270deg, rgba(11, 22, 51, .28) 0%, rgba(11, 22, 51, 0) 48%); }
.hero__slide { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide video { width: 100%; height: 100%; object-fit: cover; }

/* Chiffres clés */
.hstats { position: absolute; left: clamp(22px, 3vw, 40px); bottom: clamp(22px, 3vw, 36px); display: flex; margin: 0; }
.hstats div { display: grid; gap: 2px; padding: 0 clamp(18px, 2.6vw, 38px); border-left: 1px solid rgba(255, 255, 255, .4); }
.hstats div:first-child { padding-left: 0; border-left: 0; }
.hstats dt { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.hstats dd { margin: 0; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-2); }

/* Colonne de droite */
.hero__side { position: absolute; top: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); width: clamp(300px, 29vw, 410px); display: flex; flex-direction: column; gap: 14px; }
.glass { padding: clamp(22px, 2.2vw, 30px); background: rgba(10, 10, 10, .42); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); transition: opacity .25s; }
.glass.is-swapping { opacity: 0; }
.glass .kick { margin-bottom: 10px; font-size: 13px; }
.hname { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(38px, 3.8vw, 58px); line-height: 1; letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.hprice { margin: 12px 0 0; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.hdesc { margin: 14px 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--on-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }

/* Miniature + bouton lecture */
.thumb { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); background: var(--night); padding: 0; }
.thumb:disabled { cursor: default; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.thumb:not(:disabled):hover img { transform: scale(1.05); }
.thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .82)); }
.thumb__caption { position: absolute; z-index: 2; right: 12px; bottom: 10px; left: 12px; color: #fff; text-align: left; font-size: 13px; font-weight: 500; }

.thumb .play { position: absolute; inset: 50% auto auto 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); clip-path: none; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.thumb .play[hidden] { display: none; }
.thumb .play svg { width: 22px; height: 22px; fill: var(--wine); }
.thumb:hover .play { background: var(--wine); }
.thumb:hover .play svg { fill: #fff; }

/* Compteur + flèches */
.hnav { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.hcount { margin: 0; font-family: var(--display); font-size: 16px; letter-spacing: .12em; color: var(--on-3); }
.hcount b { font-weight: 500; font-size: 20px; color: #fff; }
.hnav__btns { display: flex; gap: 8px; }
.hnav .round { width: 44px; height: 44px; background: rgba(10, 10, 10, .42); border-color: rgba(255, 255, 255, .3); }
.hnav .round:hover { background: #fff; }

/* Vidéo en fenêtre */
.vdlg { width: min(1000px, 92vw); padding: 0; border: 0; overflow: visible; background: #000; color: #fff; }
.vdlg::backdrop { background: rgba(0, 0, 0, .82); }
.vdlg video { display: block; width: 100%; max-height: 82svh; }
.vdlg__x { position: absolute; z-index: 2; top: -56px; right: 0; background: rgba(10, 10, 10, .6); }

/* ── Sections ── */
#contenu :is(.sec, .cta) { padding: var(--section-pad, clamp(44px, 5.8vw, 76px)) var(--pad); }
#contenu { background: var(--paper); }
#contenu .sec, #contenu .cta {
  --bg: var(--paper);
  --on-2: #465064;
  --on-3: #566278;
  --rule: #dce2eb;
  color: var(--night);
  background: var(--bg);
}
#contenu .sec--alt, #contenu .cta { --bg: #f4f6f9; }
#contenu :is(.sec, .cta) .kick { color: var(--wine); }
#contenu :is(.sec, .cta) .btn--text { color: var(--navy); }
#contenu :is(.sec, .cta) .btn--wine:hover { border-color: var(--wine); }
#contenu :is(.sec, .cta) :focus-visible { outline-color: var(--navy); }
.sec__tools .round { background: var(--paper); color: var(--navy); border-color: var(--rule); }
.sec__tools .round:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.sec__tools { display: flex; gap: 10px; }
.round { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Modèles vedettes : rail horizontal */
#contenu #vedettes { padding-block: var(--section-pad, clamp(40px, 5.5vw, 64px)) var(--section-pad, clamp(48px, 6vw, 72px)); }
#vedettes .sec__head { margin-bottom: clamp(24px, 3vw, 32px); }
.rail { --rail-gap: 26px; display: flex; gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 clamp(280px, 30vw, 440px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 861px) {
  .rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .rail > .card { min-width: 0; flex-basis: calc((100% - 2 * var(--rail-gap)) / 3); }
  .rail > .card:focus-visible { outline-offset: -3px; }
}

.card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 14px; background: var(--night); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img img { transform: scale(1.05); }
.tag { position: absolute; top: 14px; right: 14px; padding: 5px 11px; font-style: normal; font-family: var(--display); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; background: var(--wine); color: #fff; }
/* Les textes respirent à l’intérieur des cartes ; les photos gardent toute la largeur. */
.card > .card__kick, .card > .card__name, .card > .card__price, .card > .card__spec { padding-inline: var(--card-pad, clamp(16px, 1.5vw, 22px)); overflow-wrap: anywhere; }
.card > .card__spec { padding-bottom: 16px; }
.card__kick, .card__spec { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-3); }
.card__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.card__name .arr { opacity: .7; transition: transform .2s, opacity .2s; }
.card:hover .card__name .arr { transform: translateX(5px); opacity: 1; }
.card__price { font-family: var(--display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }

/* Univers : 4 colonnes, grand chiffre pâle */
.uni { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.uni__card { position: relative; display: block; min-height: clamp(280px, 30vw, 420px); overflow: hidden; isolation: isolate; background: var(--ink); }
.uni__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.uni__card::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 22, 51, .15) 0%, rgba(11, 22, 51, .55) 45%, rgba(10, 10, 10, .94) 100%); }
.uni__card:hover img { transform: scale(1.06); }
.uni__txt { color: #fff; position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 22px; }
.uni__txt b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.uni__txt small { font-size: 14px; color: rgba(255, 255, 255, .86); line-height: 1.4; }
.uni__txt i { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-style: normal; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.uni__card:hover .uni__txt i .arr { transform: translateX(5px); }
.uni__txt i .arr { transition: transform .2s; }

.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 70px; height: 78px; transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; transition: background .2s; }
.play svg { width: 28px; height: 28px; fill: #fff; }

/* Comment commander : frise en 4 étapes + engagements */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.steps li { position: relative; display: grid; align-content: start; gap: 10px; padding: 24px 28px 8px 0; }
.steps li + li { padding-left: 28px; }
.steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px var(--bg); }
.steps li + li::before { left: 28px; }
.steps__n { font-family: var(--display); font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--on-3); }
.steps b { font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.steps p { margin: 0; font-size: 15px; color: var(--on-2); max-width: 32ch; }
.pledge { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pledge li { display: grid; gap: 6px; padding: 6px 0 6px 20px; border-left: 3px solid var(--wine); }
.pledge b { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }
.pledge span { font-size: 14.5px; color: var(--on-2); max-width: 40ch; }

/* Services */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.svc li { padding: 20px 24px 8px 0; display: grid; align-content: start; gap: 10px; }
.svc li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.svc b { font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.svc p { margin: 0; font-size: 15px; color: var(--on-2); max-width: 30ch; }

/* Appel à l'action */
#contact .h1 { font-size: clamp(38px, 5vw, 76px); }
.cta__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }

/* WhatsApp et compteur flottants */
.wa-float { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  background: var(--wa); color: #fff; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); cursor: pointer; transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ── Adaptatif ── */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(3)::before { left: 0; }
  .pledge { grid-template-columns: 1fr; }
  .uni { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .sec__tools { display: none; }
}
@media (max-width: 860px) {
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 6px 22px; border-left: 1px solid var(--rule); }
  .steps li::before, .steps li + li::before { top: 32px; left: -6px; }
  .steps { border-top: 0; }
  .uni { grid-template-columns: 1fr; }
  .uni__card { min-height: 260px; }
  .svc { grid-template-columns: 1fr; }
  .svc li, .svc li + li { padding: 22px 0 6px; border-left: 0; }
  .svc li + li { border-top: 1px solid var(--rule); }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 54px; justify-content: center; }
}
@media (max-width: 860px) {
  .hero__frame { height: auto; min-height: calc(100svh - var(--hdr) - 30px); max-height: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 16px; }
  .hero__frame::before { background: linear-gradient(0deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .15) 70%); }
  .hstats { position: static; order: 1; margin-top: auto; }
  .hstats dt { font-size: 28px; }
  .hstats dd { font-size: 11.5px; letter-spacing: .1em; }
  .hero__side { position: static; order: 2; width: 100%; gap: 12px; }
  .thumb { display: none; }
  .vdlg__x { top: 10px; right: 10px; }
}
@media (max-width: 560px) {
  .hstats div { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Champs masqués par les réglages du hero. */
.hero [hidden] { display: none !important; }

/* Formulaire de devis : parcours commun avec la boutique. */
.home-quote { width: min(560px, calc(100vw - 32px)); max-height: 90svh; overflow-y: auto; padding: 28px; background: var(--paper); color: var(--night); border: 1px solid var(--line); }
.home-quote::backdrop { background: rgba(0, 0, 0, .8); }
.home-quote__close { float: right; font-size: 28px; }
.home-quote h2 { font-family: var(--display); font-size: 32px; font-weight: 400; }
.home-quote form, .home-quote label { display: grid; gap: 8px; }
.home-quote form { gap: 16px; clear: both; }
.home-quote input, .home-quote textarea { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; background: #fff; color: #111; border: 1px solid #aaa; }
.home-quote textarea { min-height: 100px; resize: vertical; }
.home-quote form p { font-size: 14px; color: #465064; }
.home-quote :focus-visible { outline-color: var(--navy); }
.home-quote .btn--wine:hover { border-color: var(--wine); }
.home-contact-notice { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 14px 20px; background: #fff; color: #111; box-shadow: 0 4px 24px #0006; }
.home-contact-notice[hidden] { display: none; }

[hidden] { display: none !important; }
.home-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--night), var(--navy)); }
.svc li > a { display: grid; gap: 10px; }
.svc li > a:hover b { text-decoration: underline; text-underline-offset: 5px; }

.hero__mobile-video { display: none; }
@media (max-width: 860px) {
  .hero__mobile-video.btn {
    display: inline-flex; min-height: 44px; justify-content: flex-start; padding: 0;
    color: rgba(255, 255, 255, .85); font: 500 12px/1.4 var(--font);
    letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px;
  }
  .hero__mobile-video.btn:hover, .hero__mobile-video.btn:focus-visible { color: #fff; }
}

/* Accueil vitrine : les prix sont réservés aux pages de la boutique.
   Cette feuille est chargée uniquement par index.html. */
body:not(.home-show-prices) .hprice, body:not(.home-show-prices) .card__price { display: none !important; }

/* Accueil mobile : barre de commandes masquée par défaut. */
@media (max-width: 860px) {
  body:not(.home-mobile-controls) .hero .hnav { display: none; }
}

/* Présentation mobile compacte : davantage de vidéo visible au-dessus du panneau. */
@media (max-width: 860px) {
  body:not(.home-mobile-stats) .hero .hstats { display: none; }
  .home-mobile-compact .hero__frame {
    min-height: max(420px, calc(100svh - var(--hdr)));
    padding: clamp(88px, 20svh, 180px) 0 clamp(48px, 9svh, 80px);
    gap: 12px;
  }
  .home-mobile-compact .hero__side { gap: 10px; }
  .home-mobile-compact .glass { padding: 16px; background: rgba(10, 10, 10, .62); }
  .home-mobile-compact .glass .kick { font-size: 11px; letter-spacing: .1em; margin-bottom: 8px; }
  .home-mobile-compact .hname {
    font-size: clamp(30px, 8vw, 38px); line-height: 1.05;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .home-mobile-compact .hdesc {
    font-size: 14px; line-height: 1.45; margin: 10px 0 14px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .home-mobile-compact .hprice { margin-top: 8px; font-size: 17px; }
  .hero__cta { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; gap: clamp(8px, 3vw, 18px); }
  .hero__cta .btn { min-height: 44px; min-width: 0; gap: 7px; padding: 8px 10px; font-size: 13px; letter-spacing: .06em; white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .hero__cta .btn--text { padding-inline: 0; }
}

/* Rubrique au-dessus du titre du bloc vidéo, réactivable dans l’extension. */
body:not(.home-hero-kicker) #hKick { display: none; }

/* Description du bloc vidéo masquée par défaut, conservée dans les réglages. */
body:not(.home-hero-description) #hDesc { display: none; }
.hero__cta { margin-top: 16px; }

/* Mobile : textes directement sur la vidéo, sans panneau en verre. */
@media (max-width: 860px) {
  body.home-mobile-overlay .hero .glass {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 12px clamp(16px, 4.5vw, 32px) 4px;
  }
  body.home-mobile-overlay .hero__frame::before {
    background:
      linear-gradient(to top, rgba(9, 15, 27, .94), rgba(9, 15, 27, .64) 36%, rgba(9, 15, 27, .22) 63%, transparent 86%),
      linear-gradient(to right, rgba(9, 15, 27, .28), transparent 85%);
  }
  body.home-mobile-overlay .hname {
    display: block; font-size: clamp(34px, 9vw, 48px); line-height: 1.03; text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  }
  body.home-mobile-overlay .hero .hdesc { display: block; max-width: 42ch; line-height: 1.5; color: rgba(255, 255, 255, .88); }
  body.home-mobile-overlay:not(.home-hero-description) .hero .hdesc { display: none; }
  body.home-mobile-overlay .hero__cta { max-width: 520px; }
}

/* Le réglage d'encadrement reste disponible sur mobile. */
@media (max-width: 860px) {
  body:not(.home-mobile-fullwidth) .hero { padding: 14px var(--pad) 22px; }
  body:not(.home-mobile-fullwidth) .hero__frame { box-shadow: 0 12px 34px rgba(11, 22, 51, .14); }
}

/* Flèches latérales, indépendantes de la barre de commandes inférieure. */
.hero__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; background: rgba(0, 0, 0, .48);
  border-color: rgba(255, 255, 255, .55); color: #fff;
}
.hero__arrow--prev { left: max(12px, env(safe-area-inset-left)); }
.hero__arrow--next { right: max(12px, env(safe-area-inset-right)); }
body:not(.home-hero-arrows) .hero__arrow { display: none; }
@media (min-width: 861px) { .home-hero-arrows .hero__side { right: 76px; } }
@media (max-width: 860px) {
  .hero__arrow { top: 30%; width: 44px; height: 44px; }
}

/* Navigation du bandeau : disques blancs et repère fin de la vidéo active. */
.hero .hero__arrow {
  background: #fff; color: #111; border: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
  width: 48px; height: 48px;
}
.hero .hero__arrow--prev { left: max(4px, env(safe-area-inset-left)); }
.hero .hero__arrow--next { right: max(4px, env(safe-area-inset-right)); }
.hero .hero__arrow svg { width: 22px; height: 22px; stroke-width: 1.8; }
.hero .hero__arrow:hover { background: #eee; }
.hero__pagination { position: absolute; z-index: 3; inset: auto 0 0; display: flex; gap: 2px; }
.hero__pagination button { position: relative; flex: 1; min-width: 0; height: 24px; }
.hero__pagination button::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: #737780; transition: background .2s; }
.hero__pagination button:hover::after { background: #a8adb6; }
.hero__pagination button[aria-current="true"]::after { background: #d3d6dc; }
.hero__pagination button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
body:not(.home-hero-progress) .hero__pagination { display: none; }
@media (max-width: 860px) {
  .home-mobile-overlay .hero__pagination {
    inset: auto auto max(20px, env(safe-area-inset-bottom)) clamp(16px, 4.5vw, 32px);
    width: min(56%, 280px); gap: 8px;
  }
}
@media (max-width: 860px) { .hero .hero__arrow { top: 45%; } }

/* Courte présentation sous le nom du modèle. */
.hero .hdesc { font-size: 14px; line-height: 1.45; margin: 8px 0 12px; }
@media (max-width: 860px) { .hero .hdesc { font-size: 13px; line-height: 1.4; } }

/* Galerie Sur le terrain */
.terrain__gallery { display: flex; flex-direction: column; }
.terrain__tabs { order: 1; }
.terrain__scene { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin: 0; }
.terrain__image { height: clamp(280px, 32vw, 560px); overflow: hidden; background: var(--mist); }
.terrain__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.terrain__image img[src$="/terrain-route.webp"] { object-position: center 92%; }
.terrain__caption { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 4vw, 56px); background: #f4f6f9; }
.terrain__caption strong { font-family: var(--display); font-size: clamp(26px, 3vw, 48px); line-height: 1.05; font-weight: 400; }
.terrain__caption p { margin: 0; max-width: 38ch; color: var(--on-2); }
@media (max-width: 760px) {
  .terrain__scene { grid-template-columns: minmax(0, 1fr); }
  .terrain__image { height: clamp(220px, 60vw, 380px); }
  .terrain__caption { padding: 22px; }
}
.terrain__caption a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.terrain__caption a:hover { text-decoration: underline; }
.terrain__tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.terrain__tabs button { min-height: 44px; padding: 10px 2px; border-bottom: 3px solid transparent; color: var(--on-2); }
.terrain__tabs button:hover { color: var(--night); }
.terrain__tabs button[aria-selected="true"] { color: var(--night); border-bottom-color: var(--wine); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .terrain__scene:not([hidden]) img { animation: terrain-fade .25s ease-out; }
}
@keyframes terrain-fade { from { opacity: .45; } to { opacity: 1; } }

/* Accueil sur ordinateur : colonne de droite plus compacte (titre, miniature vidéo, compteur).
   La largeur suit l'écran (23 % de la largeur, entre 270 et 350 px) ; la miniature s'adapte à la place restante ;
   le texte et les marges se resserrent encore quand l'écran est peu haut (13 pouces). */
@media (min-width: 861px) {
  .hero__side { --side-w: clamp(270px, 23vw, 350px); width: var(--side-w); }
  .hero__side .thumb { flex: 1 1 0; min-height: 96px; aspect-ratio: auto; max-height: calc(var(--side-w) * 9 / 16); }
  .hero__side .glass { flex: 0 0 auto; padding: clamp(16px, 1.5vw, 22px); }
  .hero__side .glass .kick { margin-bottom: 8px; font-size: 12px; }
  .hero__side .hname { font-size: clamp(28px, 2.6vw, 40px); }
  .hero__side .hdesc { margin: 8px 0 12px; font-size: 13.5px; line-height: 1.45; }
  .hero__side .hero__cta { margin-top: 12px; gap: 4px 20px; }
  .hero__side .hero__cta .btn { min-height: 44px; padding-inline: 18px; font-size: 13px; }
  .hero__side .hero__cta .btn--text { padding-inline: 0; }
  .hero__side .hnav { justify-content: flex-start; gap: 18px; }
  .hero__side .hnav .round { width: 40px; height: 40px; }
  .hero__side .thumb .play { width: 40px; height: 40px; }
  .hero__side .thumb .play svg { width: 19px; height: 19px; }
}
@media (min-width: 861px) and (max-height: 900px) {
  .hero__side { gap: 10px; }
  .hero__side .hnav .round { width: 36px; height: 36px; }
}

/* ── « Je cherche ce modèle » : fenêtre ouverte à la demande, qui prépare un message WhatsApp ── */
.find-model__open { min-height: 44px; max-width: 100%; margin-top: 6px; padding-block: 8px; font-size: 14px; line-height: 1.35; text-transform: none; letter-spacing: 0; color: var(--wine); text-align: left; white-space: normal; align-items: flex-start; }
.find-model__open .arr { flex: 0 0 auto; margin-top: 2px; }
.find-model__lead { margin: 8px 0 0; font-size: 15px; color: #465064; clear: both; }
.find-model__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 18px; }
.find-model__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.find-model__form :is(input, select) { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-weight: 400; background: #fff; color: #111; border: 1px solid #aab3c2; border-radius: 0; }
.find-model__form select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2314284b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 9px; }
.find-model__form :is(input, select):focus-visible { outline: 2px solid var(--navy, #14284b); outline-offset: 1px; }
.find-model__err { grid-column: 1 / -1; margin: 0; padding: 10px 12px; font-size: 14px; color: #8a1c1c; background: #fdecec; border-left: 3px solid #b3261e; }
.find-model__form .btn { grid-column: 1 / -1; justify-self: start; }
.find-model__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #566278; }
.find-model-dlg { width: min(620px, calc(100vw - 32px)); }
@media (max-width: 560px) {
  .find-model__form { grid-template-columns: 1fr; }
  .find-model__form .btn { justify-self: stretch; }
}
.find-model__form .find-model__wide { grid-column: 1 / -1; }

.customs-feature { padding: clamp(30px, 5vw, 64px) var(--pad); background: var(--night, #0b1633); color: #fff; border-top: 4px solid var(--wine, #7a0c16); }
.customs-feature__copy { max-width: 900px; }
.customs-feature .kick { color: #fff; }
.customs-feature .h2 { margin: 0; }
.customs-feature__copy > p:not(.kick) { margin: 14px 0 0; }
.customs-feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.customs-feature__actions .btn--outline { border: 1px solid currentColor; color: #fff; }
