/* =====================================================================
   La Brig'ads — refonte « La salle » de la page « Composer ma formule » (demarrer.html, 06/10/2026,
   lot/lucas-refonte-vitrine-05-10). Décision de Lucas : « peux-tu en faire autant pour cette page » (même refonte
   visuelle raccord que l'accueil et les formules ; on remodèle tout tant qu'on ne touche à aucune info).
   Chargée par demarrer.html SEULE, juste après css/refonte-salle.css (le socle commun, plein : 40 Ko au plus).
   Toutes les règles sous body.refonte-salle. Mêmes interdits que le socle (test refonte-contenu-identique) :
   aucun texte par content, aucune animation nouvelle, aucun appel externe, polices de la charte, ni noir ni blanc purs.

   PARCOURS   L'enseigne, puis le composeur comme une carte qu'on remplit, fiche par fiche :
              1. le lieu : deux fiches de carte côte à côte, le titre à gauche ;
              2. la formule : un menu à double filet, trois colonnes, le pique en tête ;
              3. l'addition : la liste à préparer à gauche, l'ardoise du montant à droite (collante), et un ticket
                 de cuisine pour « Quand l'abonnement commence-t-il ? » ;
              puis « Ce qui est disponible » en deux tampons, « Ce qui se passe après » dans la bande du soir
              (trois étapes à filets), et la fiche de devis, sobre, sous la cloche du passe.
   CHOIX      Une carte cochée : bord marine et liseré ambre intérieur, pastille pleine en haut à droite.
              Au clavier : l'anneau ambre et marine du socle.
   MOUVEMENT  Aucun ajouté ; le survol des cartes ne les soulève plus.
   ===================================================================== */

/* Pointillés de la carte (le motif seul : chaque règle pose sa position). */
body.refonte-salle { --dm-pts: radial-gradient(circle, var(--salle-trait) 1.2px, transparent 1.7px); }

/* -- Têtes de section : la rubrique (« Première question »…) se lit, comme sur une carte */
body.refonte-salle .titre-section .sur-titre {
  display: inline-block; margin: 0 0 18px; padding: 0 0 6px; border-radius: 0; background: none;
  border-bottom: 2px solid var(--jaune);
  font: 700 .74rem/1.4 'Instrument Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--marine);
}
body.refonte-salle .titre-section h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); line-height: 1; }
body.refonte-salle .titre-section p { max-width: 56ch; font-size: 1.06rem; color: var(--salle-gris); }
body.refonte-salle .titre-section.centre p { margin-inline: auto; }
body.refonte-salle .section-douce { background: var(--salle-grain), var(--salle-kraft); }
/* La première fiche suit l'enseigne de près : la note du héros, sous son filet, fait déjà la transition. */
body.refonte-salle #formDevis > section:first-of-type { padding-top: clamp(28px, 3.4vw, 48px); }

/* -- L'enseigne : la note sous les boutons, sur le papier (elle était écrite pour un fond nuit) */
body.refonte-salle .hero .note-grille {
  grid-column: 1; max-width: 60ch; margin: 22px 0 0; padding-top: 14px; text-align: left;
  border-top: 1px solid var(--salle-filet); font-size: .92rem; color: var(--salle-gris);
}

/* -- Les cartes de choix : du papier, pas des cartes de logiciel */
body.refonte-salle .choix-carte {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 30px clamp(20px, 2.4vw, 32px) 28px; border: 1.5px solid var(--salle-filet); border-radius: 3px;
  background: var(--salle-ticket); box-shadow: 0 22px 40px -30px rgba(var(--salle-ombre), .5);
}
body.refonte-salle .choix-carte:hover { transform: none; border-color: #B5A78F; box-shadow: 0 22px 40px -30px rgba(var(--salle-ombre), .5); }
/* La pastille : vide, puis pleine quand la carte est cochée (le bouton radio reste caché, comme avant). */
body.refonte-salle .choix-carte::after {
  content: ""; position: absolute; top: 24px; right: 22px; width: 22px; height: 22px; box-sizing: border-box;
  border: 1.5px solid #9C8F7B; border-radius: 50%; background: var(--salle-ticket);
}
body.refonte-salle .choix-carte:has(input:checked) {
  border-width: 1.5px; border-color: var(--marine);
  box-shadow: inset 0 0 0 5px var(--salle-ticket), inset 0 0 0 6px var(--jaune), 0 26px 44px -30px rgba(var(--salle-ombre), .6);
}
body.refonte-salle .choix-carte:has(input:checked)::after {
  border-color: var(--marine); background: radial-gradient(circle, var(--jaune) 0 3.5px, var(--marine) 4.5px);
}
body.refonte-salle .choix-carte:has(input:focus-visible) {
  position: relative; z-index: 1; outline: 3px solid var(--jaune); outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--marine), inset 0 0 0 5px var(--salle-ticket), inset 0 0 0 6px var(--jaune);
}
body.refonte-salle .choix-carte .etiquette { margin: 0 40px 16px 0; }
body.refonte-salle .choix-carte h3 {
  margin: 0 40px 10px 0; color: var(--marine);
  font: 800 clamp(1.25rem, 1rem + .7vw, 1.6rem)/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
body.refonte-salle .choix-carte .quoi { font-size: 1rem; color: var(--salle-gris); }
body.refonte-salle .choix-carte .prix {
  align-self: stretch; margin-top: 20px; padding-top: 16px; color: var(--marine);
  background: var(--dm-pts) 0 0 / 8px 4px repeat-x;
  font: 800 clamp(1.35rem, 1.1rem + .7vw, 1.7rem)/1.15 'Bricolage Grotesque', sans-serif; letter-spacing: -.015em;
}
body.refonte-salle .choix-carte .note-lancement { margin-top: 12px; color: var(--salle-gris); line-height: 1.5; }
body.refonte-salle .choix-carte .note-lancement small { font-size: .82rem; }
body.refonte-salle .choix-carte .points { align-self: stretch; margin-top: 18px; }
body.refonte-salle .choix-carte .points li { padding-block: 4px; font-size: .95rem; }
body.refonte-salle .choix-carte .points li::before { color: #A97A1F; }
body.refonte-salle .choix-carte :is(.formule-sans, .a-confirmer) { margin-top: 14px; font-size: .86rem; line-height: 1.5; }
body.refonte-salle .choix-carte .formule-sans { color: var(--salle-gris); }

/* -- 1. Le lieu : le titre à gauche, les deux fiches à droite */
body.refonte-salle .choix:not(.trois) { gap: clamp(18px, 2vw, 28px); align-items: stretch; }
/* Le lieu d'abord, puis sa zone en tampon dessous (le code garde son ordre). */
body.refonte-salle .choix:not(.trois) h3 { order: -1; }
body.refonte-salle .choix:not(.trois) .etiquette { margin: 0 0 16px; }
@media (min-width: 1100px) {
  body.refonte-salle section:has(> .conteneur > .choix:not(.trois)) > .conteneur {
    display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); column-gap: clamp(36px, 4vw, 72px); align-items: start;
  }
  body.refonte-salle section:has(> .conteneur > .choix:not(.trois)) .titre-section { position: sticky; top: 110px; margin: 0; }
}

/* -- 2. La formule : un menu à double filet, trois colonnes, le pique en tête */
body.refonte-salle .choix.trois {
  gap: 0; max-width: 1140px; margin-inline: auto;
  padding: clamp(30px, 4vw, 52px) clamp(14px, 3vw, 40px) clamp(22px, 3vw, 36px);
  background: var(--salle-ticket); border: 1px solid #CDBFA6; border-radius: 3px;
  outline: 1px solid #CDBFA6; outline-offset: -9px;
  box-shadow: 0 34px 60px -36px rgba(var(--salle-ombre), .55), 0 2px 5px rgba(var(--salle-ombre), .07);
}
body.refonte-salle .choix.trois .salle-pique { grid-column: 1 / -1; }
body.refonte-salle .choix.trois .choix-carte {
  padding: 34px clamp(18px, 2vw, 28px) 26px; border: 0; border-radius: 0; background: none; box-shadow: none;
}
body.refonte-salle .choix.trois .choix-carte:hover { background: rgba(236, 225, 206, .32); box-shadow: none; }
body.refonte-salle .choix.trois .choix-carte:has(input:checked) { background: rgba(236, 225, 206, .55); box-shadow: inset 0 3px 0 var(--jaune); }
body.refonte-salle .choix.trois .choix-carte:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--marine), inset 0 3px 0 var(--jaune); }
body.refonte-salle .choix.trois .choix-carte::after { top: 30px; }
body.refonte-salle section:has(.choix.trois) .titre-section { text-align: center; }
body.refonte-salle section:has(.choix.trois) .titre-section p { margin-inline: auto; }
/* Le nom, puis le prix, puis ce qu'il y a dedans : l'ordre d'une carte (le code garde son ordre). */
body.refonte-salle .choix.trois h3 { order: 1; }
body.refonte-salle .choix.trois .prix { order: 2; margin: 2px 0 16px; padding: 0 0 14px; background: var(--dm-pts) 0 100% / 8px 4px repeat-x; }
body.refonte-salle .choix.trois .quoi { order: 3; color: var(--salle-encre); }
body.refonte-salle .choix.trois .points { order: 4; }
body.refonte-salle .choix.trois :is(.formule-sans, .a-confirmer) { order: 5; }
@media (min-width: 1000px) {
  body.refonte-salle .choix.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.refonte-salle .choix.trois .choix-carte + .choix-carte { border-left: 1px solid var(--salle-filet); }
  /* « Notre recommandation » : un tampon posé au bord de la colonne, sans décaler les noms. */
  body.refonte-salle .choix.trois .etiquette { position: absolute; top: 0; left: clamp(18px, 2vw, 28px); margin: 0; transform: translateY(-50%) rotate(-2deg); background: var(--salle-ticket); }
}
@media (max-width: 999px) {
  body.refonte-salle .choix.trois { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  body.refonte-salle .choix.trois .choix-carte + .choix-carte { border-top: 1px solid var(--salle-filet); }
}

/* -- 3. L'addition : la liste à préparer, l'ardoise, le ticket */
body.refonte-salle .demarrer-duo { gap: clamp(30px, 5vw, 80px); }
body.refonte-salle .demarrer-duo .prepa h3 {
  margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--salle-filet); color: var(--marine);
  font: 800 clamp(1.2rem, 1rem + .5vw, 1.45rem)/1.2 'Bricolage Grotesque', sans-serif; letter-spacing: -.01em;
}
body.refonte-salle .demarrer-duo .prepa h3 ~ h3 { margin-top: 38px; }
body.refonte-salle .prepa .points li { padding: 9px 0 9px 24px; background: var(--dm-pts) 0 100% / 8px 4px repeat-x; color: var(--salle-encre); }
body.refonte-salle .prepa .points li::before { content: "–"; top: 9px; color: #A97A1F; }
body.refonte-salle .demarrer-duo .prepa .a-confirmer { margin-top: 26px; padding-left: 14px; border-left: 2px solid var(--jaune); font-size: .88rem; }
/* L'ardoise du montant : la nuit de la salle, liseré ambre, filets pointillés à la craie. */
body.refonte-salle .recap-colonne .constructeur {
  --pts: radial-gradient(circle, rgba(245, 238, 225, .42) 1.2px, transparent 1.7px) 0 0 / 8px 4px repeat-x;
  max-width: none; padding: clamp(16px, 2vw, 24px) clamp(22px, 2.6vw, 34px); background: var(--degrade-marine);
  box-shadow: 0 30px 50px -30px rgba(15, 29, 46, .7);
}
body.refonte-salle .constructeur .ligne-tarif { background: none; color: var(--salle-creme); }
body.refonte-salle .constructeur .ligne-nom strong { color: var(--salle-creme); }
body.refonte-salle .constructeur .ligne-nom span { color: var(--salle-creme-doux); font-size: .92rem; }
body.refonte-salle .constructeur .ligne-prix { color: var(--salle-creme); }
body.refonte-salle .constructeur .socle .ligne-prix { color: var(--jaune); }
body.refonte-salle .constructeur .ligne-prix small { color: var(--salle-creme-doux); }
body.refonte-salle .constructeur .attente :is(.ligne-prix, .ligne-nom strong) { color: var(--salle-creme-doux); }
body.refonte-salle .constructeur .attente .ligne-prix { font-size: 1.05rem; font-style: italic; font-weight: 700; }
body.refonte-salle .constructeur .a-confirmer { color: #F6DA8E; font-size: .86rem; }
body.refonte-salle .recap-colonne > .note-grille { margin: 20px 0 0; max-width: none; text-align: left; color: var(--salle-gris); }
body.refonte-salle .recap-colonne > .note-grille strong { color: var(--marine); }
/* Le ticket de cuisine : papier, trou du pique, bas dentelé (même découpe que les tickets de l'accueil). */
body.refonte-salle .recap-colonne { filter: drop-shadow(0 14px 14px rgba(var(--salle-ombre), .1)); }
body.refonte-salle .recap-colonne .encart-todo {
  --dent: 7px;
  margin: 28px 0 0; padding: 40px clamp(20px, 2.4vw, 28px) calc(24px + var(--dent)); border: 0; border-radius: 0;
  background: var(--salle-ticket); color: var(--salle-encre); line-height: 1.6;
  -webkit-mask:
    radial-gradient(circle 6px at 50% 18px, transparent 92%, var(--salle-masque) 100%) top / 100% calc(100% - var(--dent)) no-repeat,
    conic-gradient(from -45deg at 50% 100%, var(--salle-masque) 90deg, transparent 0) bottom / calc(var(--dent) * 2) var(--dent) repeat-x;
          mask:
    radial-gradient(circle 6px at 50% 18px, transparent 92%, var(--salle-masque) 100%) top / 100% calc(100% - var(--dent)) no-repeat,
    conic-gradient(from -45deg at 50% 100%, var(--salle-masque) 90deg, transparent 0) bottom / calc(var(--dent) * 2) var(--dent) repeat-x;
}
body.refonte-salle .encart-todo strong {
  display: block; margin-bottom: 10px; padding-bottom: 12px; background: var(--dm-pts) 0 100% / 8px 4px repeat-x;
  font: 800 1.12rem/1.25 'Bricolage Grotesque', sans-serif; color: var(--marine);
}
body.refonte-salle .encart-todo .a-confirmer { display: block; margin-top: 12px; }

/* -- Ce qui est disponible : deux fiches, deux tampons */
body.refonte-salle .public-disponibilite { max-width: 1040px; margin: 0 auto; gap: clamp(18px, 2.4vw, 32px); }
body.refonte-salle .public-disponibilite > div {
  padding: clamp(24px, 3vw, 36px); border: 1px solid var(--salle-filet); border-radius: 3px; background: var(--salle-ticket);
  box-shadow: 0 22px 40px -32px rgba(var(--salle-ombre), .5);
}
body.refonte-salle .public-disponibilite h3 {
  display: inline-block; margin: 0 0 22px; padding: 7px 14px 6px; border: 2px solid currentColor; border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--salle-ticket), inset 0 0 0 3px currentColor; transform: rotate(-1.6deg);
  font: 800 .92rem/1.3 'Bricolage Grotesque', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--marine);
}
body.refonte-salle .public-disponibilite > div + div h3 { color: #7A5500; transform: rotate(1.2deg); }
body.refonte-salle .public-disponibilite p { color: var(--salle-encre); }
body.refonte-salle .public-disponibilite p + p { color: var(--salle-gris); font-size: .94rem; }
body.refonte-salle .public-disponibilite + .public-note { max-width: none; margin-top: 22px; text-align: center; }

/* -- Ce qui se passe après : la bande du soir, trois étapes à filets */
body.refonte-salle section.section-douce:has(.etapes) { background: var(--degrade-marine); color: var(--salle-creme); }
body.refonte-salle section:has(.etapes) .titre-section .sur-titre { color: var(--jaune); }
body.refonte-salle section:has(.etapes) .titre-section h2 { color: var(--salle-creme); }
body.refonte-salle section:has(.etapes) .titre-section p { color: var(--salle-creme-doux); }
body.refonte-salle .etapes { gap: 0; max-width: 1080px; margin-inline: auto; border-top: 1px solid rgba(245, 238, 225, .24); }
body.refonte-salle .etape { padding: 30px clamp(18px, 2.6vw, 38px) 6px; }
body.refonte-salle .etape:first-child { padding-left: 0; }
body.refonte-salle .etape + .etape { border-left: 1px solid rgba(245, 238, 225, .16); }
body.refonte-salle .etape::before { margin-bottom: 16px; font-size: clamp(2.6rem, 2rem + 1.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--jaune); }
body.refonte-salle .etape h3 { color: var(--salle-creme); font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); }
body.refonte-salle .etape p { color: var(--salle-creme-doux); font-size: 1rem; }

/* -- La fiche de devis : sobre, sous la cloche */
body.refonte-salle .titre-section .salle-cloche { position: static; display: block; margin: 0 auto 20px; color: var(--marine); }
body.refonte-salle .demarrer-formulaire .form-contact { border-radius: 3px; outline: 1px solid var(--salle-filet); outline-offset: -9px; padding: clamp(26px, 4vw, 44px); }
body.refonte-salle .form-contact :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea):focus {
  background: var(--salle-ticket); border-color: #A97A1F; box-shadow: 0 0 0 3px rgba(240, 180, 41, .38);
}
body.refonte-salle .form-contact :is(input, select, textarea):focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; }
body.refonte-salle .demarrer-formulaire .note-grille { margin-top: 4px; font-size: .9rem; color: var(--salle-gris); }
body.refonte-salle .demarrer-formulaire .confirmation { border-radius: 3px; background: #EEF3E6; }

/* -- Téléphone et tablette */
@media (max-width: 900px) {
  body.refonte-salle .etapes { grid-template-columns: minmax(0, 1fr); }
  body.refonte-salle .etape, body.refonte-salle .etape:first-child { padding: 24px 0 22px; }
  body.refonte-salle .etape + .etape { border-left: 0; border-top: 1px solid rgba(245, 238, 225, .16); }
}
@media (max-width: 640px) {
  body.refonte-salle .titre-section h2 { font-size: clamp(1.85rem, 8.4vw, 2.3rem); }
  body.refonte-salle .choix-carte { padding: 26px 20px 24px; }
  body.refonte-salle .choix.trois { padding: 28px 8px 14px; outline-offset: -6px; }
  body.refonte-salle .choix.trois .choix-carte { padding: 28px 16px 22px; }
  body.refonte-salle .choix-carte::after { top: 22px; right: 16px; }
  body.refonte-salle .choix.trois .choix-carte::after { top: 26px; }
  /* L'addition : le prix passe sous son nom, au bout des pointillés. */
  body.refonte-salle .constructeur .ligne-tarif { grid-template: "nom nom" "desc desc" "pts prix" / minmax(20px, 1fr) auto; }
  body.refonte-salle .recap-colonne .constructeur { padding: 8px 18px; }
  body.refonte-salle .etape::before { font-size: 2.4rem; margin-bottom: 8px; }
}
@media print {
  body.refonte-salle .choix-carte::after { content: none; }
  body.refonte-salle .recap-colonne { filter: none; }
}
