/* Site de l'ONG JTEC - Jeune, Tu Es une Chance */
:root {
  --blue: #0057A8;
  --blue-deep: #06305F;
  --green: #16A05D;
  --gold: #F2B31B;
  --bg: #FFFFFF;
  --bg-alt: #EFF6FB;
  --card: #FFFFFF;
  --ink: #0E1F33;
  --muted: #47586D;
  --line: #D6E1EC;
  --link: #0057A8;
  --btn-bg: #0E8348;
  --btn-ink: #FFFFFF;
  --focus: #0057A8;
  --chip-bg: #E3EEF9;
  --logo: url("../images/logo-jtec.jpg");
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07142A; --bg-alt: #0B1D3A; --card: #0F2547;
    --ink: #EAF1FA; --muted: #A9BACF; --line: #1F365A;
    --link: #7DB2F5; --btn-bg: #4FBF55; --btn-ink: #06210A;
    --focus: #F2B31B; --chip-bg: #16335E;
  }
}
:root[data-theme="dark"] {
  --bg: #07142A; --bg-alt: #0B1D3A; --card: #0F2547;
  --ink: #EAF1FA; --muted: #A9BACF; --line: #1F365A;
  --link: #7DB2F5; --btn-bg: #4FBF55; --btn-ink: #06210A;
  --focus: #F2B31B; --chip-bg: #16335E;
}
html { height: 100%; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--link); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.logo { background: var(--logo) center / contain no-repeat; aspect-ratio: 1; }
svg.ic { fill: none; stroke: currentColor; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid transparent; border-radius: 999px; padding: .8rem 1.5rem; font-weight: 700; text-decoration: none; line-height: 1.1; text-align: center; transition: transform .15s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-don { background: var(--btn-bg); color: var(--btn-ink); }
.btn-don:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--blue); }
.btn-gold { background: var(--gold); color: #1B1300; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.site-header .btn { white-space: nowrap; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 93%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand .logo { width: 48px; border-radius: 12px; background-color: #fff; border: 1px solid var(--line); }
.brand b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--green); }
:root[data-theme="dark"] .brand b { color: #6ED874; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand b { color: #6ED874; } }
.nav { display: flex; gap: 1.15rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--green); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: transparent; place-items: center; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1320px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 0 0 20px 20px; padding: .5rem 1rem 1rem; box-shadow: 0 24px 40px -20px rgba(0,0,0,.35); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.1rem; padding: .8rem .25rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .brand b { display: none; } }

/* Héros */
.hero { position: relative; overflow: clip; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; right: -12%; top: -30%; width: min(760px, 90vw); aspect-ratio: 1; border-radius: 50%; background: var(--bg-alt); z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: .98; letter-spacing: -0.035em; }
.hero h1 > span { display: block; }
.nb { white-space: nowrap; }
.h-a { color: var(--blue-deep); }
.h-b { color: var(--green); margin-top: .12em; }
:root[data-theme="dark"] .h-a { color: #F4F8FD; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h-a { color: #F4F8FD; } }
.star-wrap { display: inline-block !important; width: .42em; height: .42em; vertical-align: top; margin-left: .08em; }
.star-wrap svg { width: 100%; height: 100%; display: block; animation: fly 1.5s cubic-bezier(.2,.9,.25,1) .25s both; }
.hero-lead { margin-top: 1.6rem; max-width: 36rem; font-size: 1.2rem; color: var(--muted); }
.hero-cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-logo { justify-self: center; width: min(400px, 100%); position: relative; }
.hero-logo > .logo { width: 100%; background-color: #fff; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(6,48,95,.45); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { width: min(290px, 78%); justify-self: start; order: -1; }
}

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.alt { background: var(--bg-alt); }
.sec-head { max-width: 46rem; margin-bottom: 2.5rem; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.sec-head p { margin-top: 1rem; color: var(--muted); max-width: 42rem; }
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem 1.3rem 1.6rem; }
.card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .45rem; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 1rem; }
.badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1rem; color: #fff; background: var(--blue); }
.badge svg { width: 28px; height: 28px; }
.b-g { background: var(--green); }
.b-y { background: var(--gold); color: #1B1300; }

/* Notre approche */
.approach .card { border-top: 6px solid var(--c, var(--blue)); }

/* Domaines */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.dcard .art { aspect-ratio: 16 / 10; }
.dcard .body { padding: 1.15rem 1.3rem 1.5rem; }
.dcard h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.dcard p { color: var(--muted); }

/* Programmes */
.progs { display: flex; flex-direction: column; gap: 1rem; }
.prog { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 10px solid var(--c, var(--blue)); border-radius: 20px; padding: 1.4rem 1.6rem; }
.prog h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.prog p { color: var(--muted); margin-top: .3rem; }
@media (max-width: 700px) { .prog { grid-template-columns: 1fr; } .prog .btn { justify-self: start; } }

/* Impact */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { border-top: 4px solid var(--c, var(--blue)); padding-top: 1rem; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.04em; color: var(--c, var(--blue)); }
.stat span { display: block; margin-top: .5rem; font-weight: 600; font-size: 1.1rem; }
.stat p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }
:root[data-theme="dark"] .stat b { filter: brightness(1.5); }
.foot { margin-top: 2rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Événements */
.evs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.ev { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.ev h3 { font-size: 1.5rem; font-weight: 700; }
.ev .meta { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 500; }
.ev .meta svg { width: 20px; height: 20px; flex: none; color: var(--green); }
.ev .soon { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--blue); }
:root[data-theme="dark"] .ev .soon { color: #7DB2F5; }
.ev-cta { margin-top: 2rem; }

/* Actualités */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { border: 2px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font-weight: 600; background: var(--card); }
.empty { margin-top: 1.5rem; border: 2px dashed var(--line); border-radius: 22px; padding: 2rem; display: flex; gap: 1.25rem; align-items: center; }
.empty .badge { margin: 0; flex: none; }
.empty h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.empty p { color: var(--muted); }
.podcast { margin-top: 2.5rem; border-radius: 26px; background: linear-gradient(140deg, var(--blue), var(--blue-deep)); color: #fff; padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; align-items: center; }
.podcast .badge { width: 84px; height: 84px; border-radius: 26px; background: var(--gold); color: #1B1300; margin: 0; }
.podcast .badge svg { width: 46px; height: 46px; }
.podcast h3 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
.podcast p { margin-top: .5rem; color: #D5E3F4; font-size: 1.15rem; }
.plats { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.plats a { color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: 999px; padding: .4rem 1rem; text-decoration: none; font-weight: 600; }
.plats a:hover { background: rgba(255,255,255,.14); }
.podcast :focus-visible { outline-color: var(--gold); }
@media (max-width: 640px) { .podcast { grid-template-columns: 1fr; } .empty { flex-direction: column; align-items: flex-start; } }

/* Catalogue / galerie */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; align-items: center; }
.filters button { border: 2px solid var(--line); background: transparent; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.count { margin-left: auto; color: var(--muted); font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.tile { text-align: left; padding: 0; border: 1px solid var(--line); background: var(--card); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.tile[hidden] { display: none; }
.art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; color: #fff; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .icon { width: 42%; height: auto; transition: transform .25s ease; position: relative; z-index: 1; }
.tile:hover .icon { transform: scale(1.07) rotate(-3deg); }
.art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; bottom: -30%; background: rgba(255,255,255,.10); }
.art::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: -10%; top: -14%; background: rgba(255,255,255,.08); }
.art .mini-star { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; z-index: 2; }
.cat-eduquer { background: linear-gradient(140deg, #0057A8, #06305F); }
.cat-accompagner { background: linear-gradient(140deg, #1FAF68, #0C6B3E); }
.cat-transformer { background: linear-gradient(140deg, #0057A8 10%, #16A05D 95%); }
.cap { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.cap h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.chip { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: var(--chip-bg); color: var(--ink); border-left: 5px solid var(--c, var(--blue)); }
.c-eduquer { --c: var(--blue); } .c-accompagner { --c: var(--green); } .c-transformer { --c: var(--gold); }

/* Soutenir */
.don { background: var(--blue-deep); color: #fff; position: relative; overflow: clip; }
.don::after { content: ""; position: absolute; right: -8%; top: -20%; width: 520px; aspect-ratio: 1; border-radius: 50%; background: rgba(22,160,93,.24); }
.don .wrap { position: relative; z-index: 1; }
.don-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.don h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; }
.don-top p { margin-top: 1.1rem; color: #C9D8EC; max-width: 34rem; }
.don-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; padding: 1.75rem; }
.don-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.amounts button { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; }
.amounts button:hover { border-color: var(--gold); }
.methods { margin-top: 1.1rem; font-size: .95rem; color: #C9D8EC; }
.don :focus-visible { outline-color: var(--gold); }
.scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.scard { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.scard .badge { background: var(--gold); color: #1B1300; margin-bottom: .4rem; }
.scard h3 { font-size: 1.25rem; font-weight: 700; }
.scard p { color: #C9D8EC; font-size: .98rem; flex: 1; }
.scard .btn { margin-top: .6rem; }
@media (max-width: 860px) { .don-top { grid-template-columns: 1fr; gap: 2rem; } }

/* Espace jeunes */
.jeunes { background: linear-gradient(150deg, #0E8348, #0A5F36); color: #fff; overflow: clip; }
.jeunes .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.jeunes h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.jeunes .lead { margin-top: 1rem; color: #DDF3E7; font-size: 1.15rem; max-width: 34rem; }
.jlist { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
.jlist li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.jlist .ji { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.jlist svg { width: 22px; height: 22px; }
.jscene { border-radius: 28px; min-height: 380px; background: linear-gradient(150deg, #0057A8, #06305F); }
.jeunes :focus-visible { outline-color: var(--gold); }
@media (max-width: 900px) { .jeunes .wrap { grid-template-columns: 1fr; } .jscene { min-height: 300px; order: -1; } }
@media (max-width: 480px) { .jlist { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
.cinfo { display: flex; flex-direction: column; gap: 1.1rem; }
.cinfo .row { display: flex; gap: .9rem; align-items: flex-start; }
.cinfo .row .badge { width: 46px; height: 46px; border-radius: 14px; margin: 0; flex: none; }
.cinfo .row .badge svg { width: 24px; height: 24px; }
.cinfo b { display: block; }
.cinfo a { font-weight: 600; word-break: break-word; }
.cform { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 1.75rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; }
.field input, .field textarea { font: inherit; padding: .7rem .9rem; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.err { color: #C0392B; font-weight: 600; min-height: 1.4em; }
:root[data-theme="dark"] .err { color: #FF8E80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FF8E80; } }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.form-note { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }

/* Signature finale */
.final { background: linear-gradient(160deg, var(--blue-deep), var(--blue)); color: #fff; text-align: center; padding: clamp(4.5rem, 12vw, 9rem) 0; position: relative; overflow: clip; }
.final h2 { font-size: clamp(2.2rem, 6.6vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.final h2 span { display: block; }
.final h2 span + span { margin-top: .2em; color: #A9E7C4; }
.final p { margin-top: 2rem; font-size: 1.25rem; color: #D5E3F4; }
.final .fstar { width: 44px; height: 44px; margin: 0 auto 1.5rem; display: block; animation: twinkle 2.6s ease-in-out infinite; }

/* Pied de page */
footer { background: var(--bg-alt); padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
footer .logo { width: 96px; flex: none; border-radius: 18px; background-color: #fff; border: 1px solid var(--line); }
footer .devise { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
footer .sub { color: var(--muted); margin-top: .3rem; }
footer h4 { margin: 0 0 .7rem; font-family: var(--font-display); font-size: 1.05rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
footer li a, footer .contact a { color: var(--ink); text-decoration: none; font-weight: 500; }
footer li a:hover, footer .contact a:hover { text-decoration: underline; }
footer .contact { display: flex; flex-direction: column; gap: .35rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.social a { border: 2px solid var(--line); border-radius: 999px; padding: .2rem .8rem; font-weight: 600; text-decoration: none; }
.legal { margin-top: 2rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* Boîtes de dialogue */
dialog { border: 0; padding: 0; background: var(--card); color: var(--ink); border-radius: 24px; width: min(720px, calc(100% - 1.5rem)); max-height: calc(100% - 2rem); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(4,18,42,.7); }
dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-close { position: absolute; top: .75rem; right: .75rem; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0E1F33; font-size: 1.5rem; line-height: 1; }
.lb .art { aspect-ratio: 16 / 9; border-radius: 0; }
.lb .art .icon { width: 26%; }
.lb-body { padding: 1.5rem 1.75rem .5rem; }
.lb-body h3 { font-size: 2rem; margin: .6rem 0 .6rem; }
.lb-body p { color: var(--muted); max-width: 44ch; }
.lb-nav { display: flex; gap: .6rem; padding: 1.25rem 1.75rem 1.75rem; flex-wrap: wrap; }
.lb-nav .spacer { margin-left: auto; }
.don-form { padding: 2rem 1.75rem 1.75rem; }
.don-form h3 { font-size: 2rem; margin-bottom: .4rem; }
.don-form > p, .don-form .step-1 > p { color: var(--muted); margin-bottom: 1.4rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts > span { position: relative; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label { border: 2px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font-weight: 600; display: inline-block; }
.opts input:checked + label { border-color: var(--green); background: color-mix(in srgb, var(--green) 16%, transparent); }
.opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.step-2 { display: none; }
.don-form.done .step-1 { display: none; }
.don-form.done .step-2 { display: block; }
.pay-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1rem 0 1.4rem; }
.pay-box strong { font-size: 1.15rem; }

/* Personnages souriants */
.youth { display: block; width: 100%; height: auto; overflow: visible; }
.bobber { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 3.4s ease-in-out infinite; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.arm { transform-box: view-box; transform-origin: 160px 205px; animation: wave 1.3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1.2deg); } }
@keyframes blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes wave { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(16deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes twinkle { 0%,100% { transform: scale(.6) rotate(0); opacity: .55; } 50% { transform: scale(1.15) rotate(25deg); opacity: 1; } }
@keyframes rise { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes fly { 0% { transform: translate(-46vw, 38vh) rotate(-260deg) scale(.15); opacity: 0; } 20% { opacity: 1; } 100% { transform: none; opacity: 1; } }

/* Diaporama */
.showcase { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.show { position: relative; border-radius: 28px; overflow: hidden; background: var(--blue-deep); box-shadow: 0 30px 70px -35px rgba(6,48,95,.6); }
.track { display: flex; transition: transform .7s cubic-bezier(.65,0,.25,1); }
.slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.05fr .95fr; min-height: clamp(440px, 46vw, 540px); color: #fff; }
.slide.cat-accompagner { background: linear-gradient(140deg, #158A52, #0B5A34); }
.slide-text { padding: clamp(1.75rem, 4vw, 3.5rem); padding-bottom: 5.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; position: relative; z-index: 3; }
.slide-text h3 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; max-width: 16ch; }
.slide-text p { max-width: 34ch; font-size: 1.15rem; color: rgba(255,255,255,.92); }
.slide .chip { background: rgba(255,255,255,.16); color: #fff; border-left-color: var(--gold); }
.scene { position: relative; overflow: hidden; min-height: 300px; }
.bigicon { position: absolute; right: 4%; top: 4%; width: 62%; color: rgba(255,255,255,.14); z-index: 0; }
.yy { position: absolute; bottom: -3%; z-index: 1; }
.y-l { left: -7%; width: 44%; }
.y-r { right: -7%; width: 44%; }
.y-c { left: 20%; width: 60%; z-index: 2; bottom: -6%; }
.spark { position: absolute; width: 26px; height: 26px; z-index: 1; animation: twinkle 2.6s ease-in-out infinite; }
.sp1 { top: 10%; left: 9%; }
.sp2 { top: 26%; right: 8%; width: 18px; height: 18px; animation-delay: -.9s; }
.sp3 { top: 8%; left: 46%; width: 20px; height: 20px; animation-delay: -1.7s; }
.slide.on .y-l { animation: rise .8s .1s cubic-bezier(.2,.9,.3,1) both; }
.slide.on .y-c { animation: rise .8s .25s cubic-bezier(.2,.9,.3,1) both; }
.slide.on .y-r { animation: rise .8s .4s cubic-bezier(.2,.9,.3,1) both; }
.slide:not(.on) * { animation-play-state: paused !important; }
.show-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-start; gap: 1.25rem; flex-wrap: wrap; padding: 1rem clamp(1.25rem, 3vw, 2.5rem) 1.35rem; z-index: 5; pointer-events: none; }
.show-ctrl > * { pointer-events: auto; }
.dots { display: flex; gap: .15rem; }
.dots button { min-width: 26px; height: 32px; padding: 0 2px; border: 0; background: transparent; display: grid; place-items: center; }
.dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; transition: width .3s, background-color .3s; }
.dots button[aria-current="true"]::before { width: 32px; border-radius: 999px; background: var(--gold); border-color: var(--gold); }
.ctrl-btns { display: flex; gap: .5rem; }
.cbtn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: rgba(6,48,95,.4); color: #fff; display: grid; place-items: center; padding: 0; }
.cbtn:hover { background: rgba(6,48,95,.7); }
.cbtn svg { width: 20px; height: 20px; }
.show :focus-visible { outline-color: var(--gold); }
.progress { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: rgba(255,255,255,.18); z-index: 6; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); }
@media (max-width: 860px) { .slide { grid-template-columns: 1fr; } .scene { order: -1; min-height: 260px; } .slide-text { padding-bottom: 5rem; } }
@media (max-width: 560px) { #sPrev, #sNext { display: none; } }

/* Bandeau qui défile */
.marquee { background: var(--blue-deep); color: #fff; overflow: hidden; padding: 1rem 0; }
.mq-track { display: flex; width: max-content; animation: mq 55s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: .65rem; margin-right: 1rem; padding: .4rem 1.2rem .4rem .4rem; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; white-space: nowrap; }
.mq-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.mq-ico svg { width: 20px; height: 20px; }
.ic-eduquer { background: #2F7BE0; color: #fff; }
.ic-accompagner { background: #1FAF68; color: #fff; }
.ic-transformer { background: var(--gold); color: #1B1300; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
}

/* ===== Administration : contenus dynamiques et formulaires ===== */
button.card { font: inherit; color: inherit; text-align: left; }
.card.click { cursor: pointer; width: 100%; transition: transform .15s ease, border-color .15s ease; }
.card.click:hover { border-color: var(--blue); transform: translateY(-2px); }
.card .more { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--link); }
.muted-p { color: var(--muted); grid-column: 1 / -1; }
.ev-desc { color: var(--muted); font-size: 1rem; }
.ev .soon { display: flex; align-items: center; gap: .5rem; }
.ev .soon svg { width: 20px; height: 20px; }
.ev .soon.dated { color: var(--green); }

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.ncard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.ncard:hover { border-color: var(--blue); }
.nimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.nph { display: grid; place-items: center; background: linear-gradient(140deg, var(--blue), var(--green)); color: #fff; }
.nph svg { width: 56px; height: 56px; }
.nbody { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.nbody h3 { font-size: 1.3rem; }
.nbody time { color: var(--muted); font-size: .9rem; }
.nbody p { color: var(--muted); }
.nbody .more { font-weight: 700; color: var(--link); }
.readdlg { width: min(760px, calc(100% - 1.5rem)); }
#readImg img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.read-body { padding: 1.5rem 1.75rem 1.75rem; }
.read-body h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: .7rem 0 .4rem; }
.read-body time { color: var(--muted); }
.read-text { margin-top: 1.1rem; }
.read-text p + p { margin-top: 1rem; }

/* Bibliothèque (podcast, éditions) */
.libdlg { width: min(760px, calc(100% - 1.5rem)); }
.lib-top { padding: 2rem 1.75rem 1rem; }
.lib-top h3 { font-size: 2rem; }
.lib-top p { color: var(--muted); margin-top: .4rem; }
.lib-list { list-style: none; margin: 0; padding: 0 1.75rem 1.75rem; display: grid; gap: .9rem; }
.lib-item { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.lib-head { display: flex; gap: .9rem; align-items: flex-start; }
.lib-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.lib-ico svg { width: 24px; height: 24px; }
.lib-item h4 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.lib-item .desc { color: var(--muted); font-size: .97rem; margin-top: .2rem; }
.lib-item .meta { font-size: .85rem; color: var(--muted); }
.lib-empty { color: var(--muted); padding: 1rem 0; }
.player { width: 100%; }
.player:empty { display: none; }
.player audio, .player video { width: 100%; border-radius: 12px; }
.player iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
#podcastBlock { cursor: pointer; }
.podcast.pcta { grid-template-columns: 1fr; margin-top: 2.5rem; cursor: default; }
.cta-row { margin-top: 1.25rem; display: flex; gap: .7rem; flex-wrap: wrap; }

/* Formulaires */
.formdlg { width: min(680px, calc(100% - 1.5rem)); }
.form-body { padding: 2rem 1.75rem 1.75rem; }
.form-body h3 { font-size: 1.9rem; margin-bottom: .4rem; padding-right: 2.5rem; }
.form-intro { color: var(--muted); margin-bottom: 1.4rem; }
.field select { font: inherit; padding: .7rem .9rem; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.field legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: .4rem; }
.done-box { text-align: center; padding: 1rem 0; }
.done-box .badge { margin: 0 auto 1rem; width: 72px; height: 72px; }
.done-box .badge svg { width: 38px; height: 38px; }
.done-box h3 { padding: 0; }
.done-box p { margin: .6rem 0 1.4rem; color: var(--muted); }
.ok { color: var(--green); font-weight: 700; min-height: 1.2em; }
.err a { color: inherit; }

/* Espace jeunes cliquable */
.jlist .jbtn { display: flex; align-items: center; gap: .7rem; background: none; border: 0; color: inherit; font-weight: 600; padding: .15rem 0; text-align: left; }
.jlist .jbtn:hover { text-decoration: underline; }

/* Photos */
.art:has(> img)::before, .art:has(> img)::after { display: none; }
.pcount { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(6,48,95,.85); color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; }
.lb-photo { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.lb-thumbs { display: flex; gap: .5rem; padding: .75rem 1.75rem 0; overflow-x: auto; }
.lb-thumbs:empty { display: none; }
.thumbb { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; flex: none; width: 72px; height: 54px; background: none; }
.thumbb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbb[aria-current="true"] { border-color: var(--gold); }
.lb-cap { color: var(--ink); font-weight: 600; margin-bottom: .4rem; }
.lb-cap:empty { display: none; }
.scene.has-photo { min-height: 300px; }
.slide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.show.single .dots, .show.single .ctrl-btns { display: none; }
.credit { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.credit strong { color: var(--ink); }
