/* =========================================================
   LA VOIX ROSE — feuille de style principale
   Basée sur la charte d'identité visuelle 2025 :
   - Couleurs : Rose lèvres #D14E72 / Plum profond #7E2742 /
                Nude chaud #A06A50 / Crème #FBF5F1
   - Typo     : Kaushan Script (signature & titres)
                Mulish (textes, labels, supports)
   - Signature visuelle : l'« équaliseur suspendu », un motif
     d'ondes verticales qui évoque la voix que l'on porte et
     le silence que l'on brise.
   ========================================================= */

:root {
  /* Couleurs officielles de la charte */
  --rose: #D14E72;
  --plum: #7E2742;
  --nude: #A06A50;
  --creme: #FBF5F1;

  /* Neutres dérivés, pour la lisibilité (issus de la famille plum) */
  --text: #3D2530;
  --text-soft: #6E5560;
  --white: #FFFFFF;
  --rose-tint: #F7E1E7;
  --creme-deep: #F3E9E2;
  --border: #E6D6CE;

  /* Typo */
  --font-display: "Kaushan Script", cursive;
  --font-body: "Mulish", sans-serif;

  /* Rythme */
  --container: 1120px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -25px rgba(126, 39, 66, 0.35);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--plum); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn-primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(209, 78, 114, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(209, 78, 114, 0.75); }
.btn-outline {
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.btn-outline:hover { background: var(--plum); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--creme);
  color: var(--plum);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}
.brand-text .voix { color: var(--plum); }
.brand-text .rose-word { color: var(--rose); }

/* Équaliseur — motif signature, version logo */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
}
.eq span {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--rose);
}
.eq span:nth-child(1) { height: 40%; background: var(--nude); }
.eq span:nth-child(2) { height: 75%; background: var(--rose); }
.eq span:nth-child(3) { height: 55%; background: var(--plum); }
.eq span:nth-child(4) { height: 100%; background: var(--rose); }
.eq span:nth-child(5) { height: 65%; background: var(--plum); }
.eq span:nth-child(6) { height: 85%; background: var(--rose); }
.eq span:nth-child(7) { height: 35%; background: var(--nude); }

.eq.eq-light span { background: var(--creme); opacity: 0.92; }
.eq.eq-light span:nth-child(even) { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .eq.eq-animated span { animation: eq-pulse 1.8s ease-in-out infinite; }
  .eq.eq-animated span:nth-child(1) { animation-delay: -1.1s; }
  .eq.eq-animated span:nth-child(2) { animation-delay: -0.4s; }
  .eq.eq-animated span:nth-child(3) { animation-delay: -1.6s; }
  .eq.eq-animated span:nth-child(4) { animation-delay: -0.2s; }
  .eq.eq-animated span:nth-child(5) { animation-delay: -1.3s; }
  .eq.eq-animated span:nth-child(6) { animation-delay: -0.7s; }
  .eq.eq-animated span:nth-child(7) { animation-delay: -1.8s; }
}
@keyframes eq-pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.45); }
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.main-nav a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--plum); }

.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--plum);
  position: relative;
  transition: 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: -400px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--creme);
    flex-direction: column;
    align-items: stretch;
    padding: 450px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 16px 2px; }
  .main-nav .nav-cta { display: block; margin-top: 18px; }
  .menu-toggle { display: flex; }
  .donate-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 78px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.08;
  color: var(--plum);
  margin: 14px 0 20px;
}
.hero h1 .accent { color: var(--rose); }
.hero p.lede {
  font-size: 18.5px;
  color: var(--text-soft);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art {
  width: 100%;
}
.hero-art .photo-frame {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.hero-art .eq-big {
  height: 240px;
  align-items: flex-end;
  gap: 8px;
}
.hero-art .eq-big span { width: 12px; border-radius: 8px; }
.hero-bg { position: relative; overflow: hidden; padding: 120px 0; }
.hero-bg-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; }
.hero-bg-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(62, 20, 38, 0.55); }
.hero-bg .container { position: relative; z-index: 1; }
.hero-bg h1, .hero-bg p.lede, .hero-bg .eyebrow { color: var(--creme); }
.hero-bg .eyebrow::before { background: var(--creme); }
.hero-bg .btn-outline { border-color: var(--creme); color: var(--creme); }
.hero-bg .btn-outline:hover { background: var(--creme); color: var(--plum); }

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 58px);
  color: var(--plum);
  margin-top: 12px;
}
.page-hero .lede {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--text-soft);
  font-size: 17.5px;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  margin-top: 12px;
}
.section-head p { color: var(--text-soft); font-size: 17px; margin-top: 12px; }
.section-tinted { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-plum { background: var(--plum); color: var(--rose-tint); }
.section-plum .eyebrow { color: var(--creme); }
.section-plum .eyebrow::before { background: var(--creme); }
.section-plum h2 { color: var(--creme); }
.section-plum p { color: #E9C9D2; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 19px;
  color: var(--plum);
  margin: 16px 0 10px;
}
.card p { color: var(--text-soft); font-size: 15.5px; margin-bottom: 0; }
.card .eq { margin-bottom: 4px; }

.card-rose { background: var(--rose); color: var(--white); border: none; }
.card-rose h3 { color: var(--white); }
.card-rose p { color: var(--rose-tint); }

/* ---------- Photos ---------- */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--white);
}
.photo-frame img,
.photo-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-square { aspect-ratio: 1 / 1; }
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 3 / 2; }
.photo-caption {
  margin-top: 12px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- Carrousel "Mon parcours en images" ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 14px;
  margin: 0 -4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 260px;
  scroll-snap-align: center;
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}
.carousel-slide img,
.carousel-slide video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.carousel-slide:hover img,
.carousel-slide:hover video,
.carousel-slide:focus-visible img,
.carousel-slide:focus-visible video { transform: scale(1.05); }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(to top, rgba(126,39,66,0.92), rgba(126,39,66,0.05));
  color: var(--creme);
}
.carousel-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--creme);
  margin-bottom: 2px;
}
.carousel-caption span { font-size: 13.5px; color: #F2D6DD; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer; font-size: 20px;
  color: var(--plum); display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.carousel-btn:hover { background: var(--rose); color: var(--white); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dots button.active { background: var(--rose); width: 24px; border-radius: 5px; }
@media (max-width: 700px) {
  .carousel-btn { display: none; }
  .carousel-slide { flex-basis: 200px; }
}

/* ---------- Divider waveform ---------- */
.wave-divider {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 64px;
  margin: 8px 0 0;
}
.wave-divider span {
  width: 5px;
  border-radius: 4px;
  background: var(--nude);
}
.wave-divider span:nth-child(odd) { background: var(--rose); }
.wave-divider span:nth-child(3n) { background: var(--plum); }

/* ---------- Quote / signature block ---------- */
.slogan-box {
  border: 2px dashed var(--rose);
  background: var(--rose-tint);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.slogan-box .slogan {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--plum);
}
.slogan-box .label {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- Note éditable (placeholders à personnaliser) ---------- */
.edit-note {
  border: 1px dashed var(--nude);
  background: var(--creme-deep);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.edit-note strong { color: var(--plum); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 800; font-size: 13.5px; letter-spacing: 0.04em; color: var(--plum); }
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum);
  color: var(--rose-tint);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 40px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.site-footer .brand-text .voix { color: var(--creme); }
.site-footer .brand-text .rose-word { color: var(--rose); }
.site-footer p { color: #E9C9D2; font-size: 15px; }
.site-footer h4 {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #F2D6DD; }
.site-footer a:hover { color: var(--creme); }
.footer-slogan { font-family: var(--font-display); font-size: 22px; color: var(--creme); margin: 14px 0 0; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 245, 241, 0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: #D9A8B5;
}
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251, 245, 241, 0.12);
}
.social-row a:hover { background: var(--rose); }
.social-row svg { width: 18px; height: 18px; fill: var(--creme); }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.tag {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--rose-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.italic { font-style: italic; }
.lede-link { font-weight: 800; color: var(--rose); }
.lede-link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
/* ---------- Apparition en fondu au scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 880px) {
  .main-nav.is-open {
    z-index: 999 !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
  }
   .menu-toggle {
    z-index: 1000 !important;
    position: relative;
  }
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.flip-card {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 1200px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flip-card-front { background: var(--white); }
.flip-card-back { background: var(--rose); color: var(--white); transform: rotateY(180deg); }
.flip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rose-tint); color: var(--rose);
  font-family: var(--font-display); font-size: 19px; margin-bottom: 14px;
}
.flip-card-front p { font-weight: 800; font-size: 17.5px; color: var(--plum); margin: 0; }
.flip-card-back p { font-size: 15px; line-height: 1.55; color: var(--white); margin: 0; }
.flip-hint { font-size: 12.5px; font-weight: 800; text-transform: uppercase; }
.flip-card-front .flip-hint { color: var(--rose); }
.flip-card-back .flip-hint { color: var(--creme); }