/* ==========================================================
   Youthaid Academy — feuille de style principale
   Couleurs reprises du logo : turquoise, soleil, rouge, orange
   ========================================================== */
:root {
  --teal: #16b3c5;
  --teal-soft: #e3f6f8;
  --sun: #f6a823;
  --sun-soft: #fdf1dc;
  --red: #ee2a4f;
  --red-soft: #fde6ea;
  --orange: #ff5b14;
  --orange-soft: #ffe9df;
  --ink: #12141a;
  --ink-2: #2b2f38;
  --muted: #5d6370;
  --bg: #ffffff;
  --soft: #f7f5f0;
  --line: #e6e2d9;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(18, 20, 26, 0.08);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-brand: Impact, "Haettenschweiler", "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  font-family: inherit; line-height: 1.2;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e94e0c; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 62px; width: auto; display: block; }
.site-footer .brand img { height: 60px; }
.logo-mark { display: block; width: 100%; height: 100%; object-fit: contain; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a, .main-nav .nav-parent {
  display: block; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .nav-parent:hover, .main-nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.main-nav .has-sub { position: relative; }
.main-nav .nav-parent::after { content: "▾"; font-size: 0.7em; margin-left: 4px; opacity: 0.6; }
.main-nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); display: none;
}
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub, .main-nav .has-sub.open .sub { display: block; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); }
.lang-switch { font-weight: 700; font-size: 0.85rem; }
.menu-toggle { display: none; }

/* Recherche */
.search-panel {
  position: absolute; right: 20px; top: calc(100% + 8px);
  width: min(26rem, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; box-shadow: var(--shadow);
}
.search-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--soft);
}
.search-input:focus { outline: none; border-color: var(--teal); background: #fff; }
.search-results { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.search-results li { margin-top: 6px; }
.search-results a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--teal-soft); outline: none; }
.search-results .r-title { display: block; font-weight: 700; color: var(--ink); }
.search-results .r-snippet { display: block; color: var(--muted); font-size: 0.88rem; }
.search-results mark { background: var(--sun-soft); color: inherit; border-radius: 3px; }
.search-results .r-empty { padding: 8px 10px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #d9dbe0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead { color: #b8bcc6; }

/* Hero (accueil) — composition inspirée de yoma.world */
.hero { position: relative; overflow: hidden; background: var(--soft); padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; margin: 10px 0 18px; }
.hero .w-orange { color: var(--orange); }
.hero .w-teal { color: #0f8a9c; }
.hero .lead { max-width: 560px; }

.search-box { position: relative; }
.hero-search { max-width: 560px; margin: 26px 0 22px; }
.hero-search form { display: flex; background: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(18, 20, 26, 0.08); overflow: hidden; border: 1px solid var(--line); }
.hero-search form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft), 0 8px 24px rgba(18, 20, 26, 0.08); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 16px 22px; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search button { border: 0; background: #0f8a9c; color: #fff; width: 76px; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.hero-search button:hover { background: var(--teal); }
.hero-search .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--shadow); max-height: 360px; overflow: auto; }
.hero-search .search-results:empty { display: none; }
.hero-search .search-results li a { display: block; padding: 12px 18px; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.hero-search .search-results li a:hover, .hero-search .search-results li a:focus { background: var(--teal-soft); outline: none; }
.hero-search .r-title { display: block; font-weight: 700; color: var(--ink); }
.hero-search .r-snippet { display: block; font-size: 0.88rem; color: var(--muted); }
.hero-search .r-empty { padding: 14px 18px; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.statement { padding: clamp(48px, 7vw, 96px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.statement-big { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.3; max-width: 980px; margin: 0 auto 18px; }
.statement .lead { max-width: 820px; margin: 0 auto; }

/* Page hero (pages intérieures) */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 60px); background: var(--soft); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 36px solid var(--accent, var(--teal)); opacity: 0.18;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 820px; }
.page-hero .lead { max-width: 720px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Grilles et cartes */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.section-soft .card { border-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.card .card-link:hover { color: var(--orange); }
.card.hover { transition: transform 0.2s, box-shadow 0.2s; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.c-teal { background: var(--teal-soft); color: var(--teal); }
.c-sun { background: var(--sun-soft); color: #c97f00; }
.c-red { background: var(--red-soft); color: var(--red); }
.c-orange { background: var(--orange-soft); color: var(--orange); }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--ink-2); margin: 0 6px 6px 0;
}

/* Étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--teal);
}
.step:nth-child(2)::before { background: var(--sun); }
.step:nth-child(3)::before { background: var(--red); }
.step:nth-child(4)::before { background: var(--orange); }

/* Bande d'appel à l'action */
.cta-band {
  border-radius: 28px; padding: clamp(32px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--orange), var(--red));
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; opacity: 0.92; }
.cta-band.teal { background: linear-gradient(120deg, var(--teal), #0f8a9c); }
.cta-band::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -70px; bottom: -120px;
  border-radius: 50%; border: 34px solid rgba(255, 255, 255, 0.16);
}

/* Liste à puces stylée */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-soft); border: 4px solid var(--teal);
}

/* Bloc texte (pages légales, articles) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.todo {
  background: var(--sun-soft); border-left: 4px solid var(--sun); padding: 2px 8px; border-radius: 4px;
  font-weight: 600; color: #7a4d00;
}
.notice {
  background: var(--teal-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin: 0 0 24px;
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }

/* Empty state */
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted);
}
.empty h3 { color: var(--ink); }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); padding: 18px 0; list-style: none; position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Formulaires */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { margin-top: 4px; }
.form-note { font-size: 0.86rem; color: var(--muted); }
.form-status { font-weight: 600; color: #0f7a5a; }

/* Article */
.post-card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.post-visual { aspect-ratio: 16 / 9; border-radius: 14px; margin-bottom: 18px; overflow: hidden; background: var(--teal-soft); display: grid; place-items: center; }
.post-visual .logo-mark { height: 72%; width: auto; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #b7bbc4; padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b7bbc4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid #2b2f38; margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.86rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto; padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .main-nav .nav-parent::after { content: none; }
  .main-nav .nav-parent { cursor: default; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 2px; }
  .main-nav .nav-parent:hover { background: none; }
  .header-tools .btn-don { display: none; }
  .main-nav .mobile-only { display: block; }
}
@media (min-width: 1081px) { .main-nav .mobile-only { display: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .header-tools .lang-switch { width: 38px; height: 38px; }
  .hero-search button { width: 60px; }
  .hero-search input { padding: 14px 18px; }
  .card { padding: 22px; }
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Coordonnées & réseaux sociaux */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.socials a:hover, .socials a:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.socials-lg a { width: 48px; height: 48px; }
.socials-lg svg { width: 22px; height: 22px; }
.site-footer .socials-dark { margin-top: 18px; }
.site-footer .socials-dark a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.site-footer .socials-dark a:hover { background: var(--teal); border-color: var(--teal); }
.footer-contact { margin-top: 16px !important; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--teal); }
.footer-contact a { color: #fff; }

.contact-side h3 { margin-top: 30px; }
.contact-side .muted { color: var(--muted); }
.contact-info { list-style: none; padding: 8px 24px !important; margin: 22px 0 0; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info li:last-child { border-bottom: 0; }
.ci-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal-soft); color: #0f8a9c; }
.ci-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-info a { color: var(--ink); font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-info a:hover { color: #0f8a9c; text-decoration: underline; }

.follow-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.follow-band h2 { margin: 0 0 6px; }
.follow-band p { margin: 0; color: var(--muted); max-width: 620px; }

/* ==========================================================
   MOTION — animations & interactions
   Actives uniquement si html.motion (ajoutée quand l’utilisateur
   n’a pas demandé « réduire les animations »). Seules transform /
   opacity sont animées pour rester fluide (60 i/s).
   ========================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), var(--sun), var(--red), var(--orange));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* En-tête qui se compacte au défilement */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(18, 20, 26, .08); background: rgba(255, 255, 255, .97); }
@media (min-width: 901px) {
  .header-inner, .brand img { transition: min-height .35s var(--ease-out), height .35s var(--ease-out); }
  .site-header.scrolled .header-inner { min-height: 70px; }
  .site-header.scrolled .brand img { height: 52px; }
}

/* Surlignage « incubateur social » */
.statement .mark {
  color: var(--ink); white-space: nowrap;
  background: linear-gradient(transparent 58%, rgba(246, 168, 35, .55) 58%, rgba(246, 168, 35, .55) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
}

/* Halos colorés qui dérivent derrière le hero */
.hero-grid { position: relative; z-index: 1; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--teal-soft); top: -120px; left: -120px; }
.hero::after { width: 380px; height: 380px; background: var(--sun-soft); bottom: -140px; right: 30%; }

/* Halo lumineux qui suit le pointeur sur les cartes */
.card { position: relative; }
.card.hover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(22, 179, 197, .12), transparent 45%);
  transition: opacity .3s;
}
.card.hover:hover::after { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* --- Entrée du hero --- */
  .motion .hero h1:not(.split) { animation: show-late 0s 1.5s both; visibility: hidden; }
  .motion .hero h1 .wm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
  .motion .hero h1 .wi { display: inline-block; animation: word-up 1s var(--ease-out) calc(.08s + var(--i) * 65ms) both; }
  .motion .hero .lead { animation: fade-up .9s var(--ease-out) .55s both; }
  .motion .hero-search { animation: fade-up .9s var(--ease-out) .7s both; }
  .motion .hero-text .btn-row { animation: fade-up .9s var(--ease-out) .85s both; }

  .motion .hero::before { animation: drift 18s ease-in-out infinite alternate; }
  .motion .hero::after { animation: drift 22s ease-in-out -6s infinite alternate-reverse; }

  /* --- Parallaxe au pointeur (variables --px/--py posées par JS) --- */
  .motion [data-parallax] > * { will-change: translate; }

  /* --- Texte qui s’illumine au défilement --- */
  .motion [data-scrub].scrub-ready .sw { opacity: .14; transition: opacity .35s ease; }
  .motion [data-scrub].scrub-ready .sw.on { opacity: 1; }
  .motion [data-scrub].scrub-ready .mark { background-size: 0% 100%; transition: background-size 1s var(--ease-out); }
  .motion [data-scrub].scrub-ready .mark.on { background-size: 100% 100%; }

  /* --- Apparition au défilement --- */
  .motion .rv { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s); }
  .motion .rv.in { opacity: 1; translate: 0 0; }
  .motion .step.rv::before { scale: .3; transition: scale .7s var(--ease-spring) calc(var(--d, 0s) + .15s); }
  .motion .step.rv.in::before { scale: 1; }

  /* --- Cartes 3D et boutons magnétiques --- */
  .motion .card.hover { transition: transform .35s var(--ease-out), box-shadow .35s, opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s); }
  .motion .card.hover.tilting { transition: transform .08s linear, box-shadow .35s; }
  .motion .btn { transition: transform .15s, background .15s, color .15s, border-color .15s, translate .35s var(--ease-out); }
  .motion .card .icon { transition: transform .5s var(--ease-spring); }
  .motion .card.hover:hover .icon { transform: translateZ(30px) scale(1.08) rotate(-4deg); }
}

@keyframes word-up { from { transform: translateY(110%) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes show-late { to { visibility: visible; } }
@keyframes ring-draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 74 26; } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 8deg; } }
@keyframes disc-in { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes photo-in { from { scale: 1.25; } to { scale: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 60px) scale(1.25); } }

/* ==========================================================
   « Pour qui ? » — cartes photo
   ========================================================== */
.who-card { overflow: hidden; isolation: isolate; }
.who-media {
  position: relative; margin: 0 -28px; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--soft);
}
.who-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out), filter .6s; }
.who-media::after { /* voile coloré qui monte au survol */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: linear-gradient(to top, var(--who-c, var(--teal)) 0%, transparent 55%); mix-blend-mode: multiply;
}
.who-teal { --who-c: rgba(22, 179, 197, .55); }
.who-sun { --who-c: rgba(246, 168, 35, .55); }
.who-red { --who-c: rgba(238, 42, 79, .5); }
.who-orange { --who-c: rgba(255, 91, 20, .45); }
.who-card:hover .who-media img { scale: 1.08; }
.who-card:hover .who-media::after { opacity: 1; }
.who-icon { position: relative; z-index: 2; }
.who-card h3 { margin-top: 4px; }


/* Mur de logos partenaires */
.org-wall {
  height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px;
  background: radial-gradient(circle at 20% 10%, var(--orange-soft), transparent 60%), radial-gradient(circle at 90% 90%, var(--sun-soft), transparent 55%), #fbfaf7;
}
.org-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(18, 20, 26, .07); color: var(--ink-2);
  transition: transform .5s var(--ease-spring), box-shadow .3s;
}
.org-tile small { font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.org-tile:nth-child(1) svg { color: var(--teal); }
.org-tile:nth-child(2) svg { color: #c97f00; }
.org-tile:nth-child(3) svg { color: var(--red); }
.org-you { background: transparent; box-shadow: none; overflow: hidden; }
.org-you::before { /* bordure en pointillés */
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px dashed rgba(255, 91, 20, .55);
}
.org-you b { font-size: 1.6rem; line-height: 1; color: var(--orange); }
.org-you small { color: var(--orange); }
.who-card:hover .org-tile { transform: translateY(-4px); }
.who-card:hover .org-tile:nth-child(2) { transition-delay: .05s; }
.who-card:hover .org-tile:nth-child(3) { transition-delay: .1s; }
.who-card:hover .org-tile:nth-child(4) { transition-delay: .15s; }

@media (max-width: 600px) { .who-media { margin: 0 -22px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Révélation en rideau + zoom arrière quand la carte entre à l'écran */
  .motion .who-card.rv .who-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out) calc(var(--d, 0s) + .1s); }
  .motion .who-card.rv.in .who-media { clip-path: inset(0 0 0 0); }
  .motion .who-card.rv .who-media img { scale: 1.25; }
  .motion .who-card.rv.in .who-media img { scale: 1; transition: scale 1.6s var(--ease-out) calc(var(--d, 0s) + .1s), translate .9s var(--ease-out), filter .6s; }
  .motion .who-card.rv.in:hover .who-media img { scale: 1.08; transition: scale .9s var(--ease-out), translate .9s var(--ease-out); }
  .motion .who-card.rv .who-icon { scale: 0; rotate: -90deg; transition: scale .7s var(--ease-spring) calc(var(--d, 0s) + .7s), rotate .7s var(--ease-spring) calc(var(--d, 0s) + .7s); }
  .motion .who-card.rv.in .who-icon { scale: 1; rotate: 0deg; }
  /* Tuiles du mur de logos : apparition en cascade puis flottement */
  .motion .who-card.rv .org-tile { opacity: 0; scale: .5; transition: opacity .6s var(--ease-out), scale .7s var(--ease-spring), transform .5s var(--ease-spring); transition-delay: calc(var(--d, 0s) + .5s + var(--k) * .12s); }
  .motion .who-card.rv.in .org-tile { opacity: 1; scale: 1; }
  .motion .who-card.rv.in .org-tile { animation: tile-float 5s ease-in-out calc(var(--k) * -1.2s) infinite; }
  .motion .org-you::before { border: 0; background: conic-gradient(from var(--ang, 0deg), var(--orange), var(--sun), var(--red), var(--teal), var(--orange)); padding: 2px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 4s linear infinite; }
  .motion .org-you b { animation: plus-pulse 2.2s ease-in-out infinite; }
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
@keyframes tile-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes plus-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.25; } }

/* ==========================================================
   WhatsApp — bouton flottant et liens
   ========================================================== */
:root { --wa: #25d366; --wa-dark: #128c4b; }
.footer-contact li > svg[viewBox] { color: var(--teal); }
.footer-contact .wa-tag { font-size: .7rem; font-weight: 700; background: var(--wa); color: #06331b; padding: 1px 6px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.ci-icon.ci-wa { background: #dcf8e7; color: var(--wa-dark); }
.wa-cta {
  display: inline-flex !important; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--wa); color: #06331b !important; font-size: .88rem; text-decoration: none !important; transition: background .2s, transform .2s;
}
.wa-cta:hover { background: #1ebe5a; transform: translateY(-1px); }
.contact-info div > a:first-of-type { display: block; }

.wa-float {
  position: fixed; z-index: 90; right: calc(22px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(18, 140, 75, .35);
  transition: transform .35s var(--ease-spring, ease), box-shadow .3s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(18, 140, 75, .45); }
.wa-float::before { /* onde qui pulse */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; pointer-events: none;
}
.wa-bubble {
  position: absolute; right: calc(100% + 14px); top: 50%; translate: 0 -50%; white-space: nowrap;
  background: #fff; color: var(--ink); font-size: .9rem; font-weight: 700; padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 10px 28px rgba(18, 20, 26, .14); opacity: 0; scale: .85; transform-origin: right center; pointer-events: none;
  transition: opacity .3s, scale .4s var(--ease-spring, ease);
}
.wa-float:hover .wa-bubble, .wa-float:focus-visible .wa-bubble { opacity: 1; scale: 1; }
@media (max-width: 600px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-bubble { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .wa-float { animation: wa-in .8s var(--ease-spring) 2.2s both; }
  .motion .wa-float::before { animation: wa-ping 2.6s ease-out 3s infinite; }
  .motion .wa-float svg { animation: wa-wiggle 6s ease-in-out 4s infinite; }
  @media (min-width: 601px) { .motion .wa-float .wa-bubble { animation: wa-bubble 5s ease 3.4s backwards; } }
}
@keyframes wa-in { from { scale: 0; rotate: -180deg; } to { scale: 1; rotate: 0deg; } }
@keyframes wa-ping { 0% { opacity: .8; scale: 1; } 100% { opacity: 0; scale: 1.7; } }
@keyframes wa-wiggle { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -14deg; } 94% { rotate: 12deg; } 97% { rotate: -6deg; } }
@keyframes wa-bubble { 0% { opacity: 0; scale: .85; } 10%, 85% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .85; } }

/* ==========================================================
   Hero — visuel « arche » (identité propre Youthaid)
   ========================================================== */
.hv2 { aspect-ratio: 1 / 1.08; max-width: 520px; }
.hv-stripes { position: absolute; inset: 8% -4% 14% 4%; rotate: -14deg; display: grid; gap: 7%; align-content: center; }
.hv-stripes span { display: block; height: 15%; min-height: 34px; border-radius: 999px; }
.hv-stripes span:nth-child(1) { background: var(--teal); width: 78%; margin-left: 18%; }
.hv-stripes span:nth-child(2) { background: var(--sun); width: 92%; margin-left: 2%; }
.hv-stripes span:nth-child(3) { background: var(--red); width: 70%; margin-left: 26%; }
.hv-stripes span:nth-child(4) { background: var(--orange); width: 58%; margin-left: 8%; }
.hv-arch {
  position: absolute; left: 18%; right: 14%; top: 0; bottom: 8%; margin: 0; overflow: hidden;
  border-radius: 999px 999px 28px 28px; background: #fff;
  box-shadow: 0 30px 60px rgba(18, 20, 26, .18); border: 8px solid #fff;
}
.hv-arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: inherit; }
.hv-badge { position: absolute; left: 0; top: 10%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(18, 20, 26, .25); }
.hv-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-badge text { fill: #fff; font: 700 15.5px/1 var(--font); letter-spacing: 2.4px; }
.hv-badge .logo-mark { width: 44%; height: 44%; }
.hv-founder {
  position: absolute; right: 0; bottom: 0; width: 64%; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border-radius: 18px; padding: 16px 18px 16px 22px; box-shadow: 0 18px 40px rgba(18, 20, 26, .16);
  border-left: 5px solid var(--orange);
}
.hv-quote { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.35; }
.hv-sign { font-size: .85rem; color: var(--muted); }
.hv-sign strong { color: var(--ink); }
@media (max-width: 600px) {
  .hv-founder { width: 82%; padding: 12px 14px 12px 16px; }
  .hv-quote { font-size: .9rem; }
  .hv-badge text { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .hv-stripes span { animation: stripe-in 1s var(--ease-out) both; }
  .motion .hv-stripes span:nth-child(1) { animation-delay: .25s; }
  .motion .hv-stripes span:nth-child(2) { animation-delay: .35s; }
  .motion .hv-stripes span:nth-child(3) { animation-delay: .45s; }
  .motion .hv-stripes span:nth-child(4) { animation-delay: .55s; }
  .motion .hv-arch { animation: arch-in 1.3s var(--ease-out) .15s both; }
  .motion .hv-arch img { animation: photo-in 1.8s var(--ease-out) .15s both; }
  .motion .hv-badge { animation: pop-in .9s var(--ease-spring) .9s both; }
  .motion .hv-badge svg { animation: spin 18s linear infinite; }
  .motion .hv-founder { animation: founder-in 1s var(--ease-out) 1.1s both; }
  .motion .hv-stripes { translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -14px); }
  .motion .hv-arch { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px); }
  .motion .hv-badge { translate: calc(var(--px, 0) * -28px) calc(var(--py, 0) * -22px); }
  .motion .hv-founder { translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 16px); }
  .motion .hv-badge:hover svg { animation-duration: 4s; }
}
@keyframes stripe-in { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); } to { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); } }
@keyframes founder-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }

/* ==========================================================
   Actions réelles — cartes événement, frise, article
   ========================================================== */
.ev-card { padding-top: 0; overflow: hidden; }
.ev-media { position: relative; display: block; margin: 0 -28px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .9s var(--ease-out); }
.ev-card:hover .ev-media img { scale: 1.06; }
.ev-date { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 10px; border-radius: 8px; letter-spacing: .02em; }
.ev-card .meta, .post-card .meta { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
@media (max-width: 600px) { .ev-media { margin: 0 -22px 16px; } }

.timeline { position: relative; display: grid; gap: 36px; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--teal), var(--sun), var(--red), var(--orange)); transform-origin: top; }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -44px; top: 22px; width: 29px; height: 29px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 0 0 6px var(--soft); }
.tl-item:nth-child(2) .tl-dot { border-color: var(--teal); }
.tl-card { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 18px; align-items: start; }
.tl-poster { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(18, 20, 26, .12); }
.tl-poster img { display: block; width: 100%; height: auto; transition: scale .9s var(--ease-out); }
.tl-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(18, 20, 26, .78); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s; }
.tl-poster:hover img, .tl-poster:focus-visible img { scale: 1.05; }
.tl-poster:hover .tl-zoom, .tl-poster:focus-visible .tl-zoom { opacity: 1; translate: 0 0; }
.tl-body { padding: 6px 6px 6px 0; }
.tl-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); background: var(--orange-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.tl-body h3 { font-size: 1.3rem; margin: 0 0 8px; }
.ev-facts, .ev-people { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ev-facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.ev-facts svg { color: var(--teal); flex: none; }
.ev-people { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 18px; }
.ev-people li { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; line-height: 1.3; }
.ev-role { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.ev-people strong { color: var(--ink); }
.ev-people small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ev-note { display: flex; gap: 10px; align-items: flex-start; margin: 32px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--teal-soft); color: var(--ink-2); font-size: .95rem; }
.ev-note svg { color: #0f8a9c; flex: none; margin-top: 3px; }
.article-figure { margin: 0 0 22px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(18, 20, 26, .12); }
.article-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .tl-card { grid-template-columns: 1fr; } .tl-body { padding: 0 4px 6px; } }
@media (max-width: 600px) { .timeline { padding-left: 30px; } .timeline::before { left: 8px; } .tl-dot { left: -30px; width: 21px; height: 21px; border-width: 3px; } }

@media (prefers-reduced-motion: no-preference) {
  .motion .timeline::before { animation: tl-grow 1.6s var(--ease-out) .2s both; }
  .motion .tl-item.rv .tl-dot { scale: 0; transition: scale .6s var(--ease-spring) calc(var(--d, 0s) + .35s); }
  .motion .tl-item.rv.in .tl-dot { scale: 1; }
  .motion .tl-item.rv .tl-poster { clip-path: inset(0 100% 0 0 round 14px); transition: clip-path 1.1s var(--ease-out) calc(var(--d, 0s) + .15s); }
  .motion .tl-item.rv.in .tl-poster { clip-path: inset(0 0 0 0 round 14px); }
  .motion .tl-item.rv .ev-people li { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
  .motion .tl-item.rv.in .ev-people li { opacity: 1; translate: 0 0; }
  .motion .tl-item.rv.in .ev-people li:nth-child(1) { transition-delay: .6s; }
  .motion .tl-item.rv.in .ev-people li:nth-child(2) { transition-delay: .72s; }
  .motion .tl-item.rv.in .ev-people li:nth-child(3) { transition-delay: .84s; }
  .motion .ev-card.rv .ev-date { scale: .4; opacity: 0; transition: scale .6s var(--ease-spring) calc(var(--d, 0s) + .5s), opacity .4s calc(var(--d, 0s) + .5s); }
  .motion .ev-card.rv.in .ev-date { scale: 1; opacity: 1; }
  .motion .tl-dot { animation: dot-pulse 2.8s ease-in-out 2s infinite; }
}
@keyframes tl-grow { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 6px var(--soft); } 50% { box-shadow: 0 0 0 10px rgba(255, 91, 20, .14); } }
