/* ============================================================
   BRASA — pages Placards, Dressings, Cuisines
   À placer dans : assets/collections.css
   Chargé par includes/collection-template.php, après assets/style.css.
   Tout est rangé sous .cx- (et .promo-page) : rien ne touche les autres pages.
   Couleurs et polices : celles de style.css (--navy, --gold, --paper, --display, --sans).
   ============================================================ */

.cx-page{--cx-or-texte:#8a6414;--cx-encre:#1e1f23;--cx-gris:#5a606b;--cx-haut:120px;font-family:var(--sans);font-size:1rem;line-height:1.6;font-weight:400;color:var(--cx-encre);background:var(--paper)}
.cx-page *,.cx-hero *{box-sizing:border-box}

/* ---------- La bannière : la photo en grand ---------- */
.cx-hero{min-height:min(76vh,760px)}
.cx-hero .hero-bg{overflow:hidden}
.cx-hero-img{width:100%;height:100%;max-width:none;object-fit:cover;display:block}
.cx-hero .hero-overlay{background:linear-gradient(180deg,rgba(20,28,40,.5) 0%,rgba(20,28,40,.3) 45%,rgba(20,28,40,.62) 100%)}
.cx-hero-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.9rem 1.2rem;margin-top:1.7rem}
.cx-hero-film{display:inline-flex;align-items:center;gap:.55rem;min-height:48px;padding:.8rem 1.4rem;border:1px solid rgba(255,255,255,.75);border-radius:999px;color:#fff;font-family:var(--sans);font-size:.86rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;background:rgba(20,28,40,.28);backdrop-filter:blur(3px);transition:background .25s,color .25s}
.cx-hero-film svg{fill:currentColor;flex:none}
.cx-hero-film:hover,.cx-hero-film:focus-visible{background:#fff;color:var(--navy)}

/* ---------- Le fil d'Ariane ---------- */
.cx-ariane{background:var(--paper);border-bottom:1px solid var(--line)}
.cx-ariane-in{max-width:1440px;margin:0 auto;padding:.8rem 2.2rem;display:flex;flex-wrap:wrap;gap:.5rem;font-size:.84rem;color:var(--cx-gris)}
.cx-ariane a{color:var(--navy);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.cx-ariane a:hover{color:var(--cx-or-texte);text-decoration-color:currentColor}

/* ---------- Les repères ---------- */
.cx-reperes{background:#fff;border-bottom:1px solid var(--line)}
.cx-reperes-in{list-style:none;max-width:1440px;margin:0 auto;padding:1.1rem 2.2rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.9rem 1.6rem}
.cx-reperes-in li{display:flex;align-items:center;gap:.7rem;font-size:.95rem;font-weight:500;color:var(--navy);line-height:1.3}
.cx-ico{flex:none;fill:none;stroke:var(--cx-or-texte);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Les colonnes suivent la page pendant le défilement. Dans style.css, « overflow-x:hidden » sur body
   l'empêche : sur ces pages seulement, on coupe ce qui dépasse sans bloquer les colonnes. */
@supports (overflow:clip){body{overflow-x:clip}}

/* ---------- Le milieu : trois colonnes ---------- */
.cx-milieu{max-width:1440px;margin:0 auto;padding:2.6rem 2.2rem 3.4rem;display:grid;grid-template-columns:230px minmax(0,1fr) 256px;grid-template-areas:"gauche centre droite";gap:2.4rem;align-items:start}
.cx-milieu-sans-gauche{grid-template-columns:minmax(0,1fr) 270px;grid-template-areas:"centre droite";max-width:1240px}
.cx-rail-gauche{grid-area:gauche}
.cx-centre{grid-area:centre;min-width:0}
.cx-rail-droite{grid-area:droite}
.cx-rail{align-self:stretch}
.cx-rail-in{position:sticky;top:var(--cx-haut);display:flex;flex-direction:column;gap:1.2rem}
.cx-rail-haut{margin-bottom:1.2rem}

/* ---------- Les blocs du centre ---------- */
.cx-bloc{margin:0 0 3.2rem;scroll-margin-top:var(--cx-haut)}
.cx-bloc:last-child{margin-bottom:0}
.cx-centre > .cx-bloc > h2,.cx-tete > h2,.cx-rappel h2{font-family:var(--display);font-weight:700;font-size:clamp(1.7rem,2.5vw,2.25rem);line-height:1.15;color:var(--navy);letter-spacing:-.005em;margin:0 0 .7rem;text-wrap:balance}
.cx-points h3,.cx-q h3{font-family:var(--sans);font-weight:600;font-size:1.02rem;line-height:1.35;color:var(--navy);margin:0}
.cx-bloc > p,.cx-tete > p:not(.cx-sur){color:var(--cx-gris);font-size:1.03rem;line-height:1.65;max-width:68ch;margin:0}
.cx-tete{margin-bottom:1.3rem}
.cx-sur{display:block;font-size:.74rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--cx-or-texte);margin:0 0 .55rem}
.cx-intro h2{font-size:clamp(1.9rem,3vw,2.6rem)}
.cx-note{font-size:.86rem;color:var(--cx-gris)}

/* ---------- Les boutons ---------- */
.cx-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.5rem;border-radius:999px;font-family:var(--sans);font-size:.86rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-align:center;line-height:1.25;transition:background .25s,transform .25s,box-shadow .25s}
.cx-btn-or{background:var(--gold);color:#1e1f23;box-shadow:0 8px 20px -10px rgba(180,130,40,.8)}
.cx-btn-or:hover,.cx-btn-or:focus-visible{background:var(--gold-soft);transform:translateY(-2px)}
.cx-page a:focus-visible,.cx-page button:focus-visible,.cx-page summary:focus-visible,.cx-hero-film:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.cx-rappel a:focus-visible,.cx-hero-film:focus-visible{outline-color:#fff}

/* ---------- Le composeur ---------- */
.cx-types{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1.1rem}
.cx-type{min-height:44px;padding:.6rem 1.15rem;border:1px solid #d9d4c8;border-radius:999px;background:#fff;color:var(--navy);font-family:var(--sans);font-size:.95rem;font-weight:500;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.cx-type:hover{border-color:var(--navy)}
.cx-type[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.cx-scene{position:relative;margin:0;border-radius:14px;overflow:hidden;background:var(--paper-2);aspect-ratio:3/2;box-shadow:0 22px 50px -30px rgba(31,43,61,.55)}
.cx-scene-img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .35s ease}
.cx-scene-img.cx-change{opacity:.35;transition:none}
.cx-scene-legende{position:absolute;left:0;right:0;bottom:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .9rem;padding:2.6rem 1.2rem 1rem;background:linear-gradient(transparent,rgba(20,28,40,.78));color:#fff}
.cx-scene-legende strong{font-family:var(--display);font-size:1.4rem;font-weight:600;line-height:1.2}
.cx-scene-legende span{font-size:.92rem;opacity:.92}
.cx-scene-ouvrir{position:absolute;top:1rem;right:1rem;min-height:44px;padding:.55rem 1.1rem;border:0;border-radius:999px;background:rgba(255,255,255,.94);color:var(--navy);font-family:var(--sans);font-size:.88rem;font-weight:600;cursor:pointer;box-shadow:0 6px 18px rgba(20,28,40,.25)}
.cx-scene-ouvrir:hover{background:#fff}
.cx-scene-ouvrir[hidden],.cx-modeles[hidden]{display:none}
.cx-modeles{list-style:none;margin:1rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:.8rem}
.cx-modele{display:block;color:var(--navy);font-size:.8rem;line-height:1.3;font-weight:500}
.cx-modele img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:8px;border:2px solid transparent;box-shadow:0 0 0 1px var(--line);transition:box-shadow .2s,transform .2s}
.cx-modele span{display:block;margin-top:.4rem}
.cx-modele:hover img{transform:translateY(-2px);box-shadow:0 0 0 1px var(--navy)}
.cx-modele[aria-current="true"] img{box-shadow:0 0 0 2px var(--navy),0 0 0 5px rgba(211,154,44,.5)}
.cx-modele[aria-current="true"] span{font-weight:700}
.cx-composer-pied{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.3rem;margin-top:1.5rem}

/* ---------- Le film ---------- */
.cx-video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;background:#11161f;box-shadow:0 22px 50px -30px rgba(31,43,61,.55)}
.cx-points{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.3rem 1.8rem;margin-top:1.5rem}
.cx-points > div{padding-top:.9rem;border-top:2px solid var(--gold)}
.cx-points p{margin:.35rem 0 0;font-size:.95rem;line-height:1.55;color:var(--cx-gris)}

/* ---------- Les matières (onglets du back-office) ---------- */
.cx-page .cx-selecteur{width:auto;max-width:none;margin:0 0 3.2rem;padding:1.9rem 1.7rem 2.1rem;border-color:var(--line);border-radius:14px;box-shadow:none;background:#fff}
.cx-page .cx-selecteur::before{background:linear-gradient(90deg,var(--gold),var(--gold-soft))}
.cx-page .cx-selecteur .selector-panel{min-height:0}
.cx-page .selector-tabs{flex-wrap:wrap;gap:.2rem;margin-bottom:1.3rem}
.cx-page .sel-tab{min-height:44px;padding:.7rem 1rem;color:var(--cx-gris)}
.cx-page .sel-tab.active{color:var(--cx-or-texte)}
.cx-page .subfam-tabs{flex-wrap:wrap;gap:.4rem 1.4rem;margin-bottom:1.4rem}
.cx-page .subfam-tab{min-height:44px;color:var(--cx-gris)}
.cx-page .subfam-tab.active{color:var(--navy)}
.cx-page .swatch-grid{grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:1.3rem .8rem}
.cx-page .swatch{margin:0;cursor:pointer}
.cx-page .swatch-ref{color:var(--cx-gris)}

/* ---------- Le bloc propre à la page (Spaceum sur Cuisines) ---------- */
.cx-bloc-page .spaceum-section{padding:0}
.cx-bloc-page .spaceum-card{padding:2.2rem 1.6rem;box-shadow:none}

/* ---------- Les étapes ---------- */
.cx-etapes ol{list-style:none;margin:1.3rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1.4rem}
.cx-etapes li{display:flex;flex-direction:column;gap:.35rem;padding:1.2rem 1.1rem;background:#fff;border:1px solid var(--line);border-radius:12px}
.cx-etape-n{font-family:var(--display);font-size:2rem;font-weight:600;line-height:1;color:var(--cx-or-texte)}
.cx-etapes li strong{font-size:1rem;font-weight:600;color:var(--navy);line-height:1.3}
.cx-etapes li span:last-child{font-size:.93rem;line-height:1.5;color:var(--cx-gris)}

/* ---------- Les questions ---------- */
.cx-q{border-bottom:1px solid var(--line)}
.cx-faq h2 + .cx-q{border-top:1px solid var(--line);margin-top:1.2rem}
.cx-q summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:56px;padding:.9rem 0;cursor:pointer;list-style:none}
.cx-q summary::-webkit-details-marker{display:none}
.cx-q summary::after{content:"+";flex:none;width:30px;height:30px;display:grid;place-items:center;border:1px solid #d9d4c8;border-radius:50%;font-size:1.2rem;line-height:1;color:var(--navy)}
.cx-q[open] summary::after{content:"−";background:var(--navy);border-color:var(--navy);color:#fff}
.cx-q summary:hover h3{color:var(--cx-or-texte)}
.cx-q p{margin:0;padding:0 2.8rem 1.2rem 0;font-size:1rem;line-height:1.65;color:var(--cx-gris);max-width:70ch}

/* ---------- Les communes ---------- */
/* rangées par secteur : Ouest, Nord, Est, Sud */
.cx-secteurs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.6rem 1.5rem;margin-top:1.5rem}
.cx-secteur{padding-top:.9rem;border-top:2px solid var(--gold)}
.cx-secteur h3{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin:0 0 .5rem;font-family:var(--sans);font-size:.76rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--cx-or-texte)}
.cx-secteur h3 span{font-weight:500;letter-spacing:0;color:var(--cx-gris)}
.cx-secteur ul{list-style:none;margin:0;padding:0}
.cx-secteur a{display:block;padding:.34rem 0;color:var(--navy);font-size:.97rem;font-weight:500;line-height:1.3}
.cx-secteur a:hover{color:var(--cx-or-texte);text-decoration:underline;text-underline-offset:3px}
.cx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.cx-communes-toutes{display:inline-flex;align-items:center;min-height:44px;margin-top:1.4rem;padding:.5rem 1.2rem;border-radius:999px;background:var(--navy);color:#fff;font-size:.9rem;font-weight:500;transition:background .2s}
.cx-communes-toutes:hover{background:var(--navy-deep)}

/* ---------- La galerie de personnalisation ---------- */
.cx-perso .perso-gallery{margin-top:1.3rem}
.cx-perso .perso-gallery figure{margin:0;cursor:pointer}
.cx-vide{text-align:center;margin-bottom:1rem;color:var(--cx-gris)}

/* ---------- Les cartes de la colonne de droite ---------- */
.cx-carte{display:flex;flex-direction:column;gap:.5rem;padding:1.05rem 1.1rem 1.15rem;background:#fff;border:1px solid var(--line);border-radius:14px}
.cx-carte-met{align-items:center;text-align:center;border-top:4px solid var(--gold)}
.cx-carte-met img{width:92px;height:auto}
.cx-carte-met strong{font-family:var(--display);font-size:1.32rem;font-weight:700;line-height:1.15;color:var(--navy)}
.cx-carte-met span{font-size:.88rem;line-height:1.45;color:var(--cx-gris)}
.cx-carte-met .cx-btn{width:100%;margin-top:.25rem;padding:.7rem .6rem;font-size:.78rem;letter-spacing:.04em}
.cx-carte-showroom .cx-sur{margin:0}
.cx-carte-showroom address{font-style:normal;font-weight:600;font-size:.95rem;color:var(--navy);line-height:1.4}
.cx-horaires{margin:0;font-size:.84rem;line-height:1.45;color:var(--cx-gris)}
.cx-tel{font-family:var(--display);font-size:1.35rem;font-weight:700;color:var(--navy);line-height:1.2}
.cx-itineraire{font-size:.9rem;font-weight:600;color:var(--cx-or-texte);text-decoration:underline;text-underline-offset:3px}
.cx-tel:hover,.cx-itineraire:hover{color:var(--navy)}

/* ---------- La promo (includes/promo-pages.php) ---------- */
.promo-page{border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--line)}
.promo-page-lien{display:flex;flex-direction:column;color:inherit}
.promo-page-media{display:block;background:var(--paper-2)}
.promo-page-video,.promo-page-image{display:block;width:100%;height:auto;max-width:none}
.promo-page-texte{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;padding:1rem 1.05rem 1.15rem}
.promo-page-badge{font-size:.7rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#8a6414}
.promo-page-accroche{font-family:var(--display);font-size:1.3rem;font-weight:700;line-height:1.18;color:var(--navy)}
.promo-page-bouton{display:inline-flex;align-items:center;min-height:40px;padding:.5rem 1rem;border-radius:999px;background:var(--navy);color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;line-height:1.25;transition:background .25s}
a.promo-page-lien:hover .promo-page-bouton{background:var(--gold);color:#1e1f23}
.promo-page-conditions{font-size:.74rem;color:#5a606b;line-height:1.4}
a.promo-page-lien:focus-visible{outline:3px solid var(--navy);outline-offset:3px}

/* ---------- Le rappel du rendez-vous ---------- */
.cx-rappel{background:var(--navy);color:#fff}
.cx-rappel-in{max-width:1000px;margin:0 auto;padding:2.8rem 2.2rem;display:flex;align-items:center;gap:2.4rem}
.cx-rappel-in > img{flex:none;width:170px;height:auto}
.cx-rappel-in h2{color:#fff;font-size:clamp(1.7rem,3vw,2.5rem)}
.cx-rappel p{margin:0;color:rgba(255,255,255,.88);font-size:1.05rem;line-height:1.6;max-width:56ch}
.cx-rappel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.5rem;margin-top:1.4rem}
.cx-rappel-devis{color:#fff;font-size:.95rem;font-weight:500;text-decoration:underline;text-underline-offset:4px}
.cx-rappel-devis:hover{color:var(--gold-soft)}

/* ============================================================
   ÉCRANS MOYENS : la promo de gauche passe sous la colonne de droite
   ============================================================ */
@media(max-width:1180px){
  .cx-milieu,.cx-milieu-sans-gauche{grid-template-columns:minmax(0,1fr) 250px;grid-template-areas:"centre droite" "centre gauche";grid-template-rows:auto 1fr;gap:1.4rem 2rem}
  .cx-rail-in{position:static}
}

/* ============================================================
   TÉLÉPHONE ET TABLETTE : une colonne, la page d'abord
   ============================================================ */
@media(max-width:900px){
  .cx-page{--cx-haut:86px}
  .cx-hero{min-height:min(70vh,600px)}
  .cx-ariane-in,.cx-reperes-in{padding-left:1.2rem;padding-right:1.2rem}
  .cx-reperes-in{grid-template-columns:1fr 1fr;gap:.8rem 1rem}
  .cx-reperes-in li{font-size:.88rem}
  /* la page, puis Mèt et le showroom, puis les promos côte à côte */
  .cx-milieu,.cx-milieu-sans-gauche{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:none;grid-template-rows:none;padding:2rem 1.2rem 2.6rem;gap:1.6rem 1.2rem}
  .cx-rail{display:contents}
  .cx-centre{grid-area:auto;grid-column:1/-1;order:1}
  .cx-rail-droite .cx-rail-in{grid-column:1/-1;order:2}
  .cx-rail-gauche .cx-rail-in{order:3;align-self:start}
  .cx-rail-haut{order:4;margin:0;align-self:start}
  .cx-bloc,.cx-page .cx-selecteur{margin-bottom:2.6rem}
  .cx-rail-droite .cx-rail-in{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start}
  .cx-page .cx-selecteur{padding:1.5rem 1.1rem 1.7rem}
  .cx-tel,.cx-itineraire,.cx-ariane a{display:inline-flex;align-items:center;min-height:44px}
  .cx-ariane-in{align-items:center;padding-top:.2rem;padding-bottom:.2rem}
  .cx-rappel-in{flex-direction:column;text-align:center;padding:2.4rem 1.2rem;gap:1.2rem}
  .cx-rappel-in > img{width:130px}
  .cx-rappel p{margin:0 auto}
  .cx-rappel-actions{justify-content:center}
}
@media(max-width:560px){
  .cx-hero-actions{flex-direction:column;gap:.8rem}
  .cx-rail-gauche .cx-rail-in,.cx-rail-haut{grid-column:1/-1}
  .cx-reperes-in{grid-template-columns:1fr}
  .cx-types{gap:.45rem}
  .cx-type{font-size:.9rem;padding:.55rem .95rem}
  .cx-scene{border-radius:10px;aspect-ratio:4/3}
  .cx-scene-legende{padding:2rem .9rem .8rem}
  .cx-scene-legende strong{font-size:1.15rem}
  .cx-modeles{grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
  .cx-composer-pied .cx-btn{width:100%}
  .cx-etapes ol{grid-template-columns:1fr 1fr;gap:.8rem}
  .cx-secteurs{grid-template-columns:1fr 1fr;gap:1.4rem 1.2rem}
  .cx-secteur a{padding:.6rem 0}
  .cx-etapes li{padding:1rem .9rem}
  .cx-q p{padding-right:0}
  .cx-page .swatch-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(prefers-reduced-motion:reduce){
  .cx-scene-img,.cx-btn,.cx-modele img,.cx-hero-film{transition:none}
  .cx-btn-or:hover{transform:none}
}
@media print{
  .cx-rail,.cx-rappel,.cx-video,.cx-hero-actions{display:none}
  .cx-milieu{display:block}
}
