/* Polices hébergées sur le site (aucun appel à Google Fonts) */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/lora.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/lora-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
/* Identité : celle du logo. Blanc lumineux, vert forêt, orange tronc.
   Lora pour les titres (comme « La Lisière »), Poppins pour le texte (comme « GRANDIR DEHORS »). Thème clair unique, assumé. */
:root {
  --bg: #FFFFFF;
  --surface: #F6F8F4;
  --ink: #26362D;
  --muted: #5A6A60;
  --line: #DCE3DB;
  --band: #394F42;      /* vert du logo */
  --on-band: #FFFFFF;
  --fern: #AD571F;      /* orange du logo, assombri pour la lisibilité : liens, boutons */
  --on-fern: #FFFFFF;
  --orange: #9A491C;    /* orange exact du logo : titres */
  --sun: #F0B282;       /* orange clair, sur fond vert */
  --bark: #394F42;
  --poppy: #B66027;     /* orange du logo (puces) */
  --todo-bg: #FFF1BF;
  --todo-ink: #5E4300;
  --trees: #394F42;

  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Poppins", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.22rem;
  --step-2: 1.6rem;
  --step-3: 2.15rem;
  --step-4: clamp(2.4rem, 5.4vw, 3.7rem);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--fern); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 500; color: var(--orange); }
h2 { font-size: var(--step-3); font-weight: 500; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose { max-width: 68ch; }

.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5em 1em; z-index: 50; }
.skip:focus { left: 16px; }

/* Bandeau maquette */
.maquette-bar { background: var(--todo-bg); color: var(--todo-ink); font-size: var(--step--1); }
.maquette-bar .wrap { padding-block: .45rem; }

/* En-tête */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--orange); font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.logo img { height: 46px; width: auto; flex: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-family: var(--body); font-weight: 400; font-size: .6rem; color: var(--band); letter-spacing: .3em; text-transform: uppercase; margin-top: .2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .97rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.nav .btn { padding: .45rem .95rem; border-bottom: 0; }
.menu { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: .45rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav { display: block; position: absolute; right: 0; top: calc(100% + .5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem; width: min(78vw, 300px); box-shadow: 0 12px 30px rgb(0 0 0 / .15); }
  .menu[open] .nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .menu[open] .nav a { display: block; padding: .5rem 0; }
}

/* Ligne d'arbres : la lisière */
.lisiere { display: block; width: 100%; height: 46px; color: var(--trees); }

/* Boutons */
.btn { display: inline-block; letter-spacing: .01em; background: var(--fern); color: var(--on-fern); text-decoration: none; font-weight: 700; padding: .7rem 1.25rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 62ch; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .28em; font-weight: 500; color: var(--band); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.band { background: var(--band); color: var(--on-band); }
.band a:not(.btn) { color: var(--on-band); }
.band h1, .band h2 { color: var(--on-band); }
.poppy { color: var(--poppy); }
.hero-logo { display: block; width: min(100%, 420px); margin-inline: auto; }
.hand { font-family: var(--display); font-style: italic; font-size: var(--step-1); color: var(--orange); }
.band .eyebrow { color: var(--sun); }
.band .lead { color: var(--on-band); opacity: .85; }

/* Hero accueil */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--band); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .3rem .85rem; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

/* Page intérieure */
.page-head { padding-block: clamp(1.8rem, 5vw, 3.2rem) 1rem; }
.page-head h1 { margin: .4rem 0 .9rem; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { color: var(--muted); }

/* Grilles */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Cartes d'activité (liens) */
.pillar { display: flex; flex-direction: column; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.pillar:hover { transform: translateY(-3px); border-color: var(--fern); }
.pillar .who { font-size: .72rem; color: var(--sun); font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.pillar p { color: var(--muted); font-size: .98rem; }
.pillar .more { margin-top: auto; color: var(--fern); font-weight: 700; }
.band .pillar { background: transparent; border-color: rgb(255 255 255 / .22); color: var(--on-band); }
.band .pillar p { color: var(--on-band); opacity: .85; }

/* Emplacement dessin d'enfant */
.dessin { color: var(--orange); margin: 0; display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 3; max-width: 100%; border: 2px dashed var(--orange); border-radius: 26px 8px 26px 8px; background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--sun) 12%, transparent) 12px 24px); padding: 1rem; }
.dessin svg { width: 46px; height: 46px; margin-bottom: .3rem; }
.dessin figcaption { font-size: var(--step--1); line-height: 1.4; }
.dessin strong { display: block; font-family: var(--display); font-size: 1.02rem; }
.dessin.small { aspect-ratio: 1 / 1; }
.dessin.wide { aspect-ratio: 16 / 7; }

/* Chiffres clés */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.keys div { border-top: 3px solid var(--sun); padding-top: .7rem; }
.keys dt { font-family: var(--display); color: var(--orange); font-size: var(--step-3); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.keys dd { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.band .keys dt { color: var(--sun); }
.band .keys dd { color: var(--on-band); opacity: .85; }
@media (max-width: 760px) { .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Journée type */
.day { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.day li { border-left: 3px solid var(--sun); padding: .2rem 0 .2rem .75rem; }
.day time { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.day span { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .day { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Groupes d'âge */
.groupe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .4rem; }
.groupe .age { font-variant-numeric: tabular-nums; color: var(--fern); font-weight: 600; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 600; background: color-mix(in srgb, var(--fern) 8%, var(--surface)); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Listes à puces feuille */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check li { padding-left: 1.6rem; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--poppy); }
.band .check li::before { background: var(--sun); }

/* Encadré */
.note { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: .6rem; }
.note h3 { font-size: 1.1rem; }

/* Champs à compléter */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: .05em .35em; border-radius: 4px; font-weight: 700; font-size: .95em; }

/* Calendrier */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: t; }
.timeline li { border-top: 3px solid rgb(255 255 255 / .3); padding-top: .8rem; }
.timeline li.now { border-top-color: var(--sun); }
.timeline strong { display: block; font-family: var(--display); font-size: 1.15rem; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* Blog */
.post { display: grid; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.post .meta { font-size: var(--step--1); color: var(--muted); }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--fern); }
.article-head .meta { color: var(--muted); font-size: var(--step--1); }
.sources { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }

/* Formulaires */
form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .97rem; }
.field .hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .8rem; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--fern); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fern) 25%, transparent); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.consent input { width: auto; margin-top: .3rem; }
.form-msg { background: var(--todo-bg); color: var(--todo-ink); padding: .8rem 1rem; border-radius: 10px; }
.hp { position: absolute; left: -5000px; }

/* Pied de page */
.site-footer { background: var(--band); color: var(--on-band); margin-top: 0; }
.site-footer a { color: var(--on-band); }
.site-footer .lisiere { color: var(--band); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-size: 1rem; margin-bottom: .7rem; color: var(--sun); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.footer-grid p { font-size: .95rem; opacity: .9; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .18); padding-block: 1rem 1.5rem; font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; opacity: .9; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.band .pillar .more { color: var(--sun); }
/* Plan du site */
.sitemap-list { columns: 2 280px; column-gap: 2rem; }
.sitemap-list > li { break-inside: avoid; margin-bottom: 1rem; }

.stack { display: grid; gap: 1.25rem; }
.mt { margin-top: 2rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.band .pillar .more { color: var(--sun); }

.site-footer .logo { color: var(--on-band); }
.footer-grid h2 { font-family: var(--body); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; }
h3 { font-weight: 600; }
th { background: var(--surface); }
.note, .groupe, .post { background: var(--surface); border-color: transparent; }
.band .note { background: var(--bg); }
input, select, textarea { background: var(--bg); }
.keys dt { font-size: var(--step-2); font-variant-numeric: normal; white-space: nowrap; }

/* Je veux me former : compteur */
.session { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: var(--surface); border-radius: 26px 8px 26px 8px; padding: clamp(1.3rem, 4vw, 2.5rem); }
.session > * { min-width: 0; }
@media (max-width: 820px) { .session { grid-template-columns: 1fr; } }
.compteur { display: grid; gap: .8rem; background: var(--bg); border-radius: var(--radius); padding: 1.4rem; justify-items: start; }
.compteur form { width: 100%; }
.pips { display: flex; flex-wrap: wrap; gap: .45rem; }
.pips span { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px dashed var(--orange); }
.pips span.on { background: var(--band); border: 2px solid var(--band); }
.compteur-txt { font-size: 1.05rem; }
.compteur-txt strong { font-family: var(--display); font-size: var(--step-3); color: var(--orange); font-weight: 600; margin-right: .2rem; }

/* v3 : arbres du logo, chiffres sur 3 colonnes, calendrier souple */
.lisiere { height: 150px; color: var(--trees); border-bottom: 3px solid var(--band); margin-bottom: -1px; }
.site-footer .lisiere { background: var(--bg); color: var(--trees); }
.keys.keys-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
.keys dd strong { color: var(--ink); }
@media (max-width: 760px) { .keys.keys-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .keys.keys-3 { grid-template-columns: 1fr; } }
.timeline { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 620px) { .lisiere { height: 110px; } }
/* v4 : bande d'arbres discrète */
.lisiere { height: 54px; border-bottom: 0; }
@media (max-width: 620px) { .lisiere { height: 54px; } }

/* ADN de La Lisière : valeurs et histoire-signature (11/11/2026) */
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-5 { grid-template-columns: 1fr; } }
.valeur { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .45rem; align-content: start; }
.valeur .num { font-family: var(--display); color: var(--orange); font-size: 1.5rem; line-height: 1; }
.valeur h3 { font-size: 1.08rem; }
.valeur p { color: var(--muted); font-size: .95rem; }
.valeur .preuve { font-style: italic; color: var(--fern); font-size: .9rem; }
.recit { border-left: 4px solid var(--orange); background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; display: grid; gap: .7rem; }
.recit p { font-size: 1.02rem; }
.recit .hand { margin: 0; }

/* === Charte Canva (11/11/2026) : palette complète du logo, registres par public, éléments graphiques de la page 13 === */
:root {
  --surface: #F8F3EA;      /* crème clair */
  --line: #EADFCB;
  --sun: #E8CBA1;          /* crème du logo, sur fond vert */
  --sage: #5F7F67;
  --apricot: #D58E50;
  --cream: #E8CBA1;
  --bordeaux: #4C1A17;
  --bark-grey: #796E68;
}
:focus-visible { outline-color: var(--apricot); }
.keys div { border-top-color: var(--apricot); }
.day li { border-left-color: var(--apricot); }
.band .keys div { border-top-color: var(--cream); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--apricot); }

/* La lisière : les arbres et les figurines du logo */
.lisiere { height: 96px; background: url(deco/bandeau.webp) repeat-x center bottom / auto 100%; border-bottom: 0; margin-bottom: -1px; }
.site-footer .lisiere { background: var(--bg) url(deco/bandeau.webp) repeat-x center bottom / auto 100%; }
@media (max-width: 620px) { .lisiere { height: 68px; } }

/* Petite feuille devant les surtitres */
.section-head .eyebrow::before, .page-head .eyebrow::before { content: ""; display: inline-block; width: .8em; height: 1.25em; margin-right: .6em; vertical-align: -.3em; background: url(deco/feuille-1.webp) center / contain no-repeat; transform: rotate(18deg); }
.band .section-head .eyebrow::before { background-image: url(deco/feuille-3.webp); }

/* Puces en feuille */
.check li::before { width: .8rem; height: 1.2rem; top: .28em; border-radius: 0; background: url(deco/feuille-3.webp) center / contain no-repeat; transform: rotate(-20deg); }
.check li:nth-child(3n+2)::before { background-image: url(deco/feuille-4.webp); transform: rotate(14deg); }
.check li:nth-child(3n)::before { background-image: url(deco/feuille-1.webp); transform: rotate(-8deg); }
.band .check li::before { background: url(deco/feuille-3.webp) center / contain no-repeat; }
.band .check li:nth-child(3n+2)::before { background-image: url(deco/feuille-5.webp); }
.band .check li:nth-child(3n)::before { background-image: url(deco/feuille-1.webp); }

/* Accueil : feuilles qui dansent autour du logo */
.hero { position: relative; overflow: clip; }
.hero-art { position: relative; }
.leaf { position: absolute; width: 34px; aspect-ratio: 3 / 5; background: center / contain no-repeat; pointer-events: none; animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
.leaf.l1 { background-image: url(deco/feuille-3.webp); left: 2%; top: 6%; --r: -24deg; }
.leaf.l2 { background-image: url(deco/feuille-1.webp); right: 4%; top: 2%; width: 28px; --r: 30deg; animation-delay: -1.5s; }
.leaf.l3 { background-image: url(deco/feuille-4.webp); left: -3%; top: 52%; width: 24px; --r: 40deg; animation-delay: -3s; }
.leaf.l4 { background-image: url(deco/feuille-2.webp); right: 0; top: 40%; width: 30px; --r: -38deg; animation-delay: -4.2s; }
.leaf.l5 { background-image: url(deco/feuille-5.webp); right: -2%; top: 74%; width: 22px; --r: 12deg; animation-delay: -2.4s; }
@keyframes sway { 0%, 100% { transform: rotate(calc(var(--r, 0deg) - 7deg)) translateY(0); } 50% { transform: rotate(calc(var(--r, 0deg) + 7deg)) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .leaf { animation: none; transform: rotate(var(--r, 0deg)); } }
@media (max-width: 820px) { .hero-logo { width: min(74%, 300px); } }

/* Bandes vertes : semis de feuilles */
.band { position: relative; isolation: isolate; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(deco/confettis.webp) right -40px top -20px / 720px auto no-repeat; opacity: .22; pointer-events: none; }
.reg-sobre .band::after { display: none; }

/* Cartes des publics : les figurines */
.pillar { position: relative; }
.pillar-fig { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin-bottom: .3rem; align-self: flex-start; background: var(--surface); border-radius: 18px 6px 0 0; padding: 10px 14px 0; border-bottom: 3px solid var(--apricot); }
.pillar-fig img { height: 100%; width: auto; transition: transform .25s ease; transform-origin: 50% 100%; }
.pillar-fig img + img { height: 62%; }
.pillar-fig img:only-child { height: 100%; }
.pillar:hover .pillar-fig img { transform: translateY(-4px) rotate(-3deg); }
.pillar:hover .pillar-fig img + img { transform: translateY(-6px) rotate(4deg); transition-delay: .06s; }
.band .pillar { background: rgb(255 255 255 / .06); }
@media (prefers-reduced-motion: reduce) { .pillar:hover .pillar-fig img { transform: none; } }

/* Groupes d'âge : on grandit */
.groupe { position: relative; padding-top: 1.4rem; }
.groupe-fig { display: flex; align-items: flex-end; gap: 3px; height: 74px; }
.groupe-fig img { width: auto; }
.groupe-fig.s img { height: 58%; }
.groupe-fig.m img { height: 78%; }
.groupe-fig.l img { height: 100%; }
.groupe-fig.l img:first-child { height: 86%; }

/* Valeurs : numéro posé sur une feuille */
.valeur .num { display: grid; place-items: center; width: 2.6rem; height: 3.2rem; color: #fff; font-size: 1.15rem; font-weight: 600; background: url(deco/feuille-3.webp) center / contain no-repeat; padding-top: .1rem; }
.valeur:nth-child(5n+2) .num { background-image: url(deco/feuille-4.webp); }
.valeur:nth-child(5n+3) .num { background-image: url(deco/feuille-2.webp); }
.valeur:nth-child(5n+4) .num { background-image: url(deco/feuille-3.webp); transform: rotate(8deg); }
.valeur:nth-child(5n) .num { background-image: url(deco/feuille-4.webp); transform: rotate(-8deg); }

/* Calendrier : une feuille par étape */
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; top: -15px; left: 0; width: 15px; height: 24px; background: url(deco/feuille-5.webp) center / contain no-repeat; transform: rotate(-30deg); }
.timeline li.now::before { background-image: url(deco/feuille-3.webp); width: 18px; height: 28px; top: -18px; }

/* Encadrés et cartes : coin arrondi « feuille » de la charte */
.note, .recit, .post, .groupe, .valeur { border-radius: 22px 8px 22px 8px; }
.recit { border-left-color: var(--apricot); }

/* En-têtes de page selon le public (charte : enfants et parents, joyeux ; institutions, sobre) */
.page-head .wrap { position: relative; }
.reg-familles .page-head .wrap::after, .reg-pros .page-head .wrap::after { content: ""; position: absolute; right: 16px; bottom: -6px; pointer-events: none; background: center bottom / contain no-repeat; }
.reg-familles .page-head .wrap::after { width: 230px; height: 150px; background-image: url(deco/famille.webp); }
.reg-pros .page-head .wrap::after { width: 150px; height: 180px; background-image: url(deco/arbres.webp); }
.reg-familles .page-head, .reg-pros .page-head { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--surface)); padding-bottom: 1.6rem; }
.reg-familles .page-head .lead, .reg-pros .page-head .lead, .reg-familles .page-head h1, .reg-pros .page-head h1 { max-width: min(58ch, calc(100% - 260px)); }
.reg-familles .page-head { position: relative; isolation: isolate; overflow: clip; }
.reg-familles .page-head::before { content: ""; position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: min(44%, 520px); background: url(deco/confettis.webp) left top / 640px auto no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(to left, #000 45%, transparent); mask-image: linear-gradient(to left, #000 45%, transparent); pointer-events: none; }
.band .day span { color: var(--on-band); opacity: .88; }
.band .day li { border-left-color: var(--cream); }
@media (max-width: 760px) {
  .reg-familles .page-head .wrap::after { width: 120px; height: 80px; right: 12px; }
  .reg-pros .page-head .wrap::after { width: 70px; height: 84px; right: 12px; }
  .reg-familles .page-head .lead, .reg-pros .page-head .lead, .reg-familles .page-head h1, .reg-pros .page-head h1 { max-width: none; }
  .reg-familles .page-head .wrap, .reg-pros .page-head .wrap { padding-bottom: 5.4rem; }
  .reg-familles .page-head .wrap::after, .reg-pros .page-head .wrap::after { bottom: 0; }
  .reg-familles .page-head::before { top: auto; height: 120px; width: 70%; opacity: .4; }
}

/* Pied de page */
.site-footer .logo small { color: var(--cream) !important; }

.patience { background: #F8F3EA; border-left: 4px solid #D58E50; border-radius: 0 .6rem .6rem 0; padding: .7rem 1rem; margin-top: .4rem; }
[hidden] { display: none !important; }
/* Bouton « Nous contacter » du menu : texte blanc, marges confortables */
.nav a.btn, .nav a.btn:hover, .nav a.btn[aria-current="page"] { color: var(--on-fern); padding: .5rem 1.2rem; border-bottom: 0; }
@media (max-width: 1040px) { .menu[open] .nav a.btn { display: block; padding: .65rem 1.2rem; margin-top: .5rem; text-align: center; } }

/* Illustration (petite enfance) */
.illustration { margin: 0; justify-self: center; max-width: 360px; width: 100%; }
.illustration img { display: block; width: 100%; height: auto; border-radius: 26px 8px 26px 8px; box-shadow: 0 10px 28px rgba(57,79,66,.14); }

/* Badges des groupes (animaux de la charte) */
.groupe-badge { display: block; height: 84px; }
.groupe-badge img { height: 100%; width: auto; display: block; }
.groupe { align-content: start; }

/* Blog : encart « bientôt » */
.bientot { max-width: 44rem; padding: 1.8rem 2rem; border-left: 5px solid var(--orange); }
.bientot h2 { font-size: var(--step-2, 1.6rem); }
