/* Revue UX du 09/11/2026 (13 maquettes avant/après validées par Bastien, « Tout, dans mon ordre »).
   Chargée après nouveau.css par le Worker. Les classes pg-* et la barre .bdz-bar sont posées au build par ux.py.
   Retour arrière : BDZ_UX_ANCIEN=1 au build (feuille et script vides, aucune retouche des pages). */

/* 1. Accueil : la photo « Et pour vous » prenait la hauteur de son attribut height (1600 px). */
.grown .ph img{height:auto}

/* 2. Accueil : un seul choix d'âge en haut de page (le formulaire), les 4 tuiles en double sortent du héros. */
.hero .agepick{display:none}

/* 4. Pied de page en accordéon sur téléphone (cibles de 48 px, 3 lignes au lieu de 16 liens serrés). */
footer details summary{list-style:none;font-family:var(--f-titre);font-weight:700;font-size:16px}
footer details summary::-webkit-details-marker{display:none}
/* À propos : même défaut de hauteur que la photo de l'accueil. */
.sx img[height],.about img[height]{height:auto}
.sx .sx-ph img[height]{height:100%} /* cartes de stage : la photo remplit son cadre */

@media(max-width:700px){
  .grown .ph{max-width:300px;margin-inline:auto}
  .sec{padding-block:44px}
  .sec-h{margin-bottom:20px}

  /* 3. « Trois étapes » : une ligne par étape au lieu d'un écran et demi. */
  .three{gap:14px}
  .three>.s3:has(.ic){flex-direction:row;align-items:flex-start;text-align:left;gap:14px;padding:0;display:grid;grid-template-columns:56px 1fr;column-gap:14px;row-gap:2px}
  .s3 .ic{width:56px;height:56px;grid-row:1 / span 3}
  .s3 .ic svg{width:26px;height:26px}
  .s3 .n{font-size:var(--t-precision)}
  .s3 h3{font-size:18px}
  .s3 p{font-size:15px;max-width:none}

  /* Cartes par âge : 2 colonnes compactes. */
  .lines{grid-template-columns:1fr 1fr;gap:12px}
  .ln{min-height:0;padding:12px 12px 14px;border-radius:20px;gap:6px}
  .ln .stack{height:92px;margin-bottom:2px}
  .ln .stack img{height:74px;border-width:3px;border-radius:12px}
  .ln .age{font-size:22px}
  .ln .nm{font-size:var(--t-precision)}
  .ln p{display:none}
  .ln .ft{font-size:var(--t-precision);padding-top:8px}
  .ln .ft b{font-size:15px}
  .ln .go{width:32px;height:32px;flex:none}

  /* Pied de page */
  footer details{display:block;border-top:1px solid var(--line)}
  footer details summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
  footer details summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:6px;transition:transform .2s}
  footer details[open] summary::after{transform:rotate(-135deg)}
  footer details a{display:flex;align-items:center;min-height:44px}
  footer .fcols{gap:0}
  footer .fcols>div:first-child{margin-bottom:20px}
  footer .fcols>div{flex-basis:100%;gap:0}
  footer .fbot a{display:inline-block;padding-block:12px}

  /* 6. Catalogue : cartes en ligne (photo à gauche), 4 stages par écran au lieu d'un et demi. */
  .intro .wrap{padding-block:16px 18px;gap:10px}
  .intro h1{font-size:30px;letter-spacing:-.5px}
  .intro .lead{font-size:16px}
  .filters .wrap{padding-block:10px;gap:10px}
  .sel label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .sel select{height:44px;padding:0 8px;font-size:15px;border-radius:999px}
  .sels .count{justify-content:space-between;font-size:var(--t-precision)}
  .count b{font-size:18px}
  .grid{gap:10px;padding-block:14px 20px}
  .st-link{flex-direction:row}
  .st .ph{flex:0 0 118px;aspect-ratio:auto;min-height:124px;border-radius:0}
  .st .ph img{position:absolute;inset:0}
  .st .age{left:6px;top:6px;font-size:var(--t-precision);padding:3px 8px}
  .st .in{padding:10px 12px 10px;gap:3px;min-width:0}
  .st .pill{font-size:var(--t-precision);padding:2px 8px}
  .st h3{font-size:17px;line-height:1.2}
  .st .acc{display:none}
  .st .meta{font-size:var(--t-precision)}
  .st .row{padding-top:4px;font-size:var(--t-precision)}
  .st .prix{font-size:17px}
}

/* Catalogue téléphone : filtres en pastilles qui défilent (jamais tronquées, même avec une semaine choisie). */
@media(max-width:700px){
  .sels{display:flex !important;flex-wrap:wrap;gap:8px}
  .sels .sel{flex:0 0 auto}
  .sels .sel select{width:auto;max-width:78vw}
  .sels .count{flex:1 0 100%}
}

/* FAQ de toutes les pages : vrai accordéon (plus de triangle du navigateur), ligne de 56 px. */
.md-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:8px 0}
.md-faq summary::-webkit-details-marker{display:none}
.md-faq summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--f-titre);font-size:22px;font-weight:600;line-height:1;transition:transform .2s}
.md-faq details[open] summary::after{content:"–"}
.md-alt .md-faq summary::after{background:#fff}
.md-faq details{border:1.5px solid transparent}
.md-faq details[open]{border-color:var(--line);background:#fff}
.md-faq p{font-size:16px;line-height:1.55}

/* Barre d'action collée en bas sur téléphone (MercreDayz, BAFA). */
.bdz-bar{display:none}
@media(max-width:700px){
  .bdz-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 24px rgba(39,47,53,.12);border-radius:20px 20px 0 0}
  .bdz-bar span{font-size:var(--t-precision);line-height:1.25;color:var(--muted)}
  .bdz-bar span b{display:block;font-family:var(--f-titre);font-size:18px;color:var(--fg)}
  .bdz-bar .btn{min-height:var(--btn-h);padding-inline:22px;font-size:17px;white-space:nowrap}
  body.avec-bar{padding-bottom:76px}
}

/* ---------- Héros en couleur (MercreDayz bleu électrique, BAFA prune) ---------- */
.pg-merc .ph-hero,.pg-bafa .ph-hero{color:#fff;border-radius:0 0 44px 44px;padding-block:28px 64px;margin-bottom:8px}
.pg-merc .ph-hero{background:var(--bdz-sciences,#304B9A)}
.pg-bafa .ph-hero{background:var(--bdz-prune-fonce,#592B51)}
.pg-x .ph-hero h1{color:#fff;font-size:clamp(34px,4.6vw,62px);max-width:12em}
.pg-x .ph-hero h1 .hl{color:var(--bdz-culture,#FEC900);background:none;-webkit-text-fill-color:currentColor}
.pg-x .ph-hero .crumbs,.pg-x .ph-hero .crumbs a{color:rgba(255,255,255,.8)}
.pg-x .ph-hero .eyebrow{color:var(--bdz-culture,#FEC900)}
.pg-x .ph-hero .lead{color:rgba(255,255,255,.92)}
.pg-x .ph-hero .blobs i:nth-child(1){background:var(--bdz-culture);opacity:1;width:220px;height:220px;right:-70px;top:-70px}
.pg-x .ph-hero .blobs i:nth-child(2){background:var(--bdz-corail);opacity:1;left:-50px;right:auto;top:auto;bottom:-50px;width:150px;height:150px;display:block}
.pg-x .ph-hero .blobs i:nth-child(3){background:var(--bdz-educatif);opacity:1;display:block;right:44%;top:8%}
.pg-x .md-faits li{background:rgba(255,255,255,.14);color:#fff;border:1.5px solid rgba(255,255,255,.35);font-size:15px}
.pg-x .ph-hero .btn-p{font-size:19px;min-height:var(--btn-h);padding-inline:28px;box-shadow:0 10px 24px rgba(0,0,0,.25)}
.pg-x .ph-hero .btn-s{background:transparent;color:#fff;border-color:rgba(255,255,255,.7);min-height:var(--btn-h)}
.pg-x .md-hero-g{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.pg-x .md-hero-ph{display:block;position:relative}
.pg-x .md-hero-ph img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:46% 54% 40% 60%/50% 40% 60% 50%;border:6px solid #fff;box-shadow:0 24px 50px rgba(0,0,0,.3)}
.pg-x .md-hero-ph .md-bub{color:var(--fg);font-family:var(--f-titre);font-weight:700;font-size:15px;border-radius:20px 20px 4px 20px;left:-10px;bottom:10%}
.pg-x .md-hero-ph .stk{position:absolute;right:-6px;top:4%;width:104px;height:104px;border-radius:50%;background:var(--bdz-culture);color:var(--fg);display:flex;align-items:center;justify-content:center;text-align:center;font-family:var(--f-titre);font-weight:800;font-size:var(--t-precision);line-height:1.1;transform:rotate(10deg);box-shadow:0 8px 20px rgba(0,0,0,.2)}
@media(max-width:900px){
  .pg-x .md-hero-g{grid-template-columns:1fr;gap:26px}
  .pg-x .md-hero-ph{width:100%;max-width:300px;margin-inline:auto;order:2} /* width : sans elle, le cadre fait 12 px tant que la photo n'est pas arrivée (CLS 0,13, 26/11) */
  .pg-x .ph-hero{padding-block:16px 40px;border-radius:0 0 32px 32px}
  .pg-x .ph-hero .lead{font-size:17px}
  .pg-x .ph-hero .acts .btn{flex:1 1 100%;justify-content:center;text-align:center}
  .pg-x .ph-hero .blobs i:nth-child(3){display:none}
  .pg-x .md-faits{gap:6px;margin-top:16px}
  .pg-x .md-faits li{font-size:var(--t-precision);padding:6px 12px}
}
.pg-x .md-lieu,.pg-x .md-note,.pg-x .md-net,.pg-x .md-tarif p,.pg-x .md-ligne li span{font-size:15px}
.pg-x .md-ligne li small{font-size:var(--t-precision)}
.pg-x .sec-h h2{font-size:clamp(28px,3.4vw,44px)}

/* ---------- MercreDayz ---------- */
/* Activités : 4 colonnes sur ordinateur (plus de carte orpheline), carrousel sur téléphone. */
.pg-merc .md-acts{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.pg-merc .md-act{border-radius:24px;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.pg-merc .md-act:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(39,47,53,.14)}
.pg-merc .md-act-ph img{aspect-ratio:4/3}
.pg-merc .md-act-in>p:not([class]){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:15px}
.pg-merc .md-act h3{font-size:24px}
.pg-merc .md-prix b{font-size:28px}
.pg-merc .md-act:has(.md-etat.plein) .md-act-ph img{filter:grayscale(1);opacity:.75}
.pg-merc .md-etat{font-family:var(--f-titre);font-size:var(--t-precision);padding:6px 12px}
.pg-merc .md-act-go{min-height:var(--btn-h);font-size:var(--btn-t)}
@media(max-width:1000px){.pg-merc .md-acts{grid-template-columns:1fr 1fr}}
@media(max-width:700px){
  .pg-merc .md-acts{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin-inline:-16px;padding:4px 16px 14px;scrollbar-width:none}
  .pg-merc .md-acts::-webkit-scrollbar{display:none}
  .pg-merc .md-act{flex:0 0 78%;scroll-snap-align:center}
}
/* Mercredi type : une vraie frise. */
.pg-merc .md-tl{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;position:relative}
.pg-merc .md-tl::before{content:"";position:absolute;left:8%;right:8%;top:21px;border-top:3px dashed var(--line)}
.pg-merc .md-tl li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;background:none;padding:0 10px;position:relative}
.pg-merc .md-tl li b{background:var(--bdz-culture);color:var(--fg);border-radius:999px;padding:9px 14px;font-size:15px;white-space:nowrap;position:relative}
.pg-merc .md-tl li:nth-child(3) b{background:var(--bdz-corail);color:#fff;font-size:19px;padding:7px 16px}
.pg-merc .md-tl h3{font-size:18px;margin-top:6px}
.pg-merc .md-tl p{font-size:15px}
@media(max-width:900px){
  .pg-merc .md-tl{grid-template-columns:1fr;gap:0}
  .pg-merc .md-tl::before{left:15px;right:auto;top:10px;bottom:10px;border-top:0;border-left:3px dashed var(--line)}
  .pg-merc .md-tl li{display:grid;grid-template-columns:1fr;align-items:start;text-align:left;padding:0 0 18px 44px;gap:4px}
  .pg-merc .md-tl li::before{content:"";position:absolute;left:6px;top:8px;width:21px;height:21px;border-radius:50%;background:var(--bdz-culture);border:4px solid #fff}
  .pg-merc .md-tl li:nth-child(3)::before{background:var(--bdz-corail)}
  .pg-merc .md-tl li b{justify-self:start}
  .pg-merc .md-tl h3{margin-top:2px}
}
/* « Un prix, tout compris » : bloc soleil. */
.pg-merc section:has(> .md-ok){background:var(--bdz-culture);border-radius:32px;padding-inline:clamp(18px,4vw,48px);position:relative;overflow:hidden;margin-block:24px}
.pg-merc section:has(> .md-ok) .eyebrow{color:var(--fg)}
.pg-merc .md-ok{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.pg-merc .md-ok li{background:#fff;border-radius:18px;padding:14px 16px;font-weight:600;font-size:15px;align-items:center}
.pg-merc .md-ok svg{stroke:var(--fg);background:var(--bdz-sports);border-radius:50%;width:28px;height:28px;padding:6px}
@media(max-width:900px){.pg-merc .md-ok{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.pg-merc .md-ok{grid-template-columns:1fr;gap:8px}.pg-merc .md-ok li{padding:10px 14px}}
/* Lignes de bus */
.pg-merc .md-ligne{background:#fff;border-left:8px solid var(--c);box-shadow:0 2px 12px rgba(39,47,53,.06)}
.pg-merc .md-ligne summary{list-style:none;min-height:56px}
.pg-merc .md-ligne summary::-webkit-details-marker{display:none}
.pg-merc .md-ligne summary small{font-size:var(--t-precision)}
.pg-merc .md-ligne summary::after{content:"";width:9px;height:9px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);margin:0 6px 4px 8px;transition:transform .2s}
.pg-merc .md-ligne[open] summary::after{transform:rotate(-135deg);margin-bottom:-4px}
.pg-merc .md-pastille{display:none}
/* Trimestres : 3 tuiles côte à côte, y compris sur téléphone. */
.pg-merc #calendrier .three{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}
.pg-merc #calendrier .three::before{display:none}
.pg-merc #calendrier .s3{background:var(--bdz-coquille);border-radius:20px;padding:16px 12px;gap:4px;display:flex;flex-direction:column;align-items:center;text-align:center;border-top:6px solid var(--bdz-sciences)}
.pg-merc #calendrier .s3:nth-child(2){border-top-color:var(--bdz-educatif)}
.pg-merc #calendrier .s3:nth-child(3){border-top-color:var(--bdz-sports)}
.pg-merc #calendrier .s3 h3{font-size:clamp(18px,2.2vw,26px)}
.pg-merc #calendrier .s3 p{font-size:var(--t-precision);max-width:none}
.pg-merc #calendrier .md-age{font-size:var(--t-precision);letter-spacing:0}
/* Bloc final */
.pg-x .dark{border-radius:44px 44px 0 0;position:relative;overflow:hidden}
.pg-x .dark::before{content:"";position:absolute;width:220px;height:220px;right:-60px;bottom:-80px;background:var(--bdz-corail);border-radius:42% 58% 52% 48%/50% 44% 56% 50%}
.pg-x .dark::after{content:"";position:absolute;width:120px;height:120px;left:-30px;top:-40px;background:var(--bdz-culture);border-radius:42% 58% 52% 48%/50% 44% 56% 50%}
.pg-x .md-final{position:relative;z-index:1}
.pg-x .md-final h2{font-size:clamp(30px,4vw,52px)}
.pg-x .md-final .btn{font-size:19px;min-height:var(--btn-h);padding-inline:32px}

/* ---------- BAFA ---------- */
.pg-bafa .bf-4{gap:14px}
.pg-bafa .bf-4 .s3{background:#fff;border-radius:24px;padding:22px 18px;align-items:flex-start;text-align:left;gap:8px;box-shadow:0 2px 12px rgba(39,47,53,.06)}
.pg-bafa .bf-4 .md-emo{position:static;width:56px;height:56px;font-size:28px;border-radius:42% 58% 52% 48%/50% 44% 56% 50%;background:var(--bdz-culture)}
.pg-bafa .bf-4 .s3:nth-child(2) .md-emo{background:var(--bdz-sports)}
.pg-bafa .bf-4 .s3:nth-child(3) .md-emo{background:var(--bdz-educatif)}
.pg-bafa .bf-4 .s3:nth-child(4) .md-emo{background:var(--bdz-corail)}
.pg-bafa .bf-4 .s3 h3{font-size:19px}
.pg-bafa .bf-4 .s3 p{font-size:15px;max-width:none}
@media(max-width:560px){.pg-bafa .bf-4{grid-template-columns:1fr 1fr;gap:10px}.pg-bafa .bf-4 .s3{padding:14px 12px}.pg-bafa .bf-4 .s3 h3{font-size:16px}.pg-bafa .bf-4 .s3 p{font-size:var(--t-precision)}.pg-bafa .bf-4 .md-emo{width:44px;height:44px;font-size:22px}}
/* Parcours : 3 étapes numérotées et reliées. */
.pg-bafa .md-tl{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;counter-reset:e;position:relative}
.pg-bafa .md-tl li{counter-increment:e;display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:var(--bdz-coquille);border-radius:24px;padding:22px 20px;position:relative}
.pg-bafa .md-tl li::before{content:counter(e);width:48px;height:48px;border-radius:50%;background:var(--bdz-prune-fonce,#592B51);color:#fff;font-family:var(--f-titre);font-weight:800;font-size:22px;display:flex;align-items:center;justify-content:center}
.pg-bafa .md-tl li b{position:absolute;right:16px;top:28px;background:var(--bdz-culture);color:var(--fg);border-radius:999px;padding:6px 14px;font-size:15px}
.pg-bafa .md-tl h3{font-size:21px}
.pg-bafa .md-tl p{font-size:15px}
@media(max-width:800px){.pg-bafa .md-tl{grid-template-columns:1fr;gap:10px}.pg-bafa .md-tl li{padding:16px;display:grid;grid-template-columns:48px 1fr;column-gap:14px;row-gap:2px}.pg-bafa .md-tl li::before{grid-row:1 / span 2}.pg-bafa .md-tl li b{top:14px;right:12px;font-size:var(--t-precision);padding:4px 10px}.pg-bafa .md-tl h3{padding-right:76px;font-size:18px}}
/* Formules : le pack ressort vraiment. */
.pg-bafa .md-tarifs{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px}
.pg-bafa .md-tarif{border:0;box-shadow:0 2px 12px rgba(39,47,53,.06);padding:26px 22px;gap:10px}
.pg-bafa .md-tarif h3{font-size:22px}
.pg-bafa .md-big b{font-size:48px;line-height:1}
.pg-bafa .md-tarif p{font-size:15px}
.pg-bafa .md-tarif .btn{min-height:var(--btn-h);font-size:18px;margin-top:10px}
.pg-bafa .md-tarif.md-top{background:var(--bdz-ardoise);color:#fff;transform:scale(1.04);box-shadow:0 20px 44px rgba(39,47,53,.3);z-index:1}
.pg-bafa .md-tarif.md-top h3{color:#fff}
.pg-bafa .md-tarif.md-top .md-sub{color:rgba(255,255,255,.75)}
.pg-bafa .md-badge{background:var(--bdz-culture);color:var(--fg);font-size:var(--t-precision);padding:6px 14px;top:-14px}
@media(max-width:800px){.pg-bafa .md-tarifs{grid-template-columns:1fr;gap:12px}.pg-bafa .md-tarif.md-top{order:-1;transform:none}.pg-bafa .md-tarif{padding:20px 18px}.pg-bafa .md-big b{font-size:40px}}
/* Sessions */
.pg-bafa .bf-sess{padding:16px 18px;border-radius:20px;gap:6px;border-left:8px solid var(--bdz-sports)}
.pg-bafa .bf-sess b{font-size:19px}
.pg-bafa .bf-sess span{font-size:15px}
.pg-bafa .bf-sess em{align-self:flex-start;background:var(--bdz-sports);color:var(--fg);border-radius:999px;padding:4px 12px;font-size:var(--t-precision)}
.pg-bafa .bf-sess.off{border-left-color:var(--line);opacity:.7}
.pg-bafa .bf-sess.off em{background:var(--line)}
/* Avis en couleur */
.pg-bafa .three:has(.bf-avis){gap:14px}
.pg-bafa .three:has(.bf-avis)::before{display:none}
.pg-bafa .bf-avis{background:var(--bdz-educatif);color:var(--fg);border-radius:26px 26px 26px 6px;padding:26px 22px;font-family:var(--f-titre);font-weight:600;font-size:18px;text-align:left;align-items:flex-start}
.pg-bafa .bf-avis:nth-child(2){background:var(--bdz-culture)}
.pg-bafa .bf-avis:nth-child(3){background:var(--bdz-sports)}
/* Guide */
.pg-bafa .bf-guide{background:var(--bdz-prune-fonce,#592B51);color:#fff}
.pg-bafa .bf-guide h2{color:#fff}
.pg-bafa .bf-guide .eyebrow{color:var(--bdz-culture)}
.pg-bafa .bf-form label{font-size:15px}
.pg-bafa .bf-form input{min-height:50px}
.pg-bafa .bf-form .btn{min-height:var(--btn-h);font-size:18px}

.pg-bafa .bf-4 .s3{display:flex;flex-direction:column}
@media(max-width:700px){
  .pg-x .ph-hero .blobs i:nth-child(1){width:120px;height:120px;right:-50px;top:-50px}
  .pg-x .ph-hero .blobs i:nth-child(2){width:110px;height:110px;left:-50px;bottom:-50px}
  .pg-x .dark::before{width:160px;height:160px;right:-90px;bottom:-110px}
  .pg-x .dark::after{width:90px;height:90px;left:-40px;top:-45px}
  .pg-merc #calendrier .three{grid-template-columns:1fr;gap:8px}
  .pg-merc #calendrier .s3{display:grid;grid-template-columns:auto 1fr;align-items:center;text-align:left;column-gap:14px;border-top:0;border-left:6px solid var(--bdz-sciences);padding:12px 14px}
  .pg-merc #calendrier .s3:nth-child(2){border-left-color:var(--bdz-educatif)}
  .pg-merc #calendrier .s3:nth-child(3){border-left-color:var(--bdz-sports)}
  .pg-merc #calendrier .s3 h3{grid-row:1 / span 2;font-size:20px;white-space:nowrap}
  .pg-merc #calendrier .s3 p{font-size:var(--t-precision)}
  .pg-bafa .bf-avis{display:block;font-size:17px;padding:20px 18px}
  .pg-bafa .three:has(.bf-avis){grid-template-columns:1fr;gap:10px}
}

/* ---------- Fiche stage ---------- */
/* Vidéo : une carte en ligne au lieu d'une vignette perdue à côté d'un texte orphelin. */
.pg-fiche #video{padding-block:22px}
.pg-fiche #video h2{display:none}
.pg-fiche #video .bdz-vrow.sm{display:block}
.pg-fiche #video .bdz-vrow.sm>p{display:none}
.pg-fiche #video .bdz-vcard{flex-direction:row;align-items:center;gap:16px;width:100%;max-width:520px;background:#fff;border-radius:22px;padding:10px 18px 10px 10px;box-shadow:0 2px 12px rgba(39,47,53,.07);min-height:96px}
.pg-fiche #video .bdz-vcard .ph{flex:0 0 76px;aspect-ratio:1/1;border-radius:16px}
.pg-fiche #video .bdz-vcard .pl{width:40px;height:40px}
.pg-fiche #video .bdz-vcard .pl svg{width:16px;height:16px}
.pg-fiche #video .bdz-vcard .lb b{font-family:var(--f-titre);font-size:18px}
.pg-fiche #video .bdz-vcard .lb span{font-size:15px}
/* L'essentiel : lignes sobres sur ordinateur, replié sur téléphone (les 4 repères juste au-dessus disent déjà l'important). */
.pg-fiche .sx-faits{grid-template-columns:1fr 1fr;gap:0 40px;margin-top:8px}
.pg-fiche .sx-faits>div{background:none;border-radius:0;padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:130px 1fr;gap:12px}
.pg-fiche .sx-faits dt{margin:0}
.pg-fiche details.ess>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:56px;font-family:var(--f-titre);font-weight:700;font-size:20px;cursor:pointer}
.pg-fiche details.ess>summary::-webkit-details-marker{display:none}
.pg-fiche details.ess>summary::after{content:"";width:10px;height:10px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);margin-right:8px;transition:transform .2s}
.pg-fiche details.ess[open]>summary::after{transform:rotate(-135deg)}
.pg-fiche .blk.sx:has(details.ess){padding-block:8px}
/* Semaines : la rareté se voit (information vraie, lue en direct). */
.pg-fiche .slot .l.peu{background:var(--bdz-culture);color:var(--fg);border-radius:999px;padding:3px 10px}
.pg-fiche .slot .l.peu .dot{display:none}
.pg-fiche .slot{min-height:64px}
.pg-fiche .opt{min-height:60px}
.pg-fiche .sw{width:56px;height:32px}
.pg-fiche .sw span::after{width:26px;height:26px}
.pg-fiche .sw input:checked+span::after{transform:translateX(24px)}
.pg-fiche #go{min-height:56px;font-size:19px}
/* À voir aussi (fiches, pages activité, centre, saison) : pastilles de 44 px au lieu d'une liste à puces soulignée. Le maillage reste entier. */
.sx-liens ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.sx-liens a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:999px;background:#fff;text-decoration:none;font-weight:600;font-size:15px;box-shadow:0 2px 10px rgba(39,47,53,.06)}
@media(max-width:700px){
  .pg-fiche .crumbs{white-space:nowrap;overflow-x:auto;scrollbar-width:none;padding-block:10px}
  .pg-fiche .crumbs::-webkit-scrollbar{display:none}
  .pg-fiche .sx-faits{grid-template-columns:1fr}
  .pg-fiche .sx-faits>div{grid-template-columns:110px 1fr}
  .pg-fiche .blk{padding-block:22px}
  .pg-fiche .mbar .btn{min-height:var(--btn-h);font-size:var(--btn-t)}
}

/* ---------- Avis des parents : des notes qu'on lit d'un coup d'œil ---------- */
.pg-avis .av-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-block:24px}
.pg-avis .av-card{background:#fff;border-radius:28px;padding:24px;box-shadow:0 2px 12px rgba(39,47,53,.06);display:flex;flex-direction:column;gap:14px}
.pg-avis .av-top{display:flex;align-items:center;gap:16px}
.pg-avis .av-note{font-family:var(--f-titre);font-weight:800;font-size:52px;line-height:1;font-variant-numeric:tabular-nums}
.pg-avis .av-top h2{font-size:24px;margin:0}
.pg-avis .av-top small{display:block;font-size:15px;color:var(--muted);font-weight:500}
.pg-avis .av-st{display:inline-block;width:96px;height:18px;background:linear-gradient(90deg,var(--bdz-culture) var(--p),var(--line) var(--p));-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18'%3E%3Cpath id='s' d='M9 1l2.5 5 5.5.8-4 3.9.9 5.5L9 13.6 4.1 16.2 5 10.7 1 6.8 6.5 6z'/%3E%3Cuse href='%23s' x='19'/%3E%3Cuse href='%23s' x='38'/%3E%3Cuse href='%23s' x='57'/%3E%3Cuse href='%23s' x='76'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18'%3E%3Cpath id='s' d='M9 1l2.5 5 5.5.8-4 3.9.9 5.5L9 13.6 4.1 16.2 5 10.7 1 6.8 6.5 6z'/%3E%3Cuse href='%23s' x='19'/%3E%3Cuse href='%23s' x='38'/%3E%3Cuse href='%23s' x='57'/%3E%3Cuse href='%23s' x='76'/%3E%3C/svg%3E") center/contain no-repeat}
.pg-avis .sx-avis{list-style:none;padding:0;margin:0;gap:0}
.pg-avis .sx-avis li{display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:center;padding:12px 0;border-top:1px solid var(--line);min-height:56px}
.pg-avis .sx-avis li a{text-decoration:none;font-weight:600;font-size:16px;display:flex;align-items:center;min-height:44px}
.pg-avis .sx-avis li b{font-family:var(--f-titre);font-size:20px;text-align:right}
.pg-avis .sx-avis li small{grid-column:1 / -1;font-size:var(--t-precision);color:var(--muted)}
.pg-avis .av-card>p{margin:auto 0 0}
.pg-avis .av-card>p a{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:var(--bdz-corail);color:#fff;font-family:var(--f-titre);font-weight:700;font-size:19px;text-decoration:none}
@media(max-width:800px){.pg-avis .av-grid{grid-template-columns:1fr;gap:12px}.pg-avis .av-card{padding:18px}.pg-avis .av-note{font-size:44px}}

/* Pages activité, centre, saison : le tableau « l'essentiel » se replie sur téléphone, la liste des stages remonte. */
details.ess2>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 18px;background:#fff;border-radius:18px;font-family:var(--f-titre);font-weight:700;font-size:18px;cursor:pointer;box-shadow:0 2px 10px rgba(39,47,53,.06)}
details.ess2>summary::-webkit-details-marker{display:none}
details.ess2>summary::after{content:"";width:9px;height:9px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);transition:transform .2s}
details.ess2[open]>summary::after{transform:rotate(-135deg)}
details.ess2{margin-block:14px}

/* Pastille du haut de page BAFA : l'aide Caf avec sa condition (étude SEO + GEO V2 : ne pas l'annoncer sans dire qu'elle arrive en fin de parcours). */
.pg-bafa .md-hero-ph .stk{flex-direction:column;width:124px;height:124px;font-size:16px}
.pg-bafa .md-hero-ph .stk small{display:block;font-size:var(--t-precision);font-weight:700;line-height:1.15;margin-top:3px;max-width:8em}

/* La barre du bas n'apparaît qu'une fois le bouton du haut de page sorti de l'écran (pas deux fois le même bouton). */
@media(max-width:700px){
  .bdz-bar{transform:translateY(110%);transition:transform .25s var(--ease,ease);visibility:hidden}
  .bdz-bar.vu{transform:none;visibility:visible}
  body.avec-bar .bdz-prive{bottom:88px}
}
@media(prefers-reduced-motion:reduce){.bdz-bar{transition:none}}

/* MercreDayz Bordeaux : le tableau des demi-journées tient dans l'écran du téléphone (plus de colonne coupée). */
@media(max-width:560px){
  .pg-merc section:has(> .md-ok){padding-inline:14px}
  .pg-merc .md-vs table{min-width:0;width:100%;font-size:var(--t-precision)}
  .pg-merc .md-vs th,.pg-merc .md-vs td{padding:10px 8px}
  .pg-merc .md-vs th small{display:block}
}

/* ---------- 3e passe (09/11, nuit) : CSE, ski, blog, page centre, à propos ---------- */
/* Une photo qui porte width et height dans le HTML garde ses proportions (sinon elle s'étire en hauteur). Toute règle qui fixe une hauteur passe devant. */
:where(img[width][height]) { height: auto }
/* Flèche « Lire l'article » : sa taille ne dépend plus de la feuille de la page. */
.more { display: inline-flex; gap: 8px; align-items: center }
.more svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round }
.vt-body > br:first-child, .vt-body > br:first-child + br { display: none }
@media (max-width: 600px) {
  /* Blog : 4 articles par écran au lieu de 1,5. Le guide en tête garde sa grande photo. */
  .posts .po, .vt-posts .po { flex-direction: row; border-radius: 18px }
  .posts .po .im, .vt-posts .po .im { flex: 0 0 108px; aspect-ratio: auto; min-height: 108px }
  .posts .po .tx, .vt-posts .po .tx { padding: 12px 14px; gap: 4px; min-width: 0 }
  .posts .po h3, .vt-posts .po h3 { font-size: 17px; line-height: 1.25 }
  .posts .po p, .vt-posts .po p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--t-precision) }
  .posts .po .more, .vt-posts .po .more { display: none }
  .posts .po .tag, .vt-posts .po .tag { font-size: var(--t-precision); padding: 2px 8px }
  .posts, .vt-posts { gap: 12px }
  .feat .im { min-height: 0; aspect-ratio: 16 / 9 }
  .feat .tx { padding: 18px 20px 22px; gap: 8px }
  /* CSE : les 3 chiffres sur une ligne, les 4 offres en lignes avec vignette. */
  .kpis { flex-wrap: nowrap; gap: 14px }
  .kpis div { flex: 1 1 0; min-width: 0 }
  .kpis b { font-size: 30px }
  .kpis span { font-size: var(--t-precision); line-height: 1.3 }
  .offers { gap: 12px }
  .offers .of { flex-direction: row; border-radius: 18px }
  .offers .of img { flex: 0 0 108px; width: 108px; height: auto; aspect-ratio: auto; min-height: 96px; align-self: stretch }
  .offers .of div { padding: 12px 14px; gap: 4px; justify-content: center; min-width: 0 }
  .offers .of b { font-size: 17px }
  /* Ski : la journée se lit de haut en bas, une étape par ligne. */
  .tlday.t5 { grid-template-columns: 1fr; gap: 8px }
  .tlday.t5 div { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 16px; border-radius: 16px }
  .tlday.t5 b { flex: 0 0 104px; font-size: 16px }
  .split .ph > svg { display: block; max-height: 280px; margin-inline: auto; width: auto !important; max-width: 100% }
}
@media (max-width: 700px) {
  /* Calendrier des semaines : une ligne par semaine, stage et prix en tête, plus de défilement de côté. */
  .sx-tab table.cal5 { display: block; min-width: 0 }
  table.cal5 thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  table.cal5 tbody { display: block }
  table.cal5 tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line) }
  table.cal5 tr:last-child { border-bottom: 0 }
  .sx-tab table.cal5 td { display: block; padding: 0; border: 0; white-space: normal }
  table.cal5 td:nth-child(2) { order: 1; flex: 1 1 60% }
  table.cal5 td:nth-child(2) br, table.cal5 td:nth-child(1) br { display: none }
  table.cal5 td:nth-child(2) .sx-m { display: block; font-size: var(--t-precision) }
  table.cal5 td:nth-child(2) a { min-height: 0; padding-block: 6px }
  table.cal5 td:nth-child(4) { order: 2; font-family: var(--f-titre); font-weight: 700 }
  table.cal5 td:nth-child(1) { order: 3; flex: 1 1 100%; font-size: var(--t-precision) }
  table.cal5 td:nth-child(3) { order: 4; font-size: var(--t-precision); color: var(--muted) }
  table.cal5 td:nth-child(5) { order: 5; margin-left: auto; font-size: var(--t-precision); color: var(--muted) }
}

/* Catalogues (11/11, maquette avant/après validée) : semaine et âge en gros boutons (ux.js), au-dessus des univers. */
.qs{background:#fff;border-radius:24px;padding:14px 16px 16px;margin:0 0 6px;display:flex;flex-direction:column;gap:10px}
.qs-t{margin:2px 0 -2px;font-family:var(--f-titre);font-weight:700;font-size:16px}
.qs-g{display:grid;gap:8px}
.qs-sem{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.qs-age{grid-template-columns:repeat(4,minmax(0,1fr))}
.qs-g button{cursor:pointer;border:1.5px solid var(--bdz-ardoise,#272F35);background:#fff;color:var(--bdz-ardoise,#272F35);font:inherit}
.qs-sem button{min-height:60px;border-radius:16px;padding:8px 12px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:1px}
.qs-sem small{font-size:var(--t-precision);font-weight:600}
.qs-sem b{font-family:var(--f-titre);font-size:16px;font-weight:700}
.qs-age button{white-space:nowrap;min-height:48px;border-radius:999px;padding:0 4px;font-family:var(--f-titre);font-weight:700;font-size:var(--t-precision)}
.qs-g button[aria-pressed=true]{background:var(--bdz-ardoise,#272F35);color:#fff}
.qs-g button:focus-visible{outline:3px solid var(--bdz-ardoise,#272F35);outline-offset:2px}
@media(min-width:701px){.qs-age{grid-template-columns:repeat(4,minmax(0,160px))}}

/* Filtre par vacances puis par semaine (maquette du 12/11) */
.qs-per{grid-template-columns:repeat(2,minmax(0,1fr))}
.qs-per button{min-height:60px;border-radius:16px;padding:8px 14px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:1px}
.qs-per b{font-family:var(--f-titre);font-size:17px;font-weight:700}
.qs-per small{font-size:var(--t-precision);font-weight:600}
.qs-ws{background:var(--bdz-coquille,#FFF8EB);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}
.qs-ws[hidden]{display:none}
.qs-wt{margin:0;font-family:var(--f-titre);font-weight:700;font-size:15px}
.qs-ws button{cursor:pointer;border:1.5px solid var(--bdz-ardoise,#272F35);background:#fff;color:var(--bdz-ardoise,#272F35);font:inherit;font-family:var(--f-titre);font-weight:700;font-size:15px;min-height:44px;border-radius:12px;padding:0 10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.qs-ws button i{font-style:normal;font-weight:600;font-size:var(--t-precision);margin:0 4px;opacity:.75}
.qs-ws button[aria-pressed=true]{background:var(--bdz-ardoise,#272F35);color:#fff}
.qs-ws button:focus-visible{outline:3px solid var(--bdz-ardoise,#272F35);outline-offset:2px}
.qs-ws .qs-tout{border-radius:999px;font-size:var(--t-precision)}
.qs-l{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.qs-mois .qs-l{grid-template-columns:repeat(4,minmax(0,1fr))}
.qs-mois .qs-l button{padding:0 2px}
.qs-m{grid-column:1/-1;font-size:var(--t-precision);font-weight:700;margin:2px 0 -2px}
.qs-mois .qs-large{grid-column:span 2}
@media(min-width:701px){
.qs-per{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.qs-ws{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:14px 16px}
.qs-wt{flex:0 0 100%}
.qs-l,.qs-mois .qs-l{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.qs-mois .qs-l button{padding:0 12px}
.qs-m{margin:0 2px 0 0}
.qs-ws .qs-tout{padding:0 16px}
}
@media(max-width:700px){
.qs-ws{flex-direction:row;flex-wrap:wrap;align-items:center}
.qs-wt{flex:1}
.qs-ws .qs-tout{min-height:40px;padding:0 14px}
.qs-l{flex:0 0 100%}
}

/* La journée dès la fiche et le catalogue (16/11/2026) : discrète, la semaine reste l'offre. */
.jr-pill{display:inline-flex;align-items:center;gap:6px;width:fit-content;border:1.5px solid #8A8F94;color:#4A555E;border-radius:999px;padding:2px 10px;font-size:var(--t-precision);font-weight:600;margin:2px 0 8px}
.jr-pill svg,.jr-lien svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.jr-lien{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;background:none;border:0;padding:0;margin-top:6px;font:inherit;font-size:15px;font-weight:600;color:inherit;text-align:left;cursor:pointer}
.jr-lien[hidden],.jr-zone[hidden]{display:none}
.jr-lien svg{color:#4A555E}
.jr-lien u{text-underline-offset:3px}
.jr-lien:focus-visible,.jr-j:focus-visible{outline:3px solid #272F35;outline-offset:2px}
.jr-zone{margin-top:4px}
.jr-zone>b{display:block;font-size:15px;margin-bottom:8px}
.jr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jr-j{min-height:60px;border-radius:16px;border:1.5px solid #272F35;background:#fff;color:#272F35;padding:8px 14px;text-align:left;font:inherit;cursor:pointer}
.jr-j b{display:block;font-family:var(--f-titre,inherit);font-size:16px}
.jr-j span{display:block;font-size:var(--t-precision);font-weight:600}
.jr-j[aria-pressed=true]{background:#272F35;color:#fff;border-width:2px}
.jr-j[aria-disabled=true]{border:1.5px dashed #8A8F94;background:#F4EEDF;color:#4A555E;cursor:not-allowed}
.jr-note{font-size:var(--t-precision);color:#4A555E;margin:8px 0 0}
.jr-avis{border:2px solid #FEC900;border-radius:16px;padding:10px 14px;font-size:var(--t-precision);margin-top:8px}

/* Filtre par enfant (23/11) : « Pour qui ? » dans le bloc des filtres, lieux communs d'une fratrie. */
.qs-qui{grid-template-columns:repeat(2,minmax(0,1fr))}
.qs-qui button{min-height:60px;border-radius:16px;padding:8px 14px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0}
.qs-qui b{font-family:var(--f-titre);font-size:16px;font-weight:700;overflow-wrap:anywhere}
.qs-qui small{font-size:var(--t-precision);font-weight:600}
.qs-g[hidden],.qs-lieux[hidden],.qs-pour[hidden]{display:none}
.qs-note{margin:0;font-size:var(--t-precision);line-height:1.4;color:var(--muted,#59636B)}
.qs-pour{margin:6px 0 0;align-self:flex-start;display:inline-block;background:#E6F2D9;color:#24501B;font-size:var(--t-precision);font-weight:700;padding:5px 12px;border-radius:999px}
.qs-lieux{display:flex;flex-direction:column;gap:20px;margin:0 0 32px}
.qs-lieux-t{margin:0;font-size:17px;line-height:1.5;max-width:760px}
.qs-lieu{background:#fff;border-radius:30px;padding:24px;display:flex;flex-direction:column;gap:6px}
.qs-lieu h3{margin:0;font-family:var(--f-titre);font-size:22px;font-weight:800}
.qs-lieu>p{margin:0 0 10px;font-size:var(--t-precision);color:var(--muted,#59636B)}
.qs-lieu-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.qs-lieu-e{background:var(--bdz-coquille,#FFF8EB);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:8px}
.qs-lieu-e>b{font-family:var(--f-titre);font-size:17px;font-weight:800}
.qs-lieu-e a{background:#fff;border-radius:16px;padding:12px 14px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:inherit;font-weight:700;font-size:16px}
.qs-lieu-e a span:last-child{white-space:nowrap;font-weight:800}
.qs-lieu-e a:hover span:first-child{text-decoration:underline}
