/* activites-seniors.fr
   Écran : texte large et contrasté, jamais de largeur bridée sur un paragraphe ou un titre.
   Feuilles : un seul gabarit A4 (.feuille) pour l'aperçu, l'impression et les PDF. */

:root {
  --fond: #fbf8f3;
  --carte: #ffffff;
  --sable: #f3ebdf;
  --sable-fonce: #e7dac6;
  --ligne: #dccfbb;
  --encre: #1f2328;
  --doux: #4b4f56;
  --vert: #1e5b53;
  --vert-fonce: #123f39;
  --vert-clair: #e2efe9;
  --terre: #b04a22;
  --terre-fonce: #8f3a18;
  --soleil: #f2b33d;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(31, 35, 40, .06), 0 6px 22px rgba(31, 35, 40, .07);
  --titre: 'Fraunces', Georgia, 'Times New Roman', serif;
  --texte: 'Atkinson Hyperlegible', Verdana, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: var(--texte); font-size: 1.15rem; line-height: 1.65; font-weight: 400;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--vert); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--terre); }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.18; color: var(--vert-fonce); text-wrap: pretty; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .2em 0 .45em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; border-radius: 4px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete { background: var(--carte); border-bottom: 1px solid var(--ligne); position: relative; z-index: 20; }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { display: block; height: 58px; width: auto; }
.entete__nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.entete__lien, .menu-deroulant > summary {
  font-weight: 700; font-size: 1.02rem; color: var(--encre); text-decoration: none; padding: .55rem .8rem; border-radius: 10px; cursor: pointer;
}
.entete__lien:hover, .menu-deroulant > summary:hover { background: var(--sable); color: var(--encre); }
.entete__lien[aria-current="page"] { background: var(--vert-clair); color: var(--vert-fonce); }
.menu-deroulant { position: relative; }
.menu-deroulant > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.menu-deroulant > summary::-webkit-details-marker { display: none; }
.menu-deroulant > summary::after { content: ''; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.menu-deroulant[open] > summary { background: var(--sable); }
.menu-deroulant__panneau {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(860px, calc(100vw - 32px)); background: var(--carte);
  border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: 0 18px 50px rgba(31, 35, 40, .16);
  padding: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem 1.2rem;
}
.menu-deroulant__titre { font-family: var(--titre); font-weight: 700; color: var(--terre); font-size: 1rem; margin: .2rem 0 .3rem; }
.menu-deroulant__panneau a { display: block; text-decoration: none; color: var(--encre); padding: .45rem .55rem; border-radius: 9px; line-height: 1.3; }
.menu-deroulant__panneau a:hover, .menu-deroulant__panneau a[aria-current="page"] { background: var(--vert-clair); }
.menu-deroulant__panneau a strong { display: block; font-size: 1rem; }
.menu-deroulant__panneau a span { display: block; font-size: .88rem; color: var(--doux); }
.menu-deroulant__court { display: none; }

/* ---------- Boutons et champs ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1.08rem/1.2 var(--texte);
  background: var(--terre); color: #fff; border: 2px solid var(--terre); border-radius: 999px; padding: .8rem 1.4rem;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.bouton:hover { background: var(--terre-fonce); border-color: var(--terre-fonce); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton--vert { background: var(--vert); border-color: var(--vert); }
.bouton--vert:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.bouton--contour { background: transparent; color: var(--vert-fonce); border-color: var(--vert); }
.bouton--contour:hover { background: var(--vert-clair); color: var(--vert-fonce); border-color: var(--vert); }
.bouton--petit { font-size: .98rem; padding: .55rem 1rem; }
.bouton svg { width: 1.2em; height: 1.2em; }
.champ, .liste {
  font: 400 1.05rem/1.3 var(--texte); color: var(--encre); background: #fff; border: 2px solid var(--ligne);
  border-radius: 10px; padding: .55rem .7rem; min-height: 46px;
}
.champ:focus, .liste:focus { border-color: var(--vert); outline: none; }
textarea.champ { width: 100%; resize: vertical; }

/* ---------- Fil d'Ariane, tête de page ---------- */
.fil-ariane ol { list-style: none; margin: 0; padding: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .95rem; color: var(--doux); }
.fil-ariane li + li::before { content: '›'; margin-right: .35rem; color: var(--ligne); font-weight: 700; }
.fil-ariane a { color: var(--doux); }
.tete { padding-bottom: 1.6rem; }
.tete__intro { font-size: 1.25rem; color: var(--encre); }
.tete__puces { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tete__puces li { background: var(--vert-clair); color: var(--vert-fonce); font-weight: 700; font-size: .95rem; padding: .35rem .8rem; border-radius: 999px; }
.surligne { background: linear-gradient(transparent 62%, rgba(242, 179, 61, .55) 62%); padding: 0 .08em; }

/* ---------- Atelier : réglages + aperçu des feuilles ---------- */
.vers-conseils { margin-top: -.6rem; padding-bottom: 1.4rem; }
#conseils { scroll-margin-top: 1.5rem; }
@media print { .vers-conseils { display: none; } }
.atelier { background: var(--sable); border-block: 1px solid var(--ligne); padding: 2rem 0 2.4rem; }
.atelier__grille { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 2rem; align-items: start; }
.reglages { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.3rem; position: sticky; top: 1rem; }
.reglages__titre { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: var(--vert-fonce); margin: 0 0 .8rem; }
.reglages fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.reglages legend, .reglages__etiquette { font-weight: 700; font-size: 1rem; margin-bottom: .45rem; display: block; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: .4rem; }
.choix label { cursor: pointer; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix span {
  display: inline-flex; align-items: center; gap: .35rem; border: 2px solid var(--ligne); background: #fff; border-radius: 999px;
  padding: .4rem .8rem; font-size: .98rem; line-height: 1.25; transition: border-color .12s, background .12s;
}
.choix input:checked + span { border-color: var(--vert); background: var(--vert-clair); color: var(--vert-fonce); font-weight: 700; }
.choix input:focus-visible + span { outline: 3px solid var(--soleil); outline-offset: 2px; }
.choix--bloc { flex-direction: column; }
.choix--bloc span { border-radius: 12px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.choix--bloc small { font-weight: 400; color: var(--doux); font-size: .88rem; }
.reglages__ligne { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-bottom: 1rem; }
.reglages__ligne label { font-weight: 700; font-size: .98rem; display: flex; flex-direction: column; gap: .3rem; }
.reglages__ligne .champ { width: 7.5rem; }
.reglages__case { display: flex; align-items: center; gap: .5rem; font-size: 1rem; cursor: pointer; margin-bottom: .6rem; }
.reglages__case input { width: 1.25rem; height: 1.25rem; accent-color: var(--vert); }
.reglages__boutons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.reglages__boutons .bouton { flex: 1 1 auto; }
.reglages__note { font-size: .92rem; color: var(--doux); margin: .8rem 0 0; }
.apercu { min-width: 0; }
.apercu__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.apercu__legende { margin: 0; font-weight: 700; color: var(--vert-fonce); }
.apercu__boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.apercu__defile { overflow-x: auto; padding-bottom: .5rem; }
.apercu__note { font-size: .95rem; color: var(--doux); margin-top: .6rem; }

/* ---------- Les feuilles A4 ---------- */
.feuilles { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.feuille {
  width: 210mm; height: 297mm; background: #fff; color: #111; box-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 14px 40px rgba(0, 0, 0, .1);
  padding: 13mm 14mm 11mm; display: flex; flex-direction: column; overflow: hidden; position: relative;
  font-family: var(--texte); font-size: 15pt; line-height: 1.35; flex: none;
}
.feuille--paysage { width: 297mm; height: 210mm; padding: 11mm 12mm 9mm; }
.feuille__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; border-bottom: 1.2mm solid #1e5b53; padding-bottom: 3mm; margin-bottom: 5mm; }
.feuille__titre { font-family: var(--titre); font-weight: 700; font-size: 26pt; line-height: 1.1; margin: 0; color: #111; }
.feuille__titre--long { font-size: 24pt; }
.feuille__tete:has(.feuille__titre--long) { flex-direction: column; align-items: stretch; gap: 3mm; }
.feuille__tete:has(.feuille__titre--long) .feuille__nom { align-self: flex-end; }
.feuille__sous { font-size: 13pt; margin: 1.5mm 0 0; color: #333; }
.feuille__nom { font-size: 13pt; white-space: nowrap; color: #222; margin: 0; }
.feuille__nom i { display: inline-block; width: 52mm; border-bottom: .35mm solid #222; }
.feuille__consigne { font-size: 16pt; font-weight: 700; margin: 0 0 5mm; color: #111; }
.feuille__corps { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.feuille__pied { display: flex; justify-content: space-between; gap: 4mm; font-size: 10pt; color: #555; border-top: .3mm solid #bbb; padding-top: 2mm; margin-top: 4mm; }
.feuille__pied strong { color: #1e5b53; }
.feuille h3 { font-family: var(--titre); font-size: 17pt; color: #111; margin: 0 0 3mm; }
@media screen and (max-width: 900px) {
  .feuilles { zoom: .62; }
}
@media screen and (max-width: 560px) {
  .feuilles { zoom: .42; }
}

/* ---------- Contenu rédigé ---------- */
.carnet { padding: 1rem 0 3rem; }
.carnet > p, .carnet > ul, .carnet > ol { font-size: 1.15rem; }
.carnet ul, .carnet ol { padding-left: 1.4rem; }
.carnet li { margin-bottom: .45rem; }
.encadre { background: var(--carte); border: 1px solid var(--ligne); border-left: 6px solid var(--vert); border-radius: var(--rayon); padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.encadre > :last-child { margin-bottom: 0; }
.encadre--terre { border-left-color: var(--terre); }
.encadre__titre { font-family: var(--titre); font-weight: 700; color: var(--vert-fonce); font-size: 1.2rem; margin: 0 0 .4rem; }
.etapes { counter-reset: etape; list-style: none; padding: 0 !important; display: grid; gap: .8rem; }
.etapes > li { counter-increment: etape; position: relative; padding: .9rem 1rem .9rem 3.6rem; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); margin: 0; }
.etapes > li::before { content: counter(etape); position: absolute; left: 1rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.tableau { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: var(--rayon); overflow: hidden; margin: 1rem 0 1.4rem; font-size: 1.02rem; }
.tableau th, .tableau td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { background: var(--vert-clair); color: var(--vert-fonce); font-weight: 700; }
.tableau tr:last-child td { border-bottom: 0; }
.defile-x { overflow-x: auto; }
.questions details { background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; margin-bottom: .6rem; }
.questions summary { cursor: pointer; font-weight: 700; padding: .9rem 1.1rem; list-style: none; position: relative; padding-right: 3rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; position: absolute; right: 1.1rem; top: .65rem; font-size: 1.5rem; color: var(--vert); font-weight: 700; }
.questions details[open] summary::after { content: '−'; }
.questions details p { padding: 0 1.1rem 1rem; margin: 0; }
.voir-aussi { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; list-style: none; padding: 0 !important; margin: 1rem 0; }
.voir-aussi li { margin: 0; }
.voir-aussi a { display: block; height: 100%; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: .9rem 1rem; text-decoration: none; color: var(--encre); transition: border-color .15s, transform .15s; }
.voir-aussi a:hover { border-color: var(--vert); transform: translateY(-2px); }
.voir-aussi strong { display: block; color: var(--vert-fonce); font-family: var(--titre); font-size: 1.15rem; margin-bottom: .2rem; }
.voir-aussi span { font-size: .98rem; color: var(--doux); }
.mise-a-jour { font-size: .95rem; color: var(--doux); }

/* ---------- Tuiles d'activités (accueil, hubs) ---------- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.tuile { display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--encre); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tuile:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--vert); color: var(--encre); }
.tuile__image { aspect-ratio: 16 / 10; background: var(--sable); display: grid; place-items: center; border-bottom: 1px solid var(--ligne); overflow: hidden; }
.tuile__image svg { width: 100%; height: 100%; }
.tuile__corps { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.tuile__etiquette { font-size: .85rem; font-weight: 700; color: var(--terre); text-transform: uppercase; letter-spacing: .05em; }
.tuile__titre { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: var(--vert-fonce); line-height: 1.2; }
.tuile__texte { font-size: 1rem; color: var(--doux); }

/* ---------- Accueil ---------- */
.ouverture { background: radial-gradient(circle at 85% 20%, rgba(242, 179, 61, .22), transparent 42%), linear-gradient(180deg, #fff 0%, var(--fond) 100%); padding: 3rem 0 2.6rem; border-bottom: 1px solid var(--ligne); }
.ouverture__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.ouverture h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.ouverture__intro { font-size: 1.3rem; }
.ouverture__boutons { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1rem; }
.ouverture__atouts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ouverture__atouts li { background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: .7rem .8rem; font-size: .98rem; line-height: 1.35; }
.ouverture__atouts strong { display: block; color: var(--vert-fonce); }
.ouverture__visuel { position: relative; min-height: 380px; }
.ouverture__visuel .mini-feuille { position: absolute; width: 62%; aspect-ratio: 210 / 297; background: #fff; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.08), 0 22px 50px rgba(0,0,0,.14); overflow: hidden; }
.mini-feuille img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mini-feuille--1 { left: 0; top: 6%; transform: rotate(-5deg); }
.mini-feuille--2 { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.bandeau-publics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.2rem 0; }
.bandeau-publics > div { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1.1rem; }
.bandeau-publics h3 { margin: 0 0 .3rem; font-size: 1.18rem; }
.bandeau-publics p { margin: 0; font-size: 1rem; color: var(--doux); }
.section { padding: 2.2rem 0; }
.section--sable { background: var(--sable); border-block: 1px solid var(--ligne); }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert-fonce); color: #e9f1ee; margin-top: 2rem; padding: 2.6rem 0 1.4rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
.pied__marque p { font-size: 1rem; color: #d4e3de; margin-top: .9rem; }
.pied__titre { font-family: var(--titre); font-weight: 700; color: var(--soleil); font-size: 1.1rem; margin: 0 0 .6rem; }
.pied__colonne { display: flex; flex-direction: column; gap: .35rem; font-size: 1rem; }
.pied__credit { font-size: .92rem; color: #b9cfc8; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; margin: 2rem 0 0; }

/* ---------- 404 ---------- */
.page-perdue { text-align: center; padding: 4rem 0; }
.page-perdue__code { font-family: var(--titre); font-size: 6rem; font-weight: 700; color: var(--soleil); line-height: 1; }

/* ---------- Petits écrans ---------- */
@media (max-width: 1000px) {
  .atelier__grille { grid-template-columns: 1fr; }
  .reglages { position: static; }
  .ouverture__grille { grid-template-columns: 1fr; }
  .ouverture__visuel { min-height: 300px; max-width: 520px; width: 100%; margin: 0 auto; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .bandeau-publics { grid-template-columns: 1fr 1fr; }
  .menu-deroulant__panneau { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .entete__lien--second { display: none; }
}
@media (max-width: 900px) {
  .entete__lien--tiers { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .entete__lien { display: none; }
  .menu-deroulant__large { display: none; }
  .menu-deroulant__court { display: inline; }
  .menu-deroulant__panneau { grid-template-columns: 1fr; max-height: 75vh; overflow-y: auto; right: -8px; }
  .ouverture__atouts { grid-template-columns: 1fr; }
  .bandeau-publics { grid-template-columns: 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .logo img { height: 46px; }
}

/* ---------- Impression : seules les feuilles sortent ---------- */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body > header, body > footer, main > :not(.zone-feuilles), .zone-feuilles .reglages, .zone-feuilles .apercu__barre,
  .zone-feuilles .apercu__note, .zone-feuilles .ecran-seul { display: none !important; }
  .zone-feuilles, .zone-feuilles .container, .zone-feuilles .atelier__grille, .zone-feuilles .apercu, .zone-feuilles .apercu__defile {
    display: block !important; padding: 0 !important; margin: 0 !important; width: auto !important; background: none !important; border: 0 !important; overflow: visible !important;
  }
  .feuilles { display: block; zoom: 1 !important; }
  .feuille { box-shadow: none !important; margin: 0 !important; break-after: page; page-break-after: always; }
  .feuille:last-child { break-after: auto; page-break-after: auto; }
  .feuille--paysage { page: paysage; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page paysage { size: A4 landscape; margin: 0; }

/* ---------- Feuilles « à compléter » (proverbes, expressions) ---------- */
.ac-num { font-weight: 700; color: #1e5b53; flex: none; min-width: 9mm; }
.ac-liste--initiales .ac-texte { min-width: 0; }
.ac-rang.ac-initiales { display: block; font-size: 19pt; line-height: 1.7; letter-spacing: .02em; }
.ac-mot { white-space: nowrap; }
.ac-mot b { font-weight: 700; }
.ac-mot i { display: inline-block; width: .5em; height: .9em; margin: 0 .07em; border-bottom: .45mm solid #111; vertical-align: baseline; }
.ac-point { width: 5.5mm; height: 5.5mm; border-radius: 50%; background: #111; flex: none; }
.ac-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; flex: 1; }
.ac-liste li { display: flex; gap: 2mm; font-size: 18pt; line-height: 1.5; }
.ac-rang { display: flex; align-items: baseline; gap: 2.5mm; min-height: 10.5mm; }
.ac-texte { flex: 1; }
.ac-ligne { flex: 1; min-width: 30mm; border-bottom: .45mm dotted #333; align-self: stretch; margin-bottom: 1.6mm; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 13.5pt; }
.ac-table td { padding: 1.55mm 2mm; border-bottom: .25mm solid #ccc; vertical-align: top; }
.ac-table td.ac-num { width: 9mm; }
.ac-solutions { gap: 4mm; font-size: 12.5pt; }
.ac-solutions ol { list-style: none; margin: 0 0 3mm; padding: 0; columns: 1; }
.ac-solutions li { margin-bottom: 1.2mm; }
.ac-solutions h3 { font-size: 14pt; margin: 0 0 1.5mm; color: #1e5b53; }

/* ---------- Mots mêlés ---------- */
.mm-grille text { font: 700 6.3px 'Atkinson Hyperlegible', Verdana, sans-serif; text-anchor: middle; dominant-baseline: central; fill: #111; }
.mm__grille { margin: 0 auto; }
.mm--facile .mm__grille { width: 126mm; }
.mm--moyen .mm__grille { width: 162mm; }
.mm--confirme .mm__grille { width: 152mm; }
.mm__grille svg { display: block; width: 100%; height: auto; }
.mm__mots { margin-top: 6mm; }
.mm-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm 6mm; font-weight: 700; }
.mm--facile .mm-liste { font-size: 17pt; grid-template-columns: repeat(4, 1fr); }
.mm--moyen .mm-liste { font-size: 14pt; grid-template-columns: repeat(4, 1fr); gap: 1.5mm 5mm; }
.mm--confirme .mm-liste { font-size: 13pt; grid-template-columns: repeat(4, 1fr); gap: 1.2mm 5mm; }
.mm-liste li { padding-left: 1.05em; position: relative; }
.mm-liste li::before { content: ''; position: absolute; left: 0; top: .3em; width: .62em; height: .62em; border: .45mm solid #111; border-radius: .12em; }
.mm-mystere { font-size: 13pt; margin: 5mm 0 2mm; }
.mm-mystere__cases { display: flex; flex-wrap: nowrap; gap: 1.2mm; align-items: center; margin: 0; }
.mm-mystere__case { width: 8.6mm; height: 10mm; border: .5mm solid #111; border-radius: 1.2mm; display: inline-block; }
.mm-mystere__sep { margin: 0 2mm; font-size: 13pt; }
.mm-solutions__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm 8mm; align-content: start; }
.mm-solution__titre { font-weight: 700; font-size: 12pt; margin: 0 0 1.5mm; }
.mm-solution svg { width: 100%; height: auto; display: block; }
.mm-solution__mystere { font-size: 11.5pt; margin: 1.5mm 0 0; font-weight: 700; }
.mm-perso textarea { margin-top: .4rem; }
.mm-manques { background: #fff6e0; border: 1px solid #ecd28f; border-radius: 10px; padding: .6rem .8rem; font-size: .98rem; }

/* ---------- Sudoku ---------- */
.sdk-grille text { font: 700 6.6px 'Atkinson Hyperlegible', Verdana, sans-serif; text-anchor: middle; dominant-baseline: central; fill: #111; }
.sdk-grille text.sdk-rempli { fill: #8a8a8a; font-weight: 400; }
.sdk__grille { margin: 2mm auto 0; }
.sdk__grille svg, .sdk-solution svg { display: block; width: 100%; height: auto; }
.sdk__chiffres { margin: auto 0 0; display: flex; align-items: center; justify-content: center; gap: 3mm; font-size: 13pt; flex-wrap: wrap; }
.sdk__chiffres span { width: 11mm; height: 11mm; border: .4mm solid #111; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 16pt; }
.sdk--9 .sdk__chiffres span { width: 9mm; height: 9mm; font-size: 13pt; }
.sdk-solutions__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm 10mm; align-content: start; }
.sdk-solution__titre { font-weight: 700; font-size: 12pt; margin: 0 0 1.5mm; }

/* ---------- Loto ---------- */
.loto__cartons { justify-content: space-around; gap: 6mm; }
.loto-carton { border: 1mm solid #111; border-radius: 3mm; padding: 2.5mm 3mm 3mm; }
.loto-carton__tete { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 2mm; font-size: 12pt; }
.loto-carton__tete span:first-child { font-family: var(--titre); font-weight: 700; font-size: 17pt; color: #1e5b53; }
.loto-carton__grille { width: 100%; border-collapse: collapse; table-layout: fixed; }
.loto-carton__grille td { border: .5mm solid #111; text-align: center; vertical-align: middle; font-weight: 700; color: #111; }
.loto-carton--classique td { height: 22mm; font-size: 27pt; }
.loto-carton--petit td { height: 30mm; font-size: 40pt; }
.loto-carton__grille td.vide { background: #e4e4e4; }
.loto-controle__grille { width: 100%; border-collapse: collapse; table-layout: fixed; }
.loto-controle__grille td { border: .4mm solid #111; text-align: center; font-weight: 700; font-size: 20pt; height: 24mm; }
.loto-controle__grille--petit td { height: 36mm; font-size: 26pt; }
.loto-controle__note { font-size: 12pt; margin: 5mm 0 0; }
.loto-decouper__grille { display: grid; grid-template-columns: repeat(6, 1fr); flex: 1; }
.loto-decouper__grille span { border: .3mm dashed #777; display: grid; place-items: center; font-weight: 700; font-size: 22pt; }
.loto-decouper__grille--petit { grid-template-columns: repeat(5, 1fr); }
.loto-decouper__grille--petit span { font-size: 30pt; }

/* Chiffres : Lexend, dont le zéro n'est pas barré (celui d'Atkinson l'est, ce qui trouble la lecture d'un numéro). */
.loto-carton__grille td, .loto-controle__grille td, .loto-decouper__grille span, .sdk__chiffres span, .quiz__num, .ac-num, .quiz-solutions__corps b, .ac-solutions b { font-family: 'Lexend', Verdana, sans-serif; font-weight: 700; }
.sdk-grille text { font-family: 'Lexend', Verdana, sans-serif; font-weight: 700; }
.sdk-grille text.sdk-rempli { font-weight: 500; }

/* ---------- Quiz (devinettes, métiers, chansons) ---------- */
.quiz__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; flex: 1; }
.quiz__liste > li { break-inside: avoid; }
.quiz__q { font-size: 16pt; line-height: 1.3; margin: 0 0 2.5mm; display: flex; gap: 3mm; }
.quiz__num { font-weight: 700; color: #1e5b53; flex: none; min-width: 7mm; }
.quiz__choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin: 0 0 0 10mm; font-size: 14.5pt; }
.quiz__choix span { display: flex; align-items: center; gap: 2.5mm; }
.quiz__choix b { flex: none; width: 8.5mm; height: 8.5mm; border: .45mm solid #111; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12pt; }
.quiz__ligne { margin: 3mm 0 0 10mm; border-bottom: .45mm dotted #333; height: 9mm; }
.quiz__table { width: 100%; border-collapse: collapse; font-size: 13pt; }
.quiz__table th { text-align: left; font-size: 11pt; color: #1e5b53; border-bottom: .5mm solid #1e5b53; padding: 1.5mm 2mm; }
.quiz__table td { padding: 2.2mm 2mm; border-bottom: .25mm solid #ccc; vertical-align: top; }
.quiz__table td.quiz__num { width: 8mm; }
.quiz__table td:last-child { width: 34%; }
.quiz-solutions__corps { font-size: 13pt; gap: 4mm; }
.quiz-solutions__corps ol { list-style: none; padding: 0; margin: 0 0 3mm; columns: 2; column-gap: 10mm; }
.quiz-solutions__corps li { margin-bottom: 1.5mm; break-inside: avoid; }
.quiz-solutions__corps h3 { font-size: 13pt; color: #1e5b53; margin: 0 0 1.5mm; }

/* ---------- Petit bac ---------- */
.pb__grille { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.pb__grille th { font-size: 13pt; font-weight: 700; background: #eef3f1; border: .5mm solid #111; padding: 2mm; text-align: center; line-height: 1.2; height: 15mm; }
.pb__grille td { border: .5mm solid #111; }
.pb__grille .pb__lettre { width: 22mm; text-align: center; font-family: var(--titre); font-weight: 700; font-size: 30pt; color: #111; background: #fff; }
.pb__grille thead .pb__lettre { font-family: var(--texte); font-size: 11pt; background: #eef3f1; }
.pb__grille .pb__points { width: 20mm; font-size: 11pt; }

/* ---------- Mandalas ---------- */
.mdl-feuille__corps { align-items: center; justify-content: center; }
.mdl-feuille__corps svg { width: 182mm; height: 182mm; display: block; }

/* ---------- Dictons ---------- */
.dct-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; flex: 1; counter-reset: dct; }
.dct-liste li { counter-increment: dct; display: flex; gap: 4mm; font-size: 17pt; line-height: 1.35; padding: 2.4mm 0; border-bottom: .25mm solid #ddd; }
.dct-liste li:last-child { border-bottom: 0; }
.dct-liste li::before { content: counter(dct); font-family: 'Lexend', Verdana, sans-serif; font-weight: 700; color: #1e5b53; min-width: 9mm; flex: none; }
.dct-liste strong { font-weight: 700; }
.insec { white-space: nowrap; }
.reglages__ligne .champ[type="date"] { width: 11rem; }

/* ---------- Gazette du jour ---------- */
.gz-une { text-align: center; border-bottom: 1.2mm double #1e5b53; border-bottom-width: 2mm; padding-bottom: 3mm; margin-bottom: 4.5mm; }
.gz-une__titre { font-family: var(--titre); font-weight: 700; font-size: 34pt; line-height: 1; margin: 0; color: #1e5b53; letter-spacing: -.01em; }
.gz-une__date { font-family: var(--titre); font-weight: 700; font-size: 22pt; margin: 2.5mm 0 1mm; color: #111; }
.gz-une__info { font-size: 12pt; margin: 0; color: #333; }
.gz-une__info sup { font-size: .7em; }
.gz-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; flex: 1; align-content: stretch; }
.gz-bloc { border: .35mm solid #bbb; border-radius: 2.5mm; padding: 2.6mm 3.5mm; display: flex; flex-direction: column; gap: 1.2mm; break-inside: avoid; }
.gz-bloc--large { grid-column: 1 / -1; }
.gz-bloc--dicton { background: #f4efe4; border-color: #e3d9c3; }
.gz-bloc__titre { font-size: 10.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #b04a22; margin: 0; }
.gz-bloc__note, .gz-bloc__aide { font-size: 11pt; color: #444; margin: 0; }
.gz-texte { font-size: 14.5pt; line-height: 1.35; margin: 0; }
.gz-citation { font-family: var(--titre); font-size: 17pt; line-height: 1.3; margin: 0; text-align: center; }
.gz-trou { display: inline-block; width: 40mm; border-bottom: .4mm dotted #333; }
.gz-meteo { display: flex; justify-content: space-around; }
.gz-meteo span { display: flex; flex-direction: column; align-items: center; font-size: 11.5pt; gap: 1mm; }
.gz-meteo svg { width: 15mm; height: 15mm; }
.gz-lignes { display: grid; grid-template-columns: auto 1fr; gap: 3mm 3mm; align-items: end; font-size: 12.5pt; font-weight: 700; }
.gz-lignes i { border-bottom: .35mm solid #555; height: 6mm; }
.gz-reponses { font-size: 9.5pt; color: #444; margin: 3mm 0 0; border-top: .3mm dashed #888; padding-top: 1.5mm; transform: rotate(180deg); text-align: right; }
.gz-reponses b { color: #111; margin-right: 1.5mm; }

/* ---------- Planning d'animation ---------- */
.pl .feuille__titre:empty::before, .pl-lieu:empty::before, .pl-champ:empty::before { color: #999; font-weight: 400; }
.pl-lieu { font-family: var(--titre); font-weight: 700; font-size: 16pt; min-width: 70mm; text-align: right; border-bottom: .35mm solid #222; min-height: 9mm; }
.pl-lieu:empty::before { content: "Nom de l'établissement"; font-size: 12pt; font-family: 'Atkinson Hyperlegible', sans-serif; }
.pl-champ { display: inline-block; min-width: 45mm; border-bottom: .35mm solid #222; min-height: 6mm; }
.pl-grille { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; flex: 1; }
.pl-grille th, .pl-grille td { border: .4mm solid #1e5b53; }
.pl-grille thead th { background: #1e5b53; color: #fff; font-size: 15pt; padding: 2mm 1mm; font-weight: 700; }
.pl-grille .pl-coin { width: 27mm; background: #fff; border-top-color: #fff; border-left-color: #fff; }
.pl-grille tbody th { font-size: 13pt; background: #f4efe4; color: #1e5b53; padding: 1mm 2mm; text-align: left; }
.pl-grille td { vertical-align: top; padding: 2mm 2.2mm; font-size: 13.5pt; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; }
.pl-grille--5 td { font-size: 15pt; }
.pl-grille td:focus, .pl [contenteditable]:focus { outline: .6mm solid #f2b33d; outline-offset: -.6mm; background: #fffbea; }
.pl-idees__titre { margin-top: 1.1rem; }
.pl-idees { display: flex; flex-wrap: wrap; gap: .4rem; }
.pl-idee { font: inherit; font-size: .92rem; padding: .35rem .65rem; border-radius: 999px; border: 1px solid var(--ligne); background: var(--fond, #fff); cursor: pointer; }
.pl-idee:hover { border-color: var(--vert); color: var(--vert-fonce); }
@media print { .pl-grille td:focus, .pl [contenteditable]:focus { outline: 0; background: none; } .pl-lieu:empty::before, .pl-champ:empty::before { content: ""; } }
.tableau-defile { overflow-x: auto; }
.pl-ligne--2 { height: 50%; }
.pl-ligne--3 { height: 33.3%; }
.pl-grille tbody th { white-space: nowrap; }
.pl-grille .pl-coin { width: 31mm; }

/* ---------- Calendrier des fêtes ---------- */
.cal-table { width: 100%; border-collapse: collapse; }
.cal-table td { border-bottom: .3mm solid #ccc; padding: 3.4mm 2mm; vertical-align: top; font-size: 14pt; line-height: 1.32; }
.cal-table strong { display: block; font-size: 16.5pt; color: #111; }
.cal-idee { display: block; color: #333; margin-top: .6mm; }
.cal-date { width: 26mm; text-align: center; }
.cal-date b { display: block; font-family: 'Lexend', Verdana, sans-serif; font-size: 24pt; line-height: 1; color: #1e5b53; }
.cal-date span { font-size: 10.5pt; color: #444; }
.cal-saison { font-size: 10.5pt; font-weight: 700; color: #b04a22; }
.cal-notes { flex: 1; display: flex; flex-direction: column; padding-top: 6mm; min-height: 30mm; }
.cal-notes p { font-weight: 700; font-size: 12.5pt; margin: 0 0 1mm; color: #1e5b53; }
.cal-notes i { display: block; flex: 1; max-height: 12mm; border-bottom: .35mm solid #666; }

.feuille__pied span:first-child { font-family: 'Lexend', Verdana, sans-serif; }

/* ---------- Guides : liste d'idées filtrable ---------- */
.filtres { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.1rem 1.2rem .6rem; margin: 1rem 0 1.2rem; }
.filtres fieldset { border: 0; margin: 0 0 .8rem; padding: 0; min-width: 0; }
.filtres legend { font-weight: 700; margin-bottom: .45rem; padding: 0; }
.filtres__compte { font-weight: 700; color: var(--vert-fonce); margin: 0 0 .4rem; }
.idees { list-style: none; padding: 0 !important; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.idee { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1.1rem 1.1rem; margin: 0 !important; display: flex; flex-direction: column; gap: .4rem; }
.idee[hidden] { display: none; }
.idee p { margin: 0; }
.idee__type { font-size: .85rem; font-weight: 700; color: var(--terre); text-transform: uppercase; letter-spacing: .04em; }
.idee__nom { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--vert-fonce); }
.idee__nom a { color: inherit; }
.idee__texte { font-size: 1.05rem; }
.idee__materiel { font-size: .95rem; color: var(--doux); }
.idee__materiel b { color: var(--encre); margin-right: .3rem; }
.idee__publics { display: flex; flex-wrap: wrap; gap: .3rem; }
.idee__publics span { font-size: .82rem; background: var(--vert-clair); color: var(--vert-fonce); border-radius: 999px; padding: .15rem .55rem; }
.idee__lien { margin-top: auto; font-weight: 700; padding-top: .3rem; }

/* ---------- Atelier mémoire : déroulé ---------- */
.am-corps { gap: 3.2mm; }
.am-temps { border-left: 1.2mm solid #1e5b53; padding: .5mm 0 .5mm 4mm; }
.am-temps p { margin: 0 0 1.5mm; font-size: 12pt; line-height: 1.35; }
.am-temps__titre { font-family: var(--titre); font-weight: 700; font-size: 15.5pt !important; color: #111; display: flex; align-items: baseline; gap: 2.5mm; }
.am-temps__titre b { font-family: 'Lexend', Verdana, sans-serif; color: #fff; background: #1e5b53; border-radius: 50%; width: 7mm; height: 7mm; display: inline-grid; place-items: center; font-size: 11.5pt; flex: none; }
.am-temps__titre span { font-family: 'Lexend', Verdana, sans-serif; font-weight: 400; font-size: 10.5pt; color: #b04a22; margin-left: auto; }
.am-question { font-family: var(--titre); font-size: 14pt !important; background: #f4efe4; border-radius: 2mm; padding: 2mm 3mm; }
.am-question--petite { font-size: 11.5pt !important; margin-top: 2mm !important; }
.am-table { width: 100%; border-collapse: collapse; font-size: 11.5pt; }
.am-table td { border-bottom: .25mm solid #ddd; padding: 1.3mm 1.5mm; vertical-align: top; line-height: 1.3; }
.am-table--2 td, .am-table--2 td:last-child:not(:first-child) { width: 50%; }
.am-num { width: 6mm; font-family: 'Lexend', Verdana, sans-serif; font-weight: 700; color: #1e5b53; }
.am-table td:last-child:not(:first-child) { width: 34%; }

/* ---------- Fiche « Ce que j'aime » ---------- */
.cqja-corps { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 6mm; align-content: stretch; }
.cqja-bloc { display: flex; flex-direction: column; border-top: .8mm solid #1e5b53; padding-top: 1.8mm; }
.cqja-bloc--large { grid-column: 1 / -1; }
.cqja-bloc__titre { font-family: var(--titre); font-weight: 700; font-size: 14.5pt; margin: 0; color: #111; }
.cqja-bloc__aide { font-size: 10.5pt; color: #555; margin: .6mm 0 0; }
.cqja-bloc i { display: block; flex: 1; min-height: 8mm; border-bottom: .3mm solid #888; }

/* ---------- Carnet des visites ---------- */
.cv-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.cv-table th { background: #1e5b53; color: #fff; font-size: 12pt; text-align: left; padding: 2mm 2.5mm; border: .35mm solid #1e5b53; }
.cv-table td { border: .35mm solid #1e5b53; vertical-align: middle; }
.cv-table--6 tbody tr { height: 16.66%; }
.cv-table--8 tbody tr { height: 12.5%; }
.cv-date { width: 24mm; }
.cv-qui { width: 42mm; }
.cv-humeur { width: 30mm; text-align: center !important; }
.cv-visages { display: flex; justify-content: center; gap: 1.5mm; }
.cv-visages svg { width: 8.5mm; height: 8.5mm; }

/* ---------- Calendrier de l'Avent ---------- */
.avent-grille { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 2.6mm; flex: 1; }
.avent-case { border: .5mm solid #1e5b53; border-radius: 2.5mm; padding: 2mm 2.6mm; display: flex; flex-direction: column; gap: 1.2mm; }
.avent-case--24 { background: #f4efe4; border-color: #b04a22; }
.avent-case__num { display: flex; align-items: baseline; justify-content: space-between; margin: 0; }
.avent-case__num b { font-family: "Lexend", Verdana, sans-serif; font-size: 22pt; line-height: 1; color: #b04a22; }
.avent-case__num span { font-size: 9.5pt; color: #555; }
.avent-case__texte { font-size: 13pt; line-height: 1.22; margin: 0; }
.avent-case i { display: block; flex: 1; border-bottom: .3mm solid #999; }

/* ---------- Accueil : vignettes des feuilles ---------- */
.section__intro { font-size: 1.15rem; color: var(--doux); margin: .2rem 0 0; }
.tuile__image { place-items: end center; padding-top: 1.1rem; }
.tuile__image img { width: auto; height: 100%; max-width: 86%; object-fit: cover; object-position: top; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 10px 26px rgba(0,0,0,.12); border-radius: 4px 4px 0 0; transition: transform .2s; }
.tuile:hover .tuile__image img { transform: translateY(-4px); }

/* Très petits écrans : le logo laisse la place au bouton du menu */
@media (max-width: 400px) {
  .logo img { height: 38px; }
}
