/* Page Site vitrine (10 novembre 2026, sixième passe).
   1. Ce que vous recevez : à l'ordinateur, la liste à gauche et les trois écrans à droite, moins grands.
   2. Comment ça se passe : le film de la Brasserie Mertens et ses six étapes côte à côte ; l'étape en cours
      s'allume pendant le film, un clic sur une étape y amène le film.
   3. Sous le capot : deux façons de construire le site, en deux fiches à comparer.
   4. Avant de signer : deux fiches (la troisième, « Vous modifiez », est passée dans « Sous le capot »). */

/* ---------- 1. Ce que vous recevez ---------- */
@media (width >= 960px) {
  html body .sv-recu > .v-wrap {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 88px); align-items: start;
    grid-template-areas: "tete ecrans" "liste ecrans" "metiers ecrans";
  }
  html body .sv-recu .v-site-tete { grid-area: tete; margin-bottom: clamp(18px, 2vw, 28px); }
  html body .sv-recu .v-site-appareils { grid-area: ecrans; align-self: center; margin: 0; }
  html body .sv-recu ul.v-site-libelles { grid-area: liste; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; max-width: none; border-top: 1px solid var(--joint); }
  html body .sv-recu ul.v-site-libelles li { padding-block: 11px; border-bottom: 1px solid var(--joint); font-size: 1.0625rem; line-height: 1.4; color: var(--pierre); }
  html body .sv-recu ul.v-site-libelles li::before { top: calc(11px + .5lh + .075em - 5.2px); border-color: var(--cobalt); }
  html body .sv-recu .v-recu__metiers { grid-area: metiers; margin-top: clamp(18px, 2vw, 26px); }
  html body .sv-recu .v-appareils__legende { justify-content: center; }
}

/* ---------- 2. Comment ça se passe ---------- */
html body .sv-methode__grille { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(20px, 3vw, 40px); }
html body .sv-film { order: -1; margin: 0; min-width: 0; }   /* au téléphone le film d'abord, les étapes dessous */
html body .sv-film__cadre {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; border-radius: 20px; background: #0b1530;
  box-shadow: 0 0 0 1px rgba(22, 28, 34, .1), 0 2px 6px rgba(11, 21, 48, .1), 0 28px 56px -24px rgba(11, 21, 48, .42), 0 70px 120px -60px rgba(12, 93, 254, .32);
}
html body .sv-film__cadre :is(picture, img, video) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
html body .sv-film__cadre :is(img, video) { object-fit: cover; }
html body .sv-film__video { opacity: 0; transition: opacity .4s var(--ease); }
html body .sv-film__video.est-pret { opacity: 1; }
html body .sv-film__rejouer {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(9, 16, 36, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: 600 .875rem/1 var(--f-studio); cursor: pointer; transition: background-color var(--t-survol, .18s) var(--ease);
}
html body .sv-film__rejouer[hidden] { display: none; }
html body .sv-film__rejouer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .sv-film__rejouer:is(:hover, :focus-visible) { background: var(--cobalt); }
html body .sv-film__rejouer:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html body .sv-film__legende { margin-top: 14px; color: var(--pierre-douce); font-size: .9375rem; line-height: 1.5; }
html body .sv-film__legende a { color: var(--pierre); white-space: nowrap; }

/* les six étapes : une liste verticale sur un fil ; le fil se remplit avec le film */
html body .sv-etapes { --avance: 0; position: relative; display: grid; margin: 0; padding: 0; list-style: none; counter-reset: none; }
html body .sv-etapes::before, html body .sv-etapes::after { content: ""; position: absolute; left: 19px; top: var(--haut, 32px); bottom: var(--bas, 32px); width: 2px; border-radius: 2px; background: var(--joint); }
html body .sv-etapes::after { background: var(--cobalt); transform-origin: 50% 0; transform: scaleY(var(--avance)); transition: transform .35s linear; }
html body .sv-etape {
  position: relative; z-index: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; align-items: start; width: 100%;
  padding: 12px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html body .sv-etape__n {
  grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--joint); border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 6px var(--chaux); color: var(--pierre-douce); font-size: 1rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
html body .sv-etape__titre { padding-top: 1px; color: var(--pierre); font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -.012em; }
html body .sv-etape__texte { color: var(--pierre-douce); font-size: 1rem; line-height: 1.45; transition: color .3s var(--ease); }
html body .sv-etape:is(:hover, :focus-visible) .sv-etape__n { border-color: var(--cobalt); color: var(--cobalt); }
html body .sv-etape:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 10px; }
html body .sv-etapes li.est-passee .sv-etape__n { border-color: var(--cobalt); color: var(--cobalt); }
html body .sv-etapes li.est-active .sv-etape__n { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
html body .sv-etapes li.est-active .sv-etape__texte { color: var(--pierre); }
/* le cadrage en hauteur ne sert qu'au téléphone : dès 600 px le film passe en largeur (sur tablette, en hauteur, il ferait plus d'un écran) */
@media (width >= 600px) { html body .sv-film__cadre { aspect-ratio: 16 / 10; } }
@media (width >= 960px) {
  html body .sv-methode__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 88px); align-items: center; }
  html body .sv-film { order: 2; }
  html body .sv-film__cadre { border-radius: clamp(16px, 1.6vw, 24px); }
}
@media (prefers-reduced-motion: reduce) { html body .sv-etapes::after, html body .sv-etape__n, html body .sv-film__video { transition: none; } }

/* ---------- 3. Sous le capot ---------- */
html body .sv-tete { display: grid; gap: 14px; max-width: 46rem; }   /* comme .v-site-tete, la tête de « Ce que vous recevez » */
html body .sv-tete > .v-title, html body .sv-tete > .v-accroche { margin: 0; }
html body .sv-capot__choix { display: grid; gap: clamp(14px, 2vw, 24px); margin-top: clamp(22px, 3vw, 40px); }
@media (width >= 760px) { html body .sv-capot__choix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html body .sv-choix { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--joint); border-radius: clamp(14px, 1.4vw, 20px); background: #fff; }
html body .sv-choix__etiquette { justify-self: start; margin: 0 0 4px; padding: 5px 11px; border-radius: 999px; background: var(--chaux); color: var(--pierre-douce); font-size: .8125rem; font-weight: 650; line-height: 1.2; letter-spacing: .01em; }
html body .sv-choix--option .sv-choix__etiquette { background: color-mix(in srgb, var(--cobalt) 10%, #fff); color: var(--cobalt-fonce, #0a4bd1); }
html body .sv-choix h3 { margin: 0; color: var(--pierre); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); font-weight: 650; line-height: 1.2; letter-spacing: -.015em; }
html body .sv-choix > p:not(.sv-choix__etiquette) { margin: 0; color: var(--pierre-douce); font-size: 1.0625rem; line-height: 1.5; }
html body .sv-choix .v-coches { margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--joint); gap: 9px; list-style: none; font-size: 1rem; line-height: 1.45; color: var(--pierre); }
html body .sv-choix .v-coches li::before { border-color: var(--cobalt); }

/* ---------- 4. Avant de signer : deux fiches ---------- */
@media (width >= 760px) { html body .sv-avant .dm-avant__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
