@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #020305;
  --surface: rgba(12, 12, 18, 0.9);
  --surface-strong: rgba(20, 20, 28, 0.95);
  --text: #f8f5eb;
  --muted: #a2a0a0;
  --gold: #c9a961;
  --gold-dark: #8d763c;
  --gold-soft: rgba(201, 169, 97, 0.16);
  --gradient-gold: linear-gradient(135deg, #c9a961, #e8c547);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(201, 169, 97, 0.12), transparent 32%),
              radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 25%),
              var(--bg);
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  transition: opacity 0.5s ease;
}

body.page-loaded {
  opacity: 1;
}

.text-white {
  color: var(--gold) !important;
}

.logo,
.footer-logo {
  filter: drop-shadow(0 0 18px rgba(201, 169, 97, 0.45));
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 6px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.08), transparent 18%),
              radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.06), transparent 14%);
  pointer-events: none;
}

img, video {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(18px);
  background: rgba(2, 3, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.shrink {
  padding: 12px 0;
  background: rgba(2, 3, 5, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.site-header.shrink .logo-img {
  height: 64px;
}

/* Header grid: brand | nav | actions */
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.header-grid .site-nav {
  justify-self: center;
}
.brand-name{
  font-family: 'Cormorant Garamond', serif;
  font-weight:700;
  letter-spacing:0.12em;
  color:var(--text);
}
.header-actions{
  justify-self: end;
}

.container {
  max-width: 1180px;
}

.brand-group .eyebrow,
.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.header-title,
.section-title,
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.header-title {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.section-title {
  font-size: clamp(2.4rem, 3.4vw, 4rem);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 5rem);
}

.site-nav {
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.site-nav {
  display:flex;
  gap:1.2rem;
  list-style:none;
  padding:0;
  margin:0;
}
.site-nav .nav-link {
  color: var(--gold);
  text-decoration:none;
  padding: 0.2rem 0.45rem;
  transition: color .18s ease, transform .18s ease;
}
.site-nav .nav-link:hover{
  color: rgba(201, 169, 97, 0.95);
  transform: translateY(-2px);
}
.site-nav .nav-link.active{
  color: var(--gold);
  font-weight: 600;
  position: relative;
}
.site-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.hero-section {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}

.parallax-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transform: translate3d(0,0,0);
  will-change: transform;
}

.layer-back {
  background-image: url('cover.jpg');
  filter: blur(2px) brightness(0.72);
  opacity: 0.55;
}

.layer-mid {
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 18%),
                    radial-gradient(circle at 70% 20%, rgba(201, 169, 97, 0.12), transparent 16%);
}

.layer-front {
  background-image: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08), transparent 12%),
                    radial-gradient(circle at 75% 75%, rgba(201, 169, 97, 0.08), transparent 10%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-text,
.lead {
  color: rgba(201, 169, 97, 0.95);
  font-size: 1.05rem;
  max-width: 740px;
  margin: 1rem auto 0;
}

.hero-buttons {
  justify-content: center;
  margin-top: 2rem;
}

.btn-gold,
.btn-gold-outline,
.btn-primary,
.btn-outline-light {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.95rem 1.8rem;
  transition: all 0.25s ease;
}

.btn-gold {
  color: #111;
  background: linear-gradient(135deg, #f5d18b 0%, #c9a961 42%, #9a7a42 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(201, 169, 97, 0.18);
}

.btn-gold:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(201, 169, 97, 0.22);
}

.btn-gold-outline {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.58);
}

.btn-gold-outline:hover {
  background: rgba(201, 169, 97, 0.14);
}

.glass-panel,
.card.flat-card {
  background: rgba(14, 15, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shadow-glow {
  box-shadow: 0 30px 80px rgba(201, 169, 97, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section-hero {
  padding: 90px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 17, 25, 0.95) 0%, rgba(9, 9, 16, 0.9) 100%);
}

.section-split {
  padding-top: 80px;
  padding-bottom: 80px;
}

.card.flat-card {
  padding: 34px;
  min-height: 250px;
}

.list-gold {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
}

.list-gold li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  color: rgba(201, 169, 97, 0.95);
}

.list-gold li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.section-gradient {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(201, 169, 97, 0.16), transparent 22%),
              linear-gradient(180deg, rgba(14, 12, 25, 0.96), rgba(5, 6, 9, 0.95));
}

.social-grid a {
  color: inherit;
}

.social-grid .card {
  padding: 2rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.social-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
  border-radius: 32px;
  padding: 3rem 0;
  margin-top: 2rem;
}

.social-section .section-title {
  margin-bottom: 1.5rem;
}

.social-section .card {
  background: rgba(19, 19, 27, 0.95);
}

.payment-grid .card {
  min-height: 180px;
}

.site-footer {
  background: rgba(4, 4, 9, 0.96);
}

.site-footer .footer-link {
  color: rgba(201, 169, 97, 0.95);
  text-decoration: none;
}

.site-footer .footer-link:hover {
  color: var(--gold);
}

.contact-form .form-control-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
}

.contact-form .form-control-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.detail-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.detail-item p {
  margin: 0;
  color: rgba(201, 169, 97, 0.92);
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.image-panel img {
  transition: transform 0.7s ease;
}

.image-panel:hover img {
  transform: scale(1.03) rotate(-0.5deg);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tilt-card:hover {
  transform: perspective(1200px) translateZ(8px);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
}

.hero-copy .eyebrow,
.section-alt .eyebrow {
  opacity: 0.95;
}

/* ════════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 991px)
════════════════════════════════════ */
@media (max-width: 991px) {
  .hero-section { padding: 80px 0 50px; }
  .header-title { font-size: 2.4rem; }

  /* Nav centré sous le logo */
  header .d-flex.justify-content-between {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  header nav ul.nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
  }
}

/* ════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 767px)
════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Typographie ── */
  .hero-title      { font-size: 2rem !important; }
  .section-title   { font-size: 1.7rem !important; }
  h2.section-title { font-size: 1.8rem !important; }
  .lead            { font-size: 0.95rem; }
  .display-4, .display-5 { font-size: 2rem !important; }

  /* ── Header ── */
  header .d-flex.justify-content-between {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0 1rem;
  }
  header nav ul.nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 0;
  }
  header nav ul.nav li a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }
  .logo { width: 60px !important; }

  /* ── Hero ── */
  .hero-section { padding: 60px 0 40px; }
  .hero-copy    { padding: 0 1rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .btn-gold, .btn-gold-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* ── Cartes stats ── */
  .glass-card { border-radius: 14px; }
  .glass-card .card-body { padding: 1.5rem 1rem; }

  /* ── Sections ── */
  .section-hero  { padding: 50px 0; }
  .glass-panel   { padding: 1.5rem !important; }
  .glass-panel.p-5 { padding: 1.5rem !important; }
  .shadow-glow   { padding: 1.5rem !important; }

  /* ── Social grid ── */
  .social-img  { width: 48px !important; height: 48px !important; }
  .social-grid .card { min-height: 140px !important; padding: 1.2rem !important; }

  /* ── Payment / Mobile money ── */
  .payment-img { width: 80px !important; }
  .payment-grid .card { min-height: 150px !important; }

  /* ── Mobile money cards (donations.html) ── */
  .mobile-money-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .mobile-money-card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .mobile-money-logo { width: 100px !important; }

  /* ── Bank card ── */
  .bank-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  .bank-card img { margin: 0 auto; }

  /* ── Cagnotte card ── */
  .cagnotte-card { padding: 1.8rem 1.2rem 1.5rem !important; }
  .cagnotte-logo-wrap { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cagnotte-logo-wrap img { width: 56px !important; }
  .cagnotte-amounts { flex-direction: column; gap: 0.8rem; text-align: center; }
  .cagnotte-amounts .text-end { text-align: center !important; }

  /* ── Contribute modal ── */
  .contribute-modal-overlay { padding: 0.5rem; align-items: flex-end; overflow-y: auto; }
  .contribute-modal { 
    padding: 2rem 1.2rem; 
    margin: 0; 
    border-radius: 20px 20px 0 0; 
    max-width: 100%; 
    max-height: 88vh; 
    overflow-y: auto; 
  }

  /* ── Video cards ── */
  .video-card       { border-radius: 16px; }
  .video-card-body  { padding: 1rem 1.1rem 1.4rem; }
  .video-modal-box  { border-radius: 16px 16px 0 0; }

  /* ── Adhesion card (contact) ── */
  .adhesion-card { padding: 1.8rem 1.2rem !important; }
  .btn-whatsapp  { width: 100%; justify-content: center; }

  /* ── Flat cards ── */
  .card.flat-card { padding: 1.5rem; min-height: unset; }

  /* ── Footer ── */
  footer .row.align-items-center > div { text-align: center !important; }
  footer .row.align-items-center { gap: 1rem; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    row-gap: 1rem;
    text-align: center;
  }
  .footer-right, .footer-center { justify-self: center !important; }
  .footer-logo { width: 56px !important; margin: 0 auto; display: block; }

  /* ── Tilt cards ── */
  .tilt-card:hover { transform: none; }
}

/* ════════════════════════════════════
   RESPONSIVE — TRÈS PETIT (≤ 400px)
════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-title    { font-size: 1.7rem !important; }
  .section-title { font-size: 1.5rem !important; }
  header nav ul.nav li a { font-size: 0.78rem; padding: 0.25rem 0.4rem; }
  .btn-gold      { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
}

/* Social icons sizing */
.social-grid svg {
  width: 42px;
  height: 42px;
  margin-bottom: 0.5rem;
}

/* Glass card styling for stats and help sections */
.glass-card {
  background: rgba(14, 15, 25, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 120px rgba(201, 169, 97, 0.15);
  border-color: rgba(201, 169, 97, 0.3);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}
.reveal.active { opacity: 1; }

.card-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.card-hidden.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Text gradient gold */
.text-gradient-gold {
  background: linear-gradient(135deg, #c9a961, #e8c547);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text primary color (gold) */
.text-primary { color: var(--gold) !important; }

/* Stats section */
#stats {
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.95) 0%, rgba(15, 15, 22, 0.9) 100%);
  position: relative;
}
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 169, 97, 0.08), transparent 50%);
  pointer-events: none;
}

/* Social section */
#social {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(5, 5, 12, 0.9) 100%);
}
#social a { transition: all 0.3s ease; }
#social a:hover { color: var(--gold) !important; }
#social a:hover img { transform: scale(1.1); filter: brightness(1.2); }

/* Logo styling */
.logo { width: 84px; height: auto; object-fit: contain; padding: 8px; }
.footer-logo { width: 84px; height: auto; display: block; }

/* Images for socials and inline icons */
.social-img {
  width: 60px; height: 60px;
  display: block; margin: 0 auto 0.85rem; object-fit: contain;
}
.payment-img {
  width: 110px; height: auto;
  display: block; margin: 0 auto 0.85rem; object-fit: contain;
}
.payment-grid .card { min-height: 180px; }
.payment-grid .card p { margin: 0; font-size: 0.95rem; }
.social-grid .card { min-height: 180px; }
.btn .inline-icon, .btn img { vertical-align: middle; }

/* Scroll reveal — handled by .reveal + .active (see app.js) */

/* Footer */
.footer-grid { display:grid; grid-template-columns:1fr 360px 120px; align-items:center; gap:1rem; }
.footer-left  { justify-self: start; }
.footer-center{ justify-self: center; }
.footer-right { justify-self: end; }
.footer-logo  { width: 72px; height: auto; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; row-gap: 1rem; text-align: center; }
  .footer-right { justify-self: center; }
}

/* ── Form Control Dark global enhancements ── */
.form-control-dark {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--gold) !important;
}
.form-control-dark:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gold) !important;
}
.form-control-dark option {
  background-color: #0e0f19 !important;
  color: #f8f5eb !important;
}
select.form-control-dark {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9a961' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 2.5rem !important;
}
.form-control-dark::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
  opacity: 1 !important;
}
.form-label {
  color: rgba(201, 169, 97, 0.95) !important;
  font-weight: 500 !important;
}

/* Premium scrollbar for scrollable modals */
.contribute-modal::-webkit-scrollbar {
  width: 6px;
}
.contribute-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.contribute-modal::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

/* End of theme file */
