/* Germis, l'Odyssée du Sol : exemple hybride (brouillon, jamais publié). Feuille de style du jeu.
   11/10/2026 : sortie de la page (index.html) : la politique de sécurité du site (style-src 'self'), qui s'applique aussi
   aux brouillons du jeu, refuse les styles écrits dans la page. */
@font-face { font-family: 'Bely'; src: url('bely-display.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Comic Neue'; src: url('comic-neue-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
html, body { margin: 0; height: 100%; background: #f3d9a6; overflow: hidden; overscroll-behavior: none; }
body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
       font-family: 'Comic Neue', 'Trebuchet MS', sans-serif; color: #3b2a17; }
/* appui long (12/10/2026) : jamais le menu « Enregistrer l'image » ni d'image tirée à la main */
img, svg, video { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
canvas#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; cursor: pointer; }
.lumiere { position: fixed; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at 88% -8%, rgba(255,214,150,.75), rgba(255,200,120,.25) 38%, rgba(255,190,110,0) 70%); }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 55%, rgba(60,30,5,.28) 100%); }
body.beau .vignette { display: none; }
/* petit titre : retiré de l'écran de jeu le 12/10/2026 (moins d'informations à l'écran) ; le nom du jeu est en tête du menu */
.titre { display: none; position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: calc(env(safe-area-inset-left) + 14px);
  font-family: 'Bely', Georgia, serif; font-size: clamp(17px, 2.6vw, 26px); color: #fff8e8;
  text-shadow: 0 2px 6px rgba(70,40,10,.55); pointer-events: none; line-height: 1.05; }
.titre small { display: block; font-family: 'Comic Neue', sans-serif; font-size: .55em; opacity: .9; letter-spacing: .02em; }
@media (max-width: 560px) { .titre { font-size: 16px; max-width: calc(100vw - 215px); } .titre small { font-size: 11px; margin-top: 3px; } }
.reglages { position: fixed; top: calc(env(safe-area-inset-top) + 10px); right: calc(env(safe-area-inset-right) + 12px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.choix { display: flex; gap: 6px; background: rgba(255,248,232,.82); border-radius: 999px; padding: 4px; box-shadow: 0 3px 10px rgba(70,40,10,.25); }
.choix button { border: 0; border-radius: 999px; padding: 7px 13px; font: 700 14px 'Comic Neue', sans-serif; color: #5a3d1c;
  background: transparent; cursor: pointer; }
.choix button.actif { background: #e1251b; color: #fff; }
.affichage { border: 0; border-radius: 999px; padding: 5px 11px; font: 700 12px 'Comic Neue', sans-serif; color: #5a3d1c;
  background: rgba(255,248,232,.7); box-shadow: 0 2px 8px rgba(70,40,10,.2); cursor: pointer; }
.aide { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 90px);
  background: rgba(255,248,232,.9); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(70,40,10,.25); pointer-events: none; transition: opacity .6s; white-space: nowrap; }
body.tactile .aide { bottom: auto; top: calc(env(safe-area-inset-top) + 108px); font-size: 14px; white-space: normal; text-align: center; max-width: calc(100vw - 40px); }
/* téléphone ou tablette à l'horizontale : l'aide en bas au centre, entre le joystick et le bouton d'action */
@media (orientation: landscape) { body.tactile .aide { top: auto; bottom: calc(env(safe-area-inset-bottom) + 24px + var(--outils-haut, 46px)); max-width: calc(100vw - 400px); } }
/* bandeau des Germis (12/10/2026) : posé en haut au milieu, ou en bas au-dessus des outils s'il tombait sur le potager ;
   la tête du Germi qui parle à gauche ; un toucher le ferme. Place calculée par le jeu (main.js, placerBandeau). */
.bulle { position: fixed; left: 0; top: 0; box-sizing: border-box; display: flex; align-items: center; gap: 10px;
  background: rgba(255,253,246,.97); color: #3b2a17; border-radius: 18px; padding: 7px 14px 7px 7px; font-size: 15px; font-weight: 700;
  line-height: 1.28; text-align: left; pointer-events: none; box-shadow: 0 4px 14px rgba(70,40,10,.3); opacity: 0; transition: opacity .25s; }
.bulle.visible { opacity: 1; pointer-events: auto; cursor: pointer; }
.bulle-tete { flex: none; width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px #f1e4c9; pointer-events: none; }
.bulle-mots { min-width: 0; }
.bulle b { color: #d9468a; display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.bulle.germi b { color: #2f7fc4; }
/* barre d'outils du jardinier, nom de l'outil choisi, compteurs (étoiles, restes à composter) */
.outils { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px); transform: translateX(-50%); display: flex; gap: 6px; }
.outils button { position: relative; width: 62px; height: 58px; border: 0; padding: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(70,40,10,.35)); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.outils button img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.outils button.choisi { transform: translateY(-7px) scale(1.12); }
.outils button.choisi::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #fff8e8; box-shadow: 0 0 0 2px #e1251b; }
.outils .nb { position: absolute; right: -3px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px;
  background: #e1251b; color: #fff; font: 700 12px/20px 'Comic Neue', sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.outils .nb[hidden], .score .dechets[hidden] { display: none; }
.nom-outil { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%); background: rgba(255,248,232,.92);
  border-radius: 999px; padding: 4px 13px; font: 700 15px 'Comic Neue', sans-serif; color: #5a3d1c; opacity: 0; transition: opacity .3s; pointer-events: none;
  white-space: nowrap; }   /* « Engrais organo-minéral » sur une seule ligne, même sur un téléphone */
.nom-outil.visible { opacity: 1; }
.score { position: fixed; left: calc(env(safe-area-inset-left) + 14px); top: calc(env(safe-area-inset-top) + 64px); display: flex; align-items: center; gap: 5px;
  background: rgba(255,248,232,.85); border-radius: 999px; padding: 4px 11px 4px 7px; font: 700 15px 'Comic Neue', sans-serif; color: #5a3d1c;
  box-shadow: 0 2px 8px rgba(70,40,10,.2); pointer-events: none; }
.score svg { width: 20px; height: 20px; display: block; }
.score .dechets { display: flex; align-items: center; gap: 3px; margin-left: 7px; }
.score .dechets img { width: 24px; height: 22px; object-fit: contain; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 560px) { .score { top: calc(env(safe-area-inset-top) + 88px); } }
body.tactile .outils { gap: 4px; bottom: calc(env(safe-area-inset-bottom) + 166px); }
body.tactile .outils button { width: 46px; height: 43px; }
body.tactile .nom-outil { bottom: calc(env(safe-area-inset-bottom) + 222px); }
/* téléphone ou tablette à l'horizontale : barre d'outils en bas, entre le joystick et le bouton d'action */
@media (orientation: landscape) { body.tactile .outils { bottom: calc(env(safe-area-inset-bottom) + 10px); gap: 5px; }
  body.tactile .outils button { width: 50px; height: 46px; } body.tactile .nom-outil { bottom: calc(env(safe-area-inset-bottom) + 26px + var(--outils-haut, 46px)); } }
/* barre sur deux rangs (petits téléphones, 9 outils ou plus) : largeur posée par le jeu (main.js, ajusterOutils) */
.outils.deux-rangs { flex-wrap: wrap; justify-content: center; }
/* joystick : un socle en bas à gauche, une poignée qui suit le pouce */
.joystick { position: fixed; left: calc(env(safe-area-inset-left) + 22px); bottom: calc(env(safe-area-inset-bottom) + 22px);
  width: 132px; height: 132px; border-radius: 50%; touch-action: none; }
.joystick[hidden] { display: none; }
.joystick .socle { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,248,232,.34), rgba(255,248,232,.16) 70%);
  border: 3px solid rgba(255,248,232,.75); box-shadow: 0 4px 16px rgba(70,40,10,.28), inset 0 0 18px rgba(255,248,232,.25); }
.joystick .poignee { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fffdf6, #f3e3c3); border: 4px solid #e1251b; box-shadow: 0 4px 12px rgba(70,40,10,.4);
  transition: transform .12s; }
.joystick.actif .poignee { transition: none; }
/* bouton d'action peint (arroser), visible près du potager */
.action { position: fixed; right: calc(env(safe-area-inset-right) + 18px); bottom: calc(env(safe-area-inset-bottom) + 18px);
  width: 112px; height: 98px; border: 0; padding: 0; background: none; cursor: pointer;
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .25s, transform .25s; filter: drop-shadow(0 5px 10px rgba(70,40,10,.4)); }
.action.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.action img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.action .touche { position: absolute; right: 2px; top: 0; background: #fff8e8; color: #5a3d1c; border-radius: 8px; padding: 1px 7px;
  font: 700 13px 'Comic Neue', sans-serif; box-shadow: 0 2px 6px rgba(70,40,10,.3); }
body.tactile .action .touche { display: none; }
/* écran titre (11/10/2026) : vidéo du jardin avec Germi et Germinette, titre, bouton Jouer ou Continuer ; sert aussi d'écran de
   chargement. Le titre et les boutons restent dans le haut de l'image, les Germis en bas (cadrage de la vidéo par object-position,
   vérifié de 360 x 640 à 2560 x 1080). */
.ecran-titre { position: fixed; inset: 0; z-index: 6; overflow: hidden; background: #20180c; color: #fff8e8; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(env(safe-area-inset-top) + 3.5vh) calc(env(safe-area-inset-right) + 16px) 0 calc(env(safe-area-inset-left) + 16px);
  transition: opacity .7s ease; }
.ecran-titre.part { opacity: 0; pointer-events: none; }
.titre-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 72%; pointer-events: none; }
.titre-video::-webkit-media-controls, .titre-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.titre-voile { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(30,18,6,.5), rgba(30,18,6,.16) 34%, rgba(30,18,6,0) 52%); }
.titre-haut, .titre-actions { position: relative; }
.titre-nom { margin: 0; font: 400 clamp(34px, min(9.6vw, 10.5vh), 104px)/.98 'Bely', Georgia, serif; color: #fff8e8; letter-spacing: .01em;
  --o: .035em; --c: #4f2a0b;
  text-shadow: var(--o) 0 0 var(--c), calc(var(--o) * -1) 0 0 var(--c), 0 var(--o) 0 var(--c), 0 calc(var(--o) * -1) 0 var(--c),
    var(--o) var(--o) 0 var(--c), calc(var(--o) * -1) var(--o) 0 var(--c), var(--o) calc(var(--o) * -1) 0 var(--c), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--c),
    0 .09em 0 var(--c), 0 .14em .3em rgba(20,8,0,.55); }
.titre-nom span { display: block; }
.titre-nom span + span { color: #ffd166; }
.titre-sous { display: inline-block; margin: 1.6vh 0 0; padding: 3px 12px; border-radius: 999px; background: rgba(36,20,6,.5);
  font: 700 clamp(12px, 1.7vh, 15px) 'Comic Neue', sans-serif; letter-spacing: .02em; }
.titre-actions { display: grid; place-items: center; margin-top: clamp(12px, 4.5vh, 48px); min-height: 104px; }
.titre-actions > * { grid-area: 1 / 1; }
.titre-charge { width: min(240px, 70vw); }
.titre-charge .barre { height: 10px; border-radius: 99px; background: rgba(255,248,232,.35); overflow: hidden; box-shadow: 0 2px 8px rgba(20,8,0,.35); }
.titre-charge .barre i { display: block; height: 100%; width: 0; background: #e1251b; border-radius: 99px; transition: width .25s; }
.titre-charge p { margin: 9px 0 0; font: 700 15px/1.3 'Comic Neue', sans-serif; text-shadow: 0 1px 4px rgba(20,8,0,.85); }
.titre-boutons { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.titre-boutons[hidden] { display: none; }
.titre-jouer { border: 0; border-radius: 999px; padding: .34em 1.4em .4em; min-width: 6.6em; background: #e1251b; color: #fff; cursor: pointer;
  font: 400 clamp(26px, min(5vw, 5.4vh), 40px)/1.05 'Bely', Georgia, serif; text-shadow: 0 2px 0 rgba(120,16,8,.45);
  box-shadow: 0 5px 0 #a3150e, 0 10px 24px rgba(20,8,0,.45); transition: transform .12s, box-shadow .12s; }
.titre-jouer small { display: block; margin-top: 3px; font: 700 .42em 'Comic Neue', sans-serif; text-shadow: none; opacity: .95; }
.titre-jouer small[hidden] { display: none; }
.titre-jouer:active { transform: translateY(4px); box-shadow: 0 1px 0 #a3150e, 0 5px 14px rgba(20,8,0,.45); }
.titre-nouvelle { border: 0; border-radius: 999px; padding: 7px 16px; background: rgba(255,248,232,.92); color: #5a3d1c; cursor: pointer;
  font: 700 15px 'Comic Neue', sans-serif; box-shadow: 0 3px 10px rgba(20,8,0,.35); }
.titre-nouvelle[hidden] { display: none; }
.titre-jouer:focus-visible, .titre-nouvelle:focus-visible { outline: 3px solid #fff8e8; outline-offset: 4px; }
/* apparition : titre (quand sa police est là), sous-titre, chargement ; puis les boutons quand le jardin est prêt */
.titre-nom span, .titre-sous, .titre-charge { opacity: 0; }
.ecran-titre.montre .titre-nom span { animation: titre-arrivee .8s cubic-bezier(.2,.9,.3,1.2) both; }
.ecran-titre.montre .titre-nom span + span { animation-delay: .16s; }
.ecran-titre.montre .titre-sous { animation: titre-fondu .6s .5s both; }
.ecran-titre.montre .titre-charge { animation: titre-fondu .5s .7s both; }
.ecran-titre.pret .titre-charge { animation: titre-sortie .3s both; }
.ecran-titre.pret .titre-jouer { animation: titre-bouton .55s cubic-bezier(.2,.9,.3,1.25) both, titre-appel 2.4s 1.2s ease-in-out infinite; }
.ecran-titre.pret .titre-nouvelle { animation: titre-fondu .5s .25s both; }
.ecran-titre.panne .barre { visibility: hidden; }
@keyframes titre-arrivee { from { opacity: 0; transform: translateY(-.35em) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes titre-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes titre-sortie { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes titre-bouton { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes titre-appel { 0%, 100% { box-shadow: 0 5px 0 #a3150e, 0 10px 24px rgba(20,8,0,.45), 0 0 0 0 rgba(255,248,232,.55); }
  55% { box-shadow: 0 5px 0 #a3150e, 0 10px 24px rgba(20,8,0,.45), 0 0 0 14px rgba(255,248,232,0); } }
/* téléphone à l'horizontale : titre sur une ligne et boutons côte à côte, en haut ; les Germis restent visibles en bas */
@media (orientation: landscape) and (max-height: 500px) {
  .ecran-titre { padding-top: calc(env(safe-area-inset-top) + 2.5vh); }
  .titre-nom { font-size: min(9vh, 6vw); }
  .titre-nom span { display: inline-block; }
  .titre-sous { margin-top: 1.2vh; padding: 2px 10px; font-size: 12px; }
  .titre-actions { margin-top: 2.5vh; min-height: 0; }
  .titre-boutons { flex-direction: row; align-items: center; }
  .titre-jouer { font-size: min(7.5vh, 30px); }
}
/* installer le jeu (11/10/2026, soir) : bouton discret en bas à gauche de l'écran titre ; aide en trois étapes pour iPhone et iPad */
.titre-installer { position: absolute; left: calc(env(safe-area-inset-left) + 14px); bottom: calc(env(safe-area-inset-bottom) + 14px); display: flex; align-items: center; gap: 7px;
  border: 0; border-radius: 999px; padding: 8px 15px 8px 11px; background: rgba(255,248,232,.92); color: #5a3d1c; cursor: pointer;
  font: 700 14px 'Comic Neue', sans-serif; box-shadow: 0 3px 10px rgba(20,8,0,.35); }
.titre-installer svg { width: 20px; height: 20px; display: block; }
.titre-installer[hidden] { display: none; }
.ecran-titre:not(.pret) .titre-installer { visibility: hidden; }
.ecran-titre.pret .titre-installer { animation: titre-fondu .5s .5s both; }
.titre-installer:focus-visible { outline: 3px solid #fff8e8; outline-offset: 3px; }
/* musique de l'écran titre (12/10/2026) : bouton en bas à droite, visible dès le chargement ; les navigateurs refusent le son tant que l'on
   n'a pas touché la page : ce bouton lance la musique (rouge quand elle joue), puis la coupe ou la remet ; il appelle doucement tant qu'on ne l'a pas touché */
.titre-son { position: absolute; right: calc(env(safe-area-inset-right) + 14px); bottom: calc(env(safe-area-inset-bottom) + 14px); display: flex; align-items: center; gap: 7px;
  border: 0; border-radius: 999px; padding: 8px 15px 8px 11px; background: rgba(255,248,232,.92); color: #5a3d1c; cursor: pointer;
  font: 700 14px 'Comic Neue', sans-serif; box-shadow: 0 3px 10px rgba(20,8,0,.35); animation: titre-fondu .5s .3s both, titre-son-appel 2.4s 1.4s ease-in-out infinite; }
.titre-son svg { width: 20px; height: 20px; display: block; }
.titre-son[aria-pressed="true"] { background: #e1251b; color: #fff; }
.titre-son.vu, .titre-son[aria-pressed="true"] { animation: titre-fondu .5s .3s both; }
.titre-son:focus-visible { outline: 3px solid #fff8e8; outline-offset: 3px; }
@keyframes titre-son-appel { 0%, 100% { box-shadow: 0 3px 10px rgba(20,8,0,.35), 0 0 0 0 rgba(255,248,232,.6); }
  55% { box-shadow: 0 3px 10px rgba(20,8,0,.35), 0 0 0 12px rgba(255,248,232,0); } }
@media (prefers-reduced-motion: reduce) { .titre-son, .titre-son.vu { animation: none; } }
.etapes { list-style: none; margin: 12px 0 2px; padding: 0; text-align: left; }
.carte .etapes li { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; }
.carte .etapes li::before { display: none; }
.etapes svg { flex: none; width: 28px; height: 28px; display: block; }
.etapes strong { color: #c0261b; font-weight: 700; }
#confirmer { z-index: 7; }   /* « Nouvelle partie » depuis l'écran titre : la question passe au-dessus */
/* téléphone ou tablette tenu en hauteur (11/10/2026) : le jeu se joue à l'horizontale ; cet écran recouvre tout et le jeu se met en pause.
   Même condition dans titre.js et main.js. Sur ordinateur (pas d'écran tactile), il n'apparaît jamais. */
.tourne { display: none; position: fixed; inset: 0; z-index: 9; place-items: center; box-sizing: border-box; text-align: center; color: #fff8e8;
  padding: calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 24px); background: rgba(24,14,4,.9); }
@media (orientation: portrait) and (any-pointer: coarse) { .tourne { display: grid; } }
.tourne-boite { max-width: 340px; }
.tourne-icone { display: block; width: 128px; height: 128px; margin: 0 auto 18px; }
.tourne-tel { transform-box: view-box; transform-origin: 60px 52px; animation: tourne-tel 2.6s ease-in-out infinite; }
@keyframes tourne-tel { 0%, 18% { transform: none; } 48%, 78% { transform: rotate(90deg); } 100% { transform: none; } }
.tourne-titre { display: block; font: 400 clamp(28px, 8vw, 40px)/1.08 'Bely', Georgia, serif; color: #fff8e8;
  text-shadow: 0 .06em 0 #4f2a0b, 0 .12em .3em rgba(0,0,0,.5); }
.tourne-tab-txt { display: none; }
@media (min-width: 600px) { .tourne-tel-txt { display: none; } .tourne-tab-txt { display: inline; } }
.tourne p { margin: 12px 0 0; font: 700 16px/1.35 'Comic Neue', sans-serif; opacity: .92; }
@media (prefers-reduced-motion: reduce) { .tourne-tel { animation: none; } }
/* boucle de jeu (11/10/2026) : couleur de la saison, calendrier et bouton « Semaine suivante », commandes, carte de la semaine */
body { --saison: #eda024; }
body[data-saison=printemps] { --saison: #6fae45; } body[data-saison=automne] { --saison: #d4652a; } body[data-saison=hiver] { --saison: #6f93b6; }
.lumiere { transition: opacity 2s; } body[data-saison=printemps] .lumiere { opacity: .75; } body[data-saison=hiver] .lumiere { opacity: .35; }
.symboles { position: absolute; width: 0; height: 0; overflow: hidden; }
.calendrier { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cal-ligne { display: flex; align-items: center; gap: 6px; background: rgba(255,248,232,.88); border-radius: 999px; padding: 3px 3px 3px 6px;
  box-shadow: 0 2px 8px rgba(70,40,10,.2); font: 700 14px 'Comic Neue', sans-serif; color: #5a3d1c; white-space: nowrap; }
.cal-meteo { width: 24px; height: 24px; display: block; }
.cal-texte { display: flex; align-items: center; gap: 4px; }
.cal-texte b { color: var(--saison); }
.cal-nouvelle { width: 26px; height: 26px; border: 0; border-radius: 50%; padding: 4px; background: rgba(122,85,40,.1); cursor: pointer; }
.cal-nouvelle svg { width: 18px; height: 18px; display: block; }
.cal-menu { width: 30px; height: 30px; padding: 4px; }
.cal-menu svg { width: 22px; height: 22px; transition: transform .3s; }
.cal-menu[aria-expanded="true"] svg { transform: rotate(45deg); }
/* menu (roue crantée, 12/10/2026) : personnage, affichage, conseils des Germis, plein écran, installer, aide, nouvelle partie */
.menu .carte { width: min(430px, 100%); }
.carte-corps .menu-sous { margin: 2px 0 8px; font: 700 13px 'Comic Neue', sans-serif; color: #8a6a44; }
.menu-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(122,85,40,.2); text-align: left; }
.menu-ligne[hidden] { display: none; }
.menu-nom { font: 700 15px 'Comic Neue', sans-serif; color: #4a3218; }
.menu .choix { box-shadow: none; background: #f1e4c9; flex: none; }
/* son (12/10/2026) : trois réglages indépendants ; coupé = barré */
.menu .sons button { padding: 7px 11px; }
.menu .sons button:not(.actif) { text-decoration: line-through; text-decoration-thickness: 2px; color: #8a6a44; }
.menu-bouton { border: 0; border-radius: 999px; padding: 8px 14px; background: #f1e4c9; color: #5a3d1c; font: 700 14px 'Comic Neue', sans-serif; cursor: pointer; }
.menu-aide { margin: 10px 0 14px; text-align: left; font: 700 14px/1.35 'Comic Neue', sans-serif; color: #4a3218; }
.menu-aide summary { cursor: pointer; color: #6b3f16; }
.carte-corps .menu-aide p { margin: 6px 0 0; font: inherit; }
#installer-ios { z-index: 8; }   /* aide d'installation : au-dessus de l'écran titre et du menu */
@media (max-height: 420px) { .menu-ligne { padding: 4px 0; } .menu .sons button { padding: 6px 9px; } .carte-corps .menu-sous { margin-bottom: 4px; } .menu-aide { margin: 6px 0 10px; } }
.cal-suivante { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 12px 8px 15px; background: #e1251b; color: #fff;
  font: 700 15px 'Comic Neue', sans-serif; box-shadow: 0 3px 10px rgba(70,40,10,.3); cursor: pointer; white-space: nowrap; }
.cal-suivante svg { width: 14px; height: 14px; display: block; }
.cal-suivante.appel { animation: appel 1.6s ease-in-out infinite; }
@keyframes appel { 0%, 100% { box-shadow: 0 3px 10px rgba(70,40,10,.3), 0 0 0 0 rgba(225,37,27,.5); } 55% { box-shadow: 0 3px 10px rgba(70,40,10,.3), 0 0 0 10px rgba(225,37,27,0); } }
.commandes { position: fixed; left: calc(env(safe-area-inset-left) + 14px); top: calc(env(safe-area-inset-top) + 100px); background: rgba(255,248,232,.88);
  border-radius: 16px; padding: 4px 9px 6px; box-shadow: 0 2px 8px rgba(70,40,10,.2); color: #5a3d1c; }
.commandes[hidden] { display: none; }
.cmd-titre { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font: 700 12px 'Comic Neue', sans-serif; color: #8a5a2b;
  text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.cmd-titre .nb { min-width: 18px; height: 18px; border-radius: 9px; background: #e1251b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0; }
.cmd-titre::after { content: ''; width: 6px; height: 6px; margin: 0 2px 3px 2px; border-right: 2px solid #8a5a2b; border-bottom: 2px solid #8a5a2b; transform: rotate(45deg); }
.commandes.plie .cmd-titre::after { margin-bottom: -1px; transform: rotate(-135deg); }
.commandes.plie #cmd-liste { display: none; }
#cmd-liste { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
#cmd-liste li { display: flex; align-items: center; gap: 6px; font: 700 14px 'Comic Neue', sans-serif; white-space: nowrap; }
#cmd-liste li b { min-width: 56px; }
.cmd-leg { display: inline-flex; align-items: center; gap: 1px; }
.cmd-leg img { width: 24px; height: 24px; object-fit: contain; display: block; }
.cmd-leg.fait { color: #3d8a26; }
#cmd-liste small { font-size: 12px; color: #9a7448; }
/* téléphone en hauteur : commandes sous la colonne des réglages et du calendrier ; l'aide en bas, au-dessus des outils */
@media (max-width: 560px) { .commandes { top: calc(env(safe-area-inset-top) + 166px); } body.tactile .aide { top: auto; bottom: calc(env(safe-area-inset-bottom) + 272px); } }
.score.gagne { animation: gagne .6s ease-out; }
@keyframes gagne { 35% { transform: scale(1.2); } }
.carte-semaine { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; box-sizing: border-box;
  background: rgba(40,24,8,.3); opacity: 0; transition: opacity .25s; }
.carte-semaine.visible { opacity: 1; }
.carte-semaine[hidden] { display: none; }
.carte { width: min(370px, 100%); max-height: calc(100% - 8px); overflow: auto; background: #fffdf6; border-radius: 22px; box-shadow: 0 12px 40px rgba(60,30,5,.35);
  transform: translateY(10px) scale(.97); transition: transform .3s; }
.carte-semaine.visible .carte { transform: none; }
.carte-tete { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: var(--saison); color: #fff; }
.carte-tete svg { width: 46px; height: 46px; flex: none; padding: 6px; box-sizing: border-box; border-radius: 50%; background: rgba(255,253,246,.95); }
.carte-tete b { display: block; font: 400 23px 'Bely', Georgia, serif; line-height: 1.1; text-shadow: 0 1px 3px rgba(60,30,5,.3); }
.carte-tete small { font: 700 14px 'Comic Neue', sans-serif; }
.carte-sous { margin: 12px 18px 0; font: 700 18px 'Comic Neue', sans-serif; color: var(--saison); }
.carte-sous[hidden] { display: none; }
.carte ul { list-style: none; margin: 8px 18px 0; padding: 0; }
.carte li { position: relative; padding: 6px 0 6px 18px; font: 700 15px/1.3 'Comic Neue', sans-serif; color: #4a3218; border-bottom: 1px dashed rgba(122,85,40,.2); }
.carte li:last-child { border-bottom: 0; }
.carte li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--saison); }
.carte .ok, .carte .non { border: 0; border-radius: 999px; padding: 10px 22px; font: 700 16px 'Comic Neue', sans-serif; cursor: pointer; }
.carte .ok { background: #e1251b; color: #fff; box-shadow: 0 3px 10px rgba(120,20,10,.3); }
.carte .non { background: #f1e4c9; color: #5a3d1c; }
.carte > .ok { display: block; margin: 12px auto 16px; }
.carte-corps { padding: 18px 20px 16px; text-align: center; }
.carte-corps b { display: block; font: 400 24px 'Bely', Georgia, serif; color: #6b3f16; }
.carte-corps p { margin: 8px 0 16px; font: 700 15px/1.35 'Comic Neue', sans-serif; color: #4a3218; }
.carte-corps .boutons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .cal-suivante.appel, .score.gagne { animation: none; } .carte, .carte-semaine { transition: none; }
  .ecran-titre.montre .titre-nom span, .ecran-titre.montre .titre-sous, .ecran-titre.pret .titre-jouer, .ecran-titre.pret .titre-nouvelle { animation: titre-fondu .2s both; } }
/* jeu à l'horizontale sur téléphone (11/10/2026, soir) : petits écrans, et écrans bas (barres de Safari, Android avant le plein écran) */
@media (orientation: landscape) and (max-width: 720px) { body.tactile .outils { gap: 4px; } body.tactile .outils button { width: 44px; height: 41px; } }
@media (orientation: landscape) and (max-width: 660px) { body.tactile .outils { gap: 3px; } body.tactile .outils button { width: 40px; height: 37px; } }
@media (orientation: landscape) and (max-height: 420px) {
  body.tactile .titre { display: none; }
  body.tactile .score { top: calc(env(safe-area-inset-top) + 10px); }
  body.tactile .commandes { top: calc(env(safe-area-inset-top) + 46px); }
}
@media (orientation: landscape) and (max-height: 330px) {
  body.tactile .joystick { width: 112px; height: 112px; bottom: calc(env(safe-area-inset-bottom) + 14px); }
  body.tactile .joystick .poignee { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
}
/* enquête 1 (12/10/2026, soir) : « Le jardin du voisin ne pousse plus » (js/enquete.js). Bouton du carnet sous le calendrier ; écrans du carnet,
   du mot du voisin, de la loupe et du labo ; fondu au noir (portillon) et iris (loupe du vivant) ; barre d'outils selon le lieu. */
.outils[hidden], .outils button[hidden] { display: none; }
.btn-carnet { position: relative; width: 60px; height: 56px; border: 0; padding: 0; background: none; cursor: pointer; filter: drop-shadow(0 3px 6px rgba(70,40,10,.35)); }
.btn-carnet[hidden] { display: none; }
.btn-carnet img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.btn-carnet .nb { position: absolute; right: -6px; top: -4px; min-width: 28px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #e1251b; color: #fff;
  font: 700 12px/20px 'Comic Neue', sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.btn-carnet.appel { animation: carnet-appel 1.8s ease-in-out infinite; }
.btn-carnet.bond { animation: carnet-bond .5s ease-out; }
@keyframes carnet-appel { 0%, 100% { transform: none; } 50% { transform: scale(1.1) rotate(-4deg); } }
@keyframes carnet-bond { 40% { transform: scale(1.22); } }
body.tactile .btn-carnet { width: 50px; height: 46px; }
.vignette-vol { position: fixed; width: 64px; height: 64px; z-index: 6; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(40,20,5,.4)); }
/* sous la terre : la lumière dorée du jardin, la semaine suivante, les commandes et l'aide sont retirées */
body.sous-terre .cal-suivante, body.sous-terre .commandes, body.sous-terre .lumiere, body.sous-terre .aide { visibility: hidden; }
/* écrans de l'enquête : au-dessus du jeu ; le bandeau des Germis passe au-dessus d'eux */
.ecran-enquete { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 12px; box-sizing: border-box;
  padding: 8px; background: rgba(32,18,6,.55); opacity: 0; transition: opacity .25s; }
.ecran-enquete.visible { opacity: 1; }
.ecran-enquete[hidden] { display: none; }
body.enquete-ouverte .bulle { z-index: 5; }
body.enquete-ouverte .aide.aide-enquete { visibility: hidden; }   /* rappel de la semaine suivante : pas sur le carnet, le labo, le mot */
/* guidage des enquêtes (14/10/2026) : la bande d'aide donne l'objectif de l'étape (compteur en pastille) ; elle reste visible sous terre
   et sous l'eau ; un toucher sur elle : le Germi aide. Le bouton du carnet ou « Semaine suivante » appelle quand c'est l'étape ;
   flèche « boussole » autour du Germi joueur vers l'endroit où aller quand il est hors de vue (placée par js/enquete.js) */
.aide.aide-enquete { pointer-events: auto; cursor: pointer; }
body.sous-terre .aide.aide-enquete { visibility: visible; }
.aide[data-compte]::after { content: attr(data-compte); display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #e1251b; color: #fff8e8; font-size: .88em; line-height: 1.35; }
.cal-suivante.guide-appel, .btn-carnet.guide-appel { animation: guide-appel 1.3s ease-in-out infinite; }
@keyframes guide-appel { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
.guide-bord { position: fixed; left: 0; top: 0; width: 54px; height: 54px; box-sizing: border-box; border-radius: 50%; border: 3px solid #e1251b;
  background: rgba(255,248,232,.95); box-shadow: 0 3px 12px rgba(70,40,10,.35); pointer-events: none; display: grid; place-items: center; }
.guide-bord[hidden] { display: none; }
.guide-bord svg { width: 32px; height: 32px; fill: #e1251b; }
.guide-bord::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(225,37,27,.55); animation: guide-onde 1.4s ease-out infinite; }
@keyframes guide-onde { from { transform: scale(1); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
body.sous-terre .guide-bord, body.enquete-ouverte .guide-bord { display: none; }
@media (prefers-reduced-motion: reduce) { .cal-suivante.guide-appel, .btn-carnet.guide-appel, .guide-bord::after { animation: none; } }
.ecran-enquete .ok { border: 0; border-radius: 999px; padding: 10px 22px; font: 700 16px 'Comic Neue', sans-serif; cursor: pointer; background: #e1251b; color: #fff;
  box-shadow: 0 3px 10px rgba(120,20,10,.3); }
.ecran-enquete .ok:focus-visible, .carnet button:focus-visible, .carnet-cote button:focus-visible { outline: 3px solid #fff8e8; outline-offset: 3px; }
.voile-noir { position: fixed; inset: 0; z-index: 5; background: #120a05; opacity: 0; transition: opacity .45s; pointer-events: none; }
.voile-noir.visible { opacity: 1; pointer-events: auto; }
.voile-noir[hidden], .iris[hidden] { display: none; }
.iris { position: fixed; z-index: 5; width: 0; height: 0; border-radius: 50%; box-shadow: 0 0 0 300vmax #120a05; pointer-events: none; }
/* carnet : le carnet peint ouvert (taille et police réglées par le jeu) ; onglets et bouton pour fermer sur le côté droit */
.carnet { position: relative; margin-right: 96px; background: url('enquete/carnet.webp') center / 100% 100% no-repeat;
  font-family: 'Comic Neue', 'Trebuchet MS', sans-serif; font-weight: 700; line-height: 1.3; color: #3b2a17; }
.carnet-page { position: absolute; top: 6.5%; height: 74%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.carnet-page.gauche { left: 9%; width: 37%; }
.carnet-page.droite { left: 53.5%; width: 36%; }
.carnet-h2 { margin: 0 0 .25em; font: 400 1.5em/1.1 'Bely', Georgia, serif; color: #c0261b; }
.carnet-h3 { margin: .35em 0 .3em; font-size: .9em; color: #8a5a2b; text-transform: uppercase; letter-spacing: .05em; }
.carnet-p { margin: .2em 0 .6em; font-size: .95em; }
.indice { display: flex; align-items: flex-start; gap: .55em; margin: .3em 0 .55em; }
.indice .indice-image { flex: none; width: 3.1em; height: 3.1em; }
.indice-texte { min-width: 0; font-size: .86em; line-height: 1.25; }
.indice-texte b { display: block; font-size: 1.08em; color: #4a3218; }
.indice:not(.trouve) .indice-texte b { color: #b39a74; }
.idees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35em; }
.idee { width: 100%; display: flex; align-items: flex-start; gap: .4em; text-align: left; border: 2px solid rgba(122,85,40,.25); border-radius: .7em; padding: .4em .55em;
  background: rgba(255,253,246,.75); font: 700 .86em/1.25 'Comic Neue', sans-serif; color: #3b2a17; cursor: pointer; }
.idee.choisie { border-color: #e1251b; background: #fff3e6; }
.idee.fausse .idee-titre { text-decoration: line-through; text-decoration-color: rgba(192,38,27,.6); color: #8a6a44; }
.idee.bonne { border-color: #6fae45; background: #f1f8e8; }
.idee-marque { flex: none; width: 1.1em; text-align: center; }
.idee.fausse .idee-marque { color: #c0261b; }
.idee.bonne .idee-marque { color: #3d8a26; }
.carnet-bouton { display: block; margin: .4em 0 .2em; border: 0; border-radius: 999px; padding: .5em 1.1em; background: #e1251b; color: #fff; font: 700 .95em 'Comic Neue', sans-serif;
  cursor: pointer; box-shadow: 0 2px 6px rgba(120,20,10,.3); }
.carnet-bouton:disabled { background: #cdb99a; box-shadow: none; cursor: default; }
.bilan-ligne { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px dashed rgba(122,85,40,.3); background: none; padding: .35em 0;
  font: 700 .86em/1.28 'Comic Neue', sans-serif; color: #3b2a17; cursor: pointer; }
.bilan-ligne.fin { margin-top: .5em; border-bottom: 0; color: #c0261b; }
.mots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; }
.mots li { border-radius: 999px; background: #f1e4c9; padding: .2em .65em; font-size: .86em; color: #5a3d1c; }
.etoiles { margin: .5em 0 0; font-size: 1.9em; line-height: 1; color: #f5b82e; letter-spacing: .08em; text-shadow: 0 1px 0 #b7791f; }
.carnet-cote { position: absolute; left: 100%; top: 3%; margin-left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.carnet-fermer { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff8e8; color: #5a3d1c; box-shadow: 0 3px 10px rgba(20,8,0,.35); cursor: pointer; padding: 8px; }
.carnet-fermer svg { width: 24px; height: 24px; display: block; }
.carnet-onglets { display: flex; flex-direction: column; gap: 6px; }
.carnet-onglets button { border: 0; border-radius: 0 999px 999px 0; padding: 7px 14px 7px 10px; min-width: 74px; text-align: left; background: #f1e4c9; color: #5a3d1c;
  font: 700 14px 'Comic Neue', sans-serif; box-shadow: 0 2px 6px rgba(20,8,0,.3); cursor: pointer; }
.carnet-onglets button.actif { background: #e1251b; color: #fff; }
.carnet-onglets button:disabled { opacity: .45; cursor: default; }
@media (max-height: 420px) { .carnet-cote { gap: 6px; } .carnet-onglets { gap: 4px; } .carnet-onglets button { padding: 5px 11px 5px 8px; font-size: 13px; min-width: 66px; } .carnet-fermer { width: 34px; height: 34px; padding: 6px; } }
/* mot du voisin : la feuille peinte (taille réglée par le jeu), le texte écrit dessus, la signature */
.mot { position: relative; box-sizing: border-box; background: url('enquete/mot.webp') center / 100% 100% no-repeat;
  font-family: 'Comic Neue', 'Trebuchet MS', sans-serif; font-weight: 700; line-height: 1.32; color: #4a2c12; overflow: hidden; }
.mot-texte { margin: 0; }
.mot-signe { margin: .6em 0 0; text-align: right; font: 400 1.15em 'Bely', Georgia, serif; color: #8a3b14; }
/* loupe : la vue de près dans un verre cerclé de bois */
#loupe { padding-top: 64px; }
.loupe-verre { position: relative; width: min(60vmin, 440px); height: min(60vmin, 440px); border-radius: 50%; border: 14px solid #8a5a2b; overflow: hidden; background: #2b1a0c;
  box-shadow: 0 0 0 4px #e8c58a, 0 10px 30px rgba(10,4,0,.6); }
.loupe-verre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loupe-verre::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), rgba(255,255,255,0) 40%); }
@media (max-height: 420px) { #loupe { padding-top: 56px; gap: 8px; } .loupe-verre { width: min(56vh, 440px); height: min(56vh, 440px); border-width: 10px; } }
/* labo : tout est peint dans le canevas (établi, pots, jauges) ; un bouton en bas pour continuer */
.labo-ecran { padding: 0; background: #20140a; }
.labo-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#labo-ok { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }   /* entre les deux pots (place réglée par le jeu) */
#labo-ok[hidden] { display: none; }
/* enquêtes 2 et 3 (13/10/2026) : nom de l'enquête sous le titre du carnet ; gobelet doseur (tout est peint dans le canevas : gobelet, règle, aiguille) */
.carnet-enquete { margin: -.1em 0 .35em; font-size: .9em; color: #8a5a2b; }
#doseur { padding-top: 64px; gap: 10px; }
.doseur-toile { display: block; filter: drop-shadow(0 8px 22px rgba(10,4,0,.45)); touch-action: none; }
#doseur-ok[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .btn-carnet.appel, .btn-carnet.bond { animation: none; } }
/* carnets (13/10/2026, brouillon x) : une partie par carnet ; code de sauvegarde à emporter ou à lire (js/carnets.js) */
#carnets, #emporter, #code-lu { z-index: 7; }   /* aussi au-dessus de l'écran titre */
.carnets .carte, .code-lu .carte { width: min(460px, 100%); }
.carte-corps .carnets-sous { margin: 4px 0 10px; font-size: 14px; color: #8a6a44; }
.carte .carnets-liste { margin: 0 0 14px; display: grid; gap: 8px; }
.carte .carnets-liste[hidden] { display: none; }
.carte .carnets-liste li { padding: 0; border: 0; }
.carte .carnets-liste li::before { display: none; }
.carnet-choix { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 7px; border: 2px solid transparent; border-radius: 18px;
  background: #f7eedb; color: #4a3218; text-align: left; cursor: pointer; font: 700 15px 'Comic Neue', sans-serif; }
.carnet-choix img { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid var(--anneau, #c9a46c); box-sizing: border-box; object-fit: cover; }
.carnet-choix.c1 { --anneau: #6fae45; } .carnet-choix.c2 { --anneau: #e25c96; } .carnet-choix.c3 { --anneau: #3f7ac4; } .carnet-choix.c4 { --anneau: #e89628; }
.carnet-mots { flex: 1; min-width: 0; }
.carte-corps .carnet-mots b { font: 700 16px 'Comic Neue', sans-serif; color: #4a3218; }
.carnet-mots small { display: block; margin-top: 2px; font: 700 13px 'Comic Neue', sans-serif; color: #8a6a44; }
.carnet-choix em { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--anneau); color: #fff; font: 700 12px 'Comic Neue', sans-serif; font-style: normal; }
.carnet-choix[aria-current] { border-color: var(--anneau); background: #fffaf0; }
.carnet-choix:focus-visible { outline: 3px solid #e1251b; outline-offset: 2px; }
@media (max-height: 420px) { .carnet-choix { padding: 4px 10px 4px 4px; } .carnet-choix img { width: 40px; height: 40px; } .carte .carnets-liste { gap: 5px; margin-bottom: 8px; }
  .carte-corps .carnets-sous { display: none; } }
@media (orientation: landscape) and (max-height: 420px) { .carte .carnets-liste { grid-template-columns: 1fr 1fr; } .carnets .carte, .code-lu .carte { width: min(640px, 100%); } }
.emporter .carte { width: min(420px, 100%); }
.emporter-qui { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 4px; text-align: left; }
.emporter-qui img { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid #c9a46c; box-sizing: border-box; }
.emporter-qui strong { display: block; font: 700 15px 'Comic Neue', sans-serif; color: #4a3218; }
.emporter-qui small { display: block; font: 700 13px 'Comic Neue', sans-serif; color: #8a6a44; }
.emporter-code { display: block; margin: 8px auto 2px; border-radius: 10px; image-rendering: pixelated; box-shadow: 0 2px 10px rgba(60,30,5,.18); }
.carte-corps .emporter-code + p { margin-bottom: 12px; font-size: 14px; }
@media (orientation: landscape) and (max-height: 420px) { .emporter .carte-corps { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; text-align: left; }
  .emporter .carte-corps > b, .emporter .emporter-qui { grid-column: 2; } .emporter .emporter-code { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .emporter .emporter-qui { justify-content: flex-start; } .emporter .carte-corps > p, .emporter .boutons { grid-column: 2; } .emporter .boutons { justify-content: flex-start; }
  .emporter .carte { width: min(680px, 100%); } }
.menu-carnet { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; font: 700 14px 'Comic Neue', sans-serif; color: #4a3218; }
.menu-carnet img { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #c9a46c; box-sizing: border-box; }
.menu-carnet span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titre-jouer { display: inline-flex; align-items: center; justify-content: center; gap: .28em; }
.jouer-mots { display: block; }
.jouer-carnet { flex: none; width: 1.25em; height: 1.25em; margin-left: -.55em; border-radius: 50%; background: #fff; border: .07em solid #fff8e8; box-sizing: border-box; }
.jouer-carnet[hidden] { display: none; }
.titre-carnets { display: inline-flex; align-items: center; }
.ecran-titre.pret .titre-carnets { animation: titre-fondu .5s .35s both; }
.titre-installer.rappel { background: #ffd166; color: #4a2c0c; }
body.change-carnet .ecran-titre .titre-boutons { opacity: .4; pointer-events: none; }
/* enquête 5 (14/10/2026) : atelier des Germis (js/atelier.js) ; tout est peint dans le canevas (étagères, bocaux, machines) ; en bas, le choix
   (sacs, bocaux avec leurs pastilles N P K), la consigne, la jauge du geste et le bouton ; en haut à droite, sortir */
.atelier-ecran { padding: 0; background: #20140a; }
.atelier-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.atelier-fermer { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: calc(env(safe-area-inset-right) + 10px); }
/* le sac de Mazor peint sur l'établi (choix A, 14/10/2026) : un bouton transparent posé dessus, placé par js/atelier.js */
.atelier-mazor { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 0; padding: 0; background: none; border-radius: 18px; cursor: pointer; }
.atelier-mazor[hidden] { display: none; }
.atelier-mazor:focus-visible { outline: 3px solid #e1251b; outline-offset: 2px; }
.atelier-bas { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 10px); transform: translateX(-50%); width: min(1060px, calc(100% - 20px));
  display: grid; justify-items: center; gap: 7px; pointer-events: none; }
.atelier-bas > * { pointer-events: auto; }
.atelier-consigne { margin: 0; max-width: 640px; padding: 7px 16px; border-radius: 14px; background: rgba(255,248,232,.95); color: #4a3218;
  font: 700 16px/1.3 'Comic Neue', sans-serif; text-align: center; box-shadow: 0 3px 12px rgba(20,8,0,.35); }
.atelier-consigne:empty { display: none; }
.atelier-jauge { width: min(320px, 70%); height: 14px; border-radius: 999px; background: rgba(255,248,232,.7); overflow: hidden; box-shadow: inset 0 1px 3px rgba(40,20,5,.35); }
.atelier-jauge[hidden] { display: none; }
.atelier-jauge i { display: block; height: 100%; background: #6fae45; transform-origin: left center; transform: scaleX(0); }
#atelier-ok[hidden] { display: none; }
#atelier-ok:disabled { opacity: .5; cursor: default; box-shadow: none; }
.atelier-choix { width: 100%; }
.atelier-choix[hidden] { display: none; }
.atelier-choix.sacs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.atelier-choix.bocaux { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.atelier-sac, .atelier-bocal { border: 3px solid transparent; border-radius: 16px; background: rgba(255,248,232,.95); color: #4a3218; cursor: pointer;
  box-shadow: 0 3px 10px rgba(20,8,0,.35); display: grid; justify-items: center; align-content: start; gap: 3px; font: 700 13px/1.15 'Comic Neue', sans-serif; }
.atelier-sac { width: 168px; padding: 10px 8px; }
.atelier-sac img { width: 84px; height: 84px; object-fit: contain; }
.atelier-sac b { font-size: 15px; }
.atelier-sac small { font-size: 13px; color: #8a6a44; }
.atelier-bocal { padding: 5px 3px 6px; min-width: 0; }
.atelier-bocal.choisi { border-color: #e1251b; background: #fffaf0; }
.atelier-bocal-image { width: 46px; height: 58px; }
.atelier-bocal b { font-size: 12.5px; text-align: center; overflow-wrap: anywhere; }
.atelier-sac:focus-visible, .atelier-bocal:focus-visible { outline: 3px solid #fff8e8; outline-offset: 2px; }
.atelier-pastilles { display: flex; justify-content: center; gap: 3px; }
.atelier-pastilles .pastille { display: grid; justify-items: center; gap: 2px; }
.atelier-pastilles img { width: 20px; height: 20px; display: block; }
.atelier-pastilles .points { display: flex; gap: 2px; }
.atelier-pastilles .points i { width: 5px; height: 5px; border-radius: 50%; background: rgba(122,85,40,.25); }
.atelier-pastilles .points i.plein { background: #4a3218; }
.atelier-recette { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 12px; padding: 5px 16px; border-radius: 999px;
  background: rgba(255,248,232,.95); box-shadow: 0 3px 10px rgba(20,8,0,.3); font: 700 14px 'Comic Neue', sans-serif; color: #4a3218; }
.atelier-pastilles.grand img { width: 26px; height: 26px; }
.atelier-pastilles.grand .points i { width: 7px; height: 7px; }
@media (max-height: 420px) {
  .atelier-bas { gap: 5px; bottom: calc(env(safe-area-inset-bottom) + 6px); }
  .atelier-consigne { font-size: 14px; padding: 5px 12px; }
  .atelier-bocal-image { width: 34px; height: 42px; }
  .atelier-bocal b { font-size: 11px; }
  .atelier-pastilles img { width: 16px; height: 16px; }
  .atelier-sac { width: 140px; padding: 6px; } .atelier-sac img { width: 58px; height: 58px; } .atelier-sac b { font-size: 14px; }
  .atelier-recette { padding: 3px 12px; font-size: 13px; }
  .atelier-pastilles.grand img { width: 20px; height: 20px; }
  .atelier-fermer { width: 34px; height: 34px; padding: 6px; }
}
/* enquête 5 : au potager, quelle nourriture (l'engrais habituel ou un sac de l'atelier) ; la commande de Paul dans le panneau des commandes */
.choix-sac .carte { width: min(460px, 100%); }
.choix-sac-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.choix-sac-liste button { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 2px solid transparent; border-radius: 16px;
  background: #f7eedb; color: #4a3218; text-align: left; cursor: pointer; font: 700 14px/1.2 'Comic Neue', sans-serif; }
.choix-sac-liste img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.choix-sac-liste small { display: block; margin-top: 2px; font-size: 12.5px; color: #8a6a44; }
.choix-sac-liste button.vide { opacity: .62; }
.choix-sac-liste button:focus-visible { outline: 3px solid #e1251b; outline-offset: 2px; }
@media (orientation: landscape) and (max-height: 420px) { .choix-sac .carte { width: min(700px, 100%); } .choix-sac-liste { grid-template-columns: repeat(4, 1fr); }
  .choix-sac-liste button { flex-direction: column; text-align: center; padding: 6px; } .choix-sac .carte-corps { padding: 12px 14px 12px; } }

/* espace enseignants et parents (14/10/2026, js/enseignant.js) : petit lien en bas de l'écran titre ; contrôle adulte (appui long, puis
   une multiplication) ; partie de classe, son, liens pour les adultes ; partie de classe : bouton Pause près du menu */
.titre-adulte { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 16px); transform: translateX(-50%); border: 0; border-radius: 999px;
  padding: 6px 13px; background: rgba(36,20,6,.55); color: #fff8e8; cursor: pointer; font: 700 13px 'Comic Neue', sans-serif; white-space: nowrap; }
.ecran-titre:not(.pret) .titre-adulte { visibility: hidden; }
.ecran-titre.pret .titre-adulte { animation: titre-fondu .5s .6s both; }
.titre-adulte:focus-visible { outline: 3px solid #fff8e8; outline-offset: 3px; }
#adulte-garde, #adulte { z-index: 7; }
.adulte-garde .carte { width: min(400px, 100%); }
.garde-appui { position: relative; display: grid; gap: 8px; width: min(260px, 100%); margin: 0 auto 6px; padding: 14px 16px 12px; border: 0; border-radius: 18px;
  background: #e1251b; color: #fff; font: 700 17px 'Comic Neue', sans-serif; cursor: pointer; box-shadow: 0 4px 0 #a3150e, 0 6px 16px rgba(120,20,10,.3);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.garde-appui.tenu { transform: translateY(3px); box-shadow: 0 1px 0 #a3150e, 0 4px 10px rgba(120,20,10,.3); }
.garde-barre { display: block; height: 8px; border-radius: 99px; background: rgba(255,248,232,.35); overflow: hidden; }
.garde-barre i { display: block; height: 100%; background: #fff8e8; transform-origin: left center; transform: scaleX(0); }
.garde-appui:focus-visible { outline: 3px solid #6b3f16; outline-offset: 3px; }
.garde-calcul label { display: block; margin: 6px 0 10px; font: 700 18px 'Comic Neue', sans-serif; color: #4a3218; }
.garde-ligne { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.garde-ligne input { width: 6.5em; padding: 8px 12px; border: 2px solid #c9a46c; border-radius: 12px; font: 700 18px 'Comic Neue', sans-serif; color: #4a3218; text-align: center; background: #fff; }
.garde-ligne input:focus-visible { outline: 3px solid #e1251b; outline-offset: 1px; }
.carte-corps .garde-erreur { margin: 0 0 10px; font-size: 14px; color: #c0261b; }
.adulte .carte { width: min(560px, 100%); }
.adulte .carte-corps { text-align: left; }
.adulte .carte-corps > b { text-align: center; }
.adulte-bloc { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed rgba(122,85,40,.3); }
.adulte-bloc h3 { margin: 0 0 4px; font: 400 19px 'Bely', Georgia, serif; color: #c0261b; }
.carte-corps .adulte-note { margin: 0 0 10px; font-size: 14px; color: #6b4a26; }
.carte-corps .adulte-etat { margin: -4px 0 10px; font-size: 14px; color: #3d8a26; }
.adulte-etat[hidden], .adulte-avert[hidden] { display: none; }
.adulte-choix { margin: 0 0 8px; padding: 0; border: 0; }
.adulte-choix > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.adulte-q { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: #f7eedb; cursor: pointer; font: 700 14px/1.2 'Comic Neue', sans-serif; color: #4a3218; }
.adulte-q input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #e1251b; }
.adulte-q:has(input:checked) { background: #fde3d6; box-shadow: inset 0 0 0 2px #e1251b; }
.adulte-etape { display: block; margin: 0 0 10px; }
.adulte-etape select { width: 100%; padding: 8px 10px; border: 2px solid #c9a46c; border-radius: 12px; background: #fff; font: 700 15px 'Comic Neue', sans-serif; color: #4a3218; }
.adulte-etape.grise { opacity: .45; }
.carte-corps .adulte-avert { margin: 0 0 10px; font-size: 14px; color: #c0261b; }
.adulte .boutons { justify-content: flex-start; }
.adulte .carte-corps > .boutons { justify-content: center; margin-top: 14px; }
.adulte .choix { display: inline-flex; box-shadow: none; background: #f1e4c9; }
.adulte .sons button:not(.actif) { text-decoration: line-through; text-decoration-thickness: 2px; color: #8a6a44; }
.adulte-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.carte .adulte-liens li { padding: 0; border: 0; }
.carte .adulte-liens li::before { display: none; }
.adulte-liens a { font: 700 15px 'Comic Neue', sans-serif; color: #1f5689; }
.adulte-fiches { font: 700 15px 'Comic Neue', sans-serif; color: #2b3542; line-height: 1.5; }
.adulte-fiches span { display: block; }
.adulte-q:focus-within, .adulte-liens a:focus-visible { outline: 3px solid #e1251b; outline-offset: 2px; }
@media (orientation: landscape) and (max-height: 420px) { .adulte .carte { width: min(720px, 100%); } .adulte-choix > div { grid-template-columns: 1fr 1fr 1fr; } }
.cal-pause { width: 30px; height: 30px; padding: 5px; margin-right: 2px; }
.cal-pause svg { width: 20px; height: 20px; }
.cal-pause[hidden] { display: none; }
.pause-classe { background: rgba(32,18,6,.55); }
.pause-classe .carte-corps b { font-size: 34px; }
