/* « hidden » veut dire caché, toujours (voir reservation.css). */
[hidden] { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   LA NOUVELLE RÉSERVATION (aperçu ?apercu=nouveau, Vincent, 10 nov. 2026).
   L'habit de la démo approuvée, posé sur les vrais écrans : noir, blanc, #0077F9 seulement;
   Poppins 600 pour les titres; vraies photos de chantier; le bleu pour l'action.
   Tout est sous .rv2 : sans l'aperçu, rien ne change.
   ══════════════════════════════════════════════════════════════════════════ */
.rv2 {
    -webkit-tap-highlight-color: transparent;
    background: #fff;
    /* Les jetons de la plateforme, ramenés aux trois couleurs (noir, blanc, #0077F9) pour tout le parcours.
       Le petit texte bleu passe au noir (4,2:1 sur blanc ne suffit pas). Seul le rouge des erreurs reste :
       une erreur doit se voir. */
    --vp-clair: #0077F9; --vp-fonce: #000; --vp-encre: #000; --vp-texte: #000;
    --noir: #000; --ink: #000; --ink-2: rgba(0, 0, 0, .78); --ink-3: rgba(0, 0, 0, .62);
    --bord: rgba(0, 0, 0, .2); --bord-doux: rgba(0, 0, 0, .1); --bord-carte: rgba(0, 0, 0, .06); --champ: #fff;
    --ok: #000; --ok-fond: rgba(0, 119, 249, .07); --attention: #000; --attention-fond: rgba(0, 119, 249, .07);
}
.rv2 .page { padding: 0; background: #fff; }
.rv2 .shell { max-width: 480px; margin: 0 auto; padding: 0 20px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; column-gap: 12px; }
/* align-content: start — une page plus courte que l'écran étirait ses rangées : le logo descendait au milieu
   de la sienne, et l'en-tête sautait d'une étape à l'autre (et dans la conversation, à chaque réponse). */
.rv2 .shell > * { grid-column: 1 / -1; }
.rv2 .shell > .logo { grid-column: 1; justify-content: flex-start; margin: 0; height: 60px; }
.rv2 .shell > .rv2-appel { grid-column: 2; }
.rv2-appel { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .2); color: #000; font: 600 14px "Open Sans", system-ui, sans-serif; text-decoration: none; }
.rv2 .card { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.rv2 .card-head { padding: 4px 0 0; text-align: left; background: transparent; border: 0; }
.rv2 .card-body { padding: 0; }
.rv2 .surtitre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* « Étape 3 sur 4 » bien visible : le client voit le bout (Vincent, 10 nov., soir). */
.rv2 .avancement { display: block; margin: -10px 0 14px; font: 600 14px "Open Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #000; text-align: left; }
.rv2 .step-name { font: 600 28px/1.12 Poppins, system-ui, sans-serif; letter-spacing: -.02em; text-align: left; margin: 4px 0 14px; color: #000; text-wrap: balance; }
.rv2 .steps { position: relative; display: block; height: 3px; margin: 0 0 18px; background: rgba(0, 0, 0, .1); border-radius: 3px; overflow: hidden; }
.rv2 .steps .dot { display: none; }
.rv2 .steps::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 20%; background: #0077F9; transition: width .4s; }
.rv2[data-etape="2"] .steps::before { width: 45%; }
.rv2[data-etape="3"] .steps::before { width: 70%; }
.rv2[data-etape="4"] .steps::before { width: 90%; }
.rv2 .help { text-align: center; color: rgba(0, 0, 0, .62); }
.rv2 .help a { color: #000; }

/* Les encadrés : noir sur voile bleu, sans bordure lourde. */
.rv2 .flash { background: rgba(0, 119, 249, .07); color: #000; border: 0; border-left: 3px solid #000; border-radius: 10px; font-size: 14px; }
.rv2 .flash a, .rv2 .flash b { color: #000; }
.rv2 .bande-confiance { display: none; }

/* Les champs et les boutons */
.rv2 .fld label, .rv2 .fld .legende { font-weight: 600; color: #000; }
.rv2 .fld input[type="text"], .rv2 .fld input[type="email"], .rv2 .fld input[type="tel"], .rv2 .fld input[type="number"], .rv2 .fld select, .rv2 .fld textarea {
    min-height: 52px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 12px; font-size: 16px; background: #fff;
}
.rv2 .fld input:focus, .rv2 .fld select:focus, .rv2 .fld textarea:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 119, 249, .25); outline: 0; }
.rv2 .btn { background: #0077F9; color: #fff; border-radius: 14px; min-height: 56px; font: 700 19px Poppins, system-ui, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: none; }
.rv2 .actions { background: #fff; border-top: 1px solid rgba(0, 0, 0, .08); }
.rv2 .btn-retour { border-color: rgba(0, 0, 0, .2); color: #000; border-radius: 14px; }
.rv2 .groupe { border: 0; padding: 0; background: transparent; box-shadow: none; }

/* ── L'accueil « comme Uber » ─────────────────────────────────── */
.rv2 .card:has(.accueil-neuf) .card-head { display: none; }
.rv2 .card-body:has(.accueil-neuf) > :not(.accueil-neuf):not([role="alert"]) { display: none; }
.accueil-neuf { display: grid; gap: 10px; }
.an-titre { font: 600 32px/1.08 Poppins, system-ui, sans-serif; letter-spacing: -.03em; margin: 6px 0 0; color: #000; text-wrap: balance; }
.an-preuve { margin: 0 0 6px; font-size: 14px; color: rgba(0, 0, 0, .62); }
.an-etoiles { color: #000; letter-spacing: 1px; }
.rv2 .help-avis { text-align: center; margin: 4px 0 0; font-size: 13px; }
.rv2 .help-avis a { color: rgba(0, 0, 0, .62); text-decoration: none; }
.an-grande { position: relative; display: block; height: 230px; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: #000; transition: transform .12s ease-out; }
.an-grande img, .an-petite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.an-grande::after, .an-petite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .85)); }
.an-texte { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.an-texte small { justify-self: start; font: 600 14px "Open Sans", system-ui, sans-serif; color: #000; background: #fff; border-radius: 6px; padding: 2px 8px; }
.an-texte b { font: 600 28px Poppins, system-ui, sans-serif; color: #fff; }
.an-texte span { font-size: 15px; color: #fff; }
.an-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.an-petite { position: relative; display: block; height: 132px; border-radius: 16px; overflow: hidden; color: #fff; background: #000; text-decoration: none; transition: transform .12s ease-out; }
.an-petite b { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font: 600 17px/1.15 Poppins, system-ui, sans-serif; color: #fff; }
.an-dessin { background: rgba(0, 119, 249, .08); }
.an-dessin::after { display: none; }
.an-dessin .vp-ic { position: absolute; top: 14px; left: 12px; width: 28px; height: 28px; color: #0077F9; }
.an-dessin .an-filigrane { position: absolute; right: -14px; top: -10px; width: 96px; height: 96px; color: #0077F9; opacity: .1; stroke-width: 1.4; }
.an-dessin b { color: #000; }
.an-dessin b small { display: block; margin-top: 2px; font: 600 13px "Open Sans", system-ui, sans-serif; color: rgba(0, 0, 0, .65); }
.an-grande:active, .an-petite:active { transform: scale(.98); }
.an-liste { border: 1px solid rgba(0, 0, 0, .14); border-radius: 16px; margin-top: 6px; }
.an-liste > summary { padding: 14px 16px; font: 600 17px Poppins, system-ui, sans-serif; cursor: pointer; list-style: none; min-height: 52px; }
.an-liste > summary::-webkit-details-marker { display: none; }
.an-liste > summary::after { content: " ▾"; }
.an-liste[open] > summary::after { content: " ▴"; }
.an-rassure { text-align: center; font-size: 14px; color: rgba(0, 0, 0, .62); margin: 8px 0 0; }

/* ── L'étape 3 : une page, une section par titre ──────────────── */
.rv2-titre-ecran { font: 600 24px/1.15 Poppins, system-ui, sans-serif; letter-spacing: -.02em; margin: 32px 0 12px; color: #000; }
.rv2 #formulaire > .rv2-titre-ecran:first-of-type { margin-top: 6px; }
.rv2-sous-ecran { margin: -6px 0 12px; color: rgba(0, 0, 0, .62); }
.rv2[data-etape="3"] .step-name { display: none; }

/* Les forfaits : dans l'ordre des prix (Premium au milieu, « le plus choisi »), ce qui est inclus visible. */
.rv2 .fld.trio .choix-item.premium { order: 0; }
/* Au cellulaire, Premium en premier (Vincent, 9 et 10 nov. 2026 : « Premium en premier au cellulaire »),
   puis Économique et Prestige dans l'ordre des prix. À l'ordinateur, la grille garde Premium au centre. */
@media (max-width: 759px) {
    .rv2 .fld.trio .choix { display: flex; flex-direction: column; gap: 10px; }
    .rv2 .fld.trio .choix > .choix-item:not(.premium) { order: 1; }
    .rv2 .fld.trio .choix > .rv2-monter { order: 2; }
}
.rv2 .fld.trio .choix-item { border: 1px solid rgba(0, 0, 0, .14); border-radius: 20px; cursor: pointer; }
.rv2 .fld.trio .choix-item:has(input:checked) { border: 2px solid #0077F9; box-shadow: none; }
.rv2 .fld.trio .trio-l:has(input:checked) .trio-rond { background: #0077F9; border-color: #0077F9; }
.rv2 .fld.trio .trio-nom { font: 600 19px Poppins, system-ui, sans-serif; }
.rv2 .fld.trio .trio-prix { font: 600 22px Poppins, system-ui, sans-serif; }
.rv2 .trio-inclus > summary { display: none; }
.rv2 .fld.trio .trio-inclus .trio-texte { opacity: 1; font-size: 14px; }

/* Les ajouts : des cartes nettes, « Ajouter » en noir. */
.rv2 .fld.rangs .choix label { border-radius: 14px; }

/* ── La page « C'est réservé » ────────────────────────────────── */
.rv2 .fini { background: rgba(0, 119, 249, .08); color: #000; border-radius: 20px; padding: 24px 20px; }
.rv2 .fini h2, .rv2 .fini h1, .rv2 .fini b, .rv2 .fini p, .rv2 .fini strong { color: #000; }
.rv2 .barre-total { gap: 12px; }
.rv2 .barre-total-texte { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; font-weight: 600; color: #000; }
.rv2 .barre-total .btn { flex: none; width: auto; padding: 0 18px; }

/* Noir, blanc et #0077F9 seulement : l'encre et les gris de la plateforme passent au noir (et noir en transparence). */
.rv2, .rv2 .card-body { color: #000; }
.rv2 .cat-tx small, .rv2 .service-lien small, .rv2 .choisir-service small { color: rgba(0, 0, 0, .62); }
.rv2 .service-lien.on { background: rgba(0, 119, 249, .07); }
/* « J'ai un problème » : la proposition sur voile bleu, sans vert. */
.rv2 .proposition-boite { background: rgba(0, 119, 249, .07); border-color: transparent; color: #000; }
.rv2 .proposition-boite > :first-child { color: #000; }
/* Dans une fenêtre (visite en urgence…), le bouton suit le texte au lieu de couvrir la case à cocher. */
.rv2 .fenetre .actions { position: static; border-top: 0; }
/* La fenêtre prend la hauteur de l'écran (moins une marge) : au cellulaire, son bouton n'est plus coupé
   par le bas de la fenêtre (11 nov.). */
.rv2 .fenetre-in { max-height: calc(100dvh - 48px); }
.rv2 .urg-check { text-align: left; }
.rv2 .fenetre-in form .btn { width: 100%; }
/* L'icône de la fin : le bleu plein sur le noir, l'icône blanche bien visible. */
.rv2 .fini .coche { background: #0077F9; box-shadow: none; }
/* « Pour X $ de plus, passez au Premium » : discret, sous les forfaits. */
.rv2-monter { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 119, 249, .07); }
.rv2-monter p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; color: #000; }
.rv2-monter-btn { flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid #000; border-radius: 12px; background: #fff; color: #000; font: 600 15px "Open Sans", system-ui, sans-serif; cursor: pointer; }

/* ── Moins de noir (Vincent, 10 nov., soir : « A ») ─────────────────────────
   Le noir pour le texte et les fines bordures seulement. Ce qui est choisi : bordure #0077F9 et voile
   bleu, texte noir. Les blocs pleins passent au blanc ou au voile bleu. Le bleu plein reste l'action. */
.rv2 .categorie[open] .cat-ic { background: rgba(0, 119, 249, .12); color: #000; }
.rv2 .categorie[open] { border-color: #0077F9; }
.rv2 .urg-carte { border: 1px solid rgba(0, 0, 0, .14); }
.rv2 .lieu > summary { border: 1px solid rgba(0, 0, 0, .2); }
.rv2 .lieu[open] > summary { background: rgba(0, 119, 249, .08); color: #000; border-color: #0077F9; }
.rv2 .piscine-tuile:has(input:checked), .rv2 .px-jour:has(input:checked) { background: rgba(0, 119, 249, .08); border-color: #0077F9; box-shadow: inset 0 0 0 1px #0077F9; color: #000; }
.rv2 .piscine-tuile:has(input:checked) *, .rv2 .px-jour:has(input:checked) .px-jour-nom, .rv2 .px-jour:has(input:checked) .px-proche { color: #000; }
.rv2 .urg-carte-prix { background: rgba(0, 119, 249, .12); color: #000; }
.rv2 .trio-badge { background: rgba(0, 119, 249, .12); color: #000; }
.rv2 .fld.rangs .choix label:has(input:checked) .puce { background: rgba(0, 119, 249, .08); border-color: #0077F9; box-shadow: inset 0 0 0 1px #0077F9; }
.rv2 .fld.rangs .choix label:has(input:checked) .puce::after { color: #000; }
.rv2 .btn:hover { background: #0077F9; opacity: .9; }
/* La barre du bas (total + Suivant) ne cache jamais le pied de page (« Une question ? », English). */
@media (max-width: 720px) {
    .rv2 .page:has(.barre-total:not([hidden])) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* La barre « ‹ Suivant » collée en bas : l'ancien habit la tirait de 30 px sous la carte (sa marge du
   bas); ici la carte n'a plus de marge intérieure, et la barre couvrait « Une question ? » (Vincent,
   11 nov. : « chevauchement avec la barre fixe du bas »). */
@media (max-width: 640px) {
    .rv2 .actions { margin-bottom: 0; }
    /* À l'étape 3, la barre du total porte déjà « Suivant » : une seule barre collée en bas. « ‹ Suivant »
       reprend sa place au bout du formulaire, au lieu de dépasser sous la barre du total. */
    .rv2 .page:has(.barre-total:not([hidden])) .actions { position: static; }
}
/* Un seul « Suivant » à l'étape 3 : celui de la barre du total (Vincent, 11 nov. 2026, soir : « en
   double »). Au bout du formulaire, il ne reste que « ‹ » pour revenir à la journée. La barre n'existe
   qu'au cellulaire (reservation.css) : à l'ordinateur, le « Suivant » du formulaire reste. Sans le
   script de la barre, elle reste cachée et le « Suivant » du formulaire revient aussi. */
@media (max-width: 720px) {
    .rv2 .page:has(.barre-total:not([hidden])) .actions > button[form="etape3"] { display: none; }
}

/* « On cogne et on vous appelle d'abord » (étape 4) : la note gardait son brun et son beige écrits en dur;
   ici, noir sur voile bleu, comme les autres notes. */
.rv2 .fld .condition { border-color: rgba(0, 119, 249, .25); color: #000; }

/* Seule la carte CHOISIE a un contour (bleu) : le Premium n'a que son étiquette « Le plus choisi ». */
.rv2 .fld.trio .choix-item.premium:not(:has(input:checked)) { border: 1px solid rgba(0, 0, 0, .14); }

/* ── Fluide, comme VP Téléphone (Vincent, 11 nov. : « rends-la aussi fluide ») ─────────────────
   1. Entre deux étapes, plus d'écran blanc : la page qui arrive glisse de la droite (de la gauche pour
      un retour), le logo, « Appeler », la barre d'avancement et la barre du total restent en place.
      View Transitions entre pages; le sens vient de js/reservation-neuve-transitions.js. Un navigateur
      qui ne les connaît pas ouvre la page comme avant.
   2. Au toucher, tout répond tout de suite : la tuile ou le bouton s'enfonce, et une fine barre bleue
      court en haut pendant que la page suivante arrive (seulement si elle tarde plus de 150 ms). */
@view-transition { navigation: auto; }
.rv2 .shell > .logo { view-transition-name: rv2-logo; }
.rv2 .shell > .rv2-appel { view-transition-name: rv2-appel; }
.rv2 .shell > .card > .card-head .steps { view-transition-name: rv2-avance; }
.rv2 .shell > .card { view-transition-name: rv2-carte; }
.rv2 .barre-total:not([hidden]) { view-transition-name: rv2-total; }

::view-transition-group(*) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(rv2-carte) { animation: rv2-part-gauche .2s ease-in both; }
::view-transition-new(rv2-carte) { animation: rv2-arrive-droite .28s cubic-bezier(.2, .8, .2, 1) both; }
html:active-view-transition-type(retour)::view-transition-old(rv2-carte) { animation-name: rv2-part-droite; }
html:active-view-transition-type(retour)::view-transition-new(rv2-carte) { animation-name: rv2-arrive-gauche; }
@keyframes rv2-part-gauche { to { opacity: 0; transform: translateX(-28px); } }
@keyframes rv2-part-droite { to { opacity: 0; transform: translateX(28px); } }
@keyframes rv2-arrive-droite { from { opacity: 0; transform: translateX(36px); } }
@keyframes rv2-arrive-gauche { from { opacity: 0; transform: translateX(-36px); } }

.rv2 .btn, .rv2 .btn-retour, .rv2 .service-lien, .rv2 .piscine-tuile, .rv2 .px-jour, .rv2 .choix-item, .rv2 .rv2-monter-btn { transition: transform .12s ease-out; }
.rv2 .btn:active, .rv2 .btn-retour:active, .rv2 .service-lien:active, .rv2 .piscine-tuile:active, .rv2 .px-jour:active, .rv2 .rv2-monter-btn:active { transform: scale(.97); }

html.rv2-en-route body.rv2::before {
    content: ""; position: fixed; z-index: 100; top: 0; left: 0; height: 3px; width: 0;
    background: #0077F9; animation: rv2-route 2.4s cubic-bezier(.1, .7, .3, 1) .15s forwards;
}
@keyframes rv2-route { from { width: 0; } to { width: 85%; } }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    html.rv2-en-route body.rv2::before { animation: none; width: 85%; }
}

/* ── « Guidez-moi », moins de noir (Vincent, 10 nov., soir : « Pourquoi tout en noir ? » → A) ──────
   Comme Messages : le robot en gris pâle à gauche, le client en bleu pâle à droite, texte noir (le petit
   texte blanc sur #0077F9 ne passe pas le contraste). « Le bon service » : voile bleu et contour bleu.
   Les boutons d'action pleins passent au bleu, en grand texte (19 px gras : WCAG grand texte). */
.rv2 .conv-robot { background: rgba(0, 0, 0, .05); }
.rv2 .conv-client { background: rgba(0, 119, 249, .14); color: #000; }
.rv2 .conv-pilule:hover { border-color: #0077F9; background: rgba(0, 119, 249, .08); color: #000; }
.rv2 .conv-bon { background: rgba(0, 119, 249, .07); border: 1.5px solid #0077F9; color: #000; }
.rv2 .conv-bon p { color: #000; }
.rv2 .conv-gros, .rv2 .conv-envoyer { background: #0077F9; color: #fff; font-size: 19px; font-weight: 700; }
.rv2 .conv-gros:hover, .rv2 .conv-envoyer:hover { background: #0077F9; opacity: .9; }
.rv2 .conv-choisir, .rv2 .conv-ajouter { border-color: rgba(0, 0, 0, .25); }
.rv2 .conv-ajouter[aria-pressed="true"] { background: rgba(0, 119, 249, .08); border-color: #0077F9; color: #000; }
/* La conversation a son propre compte (« Question 4 sur 18 ») : « Étape 1 sur 4 » au-dessus se contredisait. */
.rv2 .card:has(.conversation) .card-head .steps, .rv2 .card:has(.conversation) .card-head .avancement { display: none; }
.rv2 .conv-forfait .trio-badge { display: inline-block; margin: 0 0 0 4px; vertical-align: middle; }
.rv2 .conv-forfait-ligne { margin: 4px 0 0; font-size: 15px; color: #000; }
.rv2 .conv-ajout-detail { margin: 4px 0 0; font-size: 14px; line-height: 1.35; color: rgba(0, 0, 0, .7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* La boutique : la section a déjà son titre (« Choisissez votre équipement »); son propre titre ferait doublon. */
.rv2 [data-boutique] > .groupe-titre:first-of-type { display: none; }

/* « Souvent ajouté » sur l'extra que les clients prennent le plus (SouventAjoute), et l'extra retiré qui
   revient en haut de l'étape 4 (ExtraRetire). Vincent, 11 nov. 2026, soir. Noir, blanc et #0077F9. */
.rv2 .souvent-ajoute { display: inline-block; margin: 0 0 4px; padding: 3px 8px; border-radius: 999px; background: #000; color: #fff; font: 700 11px "Open Sans", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.rv2 .extra-retire { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #0077F9; border-radius: 14px; background: rgba(0, 119, 249, .08); color: #000; }
.rv2 .extra-retire-tete { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.rv2 .extra-retire-ligne { display: flex; gap: 12px; align-items: center; justify-content: space-between; line-height: 1.35; }
.rv2 .extra-retire-btn { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid #000; border-radius: 12px; background: #fff; color: #000; font: 600 15px "Open Sans", system-ui, sans-serif; cursor: pointer; }
.rv2 .extra-remis { margin: 0 0 18px; }

/* ── Ordinateur et iPad (Vincent, 11 nov. 2026, soir : « sur ordinateur, il faudrait qu'on soit plus
   large, que ça soit fait pour l'ordinateur », « et pour iPad ») ────────────────────────────────────
   Dès 760 px (iPad debout et plus), la colonne de cellulaire s'ouvre : 1040 px au plus. L'accueil :
   une grande photo et les 4 tuiles sur une ligne. Les journées sur une ligne. L'étape 3 : les
   coordonnées sur 2 colonnes, les 3 forfaits côte à côte (Premium au milieu, comme sur le site), les
   ajouts en cartes sur 2 colonnes. Même formulaire, mêmes champs : seule la mise en page change. */
@media (min-width: 760px) {
    .rv2 .shell { max-width: 1040px; padding: 0 32px 32px; }
    .rv2 .step-name { font-size: 34px; }
    .rv2-titre-ecran { font-size: 28px; margin-top: 40px; }

    .an-titre { font-size: 40px; }
    .an-grande { height: 340px; border-radius: 24px; }
    .an-texte { left: 28px; right: 28px; bottom: 24px; }
    .an-texte b { font-size: 36px; }
    .an-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .an-petite { height: 150px; }

    .rv2 .fld input[name="postal_code"] { max-width: 360px; }
    .rv2 .px-jours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    /* Le calendrier (revenu le 11 nov. 2026, soir) : des cases carrées sur 1 000 px faisaient un mois de
       900 px de haut. Ici, des rangées de 64 px : tout le mois se voit d'un coup d'œil. */
    .rv2 .cal-grille { gap: 8px; padding: 6px 12px 16px; }
    .rv2 .cal-sem { padding: 12px 12px 6px; }
    .rv2 .cal-jour, .rv2 .cal-vide { aspect-ratio: auto; height: 64px; }
    .rv2 .cal-jour { font-size: 17px; border-radius: 14px; }
    .rv2 .cal-mois { font-size: 20px; }

    .rv2 #formulaire > .groupe:has(input[name="first_name"]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; align-items: start; }
    .rv2 #formulaire > .groupe:has(input[name="first_name"]) > * { grid-column: 1 / -1; }
    .rv2 #formulaire > .groupe:has(input[name="first_name"]) > .fld:has(input[name="email"]) { grid-column: 1; }
    .rv2 #formulaire > .groupe:has(input[name="first_name"]) > .fld:has(input[name="phone"]) { grid-column: 2; }

    .rv2 .fld.trio .choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
    .rv2 .fld.trio-2 .choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rv2 .fld.trio .choix > .rv2-monter { grid-column: 1 / -1; order: 1; }
    .rv2 .fld.trio .trio-inclus { padding: 0 16px 16px; }
    /* Le prix sous le nom : à 3 colonnes sur un iPad, nom et prix se chevauchaient. */
    .rv2 .fld.trio .trio-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
    .rv2 .fld.trio .trio-prix { grid-column: 2; text-align: left; }
    .rv2 .fld.trio .trio-sup { text-align: left; }

    .rv2 .fld.rangs .choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .rv2 #formulaire .fld.rangs .choix > .choix-item > label { height: 100%; border: 1px solid rgba(0, 0, 0, .14); border-radius: 14px; padding: 14px; }
    .rv2 #formulaire .fld.rangs .choix > .choix-item > label:has(input:checked) { border-color: #0077F9; box-shadow: inset 0 0 0 1px #0077F9; }
}

/* Les onglets de la boutique passent à la ligne : ils défilaient de côté, barre cachée, et à la souris
   on n'atteignait jamais « Thermopompes » (Vincent, 11 nov. 2026, soir : « c'est fait pour slider »). */
.rv2 .bq-onglets { flex-wrap: wrap; overflow-x: visible; }

/* « 100 $ de moins que seul » : une petite ligne en gras sous le nom de l'extra (Vincent, 11 nov. 2026). */
.rv2 .moins-que-seul { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: #000; }

/* Ordinateur (1024 px et plus), étape 2 : le calendrier à gauche; à droite, la journée choisie, les notes,
   « Besoin plus vite ? » et « Suivant ». Le même formulaire : seul l'emplacement change. */
@media (min-width: 1024px) {
    /* Audit du 16 nov. 2026 : la phrase « Les journées où l'équipe passe… » prenait toute la largeur
       sous un calendrier placé à la rangée 2, et toute la colonne de droite tombait sous le calendrier
       (un grand trou blanc). La phrase passe au-dessus, sur toute la largeur; le calendrier à gauche
       et la colonne de droite partent ensemble, à la même hauteur (dense). Sans journée offerte, une seule colonne : rien à mettre à côté. */
    .rv2[data-etape="2"] .card-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-auto-flow: row dense; column-gap: 28px; align-items: start; align-content: start; }
    .rv2[data-etape="2"] .card-body:not(:has(#calendrier)) { display: block; }
    .rv2[data-etape="2"] .card-body > * { grid-column: 1 / -1; }
    .rv2[data-etape="2"] #etape2 { display: contents; }
    .rv2[data-etape="2"] .card-body > .hint-journees { margin: 0 0 12px; }
    .rv2[data-etape="2"] #calendrier { grid-column: 1; grid-row: span 8; }
    .rv2[data-etape="2"] #etape2 > :not(#calendrier):not(input), .rv2[data-etape="2"] .card-body > .urg-offre, .rv2[data-etape="2"] .card-body > .actions { grid-column: 2; margin-top: 0; margin-bottom: 14px; }
    .rv2[data-etape="2"] .card-body > .actions { position: static; border: 0; padding: 0; background: transparent; display: flex; gap: 10px; }
    .rv2[data-etape="2"] .card-body > .actions .btn { flex: 1; }
}

/* Ordinateur et iPad, étape 3 : la barre du total aussi, flottante en bas de la colonne (plus seulement
   au cellulaire). Le client voit son total changer pendant qu'il choisit. Elle porte le seul « Suivant ».
   Sans le script de la barre, elle reste cachée et le « Suivant » du formulaire revient. */
@media (min-width: 721px) {
    .rv2 .barre-total:not([hidden]) { display: flex; position: sticky; bottom: 16px; z-index: 40; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 0; padding: 12px 12px 12px 22px; background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
    .rv2 .barre-total-texte { font-size: 17px; }
    .rv2 .page:has(.barre-total:not([hidden])) .actions > button[form="etape3"] { display: none; }
    .rv2 .page:has(.barre-total:not([hidden])) .actions { border-top: 0; }
}

/* Ordinateur et iPad : les choix à bouton rond (« OUI, remplacez-la » / « NON », « Déjà client ? ») côte à
   côte, au lieu de deux longues barres l'une sous l'autre. Les forfaits et les ajouts ont leur mise en page. */
@media (min-width: 760px) {
    .rv2 .fld.q:not(.trio):not(.rangs) > .choix:has(> .choix-item input[type="radio"]),
    .rv2 .fld.q:not(.trio):not(.rangs) > .choix:has(> label input[type="radio"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* « Guidez-moi » sur ordinateur : une conversation se lit mieux étroite, centrée, comme Messages. */
@media (min-width: 760px) {
    .rv2 .shell > .card:has(.conversation) { width: 100%; max-width: 720px; justify-self: center; }
}

/* Les catégories d'extras mieux séparées (Vincent, 11 nov. 2026, soir : « mieux diviser les différentes
   catégories d'extra ») : chaque catégorie a un vrai titre, marqué d'un trait #0077F9, et une ligne la
   sépare de la suivante. « facultatif » reste : sous « Votre visite », une question peut être obligatoire. */
.rv2[data-etape="3"] #formulaire .fld.q.compact { margin: 0; padding: 22px 0 6px; border-top: 1px solid rgba(0, 0, 0, .12); }
.rv2[data-etape="3"] #formulaire .rv2-sous-ecran + .groupe .fld.q.compact:first-child { border-top: 0; padding-top: 4px; }
.rv2[data-etape="3"] #formulaire .fld.q.compact > .legende { display: flex; align-items: flex-start; gap: 10px; font: 600 19px/1.25 Poppins, system-ui, sans-serif; color: #000; margin: 0 0 4px; }
.rv2[data-etape="3"] #formulaire .fld.q.compact > .legende::before { content: ""; flex: none; width: 4px; height: 20px; margin-top: 2px; border-radius: 2px; background: #0077F9; }
.rv2[data-etape="3"] #formulaire .fld.q.compact > .legende .facultatif { align-self: center; }
.rv2[data-etape="3"] #formulaire .fld.q.compact > .hint { margin: 0 0 12px 14px; color: rgba(0, 0, 0, .62); }
.rv2[data-etape="3"] #formulaire .fld.q.compact > .choix { margin-top: 10px; }

/* ── « C'est réservé » retravaillé (Vincent, 12 nov. 2026) ───────────────────────────────────────────
   Le haut sur blanc (plus de grand bloc bleu pâle) : la coche, le service, la journée en gros et le
   numéro de réservation. Puis « La suite » en trois temps, les calendriers en petits boutons blancs,
   un seul récapitulatif en carte, et le dossier en carte, avec son bouton dedans (plus de barre collée
   en bas sur une page où tout est fait), sur voile bleu (« moins de noir », 10 nov.). Noir, blanc et #0077F9 seulement. */
.rv2 .merci { display: grid; gap: 22px; margin-top: 2px; }
.rv2 .merci-col { display: grid; gap: 22px; align-content: start; min-width: 0; }
.rv2 .merci-titre { margin: 0 0 12px; font: 600 19px/1.25 Poppins, system-ui, sans-serif; letter-spacing: -.01em; color: #000; }

.rv2 .merci .fini { background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-radius: 20px; padding: 26px 20px 20px; text-align: center; }
.rv2 .merci .fini .coche { width: 60px; height: 60px; margin: 0 auto 14px; background: #0077F9; box-shadow: 0 10px 24px -12px rgba(0, 119, 249, .9); }
.rv2 .merci .fini-attente .coche { background: #000; box-shadow: none; }
.rv2 .merci .fini .coche svg { width: 28px; height: 28px; }
.rv2 .merci .fini h2 { margin: 0 0 4px; font: 600 17px/1.3 "Open Sans", system-ui, sans-serif; color: rgba(0, 0, 0, .62); letter-spacing: 0; }
.rv2 .merci .fini .fini-date { margin: 0; max-width: none; font: 600 28px/1.15 Poppins, system-ui, sans-serif; letter-spacing: -.02em; color: #000; }
.rv2 .merci .fini .fini-date::first-letter { text-transform: uppercase; }
.rv2 .merci .fini .fini-mot { margin: 8px auto 0; max-width: 34ch; font-size: 15px; color: #000; }
.rv2 .merci .fini .fini-numero { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; max-width: none; padding: 8px 14px; border-radius: 999px; background: rgba(0, 119, 249, .08); font-size: 14px; color: #000; }
.rv2 .merci .fini .fini-numero strong { font: 700 16px Poppins, system-ui, sans-serif; letter-spacing: .02em; }
.rv2 .merci .flash { margin: 0; }
.rv2 .merci-bouton { margin-top: 14px; }
.rv2 .merci-bouton .btn { width: 100%; }

.rv2 .merci-suite ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rv2 .merci-suite li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 0 0 16px; }
.rv2 .merci-suite li:last-child { padding-bottom: 0; }
/* Le fil qui relie les trois temps. */
.rv2 .merci-suite li:not(:last-child)::before { content: ""; position: absolute; left: 19.5px; top: 42px; bottom: 2px; width: 1px; background: rgba(0, 0, 0, .14); }
.rv2 .merci-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 119, 249, .1); color: #000; }
.rv2 .merci-ic svg { width: 20px; height: 20px; }
.rv2 .merci-suite li > span:last-child { padding-top: 1px; font-size: 15px; line-height: 1.45; color: rgba(0, 0, 0, .78); overflow-wrap: anywhere; }
.rv2 .merci-suite li b { display: block; font-size: 15px; color: #000; }

.rv2 .merci .agendas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Les 4 calendriers sur une ligne seulement quand la colonne est large (760 à 899 px : une seule colonne
   de 1040 px). De 520 à 759 px, la colonne reste à 480 px : 4 boutons de 104 px écrasaient le logo et
   « Autre calendrier » qui dépassait (Vincent, 18 nov. 2026, panneau du téléphone en demi-écran). */
@media (min-width: 760px) and (max-width: 899px) { .rv2 .merci .agendas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rv2 .merci .btn.ghost { display: flex; align-items: center; justify-content: center; min-width: 0; width: auto; min-height: 48px; padding: 8px 12px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 12px; background: #fff; color: #000; font: 600 15px/1.25 "Open Sans", system-ui, sans-serif; text-align: center; white-space: normal; box-shadow: none; opacity: 1; }
.rv2 .merci .btn.ghost img { flex: none; width: 20px; height: 20px; margin-right: 9px; object-fit: contain; }
.rv2 .merci .merci-contact img { width: 22px; height: 22px; }
.rv2 .merci .btn.ghost:hover { border-color: #0077F9; background: rgba(0, 119, 249, .06); color: #000; }
.rv2 .merci .merci-contact { width: 100%; margin-top: 8px; }
.rv2 .merci .merci-visite { margin: 14px 0 8px; }

.rv2 .merci .recap { border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; background: #fff; }
.rv2 .merci .recap-l { padding: 13px 16px; font-size: 15px; }
.rv2 .merci .recap-l dt { color: rgba(0, 0, 0, .62); flex: none; }
.rv2 .merci .recap-l dd { color: #000; overflow-wrap: anywhere; }
.rv2 .merci .recap-l dd a { color: #000; font-weight: 600; }
.rv2 .merci .recap > .hint { margin: 0; padding: 0 16px 12px; }
.rv2 .merci .recap-bloc { margin: 0; }
.rv2 .merci .recap-titre { margin: 0 0 12px; font: 600 19px/1.25 Poppins, system-ui, sans-serif; letter-spacing: -.01em; text-transform: none; color: #000; }
.rv2 .merci .recap-l.forfait { background: rgba(0, 119, 249, .06); }

.rv2 .merci-dossier { border-radius: 20px; padding: 22px 20px; background: rgba(0, 119, 249, .08); color: #000; }
.rv2 .merci-dossier p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: rgba(0, 0, 0, .78); }
.rv2 .merci-dossier .btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }

/* Ordinateur et iPad couché : deux colonnes, le haut et « La suite » à gauche, le récapitulatif et
   le dossier à droite. */
@media (min-width: 900px) {
    .rv2 .merci { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}

/* ── La carte à gratter du parrainage (Vincent, 12 nov. 2026) ─────────────────────────────────────────
   Petite, sous les calendriers. Dessous : la photo de la saison et les montants du programme de
   parrainage, en blanc. Dessus : une couche #0077F9 dessinée par carte-a-gratter.js. Sans script, rien n'est caché. Les logos de partage sont des
   fichiers image, dans leurs vraies couleurs. */
.rv2 .gratter-carte { position: relative; min-height: 168px; -webkit-user-select: none; user-select: none; border-radius: 16px; overflow: hidden; background: #000; }
/* Dessous : la photo de la saison, assombrie vers le bas pour que le texte blanc ressorte. */
.rv2 .gratter-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv2 .gratter-revele .gratter-fond { animation: gratter-zoom 5s ease-out both; }
@keyframes gratter-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.rv2 .gratter-dessous { position: relative; z-index: 1; display: grid; gap: 8px; align-content: center; min-height: 168px; padding: 18px; text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .78) 100%); color: #fff; }
.rv2 .gratter-montants { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; }
.rv2 .gratter-montants > span:not(.gratter-plus) { display: grid; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.rv2 .gratter-montants b { font: 800 38px/1.02 Poppins, system-ui, sans-serif; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.rv2 .gratter-plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0077F9; font: 700 20px/1 Poppins, system-ui, sans-serif; color: #fff; }
.rv2 .gratter-saison { justify-self: center; margin: 0; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: #000; }
.rv2 .gratter-confettis { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
/* Les montants rebondissent quand la carte se révèle. */
.rv2 .gratter-revele .gratter-montants b { animation: gratter-rebond .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.rv2 .gratter-revele .gratter-montants > span:last-child b { animation-delay: .12s; }
@keyframes gratter-rebond { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.rv2 .gratter-montants b { display: inline-block; }
.rv2 .gratter-conditions { margin: 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.rv2 .gratter-detail { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.rv2 .gratter-couche { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .45s; }
.rv2 .gratter-couche.gratter-part { opacity: 0; pointer-events: none; }
.rv2 .gratter-reveler { display: block; margin: 8px auto 0; padding: 8px 12px; border: 0; background: none; color: #000; font: 600 14px "Open Sans", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv2 .gratter-reveler:focus-visible { outline: 3px solid #0077F9; outline-offset: 2px; border-radius: 6px; }
.rv2 .gratter:not(.gratter-pret) .gratter-reveler { display: none; }
.rv2 .gratter-partage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rv2 .gratter-partage .gratter-copier { grid-column: 1 / -1; }
.rv2 .gratter-pret:not(.gratter-revele) .gratter-partage { display: none; }
.rv2 .gratter-revele .gratter-partage { animation: gratter-arrive .35s ease-out both; }
@keyframes gratter-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rv2 .gratter .btn.ghost { display: flex; align-items: center; justify-content: center; min-width: 0; width: auto; min-height: 48px; padding: 8px 10px; border: 1px solid rgba(0, 0, 0, .2); border-radius: 12px; background: #fff; color: #000; font: 600 14px/1.2 "Open Sans", system-ui, sans-serif; text-align: center; box-shadow: none; opacity: 1; }
.rv2 .gratter .btn.ghost:hover { border-color: #0077F9; background: rgba(0, 119, 249, .06); }
.rv2 .gratter .btn.ghost img { flex: none; width: 20px; height: 20px; margin-right: 7px; }
@media print { .rv2 .gratter { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .rv2 .gratter-couche, .rv2 .gratter-revele .gratter-partage, .rv2 .gratter-revele .gratter-montants b, .rv2 .gratter-revele .gratter-fond { transition: none; animation: none; }
}
