/* AA92 — feuille de style principale */
:root {
  --teal: #0f5257;
  --teal-dark: #0a3a3d;
  --teal-soft: #e3efee;
  --orange: #e07a3f;
  --orange-dark: #c4612a;
  --pink: #c8506b;
  --pink-soft: #fbe9ed;
  --cream: #fbf6ee;
  --white: #ffffff;
  --ink: #1d2a2b;
  --muted: #5b6b6c;
  --line: #e4ddd1;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(15, 82, 87, .10);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--teal-dark); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: .6em;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }

/* Lien d'évitement (accessibilité) */
.skip { position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--teal-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-pink { background: var(--pink); color: #fff; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-dark); font-weight: 800; font-size: 1.15rem; }
.brand img { height: 44px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--orange-dark); }
.nav .btn { padding: 9px 18px; font-size: .9rem; color: #fff; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px; color: var(--teal-dark);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border: 0; margin-top: 12px; text-align: center; justify-content: center; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #1b6e6f 100%);
  color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,122,63,.35), transparent 70%);
}
.hero .eyebrow { color: #ffc49e; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 820px; }
.hero p { font-size: 1.15rem; max-width: 640px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-quote { margin-top: 44px; font-style: italic; opacity: .8; font-size: .98rem; max-width: 560px; border-left: 3px solid var(--orange); padding-left: 14px; }

/* Chiffres clés */
.stats { background: var(--white); padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  transform: translateY(-40px); overflow: hidden;
}
.stat { padding: 28px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.3rem; color: var(--orange-dark); line-height: 1.1; }
.stat > span { color: var(--muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Qui sommes-nous */
.about { background: var(--white); padding-top: 32px; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5257' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.card-public {
  background: var(--teal-soft); border-radius: var(--radius); padding: 28px;
}
.card-public h3 { color: var(--teal-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag { background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; color: var(--teal-dark); }

/* Pôles */
.poles { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
  border-top: 5px solid var(--teal);
}
.card:nth-child(2) { border-top-color: var(--orange); }
.card:nth-child(3) { border-top-color: var(--pink); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--teal); }
.card .icon svg { width: 26px; height: 26px; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.card li:last-child { border: 0; }
.card li b { color: var(--ink); }

/* Objectifs */
.goals { background: var(--teal-dark); color: #fff; }
.goals h2 { color: #fff; }
.goals .lead { color: rgba(255,255,255,.8); }
.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 32px; }
.goal { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px 18px; font-weight: 500; }

/* Précarité menstruelle */
.period { background: var(--pink-soft); }
.period h2 { color: #8e2c43; }
.period .eyebrow { color: var(--pink); }
.period-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 760px) { .period-grid { grid-template-columns: 1fr; } }
.period-item { background: #fff; border-radius: var(--radius); padding: 24px; }
.period-item h3 { color: #8e2c43; }
.posters { display: flex; gap: 16px; overflow-x: auto; padding: 28px 2px 10px; scroll-snap-type: x mandatory; }
.posters img { width: 220px; flex: 0 0 auto; border-radius: 10px; box-shadow: var(--shadow); scroll-snap-align: start; background: #fff; }
.period-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Sorties */
.trips { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--teal-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.destinations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.destinations span { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }

/* Agir : adhérer / soutenir */
.act { background: var(--cream); }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .act-grid { grid-template-columns: 1fr; } }
.act-card { border-radius: var(--radius); padding: 36px 30px; color: #fff; }
.act-card h2 { color: #fff; }
.act-card p { opacity: .92; }
.act-join { background: var(--teal); }
.act-give { background: var(--orange-dark); }
.act-card .btn { margin-top: 8px; }
.act-card .btn-white { background: #fff; color: var(--ink); }
.small-note { font-size: .88rem; opacity: .85; margin-top: 14px; }

/* Partenaires */
.partners { background: var(--white); text-align: center; }
.partners .lead { margin: 0 auto; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.partner { border: 1px solid var(--line); border-radius: 12px; padding: 14px 22px; font-weight: 700; color: var(--teal-dark); background: var(--cream); }

/* Contact */
.contact { background: var(--teal-soft); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; margin-top: 28px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(15,82,87,.15); }
.info-list li:last-child { border: 0; }
.info-list svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--teal); margin-top: 3px; }
.info-list b { display: block; color: var(--teal-dark); }
.form-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--cream);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.consent input { margin-top: 4px; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e2f4e8; color: #1e6b3a; }
.form-msg.err { display: block; background: #fde8e8; color: #9b1c1c; }

/* Pied de page */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.8); padding: 48px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.social { display: flex; gap: 12px; margin-top: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: var(--orange); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

/* Page mentions légales */
.legal { background: var(--white); }
.legal h1 { color: var(--teal-dark); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal .container { max-width: 820px; }
.todo { background: #fff4d6; padding: 1px 6px; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ============ ANIMATIONS ============ */

/* Barre de progression de lecture */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); z-index: 70; pointer-events: none; }

/* En-tête qui s'affine au défilement */
.site-header { transition: box-shadow .3s, background .3s; }
.header-inner { transition: height .3s; }
.brand img { transition: height .3s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15, 82, 87, .12); }
.site-header.scrolled .header-inner { height: 58px; }
.site-header.scrolled .brand img { height: 36px; }

/* Menu : section en cours */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s; }
.nav a.active:not(.btn) { color: var(--orange-dark); }
.nav a.active:not(.btn)::after, .nav a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav a:not(.btn)::after { display: none; } .nav { animation: menuIn .25s ease-out; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* Apparition au défilement (uniquement si le JavaScript fonctionne) */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.anim .reveal.in { opacity: 1; transform: none; }

/* Hero : entrée au chargement */
.anim .hero .eyebrow, .anim .hero h1, .anim .hero p, .anim .hero-actions { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero h1 { animation-delay: .1s; }
.anim .hero p { animation-delay: .25s; }
.anim .hero-actions { animation-delay: .4s; }
.anim .hero .hero-quote { animation-delay: .55s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
.hero::after { animation: float 12s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(-60px, 80px) scale(1.15); } }

/* Survols */
.card, .period-item, .act-card, .goal, .partner { transition: transform .3s, box-shadow .3s, background .3s; }
.card:hover, .period-item:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15, 82, 87, .16); }
.card .icon { transition: transform .4s; }
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.goal:hover { background: rgba(255,255,255,.14); transform: translateX(4px); }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn { transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.btn:hover { box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn:active { transform: scale(.97); }

/* Retour en haut */
.to-top {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; z-index: 40;
  background: var(--orange); color: #fff; box-shadow: var(--shadow); display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange-dark); }
.to-top svg { width: 22px; height: 22px; }

/* Galerie : agrandissement */
.gallery figure { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 30, 32, .92); display: grid; place-items: center; padding: 60px 16px; opacity: 0; transition: opacity .3s; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: min(1000px, 100%); max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.94); transition: transform .3s; }
.lightbox.open img { transform: none; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--orange); }
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Formulaire : validation en direct */
.field { position: relative; }
.field input, .field textarea { transition: border-color .2s, background .2s, box-shadow .2s; }
.field.valid input, .field.valid textarea { border-color: #3a9a5b; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; background: #fdf1f0; }
.field.valid::after { content: "✓"; position: absolute; right: 12px; top: 38px; color: #3a9a5b; font-weight: 800; animation: pop .3s; }
.field-error { display: block; color: #b0281a; font-size: .85rem; margin-top: 4px; min-height: 0; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.3); } }
.counter { display: block; text-align: right; font-size: .8rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.counter.near { color: var(--orange-dark); }

/* Bouton d'envoi animé */
.btn-send { min-width: 220px; justify-content: center; position: relative; }
.btn-send .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn-send.loading { pointer-events: none; opacity: .9; }
.btn-send.loading .spinner { display: inline-block; }
.btn-send.success { background: #2e8b57; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Carte de remerciement */
.thanks { text-align: center; padding: 20px 6px; animation: heroIn .6s cubic-bezier(.2,.7,.2,1) both; }
.thanks h3 { color: var(--teal-dark); font-size: 1.4rem; }
.thanks p { color: var(--muted); }
.envelope { width: 96px; height: 96px; margin: 0 auto 16px; color: var(--orange); animation: flyaway 1.6s cubic-bezier(.5,0,.3,1) .2s both; }
.envelope svg { width: 100%; height: 100%; }
.check-circle { width: 72px; height: 72px; margin: -40px auto 16px; border-radius: 50%; background: #2e8b57; color: #fff; display: grid; place-items: center; font-size: 2rem; animation: pop .5s 1.4s both; }
@keyframes flyaway {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  30% { transform: translate(0, 6px) rotate(-6deg); }
  100% { transform: translate(160px, -140px) rotate(18deg) scale(.4); opacity: 0; }
}

/* Affiches : défilement automatique */
.posters { scroll-snap-type: none; scrollbar-width: thin; }

/* Personnes qui préfèrent réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .reveal { opacity: 1; transform: none; }
  .progress { display: none; }
}
