/* ══ PARCOURS GIRI ACADÉMIE — la matière commune des pages (05/11/2026) ══
   La pierre = la texture maison (marbre-affiliation), JAMAIS des veines CSS.
   ⛔ body transparent : body::before est en z-index négatif, un body opaque la masque. */
:root{--encre:#2a1d0c;--texte:#4a3d2c;--doux:#7a6a52;--or:#a07433;--or-txt:#8a6512;--filet:rgba(160,120,64,.32);
  --carte:linear-gradient(165deg,rgba(255,253,249,.94),rgba(250,244,232,.9));--ombre:0 30px 70px -40px rgba(90,62,14,.5)}
html{background:#f8f2e6;-webkit-text-size-adjust:100%}
body{margin:0;background:transparent;color:var(--texte);font:1.25rem/1.6 var(--m-sans);min-height:100vh;overflow-x:hidden}
body::before{content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:url('/parcours/assets/marbre.webp') center center/cover no-repeat;background-attachment:scroll;filter:contrast(1.16) saturate(1.12)}
body::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 80% 55% at 50% 0%,rgba(255,255,255,.55),transparent 70%),
    linear-gradient(180deg,rgba(255,253,248,.16),rgba(255,252,245,.32))}
*,*::before,*::after{box-sizing:border-box}
img{max-width:100%;display:block}
a{color:var(--or-txt)}
.enveloppe{max-width:1080px;margin:0 auto;padding:28px 16px 80px}
.etroit{max-width:640px;margin:0 auto}
.sur-titre{font-family:var(--m-serif);font-size:1.0625rem;letter-spacing:.28em;text-transform:uppercase;color:var(--or-txt);font-weight:600}
h1,h2,h3{font-family:var(--m-serif);color:var(--encre);font-weight:500;margin:0;line-height:1.12}
h1{font-size:clamp(2.5rem,8vw,4.5rem);letter-spacing:-.5px}
h2{font-size:clamp(1.875rem,5.4vw,2.875rem)}
h3{font-size:1.8125rem}
h1 em,h2 em,h3 em{font-style:italic;color:#a8781f;font-weight:500}
.filet-or{width:110px;height:1px;margin:18px auto;background:linear-gradient(90deg,transparent,#c9971b,transparent)}
.chapeau{font-size:1.375rem;color:var(--doux);max-width:560px;margin:0 auto}
.centre{text-align:center}
.carte{background:var(--carte);border:1px solid var(--filet);border-radius:22px;box-shadow:var(--ombre),inset 0 1px 0 #fff}
.boule{width:64px;height:64px;background:var(--m-logo) center/contain no-repeat;filter:drop-shadow(0 6px 10px rgba(110,74,10,.32));margin:0 auto}
.boule.petite{width:38px;height:38px}
.marque{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:6px 0 0;text-decoration:none}
.marque .boule{margin:0}   /* la boule au centre, le nom dessous (06/11 : les marges auto la poussaient à gauche) */
.marque span{font-family:var(--m-serif);font-size:1.1562rem;letter-spacing:.3em;text-transform:uppercase;color:var(--or-txt);font-weight:600}
.cache{display:none!important}
.note{font-size:1.1562rem;color:var(--doux)}
.erreur{color:#8a3a22;font-size:1.1875rem;min-height:1.4em;margin:8px 0 0}

/* ── LES CHAMPS ── */
.champ{display:block;margin:0 0 14px;text-align:left}
.champ span{display:block;font-size:1.125rem;letter-spacing:.06em;color:var(--doux);margin:0 0 6px}
.champ input{width:100%;font:1.3125rem var(--m-sans);color:var(--encre);padding:15px 16px;border-radius:14px;min-height:52px;
  border:1px solid rgba(160,120,64,.4);background:rgba(255,253,248,.92);outline:none;transition:border-color .2s,box-shadow .2s}
.champ input:focus{border-color:#b48a3c;box-shadow:0 0 0 3px rgba(232,192,120,.35)}
.champ.faux input{border-color:#b0452a}
.pot{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* ── LES PORTRAITS ── */
.portrait{height:auto;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:18px;background:#efe5d2;
  box-shadow:0 0 0 1px rgba(160,120,64,.35),0 18px 40px -24px rgba(80,54,10,.6)}
.portrait.vide{display:flex;align-items:center;justify-content:center}
.portrait.vide::after{content:'';width:46%;height:46%;background:var(--m-logo) center/contain no-repeat;opacity:.55}

/* ── LE CALENDRIER ── */
.jours{display:flex;max-width:100%;min-width:0;gap:8px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.jours button{flex:none;scroll-snap-align:start;min-width:74px;min-height:76px;border-radius:16px;cursor:pointer;
  border:1px solid rgba(160,120,64,.38);background:rgba(255,253,248,.9);color:var(--texte);font:1.1562rem var(--m-sans);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:transform .2s,border-color .2s}
.jours button b{font-family:var(--m-serif);font-size:1.8125rem;font-weight:600;color:var(--encre);line-height:1;font-variant-numeric:lining-nums}
.jours button small{font-size:1rem;letter-spacing:.12em;text-transform:uppercase}
.jours button:hover{transform:translateY(-2px);border-color:rgba(160,120,64,.7)}
.jours button[aria-pressed="true"]{background:linear-gradient(135deg,#F4D58A 0%,#E8C078 42%,#C9A253 72%,#A07840 100%);border-color:rgba(160,120,64,.6);color:#3a2708}
.jours button[aria-pressed="true"] b{color:#3a2708}
.heures{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.heures button{min-height:48px;border-radius:14px;cursor:pointer;font:600 1.3125rem var(--m-serif);font-variant-numeric:lining-nums;
  border:1px solid rgba(160,120,64,.38);background:rgba(255,253,248,.9);color:var(--encre);transition:transform .2s}
.heures button:hover{transform:translateY(-2px)}
.heures button[aria-pressed="true"]{background:linear-gradient(135deg,#F4D58A 0%,#E8C078 42%,#C9A253 72%,#A07840 100%);color:#3a2708;border-color:rgba(160,120,64,.6)}
.vide-agenda{padding:18px;border-radius:16px;border:1px dashed rgba(160,120,64,.4);text-align:center;color:var(--doux)}

/* ── LA FENÊTRE (pop-up) ── */
.voile{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(43,30,10,.42);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .45s ease}
.voile.ouvert{opacity:1}
.fenetre{position:relative;width:100%;max-width:880px;max-height:calc(100vh - 32px);overflow:auto;border-radius:26px;
  background:linear-gradient(rgba(255,253,248,.82),rgba(255,251,242,.86)),url('/parcours/assets/marbre.webp') center/cover;
  border:1px solid rgba(201,151,27,.45);box-shadow:0 50px 120px -40px rgba(40,26,4,.75),inset 0 1px 0 #fff;
  transform:translateY(18px) scale(.98);transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.voile.ouvert .fenetre{transform:none}
.fermer{position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(160,120,64,.3);
  background:rgba(255,253,248,.75);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.fermer svg{width:16px;height:16px;stroke:#8a7a5e;stroke-width:1.6;fill:none}
.fermer:hover{background:#fff}

@media (max-width:600px){
  .enveloppe{padding:18px 16px 64px}
  .chapeau{font-size:1.25rem}
  .fenetre{border-radius:22px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* [05/11 canary] un enfant de grille ou de flex s élargit à la taille de son contenu : la rangée des 21 jours poussait la carte à 2 500 px sur téléphone. */
.carte,.resa>*,.resa form,.resa section{min-width:0}
/* [BARRES 06/11] les barres de défilement aux couleurs de l’Académie : or sur crème.
   Posées sur html et les seuls blocs qui défilent (jamais sur *, qui fait recalculer toute la page). */
html{scrollbar-color:#c9a253 #f3ead8;scrollbar-width:thin}
.jours,.fenetre{scrollbar-color:#d8b872 transparent;scrollbar-width:thin}
html::-webkit-scrollbar{width:10px;height:10px}
html::-webkit-scrollbar-track{background:#f3ead8}
html::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#E8C078,#C9A253 55%,#A07840);border-radius:10px;border:2px solid #f3ead8}
html::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#F4D58A,#C9A253)}
.jours::-webkit-scrollbar,.fenetre::-webkit-scrollbar{width:6px;height:6px}
.jours::-webkit-scrollbar-track,.fenetre::-webkit-scrollbar-track{background:transparent}
.jours::-webkit-scrollbar-thumb,.fenetre::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#E8C078,#C9A253);border-radius:6px}

/* [MALVOYANTS 06/11] barème de la maison (rien sous 15 px, corps 19-21 px, rem partout) + bouton Aa + focus 3 px + cibles 44 px */
html[data-taille="2"]{font-size:18.5px}
html[data-taille="3"]{font-size:21px}
:focus-visible{outline:3px solid #8a6512!important;outline-offset:3px}
.jours button{min-height:4.75rem}
.heures button,.changer,.plage button,.ajout,.g-retour,.retour,.fermer{min-height:44px}
.fermer{min-width:44px}
.aa{position:absolute;right:12px;top:12px;z-index:30}   /* sous les pop-ups (voile 50, cadeau 80) : jamais sur une croix de fermeture */   /* en haut à droite : il ne cache jamais un bouton (06/11) */
.aa-btn{width:60px;height:60px;border-radius:50%;cursor:pointer;font-family:var(--m-serif);font-weight:700;font-size:1.3rem;color:#3a2708;border:1px solid rgba(160,120,64,.55);
  background:linear-gradient(135deg,#F4D58A 0%,#E8C078 42%,#C9A253 72%,#A07840 100%);box-shadow:0 2px 6px rgba(74,48,12,.16),0 10px 26px rgba(74,48,12,.22),inset 0 1px 0 rgba(255,255,255,.55);
  display:flex;align-items:center;justify-content:center;line-height:1;padding:0}
.aa-btn .aa-plus{font-size:.7em;margin-left:1px;align-self:flex-start;margin-top:-6px}
.aa-info{position:absolute;right:62px;top:8px;white-space:nowrap;font-family:var(--m-sans);font-size:1rem;font-weight:600;color:var(--encre);background:rgba(255,251,240,.97);
  border:1px solid var(--filet);border-radius:999px;padding:8px 14px;opacity:0;pointer-events:none;transition:opacity .25s}
.aa.dit .aa-info{opacity:1}
@media (max-width:760px){.aa{right:10px;top:10px}.aa-btn{width:50px;height:50px;font-size:1.15rem}}
@media print{.aa{display:none}}

h1,h2,h3,.chapeau,.sur-titre{text-wrap:balance}   /* jamais un mot seul sur sa ligne */
body{position:relative}

/* [LISIBLE 07/11] des jours qui défilent : un fondu à droite montre qu'il y en a d'autres (classe posée par taille.js) */
.jours.encore{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent)}
