/* ==========================================================================
   Académie du compost — ReTerra
   Charte « Pleine mer » : océan, Amazonie, Sahara, sable, crème.
   Feuille autonome (aucune dépendance à Tailwind), mobile d'abord.
   ========================================================================== */
:root {
  --abysse: #072B42; --ocean: #0B3C5D; --ocean-vif: #1F6F9F; --ink: #0A2233; --ink-doux: #3A5163;
  --amazonie: #23764A; --amazonie-fonce: #1B5E3A; --clair: #6CC594; --menthe: #D8EEDF; --menthe-pale: #EEF7F1;
  --sable: #E9D8B4; --sahara: #E3B36A; --ocre: #8A5A24; --terre: #6A4618; --creme: #FAF6EC; --papier: #FFFFFF;
  --alerte: #B4472F; --alerte-pale: #FBE9E3;
  --trait: rgba(11, 60, 93, .10);
  --ombre-douce: 0 1px 2px rgba(7, 43, 66, .06), 0 8px 24px rgba(7, 43, 66, .07);
  --ombre-forte: 0 2px 4px rgba(7, 43, 66, .08), 0 18px 48px rgba(7, 43, 66, .16);
  --rayon: 22px; --rayon-petit: 14px;
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --largeur: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ac { margin: 0; background: var(--creme); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ac img, .ac svg { max-width: 100%; }
.ac-principal a:not([class]) { color: var(--ocean-vif); }
.ac :focus-visible { outline: 3px solid var(--sahara); outline-offset: 3px; border-radius: 6px; }
.ac-sr:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--sahara); color: var(--abysse); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-conteneur { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.ac-entete { position: sticky; top: 0; z-index: 40; background: linear-gradient(120deg, var(--abysse), var(--ocean)); color: #fff; box-shadow: 0 6px 20px rgba(7, 43, 66, .25); }
.ac-entete-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.ac-marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex: none; }
.ac-marque img { width: 44px; height: 44px; }
.ac-marque b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; line-height: 1.05; }
.ac-marque b span { color: var(--sahara); }
.ac-marque small { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clair); font-weight: 700; margin-top: 3px; }
.ac-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.ac-nav a { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .82); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.ac-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ac-nav a[aria-current="page"] { background: var(--sahara); color: var(--abysse); }
.ac-nav a .coche { width: 16px; height: 16px; border-radius: 50%; background: var(--clair); color: var(--abysse); font-size: 10px; font-weight: 900; display: none; align-items: center; justify-content: center; line-height: 1; }
.ac-nav a.fait .coche { display: inline-flex; }
.ac-chrono { flex: none; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.ac-menu-btn { display: none; margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; font-size: 20px; }
.ac-barre { height: 4px; background: rgba(255, 255, 255, .12); }
.ac-barre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amazonie), var(--clair), var(--sahara)); transition: width .5s ease; }

/* ---------- Bandeau de titre de page ---------- */
.ac-bandeau { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ocean) 0%, #124F73 55%, var(--amazonie-fonce) 130%); color: #fff; padding: 56px 0 84px; }
.ac-bandeau::before { content: ""; position: absolute; right: -80px; top: -90px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 197, 148, .28), transparent 66%); }
.ac-bandeau::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 52px; background: var(--creme); clip-path: ellipse(75% 100% at 50% 100%); }
.ac-bandeau-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.ac-etape { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sahara); }
.ac-etape::before { content: ""; width: 28px; height: 2px; background: var(--sahara); }
.ac-bandeau h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.02em; margin: 14px 0 12px; }
.ac-bandeau h1 em { font-style: italic; color: var(--clair); font-weight: 500; }
.ac-bandeau p { margin: 0; max-width: 620px; font-size: 1.12rem; color: rgba(255, 255, 255, .84); }
.ac-bandeau-art { width: 150px; height: 150px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .28)); }

/* ---------- Mise en page ---------- */
.ac-principal { padding: 8px 0 56px; margin-top: -26px; position: relative; z-index: 2; }
.ac-grille { display: grid; gap: 24px; }
.ac-g2 { grid-template-columns: repeat(2, 1fr); }
.ac-g3 { grid-template-columns: repeat(3, 1fr); }
.ac-g5-7 { grid-template-columns: 5fr 7fr; align-items: stretch; }
.ac-carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-douce); padding: 34px; }
.ac-carte--sombre { background: linear-gradient(150deg, var(--abysse), var(--ocean)); color: #fff; border: 0; box-shadow: var(--ombre-forte); }
.ac-carte--menthe { background: var(--menthe-pale); border-color: rgba(35, 118, 74, .18); }
.ac-titre-carte { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 14px; }
.ac-titre-carte em { color: var(--amazonie); font-style: italic; font-weight: 500; }
.ac-carte--sombre .ac-titre-carte em { color: var(--clair); }
.ac-puce-icone { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--menthe); color: var(--amazonie-fonce); }
.ac-puce-icone svg { width: 26px; height: 26px; }
.ac-citation { border-left: 5px solid var(--clair); background: var(--menthe-pale); padding: 16px 20px; border-radius: 0 14px 14px 0; font-weight: 600; color: var(--amazonie-fonce); margin: 0 0 22px; }
.ac-surtitre { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--amazonie); margin-bottom: 4px; }
.ac-section-titre { display: flex; align-items: center; gap: 16px; margin: 48px 0 22px; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; }
.ac-section-titre::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.ac-section-titre svg { color: var(--amazonie); width: 26px; height: 26px; }

/* ---------- Boutons ---------- */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 700 .86rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 17px 26px; border-radius: 14px; background: var(--ocean); color: #fff; box-shadow: 0 5px 0 var(--abysse); transition: transform .12s, box-shadow .12s, filter .15s; }
.ac-btn:hover { filter: brightness(1.12); }
.ac-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--abysse); }
.ac-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ac-btn--vert { background: var(--amazonie); box-shadow: 0 5px 0 var(--amazonie-fonce); }
.ac-btn--vert:active { box-shadow: 0 2px 0 var(--amazonie-fonce); }
.ac-btn--or { background: var(--sahara); color: var(--abysse); box-shadow: 0 5px 0 var(--ocre); }
.ac-btn--or:active { box-shadow: 0 2px 0 var(--ocre); }
.ac-btn--ligne { background: transparent; color: var(--ocean); box-shadow: inset 0 0 0 2px var(--ocean); }
.ac-btn--ligne:active { box-shadow: inset 0 0 0 2px var(--ocean); }
.ac-btn svg { width: 18px; height: 18px; }

/* ---------- Pagination bas de page ---------- */
.ac-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--trait); flex-wrap: wrap; }
.ac-pager .prec { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-doux); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.ac-pager .prec span { width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--ombre-douce); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.ac-pager .prec:hover span { transform: translateX(-3px); }

/* ---------- Pied de page ---------- */
.ac-pied { background: var(--abysse); color: rgba(255, 255, 255, .72); padding: 34px 0 40px; font-size: .86rem; }
.ac-pied-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ac-pied a { color: var(--sahara); }
.ac-pied b { color: #fff; }
.ac-pied .marque { display: flex; align-items: center; gap: 12px; }
.ac-pied img { width: 36px; height: 36px; }

/* ---------- Accueil ---------- */
.ac-affiche-carte { padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ac-zoom { all: unset; cursor: zoom-in; display: block; width: 100%; max-width: 420px; border-radius: 18px; transition: transform .25s; }
.ac-zoom:hover { transform: scale(1.015); }
.ac-zoom:focus-visible { outline: 3px solid var(--sahara); outline-offset: 4px; }
.ac-indice { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #7B8B96; font-weight: 700; }
.ac-mise-en-avant { border-left: 7px solid var(--amazonie); background: var(--menthe-pale); border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; padding: 20px 24px; font-weight: 600; color: var(--amazonie-fonce); box-shadow: var(--ombre-douce); }
.ac-mise-en-avant .grand { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.ac-parcours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: etape; }
.ac-parcours a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 20px 20px; background: #fff; border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: var(--ombre-douce); text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.ac-parcours a:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.ac-parcours .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ocean); color: #fff; font-weight: 800; font-size: .86rem; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.ac-parcours a.fait .n { background: var(--amazonie); }
.ac-parcours strong { font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }
.ac-parcours small { color: var(--ink-doux); font-size: .84rem; line-height: 1.4; }
.ac-parcours .emoji { position: absolute; right: 16px; top: 14px; font-size: 1.7rem; opacity: .9; }
.ac-parcours li:last-child a { background: linear-gradient(150deg, var(--ocean), var(--amazonie-fonce)); color: #fff; }
.ac-parcours li:last-child small { color: rgba(255, 255, 255, .8); }
.ac-parcours li:last-child .n { background: var(--sahara); color: var(--abysse); }

/* Affiche (bac roulant) */
.ac-affiche { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #FAF6EC; border: 3px solid #0B3C5D; border-radius: 14px; overflow: hidden; box-shadow: var(--ombre-forte); text-align: left; container-type: normal; font-family: var(--sans); }
.ac-affiche .vague { position: absolute; left: 0; right: 0; bottom: 0; opacity: .2; pointer-events: none; }
.ac-affiche .point { position: absolute; top: -7%; right: -2%; color: #E9D8B4; opacity: .85; font-family: 'Fraunces', Georgia, serif; font-weight: 900; line-height: 1; pointer-events: none; }
.ac-affiche .titre { position: absolute; top: 3.2%; left: 0; right: 0; text-align: center; padding: 0 6%; color: #0B3C5D; }
.ac-affiche .titre p { margin: 0; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; }
.ac-affiche .titre h3 { display: inline-block; margin: .35em 0 0; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid #E3B36A; padding-bottom: .15em; line-height: 1.1; letter-spacing: .02em; font-family: 'Fraunces', Georgia, serif; }
.ac-affiche .bac { position: absolute; left: 3%; bottom: 14%; width: 60%; }
.ac-affiche .bac-wrap { position: relative; width: 100%; aspect-ratio: 240 / 360; }
.ac-affiche .bac-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-affiche .libelles { position: absolute; inset: 0; pointer-events: none; }
.ac-affiche .macaron { position: absolute; right: 2%; top: 39%; width: 41%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #0F4C73 0%, #0B3C5D 55%, #072B42 100%); color: #fff; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(7, 43, 66, .32); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4%; }
.ac-affiche .macaron .gros { font-family: 'Fraunces', Georgia, serif; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ac-affiche .macaron .unite { font-weight: 800; letter-spacing: .16em; line-height: 1; margin-top: .25em; }
.ac-affiche .macaron .trait { width: 76%; height: 1px; background: rgba(227, 179, 106, .8); margin: .4em 0; }
.ac-affiche .macaron .petit { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; white-space: nowrap; }
.ac-affiche .macaron .petit u { text-decoration-color: rgba(227, 179, 106, .9); text-decoration-thickness: 2px; }
.ac-affiche .pied { position: absolute; left: 4%; bottom: 3%; color: rgba(11, 60, 93, .7); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ac-affiche .bandeau-logo { position: absolute; right: 0; bottom: 0; width: 38%; height: 12%; background: #23764A; border-top-left-radius: 28px; border-left: 2px solid rgba(227, 179, 106, .7); border-top: 2px solid rgba(227, 179, 106, .7); display: flex; align-items: center; justify-content: center; gap: 6%; padding: 0 5%; color: #fff; }
.ac-affiche .bandeau-logo img { height: 62%; width: auto; }
.ac-affiche .bandeau-logo span { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.05; text-align: left; }

/* Modale (zoom de l'affiche, fiche de la faune) */
.ac-modale { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 29, 46, .82); backdrop-filter: blur(6px); }
.ac-modale.ouverte { display: flex; animation: ac-fondu .2s ease; }
.ac-modale-boite { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 26px; box-shadow: var(--ombre-forte); }
.ac-modale-boite--large { width: min(560px, 92vw, 66vh); background: transparent; box-shadow: none; overflow: visible; }
.ac-modale-fermer { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--ombre-douce); }
@keyframes ac-fondu { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Guide ---------- */
.ac-liste-icones { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ac-liste-icones li { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: .98rem; }
.ac-liste-icones .ico { flex: none; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.ac-liste-icones li:hover .ico { transform: rotate(-6deg) scale(1.06); }
.ac-liste-icones .ico svg { width: 25px; height: 25px; }
.ico-bleu { background: #DCEBF6; color: var(--ocean-vif); } .ico-cyan { background: #D6F0F2; color: #167C86; } .ico-orange { background: #FBE4CF; color: #B4531C; }
.ac-expert { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.ac-expert::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(108, 197, 148, .09); }
.ac-expert .etiquette { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sahara); }
.ac-expert .etiquette::before { content: ""; width: 30px; height: 2px; background: var(--sahara); }
.ac-expert blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; color: #EAF2F7; position: relative; z-index: 1; }
.ac-expert .signature { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); position: relative; z-index: 1; }
.ac-expert .signature svg { width: 58px; height: 58px; flex: none; }
.ac-expert .signature b { display: block; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }
.ac-expert .signature small { color: var(--clair); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.ac-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ac-phase { background: #fff; border-radius: var(--rayon); padding: 28px 26px; border: 1px solid var(--trait); border-top: 7px solid var(--c, var(--amazonie)); box-shadow: var(--ombre-douce); transition: transform .18s, box-shadow .18s; }
.ac-phase:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.ac-phase .quand { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--amazonie)); }
.ac-phase h3 { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 10px; font-weight: 600; }
.ac-phase p { margin: 0; color: var(--ink-doux); font-size: .95rem; }
.ac-courbe { margin-top: 26px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 22px 8px; box-shadow: var(--ombre-douce); }
.ac-courbe h4 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-doux); }
.ac-courbe svg { width: 100%; height: auto; display: block; }

/* ---------- Équilibre ---------- */
.ac-equilibre { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ac-apports { border-radius: var(--rayon); padding: 30px; border: 1px solid var(--trait); box-shadow: var(--ombre-douce); }
.ac-apports--vert { background: linear-gradient(170deg, #EAF6EE, #fff 60%); border-top: 8px solid var(--amazonie); }
.ac-apports--brun { background: linear-gradient(170deg, #F6EEDF, #fff 60%); border-top: 8px solid var(--ocre); }
.ac-apports header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.ac-apports h3 { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.ac-apports--vert h3 { color: var(--amazonie-fonce); } .ac-apports--brun h3 { color: var(--terre); }
.ac-pastille { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; color: #fff; }
.ac-apports--vert .ac-pastille { background: var(--amazonie); } .ac-apports--brun .ac-pastille { background: var(--ocre); }
.ac-apport { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--trait); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; transition: transform .15s; }
.ac-apport:hover { transform: translateX(4px); }
.ac-apport .e { flex: none; width: 54px; height: 54px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.ac-apport h5 { margin: 0 0 2px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.ac-apport p { margin: 0; font-size: .92rem; color: var(--ink-doux); }
.ac-equation { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 40px); background: linear-gradient(150deg, var(--abysse), var(--ocean)); border-radius: 28px; padding: 30px 24px; color: #fff; box-shadow: var(--ombre-forte); flex-wrap: wrap; }
.ac-equation .seau { text-align: center; }
.ac-equation .seau svg { width: clamp(110px, 18vw, 160px); height: auto; }
.ac-equation .seau h5 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.ac-equation .plus { font-family: var(--serif); font-size: 3.2rem; color: var(--sahara); line-height: 1; }

/* ---------- Faune ---------- */
.ac-filtres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.ac-filtres button { border: 1px solid var(--trait); background: #fff; color: var(--ink-doux); font: 700 .8rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: all .15s; box-shadow: var(--ombre-douce); }
.ac-filtres button:hover { color: var(--ocean); transform: translateY(-1px); }
.ac-filtres button.actif { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.ac-faune { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.ac-acteur { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 16px 18px; box-shadow: var(--ombre-douce); transition: transform .18s, box-shadow .18s; }
.ac-acteur:hover, .ac-acteur:focus-visible { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.ac-acteur:focus-visible { outline: 3px solid var(--sahara); outline-offset: 3px; }
.ac-acteur svg { width: 118px; height: 118px; }
.ac-acteur h4 { margin: 0; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.15; }
.ac-cat { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.cat-micro { background: #FBE6CC; color: #A5521B; } .cat-macro { background: var(--menthe); color: var(--amazonie-fonce); } .cat-predator { background: #F3D9D2; color: var(--alerte); } .cat-extra { background: #E1ECF6; color: var(--ocean-vif); }
.ac-fiche-tete { position: relative; padding: 30px 28px 22px; background: linear-gradient(160deg, var(--ocean), var(--amazonie-fonce)); color: #fff; display: flex; gap: 20px; align-items: center; }
.ac-fiche-tete svg { width: 112px; height: 112px; flex: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
.ac-fiche-tete h2 { margin: 8px 0 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; font-weight: 600; }
.ac-fiche-corps { padding: 24px 28px 28px; display: grid; gap: 16px; }
.ac-surnom { margin: 0; font-family: var(--serif); font-style: italic; color: var(--amazonie-fonce); font-size: 1.25rem; }
.ac-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-duo > div { border-radius: 16px; padding: 14px 16px; background: #F4F6F8; border: 1px solid var(--trait); }
.ac-duo > div.vert { background: var(--menthe-pale); border-color: rgba(35, 118, 74, .2); }
.ac-duo h4 { margin: 0 0 6px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #7B8B96; }
.ac-duo .vert h4 { color: var(--amazonie); }
.ac-duo p { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.ac-anecdote { display: flex; gap: 12px; align-items: flex-start; background: #FFF4DE; border: 1px solid #F1DDB0; color: #6E4A12; border-radius: 16px; padding: 14px 16px; font-style: italic; font-weight: 600; font-size: .93rem; }
.ac-voisins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ac-voisin { display: flex; gap: 22px; align-items: center; background: #fff; border-radius: var(--rayon); padding: 28px; border: 1px solid var(--trait); box-shadow: var(--ombre-douce); }
.ac-voisin svg { width: 130px; height: 130px; flex: none; }
.ac-voisin h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.ac-voisin p { margin: 0; color: var(--ink-doux); }
.cache { display: none !important; }

/* ---------- Expertise ---------- */
.ac-diag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ac-probleme { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--rayon); padding: 30px 28px; border: 1px solid var(--trait); box-shadow: var(--ombre-douce); transition: transform .18s, box-shadow .18s; }
.ac-probleme:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.ac-probleme .ico { width: 62px; height: 62px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--alerte-pale); color: var(--alerte); }
.ac-probleme .ico svg { width: 32px; height: 32px; }
.ac-probleme h4 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.ac-probleme p { margin: 0; color: var(--ink-doux); flex: 1; }
.ac-remede { display: flex; align-items: center; gap: 10px; background: var(--menthe-pale); border: 1px solid rgba(35, 118, 74, .22); color: var(--amazonie-fonce); border-radius: 14px; padding: 14px 16px; font-weight: 800; font-size: .86rem; letter-spacing: .02em; text-transform: uppercase; }
.ac-remede svg { width: 22px; height: 22px; flex: none; }

/* ---------- Vidéos ---------- */
.ac-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ac-video { background: #fff; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--trait); box-shadow: var(--ombre-douce); }
.ac-video-cadre { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--ocean), var(--amazonie-fonce)); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 0; width: 100%; color: #fff; overflow: hidden; }
.ac-video-cadre::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(227, 179, 106, .35), transparent 55%); }
.ac-video-cadre .grand { position: absolute; left: 22px; top: 16px; font-size: 3rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.ac-video-cadre .lecture { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--sahara); color: var(--abysse); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform .18s; }
.ac-video-cadre:hover .lecture { transform: scale(1.1); }
.ac-video-cadre .lecture svg { width: 32px; height: 32px; margin-left: 4px; }
.ac-video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-video h4 { margin: 0; padding: 18px 22px 4px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.ac-video p { margin: 0; padding: 0 22px 20px; color: #7B8B96; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.ac-note a { color: var(--ocean-vif); }
.ac-note { font-size: .82rem; color: #7B8B96; text-align: center; margin-top: 22px; }

/* ---------- Atelier de tri ---------- */
.ac-atelier { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; }
.ac-seau-bio { position: sticky; top: 94px; background: #fff; border-radius: var(--rayon); border: 1px solid var(--trait); box-shadow: var(--ombre-douce); padding: 22px; }
.ac-seau-bio header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ac-seau-bio h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.ac-compteur { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; background: var(--sahara); color: var(--abysse); font-weight: 900; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ac-pool { display: grid; gap: 9px; max-height: 58vh; overflow: auto; padding: 4px 2px 8px; }
.ac-dechet { all: unset; box-sizing: border-box; cursor: grab; display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--trait); border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 2px 0 rgba(7, 43, 66, .06); transition: border-color .15s, transform .12s, box-shadow .15s; width: 100%; }
.ac-dechet:hover { border-color: var(--amazonie); transform: translateY(-1px); }
.ac-dechet:focus-visible { outline: 3px solid var(--sahara); outline-offset: 2px; }
.ac-dechet.choisi { border-color: var(--ocean-vif); box-shadow: 0 0 0 4px rgba(31, 111, 159, .18); }
.ac-dechet.glisse { opacity: .45; }
.ac-dechet .em { font-size: 1.7rem; line-height: 1; flex: none; }
.ac-dechet.mini { width: 62px; height: 62px; padding: 0; justify-content: center; border-radius: 18px; }
.ac-dechet.mini .nom { display: none; }
.ac-dechet.correct, .ac-dechet.faux { cursor: default; flex-direction: column; text-align: center; width: 100%; padding: 12px 10px; gap: 4px; height: auto; }
.ac-dechet.correct { border-color: var(--amazonie); background: var(--menthe-pale); }
.ac-dechet.faux { border-color: var(--alerte); background: var(--alerte-pale); }
.ac-dechet.doute { cursor: default; flex-direction: column; text-align: center; width: 100%; padding: 12px 10px; gap: 4px; height: auto; border-color: var(--sahara); background: #FFF6E3; }
.ac-dechet .pourquoi { font-size: .72rem; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.35; color: var(--ink-doux); }
.ac-dechet .verdict { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.ac-dechet.correct .verdict { background: var(--amazonie); color: #fff; } .ac-dechet.faux .verdict { background: var(--alerte); color: #fff; } .ac-dechet.doute .verdict { background: var(--sahara); color: var(--abysse); }
.ac-aide { font-size: .8rem; color: #7B8B96; margin: 12px 2px 0; }
.ac-bilan { margin-top: 16px; display: grid; gap: 10px; }
.ac-bilan .note { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; background: var(--menthe); color: var(--amazonie-fonce); border-radius: 14px; padding: 14px; }
.ac-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ac-zone { all: unset; box-sizing: border-box; display: flex; flex-direction: column; min-height: 460px; border-radius: var(--rayon); border: 2.5px dashed var(--c); background: var(--f); padding: 20px 16px; transition: background .15s, transform .15s, box-shadow .15s; cursor: default; }
.ac-zone.pret { cursor: pointer; box-shadow: 0 0 0 4px rgba(31, 111, 159, .14); }
.ac-zone.survol, .ac-zone.pret:hover { transform: scale(1.012); background: var(--h); }
.ac-zone:focus-visible { outline: 3px solid var(--sahara); outline-offset: 3px; }
.ac-zone--ok { --c: var(--amazonie); --f: #EAF6EE; --h: #D8EEDF; } .ac-zone--doute { --c: var(--sahara); --f: #FFF5E0; --h: #FFEBC4; } .ac-zone--non { --c: var(--alerte); --f: #FDF0EC; --h: #F9DDD5; }
.ac-zone header { text-align: center; margin-bottom: 14px; }
.ac-zone h4 { margin: 0; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--c); }
.ac-zone--doute h4 { color: #B07A1E; }
.ac-zone header p { margin: 4px 0 0; font-size: .78rem; color: var(--ink-doux); }
.ac-zone .contenu { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; justify-content: center; }
.ac-zone .contenu .ac-dechet.correct, .ac-zone .contenu .ac-dechet.faux, .ac-zone .contenu .ac-dechet.doute { flex: 1 1 100%; }

/* ---------- Quiz ---------- */
.ac-quiz { max-width: 780px; margin: 0 auto; }
.ac-quiz-tete { margin-bottom: 22px; }
.ac-quiz-info { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink-doux); margin-bottom: 10px; }
.ac-quiz-info .score { color: var(--amazonie); }
.ac-quiz-rail { height: 10px; border-radius: 999px; background: #E5EBEF; overflow: hidden; margin-bottom: 26px; }
.ac-quiz-rail i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amazonie), var(--clair)); border-radius: 999px; transition: width .4s ease; }
.ac-question { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; margin: 0 0 24px; letter-spacing: -.01em; }
.ac-options { display: grid; gap: 12px; }
.ac-option { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 16px; cursor: pointer; background: #fff; border: 2px solid var(--trait); border-radius: 18px; padding: 16px 20px; font-weight: 700; font-size: 1rem; box-shadow: 0 3px 0 rgba(7, 43, 66, .06); transition: border-color .15s, transform .12s, background .15s; }
.ac-option:hover { border-color: var(--ocean-vif); transform: translateY(-2px); }
.ac-option:focus-visible { outline: 3px solid var(--sahara); outline-offset: 2px; }
.ac-option .lettre { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #EEF3F7; color: var(--ocean); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: .86rem; }
.ac-option.verrou { pointer-events: none; }
.ac-option.bon { border-color: var(--amazonie); background: var(--menthe-pale); } .ac-option.bon .lettre { background: var(--amazonie); color: #fff; }
.ac-option.mauvais { border-color: var(--alerte); background: var(--alerte-pale); } .ac-option.mauvais .lettre { background: var(--alerte); color: #fff; }
.ac-retour { margin-top: 20px; border-radius: 18px; padding: 18px 22px; font-weight: 700; display: none; }
.ac-retour.bon { display: block; background: var(--menthe-pale); border: 2px solid rgba(35, 118, 74, .3); color: var(--amazonie-fonce); }
.ac-retour.mauvais { display: block; background: var(--alerte-pale); border: 2px solid rgba(180, 71, 47, .3); color: #8A2F1A; }
.ac-retour strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.ac-quiz-suite { margin-top: 20px; display: none; justify-content: flex-end; }
.ac-quiz-suite.visible { display: flex; }
.ac-resultat { text-align: center; max-width: 640px; margin: 0 auto; }
.ac-cercle-note { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(var(--amazonie) calc(var(--p) * 1%), #E5EBEF 0); position: relative; }
.ac-cercle-note::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--creme); }
.ac-cercle-note b, .ac-cercle-note span { position: relative; }
.ac-cercle-note b { font-family: var(--serif); font-size: 3.6rem; line-height: 1; font-weight: 700; }
.ac-cercle-note span { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-doux); }
.ac-cercle-note.echec { background: conic-gradient(var(--alerte) calc(var(--p) * 1%), #E5EBEF 0); }
.ac-resultat h3 { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; margin: 0 0 8px; }
.ac-resultat p { color: var(--ink-doux); }
.ac-nom { display: grid; gap: 12px; margin: 24px auto 0; max-width: 460px; }
.ac-nom input { font: 800 1rem var(--sans); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 18px; border-radius: 16px; border: 2px solid var(--trait); background: #fff; color: var(--ink); }
.ac-nom input:focus { outline: 3px solid var(--sahara); border-color: var(--sahara); }
.ac-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Diplôme */
.ac-diplome-zone { display: none; }
.ac-diplome-zone.visible { display: block; }
.ac-diplome { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 1.414 / 1; background: #FFFDF7; border-radius: 6px; padding: 14px; box-shadow: var(--ombre-forte); }
.ac-diplome .cadre { position: absolute; inset: 14px; border: 3px solid var(--ocre); }
.ac-diplome .cadre::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--sahara); }
.ac-diplome .fond { position: absolute; inset: 14px; opacity: .06; background: radial-gradient(circle at 50% 50%, var(--amazonie), transparent 62%); }
.ac-diplome .coin { position: absolute; width: 8%; max-width: 70px; aspect-ratio: 1; color: var(--sahara); }
.ac-diplome .coin.hg { left: 4%; top: 5%; } .ac-diplome .coin.hd { right: 4%; top: 5%; transform: scaleX(-1); } .ac-diplome .coin.bg { left: 4%; bottom: 5%; transform: scaleY(-1); } .ac-diplome .coin.bd { right: 4%; bottom: 5%; transform: scale(-1); }
.ac-diplome .contenu { position: absolute; inset: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6% 10%; gap: 1.1%; }
.ac-diplome .marque { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: clamp(.8rem, 2vw, 1.3rem); color: var(--ocean); }
.ac-diplome .marque img { width: clamp(28px, 5vw, 46px); }
.ac-diplome .tampon { position: absolute; right: 9%; bottom: 14%; width: 14%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; border: 3px double var(--alerte); color: var(--alerte); display: flex; align-items: center; justify-content: center; transform: rotate(-14deg); font-weight: 900; letter-spacing: .12em; font-size: clamp(.5rem, 1.4vw, .95rem); opacity: .85; }
.ac-diplome .petit { font-size: clamp(.6rem, 1.4vw, .9rem); letter-spacing: .2em; text-transform: uppercase; color: var(--ocre); font-weight: 800; margin: 0; }
.ac-diplome h2 { font-family: var(--serif); font-weight: 600; margin: 0; font-size: clamp(1.4rem, 4.6vw, 3.1rem); line-height: 1.05; color: var(--ocean); letter-spacing: -.01em; }
.ac-diplome .nom { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 4vw, 2.7rem); color: var(--amazonie-fonce); border-bottom: 2px solid var(--sahara); padding: 0 4%; margin: 1.4% 0; line-height: 1.2; }
.ac-diplome .texte { font-size: clamp(.64rem, 1.6vw, 1.02rem); color: var(--ink-doux); max-width: 70%; margin: 0; line-height: 1.5; }
.ac-diplome .bas { display: flex; gap: 6%; margin-top: 2%; font-size: clamp(.56rem, 1.3vw, .84rem); color: var(--ink-doux); }
.ac-diplome .bas b { display: block; color: var(--ink); font-size: 1.15em; }
.ac-diplome-barre { text-align: center; margin-top: 24px; }

/* ---------- Animations d'apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ac-apparait { opacity: 0; transform: translateY(16px); animation: ac-monte .6s ease forwards; }
  .ac-apparait:nth-child(2) { animation-delay: .08s; } .ac-apparait:nth-child(3) { animation-delay: .16s; } .ac-apparait:nth-child(4) { animation-delay: .24s; }
  @keyframes ac-monte { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1060px) {
  .ac-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--abysse); padding: 14px 20px 22px; box-shadow: 0 18px 30px rgba(0, 0, 0, .3); }
  .ac-nav.ouvert { display: flex; }
  .ac-nav a { padding: 13px 14px; font-size: .95rem; border-radius: 14px; }
  .ac-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .ac-chrono { margin-left: auto; }
  .ac-menu-btn { margin-left: 0; }
}
@media (max-width: 900px) {
  .ac-g2, .ac-g5-7, .ac-g3, .ac-equilibre, .ac-diag, .ac-voisins, .ac-videos, .ac-phases { grid-template-columns: 1fr; }
  .ac-parcours { grid-template-columns: repeat(2, 1fr); }
  .ac-atelier { grid-template-columns: 1fr; }
  .ac-seau-bio { position: static; }
  .ac-pool { max-height: 300px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ac-zones { grid-template-columns: 1fr; }
  .ac-zone { min-height: 190px; }
  .ac-bandeau-in { grid-template-columns: 1fr; }
  .ac-bandeau-art { display: none; }
  .ac-bandeau { padding: 42px 0 74px; }
  .ac-carte { padding: 24px; }
}
@media (max-width: 560px) {
  body.ac { font-size: 16px; }
  .ac-marque small { display: none; }
  .ac-parcours { grid-template-columns: 1fr; }
  .ac-duo { grid-template-columns: 1fr; }
  .ac-fiche-tete { flex-direction: column; text-align: center; }
  .ac-voisin { flex-direction: column; text-align: center; }
  .ac-pager { flex-direction: column-reverse; align-items: stretch; }
  .ac-pager .ac-btn { width: 100%; }
}

/* ---------- Impression : seul le diplôme sort ---------- */
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body.ac { background: #fff; }
  .ac-entete, .ac-bandeau, .ac-pager, .ac-pied, .ac-diplome-barre, .ac-resultat, .ac-quiz, .ac-note, .ac-modale { display: none !important; }
  .ac-principal { margin: 0; padding: 0; }
  .ac-diplome-zone.visible { display: block !important; }
  .ac-diplome { box-shadow: none; max-width: none; width: 100%; page-break-inside: avoid; }
  .ac-diplome, .ac-diplome * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
