/* flanerie.studio — feuille unique */

@font-face{font-family:"Gabarito";font-weight:700;font-display:swap;src:url(../fonts/gabarito-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Gabarito";font-weight:800;font-display:swap;src:url(../fonts/gabarito-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Serif";font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:400;font-display:swap;src:url(../fonts/figtree-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:500;font-display:swap;src:url(../fonts/figtree-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:600;font-display:swap;src:url(../fonts/figtree-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Pixelify Sans";font-weight:500;font-display:swap;src:url(../fonts/pixelify-sans-500.woff2) format("woff2")}
@font-face{font-family:"Ovo";font-weight:400;font-display:swap;src:url(../fonts/ovo-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Inter";font-weight:500;font-display:swap;src:url(../fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-weight:700;font-display:swap;src:url(../fonts/bricolage-seance.woff2) format("woff2")}

:root{
  --jaune:#FFEB9A;--ciel:#CFE3F5;--encre:#16161A;--blanc:#FFFFFF;
  --bleu:#2E6299;--papier:#FBFCFE;--clair:#F3F6FA;
  --texte-2:#566270;--texte-3:#667180;--filet:rgba(22,22,26,.08);
  --pose:0 1px 2px rgba(0,0,0,.05),0 8px 24px rgba(22,22,26,.08);
  --pose-survol:0 1px 2px rgba(0,0,0,.05),0 12px 28px rgba(22,22,26,.10);
  --courbe:cubic-bezier(.22,1,.36,1);
  --titre:"Gabarito","Figtree",system-ui,sans-serif;
  --flane:"Instrument Serif",Georgia,serif;
  --texte:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --pixel:"Pixelify Sans",ui-monospace,monospace;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:var(--texte);font-size:16px;line-height:1.5;color:var(--encre);background:var(--blanc);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:2px solid var(--bleu);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.evitement{position:absolute;left:16px;top:-48px;z-index:10;padding:8px 16px;border-radius:999px;background:var(--encre);color:var(--blanc);font-weight:600}
.evitement:focus{top:16px}

/* Le papier millimétré : surface de page */
.papier{background-color:var(--papier);background-image:linear-gradient(rgba(70,120,180,.30) 1px,transparent 1px),linear-gradient(90deg,rgba(70,120,180,.30) 1px,transparent 1px),linear-gradient(rgba(70,120,180,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(70,120,180,.16) 1px,transparent 1px);background-size:50px 50px,50px 50px,10px 10px,10px 10px}

/* Typo de marque */
.mot{font-size:28px;line-height:1;letter-spacing:-.02em;white-space:nowrap}
.mot b,.accroche b{font-family:var(--titre);font-weight:800}
.mot i,.accroche i,.titre-page i{font-family:var(--flane);font-style:italic;font-weight:400;font-size:1.1em}
.etiquette{font-family:var(--pixel);font-weight:500;font-size:12px;line-height:16px;color:var(--bleu)}
.etiquette--terre{color:#4A4530}

/* Étoiles chromées */
.etoiles{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.etoile{position:absolute;overflow:visible;filter:drop-shadow(0 8px 12px rgba(22,22,26,.16));will-change:transform}
.etoile--devant{z-index:2}
.etoile--derriere{z-index:0}
.etoile--grande{width:80px;height:80px;top:16px;right:20px;transform:rotate(-8deg)}
.etoile--p1{width:36px;height:36px;top:420px;left:2px;transform:rotate(18deg)}
.etoile--p2{width:44px;height:44px;top:565px;left:44%;transform:rotate(-18deg)}
.etoile--banc,.etoile--seance{width:72px;height:72px;top:268px;right:18px;transform:rotate(-8deg)}
@media (min-width:1024px){
  .etoile--grande{width:148px;height:148px;top:640px;left:20%;right:auto}
  .etoile--p1{width:52px;height:52px;top:452px;left:70%}
  .etoile--p2{width:64px;height:64px;top:760px;left:92%}
  .etoile--banc,.etoile--seance{width:96px;height:96px;top:360px;right:calc(50% - 420px)}
}

/* Accueil */
.page{position:relative;min-height:100svh;overflow:hidden}
.accueil{position:relative;z-index:1;max-width:1440px;margin:0 auto;padding:20px 20px 24px;display:grid;gap:16px;grid-template-areas:"tete" "corps" "contact" "mur" "pied"}
.corps{grid-area:corps;display:grid;gap:16px}
.tete{grid-area:tete;justify-self:start;display:flex;align-items:center;gap:12px}
.tete__logo{width:72px;height:72px;flex:none}
.tete__nom{display:flex;flex-direction:column;gap:4px}
.presentation{display:flex;flex-direction:column;gap:8px;margin:4px 0 8px}
.accroche{font-size:32px;line-height:1.04;letter-spacing:-.02em;font-weight:400;max-width:15ch}
.chapo{font-size:15px;line-height:1.45;color:var(--texte-2);max-width:30ch}
.objets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}

.objet{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:16px;box-shadow:var(--pose);transform:rotate(var(--r,0deg));transition:transform 150ms var(--courbe),box-shadow 150ms var(--courbe),translate 400ms var(--courbe),rotate 400ms var(--courbe)}
a.objet:hover{box-shadow:var(--pose-survol)}
a.objet:active{transform:rotate(var(--r,0deg)) scale(.98)}
.objet__titre{font-family:var(--titre);font-weight:700;font-size:22px;line-height:1;letter-spacing:-.01em}
.objet__sous{font-size:14px;line-height:1.3;color:var(--texte-2)}
.objet__texte{display:flex;flex-direction:column;gap:4px}

.objet--app{grid-column:span 2;--r:-1deg;min-height:200px;padding:20px;border-radius:16px;overflow:hidden;background:#12131A;color:var(--blanc);font-family:"Inter",var(--texte)}
.objet--feuille{--r:1.5deg;border-radius:4px;background:var(--blanc);border:1px solid var(--filet)}
.objet--meuble{--r:-1.2deg;border-radius:4px;background:var(--blanc);border:1px solid var(--filet)}
.objet--postit{--r:-2deg;margin-top:24px;border-radius:2px;background:var(--jaune)}
.objet--postit .objet__sous{color:#4A4530}
/* Les petites cartes ont le format d'un post-it : carrées (76 × 76 mm) */
.objet--feuille,.objet--meuble,.objet--postit{aspect-ratio:1}
.objet--feuille,.objet--meuble,.objet--postit{padding:12px;gap:8px}
.objet--feuille .objet__dessin,.objet--meuble .objet__dessin{flex:1 1 0;min-height:24px}
@media (max-width:1023px){
  :is(.objet--feuille,.objet--meuble,.objet--postit) .objet__titre{font-size:clamp(19px,5.6vw,22px)}
  :is(.objet--feuille,.objet--meuble,.objet--postit) .objet__sous{font-size:clamp(12.5px,3.6vw,14px)}
}
.objet__dessin{width:100%;height:auto}

.seance-arc{position:absolute;right:-72px;bottom:-152px;width:260px;height:260px;border-radius:50%;border:20px solid #E5573F}
.seance-haut{position:relative;display:flex;align-items:center;justify-content:space-between}
.seance-marque{display:flex;align-items:center;gap:8px}
.seance-marque svg{width:34px;height:20px}
.seance-nom{font-family:"Bricolage Grotesque",var(--titre);font-weight:700;font-size:20px;line-height:1}
.seance-moment{font-weight:500;font-size:12px;color:#A9AEC2}
.seance-bas{position:relative;display:flex;flex-direction:column;gap:8px}
.seance-titre{font-family:"Ovo",Georgia,serif;font-size:26px;line-height:1.12;max-width:210px}
.voir{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:#C9CCDA}
.fleche{width:16px;height:16px;transition:transform 150ms var(--courbe)}
a:hover .fleche{transform:translateX(3px)}

.contact{grid-area:contact;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.bouton{font-family:inherit;cursor:pointer;border:0;min-height:48px;padding:0 20px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;transition:background-color 150ms var(--courbe),transform 150ms var(--courbe),translate 400ms var(--courbe),rotate 400ms var(--courbe)}
.bouton:active{transform:scale(.98)}
.bouton--clair{background:var(--blanc);border:1px solid rgba(22,22,26,.16)}
.bouton--clair:hover{background:var(--clair)}
.bouton--plein{background:var(--encre);color:var(--blanc)}
.bouton--plein:hover{background:#2B2B31}
.pied{grid-area:pied;justify-self:center;font-family:var(--pixel);font-weight:500;font-size:12px;color:var(--texte-3);text-align:center}

/* Le mur de la semaine */
.mur{grid-area:mur;display:flex;flex-direction:column;gap:16px;margin-top:24px}
.mur[hidden]{display:none}
.mur__tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px}
.mur__titre{font-family:var(--titre);font-weight:700;font-size:22px;line-height:1.1;letter-spacing:-.02em}
.mur__notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.mur__vide{font-size:15px;color:var(--texte-2)}
.note{position:relative;display:flex;flex-direction:column;background:var(--blanc);border:1px solid var(--filet);border-radius:4px;box-shadow:var(--pose);transform:rotate(var(--r,0deg))}
.note:nth-child(3n+1){--r:-1.2deg}.note:nth-child(3n+2){--r:.8deg}.note:nth-child(3n){--r:-.4deg}
.note svg{width:100%;height:auto;aspect-ratio:1}
.note__bas{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 4px 0 12px;border-top:1px solid var(--filet)}
.note__date{font-family:var(--pixel);font-weight:500;font-size:11px;color:var(--texte-3)}
.signaler{min-height:44px;padding:0 8px;border:0;background:none;font:inherit;font-size:12px;color:var(--texte-3);cursor:pointer}
.signaler:hover{color:var(--encre)}
.signaler[data-confirmer]{color:#B23A26;font-weight:600}
@media (min-width:1024px){.mur{margin-top:16px}.mur__notes{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:24px}}

/* Mode note : tout s'éparpille vers les bords, le centre devient une feuille libre.
   note.js calcule, pour chaque pièce, --dx, --dy et --rot (bord le plus proche, léger dépassement).
   On passe par les propriétés translate et rotate, qui s'ajoutent à transform sans l'écraser. */
/* html bloque le défilement ; --defil garde la place de la barre pour que la page ne saute pas */
html.en-note{overflow:hidden;padding-right:var(--defil,0px)}
.tete,.accroche,.chapo,.mur,.pied,.etoile{transition:translate 400ms var(--courbe),rotate 400ms var(--courbe)}
.en-note [data-eparpille]{translate:var(--dx,0px) var(--dy,0px);rotate:var(--rot,0deg);pointer-events:none}

.atelier{--marge:16px;--bas:calc(var(--marge) + env(safe-area-inset-bottom));--gauche:calc(var(--marge) + env(safe-area-inset-left));--droite:calc(var(--marge) + env(safe-area-inset-right));position:fixed;inset:0;z-index:20;touch-action:none;overscroll-behavior:none}
.atelier[hidden]{display:none}
.atelier__toile{position:absolute;inset:0;width:100%;height:100%;max-width:none;touch-action:none;cursor:crosshair}
.atelier--gomme .atelier__toile{cursor:cell}
.atelier__aide{position:absolute;left:24px;right:24px;top:50%;translate:0 -50%;text-align:center;font-family:var(--flane);font-style:italic;font-size:24px;line-height:1.2;color:var(--texte-2);pointer-events:none;transition:opacity 150ms var(--courbe)}
.atelier__aide[data-cache]{opacity:0}

/* Trois groupes séparés en bas : quitter à gauche, outils au milieu, enregistrer à droite */
.outil{position:relative;width:48px;height:48px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:none;color:var(--encre);cursor:pointer;transition:background-color 150ms var(--courbe),transform 150ms var(--courbe)}
.outil svg{width:24px;height:24px}
.outil:hover{background:var(--clair)}
.outil:active{transform:scale(.98)}
.outil[aria-pressed="true"],.outil[aria-expanded="true"]{background:var(--ciel)}
.outil:disabled{color:#8B94A1;cursor:default}
.outil:disabled:hover{background:none}
.outil:disabled:active{transform:none}
.outil--rond,.outils{position:absolute;bottom:var(--bas);height:56px;border:1px solid var(--filet);border-radius:999px;background:var(--blanc);box-shadow:var(--pose)}
.outil--rond{width:56px}
.outil--rond:hover{background:var(--clair)}
.outil--quitter{left:var(--gauche)}
.outil--valider{right:var(--droite);background:var(--encre);color:var(--blanc);border-color:var(--encre)}
.outil--valider:hover{background:#2B2B31}
.outil--valider:disabled,.outil--valider:disabled:hover{background:#DDE2E8;color:#5F6978;border-color:transparent;box-shadow:none}
.outils{left:50%;translate:-50% 0;display:flex;align-items:center;gap:4px;padding:3px}
.outil__apercu{display:grid;place-items:center;width:24px;height:24px;border:2px solid var(--encre);border-radius:999px}
.outil__apercu::after{content:"";width:var(--t,12px);height:var(--t,12px);border-radius:999px;background:var(--c,var(--encre))}

/* Panneau couleur/épaisseur et encart de fin : centrés au-dessus du groupe du milieu */
.reglages,.fin{position:absolute;left:50%;bottom:calc(var(--bas) + 56px + 12px);translate:-50% 0;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px;background:var(--blanc);box-shadow:var(--pose);border:1px solid var(--filet)}
.reglages[hidden],.fin[hidden]{display:none}
.reglages__ligne{display:flex;gap:4px}
.pastille{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:999px;background:none;cursor:pointer}
.pastille:hover{background:var(--clair)}
.pastille[aria-checked="true"]{box-shadow:inset 0 0 0 2px var(--encre)}
.pastille__c{width:24px;height:24px;border-radius:999px}
.pastille__c--0{background:#16161A}.pastille__c--1{background:#2E6299}.pastille__c--2{background:#E5573F}.pastille__c--3{background:#8592A4}
.pastille__e{border-radius:999px;background:var(--encre)}
.pastille__e--0{width:6px;height:6px}.pastille__e--1{width:12px;height:12px}.pastille__e--2{width:20px;height:20px}
.fin{width:min(340px,calc(100vw - 2 * var(--marge)));gap:16px;padding:16px}
.fin__texte{font-size:15px;line-height:1.45}
.fin__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (min-width:1024px){.atelier{--marge:32px}}

/* Entrée unique au chargement */
@media (prefers-reduced-motion:no-preference){
  .monte{animation:monte 400ms var(--courbe) both}
  .monte--2{animation-delay:50ms}
  @keyframes monte{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
}

/* Desktop */
@media (min-width:1024px){
  .accueil{padding:32px 64px 48px;gap:48px;grid-template-columns:1fr auto;grid-template-areas:"tete contact" "corps corps" "mur mur" "pied pied";align-items:center}
  .corps{grid-template-columns:minmax(360px,1fr) minmax(0,1.6fr);gap:64px;align-items:center}
  .tete__logo{width:56px;height:56px}
  .contact{display:flex;justify-content:flex-end;margin:0}
  .bouton{min-height:44px}
  .accroche{font-size:clamp(48px,4.4vw,64px);line-height:1.02;letter-spacing:-.03em}
  .chapo{font-size:19px}
  .objets{gap:32px}
  .objet,.objet--feuille,.objet--meuble,.objet--postit{padding:24px}
  .objet--feuille,.objet--meuble,.objet--postit{gap:12px}
  .objet--app{min-height:320px;padding:32px}
  .seance-arc{right:-96px;bottom:-280px;width:500px;height:500px;border-width:36px}
  .seance-marque svg{width:48px;height:28px}
  .seance-nom{font-size:28px}
  .seance-titre{font-size:40px;max-width:340px;line-height:1.08}
  .objet__titre{font-size:28px;letter-spacing:-.02em}
  .objet__sous{font-size:16px}
  .objet--postit{margin-top:32px}
  .pied{justify-self:start;text-align:left}
}

/* Pages projet : socle commun */
.projet{position:relative;z-index:1;max-width:720px;margin:0 auto;padding:20px 20px 32px;display:flex;flex-direction:column;gap:32px}
.retour-barre{display:flex;justify-content:space-between;align-items:center}
.retour{min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 16px 0 12px;border-radius:999px;background:var(--blanc);border:1px solid var(--filet);font-weight:600;font-size:14px;transition:background-color 150ms var(--courbe)}
.retour:hover{background:var(--clair)}
.retour svg{width:16px;height:16px}
.retour .mot{font-size:16px}
.titre-page{font-size:36px;line-height:1.04;letter-spacing:-.02em;font-weight:400}
.titre-page b{font-family:var(--titre);font-weight:700}
.intro{font-size:16px;line-height:1.5;color:var(--texte-2)}
.titre-section{font-family:var(--titre);font-weight:700;font-size:22px;line-height:1.1;letter-spacing:-.02em}
.feuille{background:var(--blanc);border:1px solid var(--filet);border-radius:4px;box-shadow:var(--pose)}
.incline-g{transform:rotate(-1deg)}
.incline-d{transform:rotate(1deg)}
.legende{font-size:14px;line-height:1.4;color:var(--texte-2)}
.postit{padding:20px;background:var(--jaune);border-radius:2px;box-shadow:var(--pose);transform:rotate(-1.5deg);display:flex;flex-direction:column;gap:8px}
.postit p{font-size:15px;line-height:1.5}
.pieces{padding:20px}
.pieces li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--filet);font-size:15px}
.pieces li:last-child{border-bottom:0}
.pieces strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.pieces p{margin-top:12px;font-size:14px;line-height:1.5;color:var(--texte-2)}
.pile{display:flex;flex-direction:column;gap:12px}
.entete-section{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.bande{margin:0 -20px;padding:4px 20px 24px;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.bande::-webkit-scrollbar{display:none}
.diapo{flex:0 0 min(264px,72vw);scroll-snap-align:start;border-radius:4px;overflow:hidden;border:1px solid var(--filet);box-shadow:var(--pose);background:var(--papier)}
.diapo svg{width:100%;height:auto}
.pied-projet{font-family:var(--pixel);font-weight:500;font-size:12px;color:var(--texte-3);text-align:center}
@media (min-width:1024px){
  .projet{padding:32px 32px 48px}
  .titre-page{font-size:56px}
  .bande{margin:0;padding:4px 0 24px}
  .diapo{flex-basis:300px}
}

/* Page Séance : même famille que le banc ; seule la carte du quiz garde la DA de l'app */
.pile--cartes{gap:20px}
.pile--entete{gap:16px}
.marque-seance{display:flex;align-items:center;gap:12px}
.marque-seance svg{width:52px;height:30px;flex:none}
.marque-seance span{font-family:var(--titre);font-weight:700;font-size:28px;line-height:1;letter-spacing:-.02em}
.bouton--lien{gap:8px}
.bouton--lien svg{width:16px;height:16px;flex:none}
.carte-texte{padding:20px;display:flex;flex-direction:column;gap:12px}
.texte{font-size:15px;line-height:1.55}
.exergue{margin-top:4px;padding:16px 18px;background:var(--jaune);border-radius:2px;box-shadow:var(--pose);transform:rotate(-1deg);font-family:var(--flane);font-style:italic;font-size:26px;line-height:1.15;text-wrap:balance}
.points{display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.5}
.points li{display:flex;gap:12px}
.points li::before{content:"";flex:none;width:8px;height:8px;margin-top:8px;border-radius:50%;background:var(--bleu)}
.objet--quiz{min-height:208px}
.etapes li{display:flex;gap:12px}
.etapes__rail{display:flex;flex-direction:column;align-items:center;flex:none}
.etapes__point{width:12px;height:12px;margin-top:4px;border-radius:50%;background:var(--encre)}
.etapes__point--actif{background:var(--bleu);box-shadow:0 0 0 4px var(--ciel)}
.etapes__ligne{width:2px;flex-grow:1;margin:4px 0;background:rgba(22,22,26,.16)}
.etape{display:flex;flex-direction:column;gap:4px;padding-bottom:20px}
.etapes li:last-child .etape{padding-bottom:0}
.etape__num{color:var(--texte-3)}
.etape__num--actif{color:var(--bleu)}
.etape__titre{font-family:var(--titre);font-weight:700;font-size:18px;line-height:1.25;letter-spacing:-.01em}
.etape__texte{font-size:14px;line-height:1.5;color:var(--texte-2)}
.pied-projet a{display:inline-flex;align-items:center;min-height:44px;margin-left:4px;vertical-align:middle}
.pied-projet .mot{font-size:16px}
@media (min-width:1024px){
  .bouton--lien{align-self:flex-start;padding:0 28px}
  .carte-texte{padding:28px}
  .objet--quiz{min-height:240px;padding:28px}
  .objet--quiz .seance-titre{font-size:34px}
  .objet--quiz .seance-arc{right:-72px;bottom:-200px;width:380px;height:380px;border-width:30px}
}

/* Takotomo : la carte de l'accueil porte la DA de l'app (ciel, sable, pixels) ; la page garde celle de hugoflâne */
.objet--tako{grid-column:span 2;--r:.8deg;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;min-height:248px;padding:20px 20px 0;border-radius:16px;overflow:hidden;background:#BFE0FA;color:#12204A}
.objet--tako>*{position:relative}
.tako-sol{position:absolute;left:0;right:0;bottom:0;height:28px;background:#D6BE7A;box-shadow:inset 0 4px 0 #C4A961}
.tako-haut{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tako-nom{font-family:var(--pixel);font-weight:500;font-size:20px;line-height:1}
.tako-etat{font-family:var(--pixel);font-weight:500;font-size:12px;line-height:16px}
.tako-bas{display:flex;flex-direction:column;gap:8px}
.tako-titre{font-family:var(--pixel);font-weight:500;font-size:24px;line-height:1.15;max-width:14em}
.objet--tako .voir{color:#12204A;font-weight:600}
.tako-scene{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:8px 0 8px}
.tako-sprite{flex:none;height:auto;image-rendering:pixelated}
.tako-sprite--oeuf{width:36px}.tako-sprite--petit{width:42px}.tako-sprite--grand{width:58px}.tako-sprite--pirate{width:70px}
@media (min-width:1024px){
  .objet--tako{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"haut scene" "bas scene";grid-template-rows:auto 1fr;column-gap:32px;min-height:232px;padding:32px 32px 0}
  .tako-haut{grid-area:haut;justify-content:flex-start;gap:16px}
  .tako-bas{grid-area:bas;align-self:end;padding-bottom:56px}
  .tako-scene{grid-area:scene;align-self:end;justify-content:flex-start;gap:16px;padding:0 0 12px}
  .tako-sol{height:40px}
  .tako-nom{font-size:28px}
  .tako-etat{font-size:14px;line-height:20px}
  .tako-titre{font-size:32px}
  .tako-sprite--oeuf{width:54px}.tako-sprite--petit{width:63px}.tako-sprite--grand{width:87px}.tako-sprite--pirate{width:105px}
}

/* Page Takotomo : même famille que Séance et le banc */
.marque-tako{display:flex;align-items:flex-end;gap:12px}
.marque-tako img{width:58px;height:auto;flex:none;image-rendering:pixelated}
.marque-tako span{font-family:var(--titre);font-weight:700;font-size:28px;line-height:1;letter-spacing:-.02em}
.bientot{align-self:flex-start;padding:12px 18px;background:var(--jaune);border-radius:2px;box-shadow:var(--pose);transform:rotate(-1.5deg);font-family:var(--titre);font-weight:700;font-size:18px;line-height:1.2}
.diapo--ecran{margin:0;display:flex;flex-direction:column}
.diapo--ecran img{width:100%;height:auto;aspect-ratio:600/1304;background:var(--clair)}
.diapo--ecran figcaption{padding:12px 14px 16px;background:var(--blanc);border-top:1px solid var(--filet)}
.lien-texte{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.lien-texte:hover{text-decoration-thickness:2px}
/* Choix de la langue (assistance et confidentialité de Takotomo) : trois liens texte, la langue affichée en encre */
.langues ul{display:flex;flex-wrap:wrap;align-items:center;margin:-8px 0 -8px -8px;font-family:var(--pixel);font-weight:500;font-size:12px;line-height:16px;color:var(--bleu)}
.langues li{display:flex;align-items:center}
.langues li+li::before{content:"·";padding:0 4px;color:var(--texte-3)}
.langues a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.langues a:hover{text-decoration-thickness:2px}
.langues a[aria-current]{color:var(--encre);text-decoration:none}

/* Le stand : mini-jeu lancé par un clic sur une étoile chromée (jeu.js). */

/* Comme le mode note : la page s'écarte, le papier millimétré devient le terrain de jeu.
   jeu.js calcule --dx, --dy et --rot pour sortir chaque pièce de l'écran. */
html.en-jeu{overflow:hidden;padding-right:var(--defil,0px)}
.en-jeu [data-eparpille]{translate:var(--dx,0px) var(--dy,0px);rotate:var(--rot,0deg);pointer-events:none}

/* Une étoile sous la souris se soulève du papier : elle monte, grossit un peu, son ombre s'allonge.
   Elle ne tourne pas : ses reflets sont peints, une rotation ferait tourner la lumière avec elle. */
html.sur-etoile{cursor:pointer}
.etoile{transition:translate 400ms var(--courbe),rotate 400ms var(--courbe),scale 400ms var(--courbe),filter 400ms var(--courbe)}
.etoile--visee{translate:0 -8px;scale:1.1;filter:drop-shadow(0 18px 16px rgba(22,22,26,.2))}

.jeu{--marge:16px;position:fixed;inset:0;z-index:30;touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.jeu[hidden]{display:none}
.jeu__toile{position:absolute;inset:0;width:100%;height:100%;max-width:none;touch-action:none}

/* Bandeau du haut : quitter à gauche, score au centre, vies à droite */
.jeu__haut{position:absolute;top:calc(var(--marge) + env(safe-area-inset-top));left:calc(var(--marge) + env(safe-area-inset-left));right:calc(var(--marge) + env(safe-area-inset-right));display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;pointer-events:none}
.jeu__quitter{pointer-events:auto;justify-self:start;width:48px;height:48px;display:grid;place-items:center;padding:0;border:1px solid var(--filet);border-radius:999px;background:var(--blanc);color:var(--encre);box-shadow:var(--pose);cursor:pointer;transition:background-color 150ms var(--courbe),transform 150ms var(--courbe)}
.jeu__quitter:hover{background:var(--clair)}
.jeu__quitter:active{transform:scale(.98)}
.jeu__quitter svg{width:24px;height:24px}
.jeu__compteur{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.jeu__compteur[hidden]{display:none}
.jeu__score{font-family:var(--titre);font-weight:800;font-size:32px;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.jeu__vies{justify-self:end;display:flex;gap:4px}
.jeu__vie{width:22px;height:22px;overflow:visible}

/* La carte : écran d'accueil du jeu, puis fin de partie */
.jeu__carte{position:absolute;left:50%;top:50%;translate:-50% -50%;rotate:-1deg;width:min(360px,calc(100vw - 2 * var(--marge)));max-height:calc(100svh - 96px - 2 * var(--marge));overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:20px;background:var(--blanc);border:1px solid var(--filet);border-radius:4px;box-shadow:var(--pose);touch-action:pan-y}
.jeu__carte[hidden]{display:none}
.jeu__entete{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.jeu__entete>div{display:flex;flex-direction:column;gap:8px}
.jeu__deco{flex:none;width:56px;height:56px;margin:-4px -4px 0 0;overflow:visible;rotate:-8deg;filter:drop-shadow(0 6px 10px rgba(22,22,26,.16))}
.jeu__titre{font-family:var(--titre);font-weight:800;font-size:32px;line-height:1;letter-spacing:-.02em}
.jeu__consigne{font-size:15px;line-height:1.45;color:var(--texte-2)}
.jeu__final{font-size:20px;line-height:1}
.jeu__final b{font-family:var(--titre);font-weight:800;font-size:56px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.jeu__final i{font-family:var(--flane);font-style:italic;font-size:26px}
.jeu__record{align-self:flex-start;padding:4px 10px;background:var(--jaune);border-radius:2px;rotate:-2deg;font-family:var(--pixel);font-weight:500;font-size:12px;line-height:16px;color:#4A4530}
.jeu__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.jeu__actions--seule{grid-template-columns:1fr}

/* Inscrire son nom : trois lettres, comme sur une borne */
.jeu__inscription{display:flex;flex-direction:column;gap:8px}
.jeu__inscription[hidden]{display:none}
.jeu__ligne[hidden]{display:none}
.jeu__ligne{display:grid;grid-template-columns:104px 1fr;gap:8px}
.jeu__nom{-webkit-user-select:text;user-select:text;min-width:0;min-height:48px;padding:0 0 0 .3em;border:1px solid rgba(22,22,26,.16);border-radius:999px;background:var(--blanc);color:var(--encre);text-align:center;font-family:var(--pixel);font-weight:500;font-size:20px;letter-spacing:.3em;text-transform:uppercase}
.jeu__nom::placeholder{color:#B4BCC7}
.jeu__info{font-size:13px;line-height:1.4;color:var(--texte-2)}
.jeu__info[hidden]{display:none}

/* Le classement de la semaine */
.rangs{display:flex;flex-direction:column;gap:4px}
.rangs__tete{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:4px}
.rangs__titre{font-family:var(--titre);font-weight:700;font-size:16px;line-height:1.1;letter-spacing:-.01em}
.rangs__liste{display:flex;flex-direction:column}
.rang{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:baseline;padding:6px 8px;border-top:1px solid var(--filet);font-size:15px;line-height:1.3}
.rang__n{font-family:var(--pixel);font-weight:500;font-size:12px;color:var(--texte-3)}
.rang__nom{font-family:var(--pixel);font-weight:500;font-size:15px;letter-spacing:.12em}
.rang__score{font-weight:600;font-variant-numeric:tabular-nums}
.rang--moi{background:var(--jaune);border-top-color:transparent;border-radius:2px}
.rang--moi .rang__n{color:#4A4530}
.rangs__vide{padding:6px 0;font-size:14px;line-height:1.4;color:var(--texte-2)}

@media (min-width:1024px){
  .jeu{--marge:32px}
  .jeu__carte{width:400px;padding:28px}
  .jeu__score{font-size:40px}
}

@media (prefers-reduced-motion:no-preference){
  .jeu__carte{animation:jeu-pose 400ms var(--courbe) both}
  @keyframes jeu-pose{from{opacity:0;translate:-50% calc(-50% + 12px)}to{opacity:1;translate:-50% -50%}}
}

/* Pas d'animation si demandé */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Formulaire de contact (support du thème Ruban) */
.formulaire{display:flex;flex-direction:column;gap:16px}
.champ{display:flex;flex-direction:column;gap:6px}
.champ label{font-weight:600;font-size:14px}
.champ input,.champ textarea{font:inherit;font-size:16px;color:var(--encre);background:var(--blanc);border:1px solid var(--texte-3);border-radius:4px;padding:12px;min-height:48px;width:100%}
.champ textarea{resize:vertical;line-height:1.5}
.champ ::placeholder{color:var(--texte-3)}
.formulaire .bouton{align-self:flex-start}
.formulaire-erreur{color:#A32A14;font-weight:600}
.formulaire-note{font-size:14px;color:var(--texte-2)}
