/* LinExplain — styles des animations (aperçu v2)
   Tout est conditionné à html.js-anim : sans JS ou avec « réduire les animations »,
   la page reste exactement comme aujourd'hui. */

html.js-anim .monte{animation:none;opacity:1;transform:none}
html.js-anim .monte-tard{opacity:1;transform:none;transition:none}
/* Titre principal visible dès le premier affichage, même avant le chargement du JS */
main h1.monte{animation:none;opacity:1;transform:none}
main h1 .mot{display:inline-block}

/* ---------- Accueil : la carte « Bloc 1 » ne masque plus le début de la légende de l'infographie ---------- */
@media (min-width:901px){.carte-schema .carte-legende{margin-left:42px}}

/* ---------- Accueil : flèche vers « Découvrir les trois blocs » ---------- */
.promo-actions{position:relative}
.fleche-cta{position:absolute;width:120px;height:50px;overflow:visible;pointer-events:none}
.fleche-cta path{fill:none;stroke:var(--emeraude);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:700px){.fleche-cta{display:none}}

/* ---------- Accueil : carte 2019 ---------- */
.portrait .an{font-variant-numeric:tabular-nums}

/* ---------- Note en marge écrite à la main ---------- */
.col-portrait{display:flex;flex-direction:column;gap:18px;min-width:0}
.note-marge{position:relative;margin:0;padding:34px 0 0 18px;max-width:26ch}
.note-marge .note-texte{display:inline-block;font-family:var(--manuscrit),'Patrick Hand',cursive;font-size:1.5rem;line-height:1.25;color:var(--teal-texte);transform:rotate(-2deg)}
.note-marge .note-fleche{position:absolute;left:46px;top:0;width:60px;height:40px;overflow:visible}
.note-marge .note-fleche path{fill:none;stroke:var(--emeraude);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Papier Seyès (grands carreaux), partagé par le calepin et la frise ---------- */
.seyes,.calepin .som-partie.page.seyes,.frise.seyes{
  --ligne:rgba(123,79,196,.16); --ligne-forte:rgba(123,79,196,.32); --marge:rgba(214,64,64,.45);
  background-color:#FFFEFB;
  background-image:
    linear-gradient(90deg, transparent 0 46px, var(--marge) 46px 47.5px, transparent 47.5px),
    repeating-linear-gradient(0deg, var(--ligne-forte) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, var(--ligne) 0 1px, transparent 1px 8px);
  background-position:0 0, 0 14px, 0 14px;
}

/* ---------- Calepin (pages de blocs) ---------- */
.calepin{position:relative;margin:36px auto 0;width:min(620px,100%);perspective:1800px}
.calepin-pile{position:relative;height:var(--h,640px)}
.calepin-spirale{position:absolute;left:18px;right:18px;top:-14px;height:30px;z-index:60;pointer-events:none;
  background:
    radial-gradient(circle at 50% 9px, #fff 0 4px, transparent 4.5px) 0 0/26px 30px repeat-x,
    linear-gradient(90deg, transparent 0 9px, #8B97A3 9px 11px, #C9D2DA 11px 15px, #8B97A3 15px 17px, transparent 17px) 0 0/26px 22px repeat-x}
.calepin .som-partie.page{position:absolute;inset:0;margin:0;border-radius:4px 4px 10px 10px;border:1px solid rgba(12,29,48,.12);
  padding:46px 26px 22px 64px;overflow:hidden;transform-origin:50% 0;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  box-shadow:0 1px 0 rgba(12,29,48,.05),0 22px 40px -28px rgba(12,29,48,.45)}
.calepin .som-partie.page::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(12,29,48,.0),rgba(12,29,48,.18));opacity:var(--ombre,0)}
.calepin .som-partie h3{font-size:1.7rem;margin:0 0 14px;line-height:1.1}
.calepin .som-partie ol{gap:0}
.calepin .som-partie li{border-top:0;padding:0;min-height:32px;align-items:center;font-family:var(--manuscrit);font-size:1.15rem;line-height:1.2}
.calepin .som-partie .n{min-width:1.8em}
.calepin .som-partie.colonnes ol{display:block;column-count:2;column-gap:28px}
.calepin .som-partie.colonnes li{break-inside:avoid;display:flex}
.calepin .couv-module{position:absolute;right:20px;top:40px;width:96px;transform:rotate(4deg);border-radius:3px;
  box-shadow:0 10px 22px -12px rgba(12,29,48,.55)}
.calepin .couv-module::before{content:"";position:absolute}
.calepin .scotch{position:absolute;right:46px;top:30px;width:52px;height:18px;background:rgba(240,118,43,.28);transform:rotate(-8deg);z-index:2}
.calepin .som-partie.avec-couv h3{padding-right:120px}
.calepin-compteur{display:flex;justify-content:space-between;align-items:baseline;margin-top:16px;font-family:var(--manuscrit);font-size:1.15rem;color:var(--texte-doux)}
.calepin-compteur b{font-weight:400;color:var(--teal-texte);font-size:1.35rem}
@media (max-width:620px){
  .calepin .som-partie.page{padding:42px 16px 18px 54px}
  .calepin .som-partie.colonnes ol{column-count:1}
  .calepin .couv-module{width:64px;right:12px}
  .calepin .scotch{right:22px}
  .calepin .som-partie.avec-couv h3{padding-right:76px}
  .calepin .som-partie li{font-size:1.05rem;min-height:30px}
}

/* ---------- Carnet DÉPLIÉ (15/11/2026) : sommaire d'un bloc d'un seul tenant ----------
   Toutes les parties et tous les chapitres, les uns sous les autres : pas de page tournée, pas d'épinglage, pas de compteur ni de flèche,
   aucune zone de défilement horizontal (un seul défilement vertical, y compris sur mobile). Style carnet conservé (spirale, papier Seyès, numéros). */
.calepin-deplie{perspective:none;margin-top:44px}
.calepin-deplie .calepin-pile{height:auto;display:flex;flex-direction:column;gap:30px}
.calepin-deplie .som-partie.page{position:relative;inset:auto;overflow:visible;transform:none;backface-visibility:visible;-webkit-backface-visibility:visible}
.calepin-deplie .som-partie.page::before{content:"";position:absolute;left:18px;right:18px;top:-14px;height:30px;z-index:2;pointer-events:none;
  background:
    radial-gradient(circle at 50% 9px, #fff 0 4px, transparent 4.5px) 0 0/26px 30px repeat-x,
    linear-gradient(90deg, transparent 0 9px, #8B97A3 9px 11px, #C9D2DA 11px 15px, #8B97A3 15px 17px, transparent 17px) 0 0/26px 22px repeat-x}
.calepin-deplie .som-partie.page::after{display:none}
/* Liste longue (plus de 24 chapitres, ex. Bloc 2 : 42) : toujours complète, mais plus compacte */
.calepin-deplie.dense .calepin-pile{gap:22px}
.calepin-deplie.dense .som-partie h3{font-size:1.4rem;margin-bottom:10px}
.calepin-deplie.dense .som-partie.page{padding-top:40px;padding-bottom:16px}
.calepin-deplie.dense .som-partie li{font-size:1.05rem}
@media (max-width:620px){
  .calepin-deplie{margin-top:40px}
  .calepin-deplie .calepin-pile{gap:26px}
  .calepin-deplie.dense .calepin-pile{gap:20px}
  .calepin-deplie.dense .som-partie h3{font-size:1.25rem}
  .calepin-deplie.dense .som-partie li{font-size:1rem}
}

/* ---------- Frise « De la matière au chapitre » (Fiches) ---------- */
.frise{position:relative;margin-top:22px;overflow:hidden;border-radius:12px;border:1px solid var(--bord)}
.frise-piste{display:flex;gap:0;width:max-content;padding:44px 0 30px}
.frise-etape{position:relative;width:min(78vw,420px);flex:none;padding:0 56px 0 64px;display:grid;grid-template-rows:auto auto auto;gap:10px;align-content:start}
.frise-visuel{position:relative;height:230px;display:flex;align-items:flex-end}
.frise-visuel img{display:block;height:210px;width:auto;border-radius:4px;box-shadow:0 18px 30px -18px rgba(12,29,48,.55)}
.frise-pile img{position:absolute;bottom:0}
.frise-pile img:nth-child(1){left:0;transform:rotate(-7deg)}
.frise-pile img:nth-child(2){left:46px;transform:rotate(-1deg);z-index:1}
.frise-pile img:nth-child(3){left:92px;transform:rotate(6deg);z-index:2}
.frise-num{font-family:var(--manuscrit);font-size:1.25rem;color:var(--teal-texte)}
.frise-titre{font-family:var(--display);font-weight:700;font-size:2.1rem;line-height:1;color:var(--texte)}
.frise-texte{margin:0;max-width:30ch;color:var(--texte-doux);line-height:1.55}
.frise-fleche{position:absolute;right:-14px;top:96px;width:74px;height:44px;overflow:visible}
.frise-fleche path{fill:none;stroke:var(--emeraude);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.frise-etape:last-child .frise-fleche{display:none}
.frise-etape:last-child{padding-right:max(64px,8vw)}
@media (max-width:620px){
  .frise-visuel{height:180px}.frise-visuel img{height:160px}
  .frise-pile img:nth-child(2){left:34px}.frise-pile img:nth-child(3){left:68px}
  .frise-titre{font-size:1.8rem}
}

.visuellement-cache{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Fiches : frise en balayage au doigt (pas d'épinglage) : écran tactile ou ≤ 1024 px ---------- */
.frise-indice{display:none}
@media (max-width:1024px), (pointer:coarse){
  .frise{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y}
  .frise::-webkit-scrollbar{display:none}
  .frise-piste{padding:34px 0 22px}
  .frise-etape,.frise-etape:last-child{width:min(84vw,440px);padding:0 30px 0 60px;scroll-snap-align:start}
  .frise-fleche{right:-6px;top:84px;width:56px}
  .frise-indice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-family:var(--manuscrit);font-size:1.1rem;color:var(--teal-texte)}
  .frise-points{display:flex;gap:6px}
  .frise-points i{width:8px;height:8px;border-radius:50%;background:rgba(0,158,151,.25);transition:background-color .25s,transform .25s}
  .frise-points i.actif{background:var(--emeraude);transform:scale(1.25)}
}

/* ---------- Fiches : grand encadré de la matière ---------- */
.matiere-b{border:2px solid rgba(0,158,151,.3);box-shadow:0 34px 60px -44px rgba(12,29,48,.4)}
.matiere-tete{margin:0 0 24px;padding:0 0 20px;border-bottom:1.5px dashed rgba(0,158,151,.35)}
.matiere-etiquette{display:inline-flex;align-items:center;gap:9px;font-family:var(--manuscrit);font-size:1.25rem;color:var(--teal-texte)}
.matiere-etiquette::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--emeraude)}
.matiere-titre{font-size:clamp(2.7rem,6vw,4rem);line-height:1.05;margin:2px 0 8px;color:var(--texte)}
.matiere-sous{margin:0;color:var(--texte-doux);font-size:.98rem;max-width:60ch}

/* ---------- Frise : étape « La matière » (couverture de la matière, autres disciplines à venir) ---------- */
.frise-texte .nom{display:block;margin-top:2px;font-family:var(--display);font-weight:700;font-size:1.55rem;line-height:1.1;color:var(--texte)}
.frise-texte small{display:block;margin-top:8px;font-family:var(--manuscrit),'Patrick Hand',cursive;font-size:1.1rem;line-height:1.25;color:var(--teal-texte)}
