﻿/* =============================================
   Styles extraits pour dons.html
   ============================================= */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    margin: 0;
    padding-top: 78px;
    font-family: 'Montserrat', -apple-system, system-ui, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  ::selection { background: var(--c-accent); color: var(--c-text); }
  a { color: inherit; }

  /* ── ANIMATIONS ── */
  .fade-up { animation: fadeUp 800ms cubic-bezier(.2,.7,.2,1) backwards; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse-shadow {
    0%, 100% { box-shadow: 0 12px 30px -10px rgba(58,45,32,0.4); }
    50% { box-shadow: 0 18px 44px -10px rgba(58,45,32,0.55); }
  }
  .cta-pulse { animation: pulse-shadow 2.4s ease-in-out infinite; }

  /* ── DÉCOR ORGANIQUE ── */
  .deco-shape {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }
  .deco-shape.top {
    top: 10%; right: -8%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(201,172,133,0.18) 0%, transparent 70%);
  }
  .deco-shape.bottom {
    bottom: -10%; left: -8%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(234,218,193,0.4) 0%, transparent 70%);
  }

  /* ── LAYOUT MAIN ── */
  .don-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 32px 0px;
    position: relative;
    z-index: 1;
  }

  /* ── HERO ROW — texte + affiche côte à côte ── */
  .hero-row {
    display: flex;
    align-items: center;
    gap: 56px;
  }
  .hero-text {
    flex: 1 1 0;
    min-width: 0;
  }
  .hero-image-wrap {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-affiche {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 16px 48px -12px rgba(58,45,32,0.28);
    display: block;
  }
  @media (max-width: 900px) {
    .hero-row { flex-direction: column; gap: 32px; }
    .hero-image-wrap { flex: 0 0 auto; width: 100%; }
    .hero-affiche { max-width: 100%; }
  }

  /* ── EYEBROW ── */
  .eyebrow {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text);
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 auto 24px 0;
    font-weight: 500;
    text-align: left;
    width: fit-content;
  }
  .eyebrow .line {
    width: 24px;
    height: 1px;
    background: var(--c-text);
    opacity: 0.6;
    display: inline-block;
  }

  /* ── DISPLAY HEADINGS — identité du site ── */
  .display-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
    text-transform: none;
    text-shadow: none !important;
  }
  .display-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--c-text);
    text-transform: none;
    text-shadow: none;
  }

  /* Hero title — grand titre éditorial, marron, en italique doré sur l'accent */
  body .hero-title,
  body h1.hero-title {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 28px;
    max-width: 920px;
    text-align: left;
    text-transform: none;
    text-shadow: none !important;
  }
  body .hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--c-text);
    text-shadow: none;
  }
  @media (max-width: 600px) {
    body .hero-title { font-size: 2rem; }
  }

  .hero-lede {
    font-size: 19px;
    line-height: 1.6;
    color: var(--c-text);
    max-width: 680px;
    margin: 0 0 48px;
    font-weight: 400;
  }

  /* ── CTA PRINCIPAL ── */
  .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    background: var(--gradient-dark);
    color: var(--c-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 999px;
    transition: transform 200ms ease;
  }
  .btn-cta:hover { transform: translateY(-2px); }

  .trust-line {
    margin-top: 20px;
    font-size: 12px;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 500;
  }
  .trust-line .item,
  .trust-line span { color: var(--c-text); }
  .trust-line .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }


  /* ── SECTION POURQUOI ── */
  .section-why { margin-bottom: 0; padding-top: 60px; padding-bottom: 40px; }
  .why-title {
    font-size: clamp(28px, 4.5vw, 50px);
    margin: 0 0 48px;
    max-width: 720px;
  }
  .reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 56px;
  }
  .reason {
    padding: 28px 0;
    border-top: 1px solid rgba(106, 78, 62, 0.18);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }
  .reason.last-row {
    border-bottom: 1px solid rgba(106, 78, 62, 0.18);
  }
  .reason-num {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 12px;
    color: #8E6A4A;
    padding-top: 6px;
    letter-spacing: 0.05em;
    font-weight: 500;
  }
  .reason h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--c-text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .reason p {
    font-size: 14px;
    color: var(--c-text);
    opacity: 0.85;
    line-height: 1.65;
    margin: 0;
  }

  /* ── STATS — pleine largeur avec gradient sombre ── */
  /* Sélecteur très spécifique pour battre main section:not(.actions-row) */
  main.don-main section.stats-section,
  .stats-section {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50% !important;
    transform: translateX(-50%);
    padding: 90px 32px !important;
    background: var(--gradient-dark) !important;
    border: none !important;
    color: var(--c-white);
    box-sizing: border-box;
  }

  /* Animation dédiée qui préserve le translateX(-50%) du centrage */
  .stats-section.fade-up {
    animation: fadeUpStats 800ms cubic-bezier(.2,.7,.2,1) backwards;
  }
  @keyframes fadeUpStats {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }
  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  .stats-section .stat-num {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(44px, 5vw, 60px);
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .stats-section .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    line-height: 1.5;
  }

  /* ── QUOTE ── */
  .quote-section {
    margin: 120px auto 140px;
    padding: 50px 20px;
    text-align: center;
    max-width: 760px;
  }
  .quote-mark {
    font-size: 56px;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    color: var(--c-accent);
    line-height: 0.5;
    margin-bottom: 12px;
  }
  .quote-section blockquote {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 300;
    color: var(--c-text);
    margin: 0 0 20px;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }
  .quote-author {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 11px;
    color: #8E6A4A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* ── CTA FINAL CARD ── */
  /* Sélecteur très spécifique pour battre main section:not(.actions-row) */
  main.don-main section.final-cta,
  .final-cta {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 90px 32px !important;
    background: var(--gradient-dark) !important;
    border: none !important;
    border-radius: 12px;
    color: var(--c-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 70px;
  }
  .final-cta-inner {
    max-width: 720px;
    margin: 0 auto;
  }
  .final-cta::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,208,138,0.18) 0%, transparent 70%);
  }
  .final-cta-inner { position: relative; }
  /* Titre du CTA final : tout en blanc, pas de changement de couleur sur l'em */
  body main .final-cta h2,
  .final-cta h2 {
    font-family: 'Kanit', sans-serif !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 700 !important;
    color: var(--c-white) !important;
    margin: 0 0 16px !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }
  body main .final-cta h2 em,
  .final-cta h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--c-white) !important;
  }
  body main .final-cta p,
  .final-cta p {
    font-size: 15px !important;
    color: var(--c-white) !important;
    margin: 0 auto 32px !important;
    max-width: 480px;
    line-height: 1.6;
  }
  /* Bouton clair : fond doré, texte marron — toujours lisible */
  body main a.btn-cta-light,
  .btn-cta-light {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    background: var(--c-accent) !important;
    color: var(--c-text) !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    transition: background 200ms ease, transform 200ms ease;
  }
  body main a.btn-cta-light:hover,
  .btn-cta-light:hover {
    background: var(--c-accent-hover) !important;
    color: var(--c-text) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
  }

  /* ── FOOTER ── */
  .don-footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px;
    text-align: center;
    font-size: 12px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
  }
  .don-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .don-footer-mono {
    font-family: 'Courier New', Consolas, monospace;
    letter-spacing: 0.1em;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .reasons-grid { grid-template-columns: 1fr; gap: 0; }
    .stats-row { grid-template-columns: 1fr; gap: 24px; }
    .reason.last-row { border-bottom: none; }
    .reason:last-child { border-bottom: 1px solid rgba(106, 78, 62, 0.18); }
  }
  @media (max-width: 600px) {
    .don-main { padding: 32px 20px 0px; }
    .final-cta { padding: 48px 24px; border-radius: 10px; }
    .don-footer-inner { flex-direction: column; gap: 8px; }
  }
