/* ============================================================
   AYIRA — about.css
   Compatible dark (défaut) + light-theme
   public/css/about.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ══════════════════════════════════════════════════════════
   VARIABLES — DARK (défaut, identique à votre style.css)
══════════════════════════════════════════════════════════ */
.ayira-about {
  /* Couleurs de marque (identiques à votre :root) */
  --a-orange:       #f39c12;
  --a-orange-dark:  #d68910;
  --a-red:          #d32f2f;
  --a-gold:         #ffd700;
  --a-gold-dim:     rgba(243, 156, 18, 0.12);
  --a-border:       rgba(243, 156, 18, 0.18);
  --a-border-hover: rgba(243, 156, 18, 0.50);

  /* Dark mode (par défaut) */
  --a-bg:           #000000;
  --a-bg-2:         #0a0a0a;
  --a-bg-3:         #1a1a1a;
  --a-text:         #ffffff;
  --a-text-2:       rgba(255,255,255,0.72);
  --a-text-3:       rgba(255,255,255,0.45);
  --a-shadow:       rgba(243, 156, 18, 0.35);
  --a-grain:        rgba(255,255,255,0.03);
  --a-blob-1:       rgba(243, 156, 18, 0.07);
  --a-blob-2:       rgba(211,  47,  47, 0.05);
  --a-quote-bar:    #f39c12;
  --a-chapter-clr:  #f39c12;
  --a-chapter-line: rgba(243, 156, 18, 0.45);
  --a-ornament:     rgba(243, 156, 18, 0.35);
  --a-stat-bg:      #0a0a0a;
  --a-stat-hover:   #141414;
  --a-card-bg:      #0a0a0a;
  --a-val-bg:       #0a0a0a;
  --a-placeholder:  rgba(243, 156, 18, 0.25);
  --a-badge-bg:     rgba(243, 156, 18, 0.10);
  --a-badge-border: rgba(243, 156, 18, 0.22);
  --a-cta-bg:       #0a0a0a;
  --a-cta-glow:     rgba(243, 156, 18, 0.08);
  --a-scroll-clr:   rgba(243, 156, 18, 0.40);
  --a-ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════════════════════
   VARIABLES — LIGHT THEME
   Calqué sur votre body.light-theme de style.css
══════════════════════════════════════════════════════════ */
body.light-theme .ayira-about {
  --a-bg:           #f5f5f5;
  --a-bg-2:         #ffffff;
  --a-bg-3:         #ececec;
  --a-text:         #1a1a1a;
  --a-text-2:       #2c3e50;
  --a-text-3:       #5a6c7d;
  --a-shadow:       rgba(0, 0, 0, 0.08);
  --a-grain:        rgba(0,0,0,0.015);
  --a-blob-1:       rgba(243, 156, 18, 0.08);
  --a-blob-2:       rgba(211,  47,  47, 0.05);
  --a-border:       rgba(243, 156, 18, 0.22);
  --a-border-hover: rgba(243, 156, 18, 0.55);
  --a-gold-dim:     rgba(243, 156, 18, 0.10);
  --a-quote-bar:    #d68910;
  --a-chapter-clr:  #d68910;
  --a-chapter-line: rgba(214, 137, 16, 0.50);
  --a-ornament:     rgba(214, 137, 16, 0.40);
  --a-stat-bg:      #ffffff;
  --a-stat-hover:   #f9f5ed;
  --a-card-bg:      #ffffff;
  --a-val-bg:       #ffffff;
  --a-placeholder:  rgba(214, 137, 16, 0.20);
  --a-badge-bg:     rgba(243, 156, 18, 0.08);
  --a-badge-border: rgba(214, 137, 16, 0.25);
  --a-cta-bg:       #ffffff;
  --a-cta-glow:     rgba(243, 156, 18, 0.06);
  --a-scroll-clr:   rgba(214, 137, 16, 0.50);
}

/* ══════════════════════════════════════════════════════════
   RESET SCOPED
══════════════════════════════════════════════════════════ */
.ayira-about * { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════════════ */
.ayira-about {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--a-text);
  background: var(--a-bg);
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── Grain texture ───────────────────────────────────────── */
.ayira-about::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}
body.light-theme .ayira-about::before { opacity: 0.4; }

/* ── Blobs ambiants ──────────────────────────────────────── */
.ayira-about .blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}
.ayira-about .blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--a-blob-1) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.ayira-about .blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, var(--a-blob-2) 0%, transparent 70%);
  bottom: 5%; left: -120px;
  animation: blobFloat 18s ease-in-out infinite alternate-reverse;
}
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(50px,40px) scale(1.18); }
}

/* ══════════════════════════════════════════════════════════
   WRAPPER
══════════════════════════════════════════════════════════ */
.ayira-about .about-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 10rem;
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════ */
.story-beat {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--a-ease), transform 1s var(--a-ease);
  will-change: opacity, transform;
}
.story-beat.visible {
  opacity: 1;
  transform: translateY(0);
}
.story-gap    { height: 8rem; }
.story-gap-sm { height: 4rem; }

/* ══════════════════════════════════════════════════════════
   HERO SCREEN
══════════════════════════════════════════════════════════ */
.about-hero-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--a-bg);
  transition: background 0.3s ease;
}

.about-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.70rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--a-chapter-clr);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s ease;
}
.about-eyebrow::before,
.about-eyebrow::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--a-chapter-line);
}

.about-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  background: linear-gradient(150deg, var(--a-gold) 0%, var(--a-orange) 45%, var(--a-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* Glow adapté au thème */
body:not(.light-theme) .about-hero-title {
  filter: drop-shadow(0 0 30px rgba(243,156,18,0.35));
}
body.light-theme .about-hero-title {
  filter: drop-shadow(0 0 12px rgba(214,137,16,0.18));
}

.about-hero-sub {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--a-text-2);
  max-width: 500px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* Flèche scroll */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--a-scroll-clr);
  transition: color 0.3s ease;
}
.scroll-hint .arrow {
  width: 18px; height: 18px;
  border-right: 1px solid var(--a-scroll-clr);
  border-bottom: 1px solid var(--a-scroll-clr);
  transform: rotate(45deg);
  animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ══════════════════════════════════════════════════════════
   TEXTES NARRATIFS
══════════════════════════════════════════════════════════ */

.chapter-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--a-orange);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  transition: color 0.3s ease;
}
.chapter-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--a-chapter-line);
}

.chapter-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--a-orange);
  line-height: 1.1;
  margin-bottom: 2.2rem;
  transition: color 0.3s ease;
}
/* En light, le titre de chapitre est plus sombre pour contraste */
body.light-theme .chapter-title { color: var(--a-orange-dark); }

.narrative-text {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.75;
  color: var(--a-text-2);
  font-weight: 300;
  max-width: 760px;
  transition: color 0.3s ease;
}
.narrative-text strong {
  color: var(--a-text);
  font-weight: 600;
}
.narrative-text em { color: var(--a-orange); font-style: italic; }

.narrative-quote {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--a-text);
  line-height: 1.55;
  padding-left: 2rem;
  border-left: 3px solid var(--a-quote-bar);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.ornament .line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--a-ornament));
}
.ornament .dot {
  width: 6px; height: 6px;
  background: var(--a-orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--a-border);
  border: 1px solid var(--a-border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.stat-item {
  background: var(--a-stat-bg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background 0.3s ease;
}
.stat-item:hover { background: var(--a-stat-hover); }

.stat-icon { margin-bottom: 1rem; }
.stat-icon svg {
  width: 26px; height: 26px;
  color: var(--a-orange);
  opacity: 0.7;
}

.stat-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--a-gold), var(--a-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
/* Light : gradient plus chaud et lisible */
body.light-theme .stat-num {
  background: linear-gradient(135deg, var(--a-orange-dark), var(--a-red));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a-text-3);
  transition: color 0.3s ease;
}

/* ══════════════════════════════════════════════════════════
   FONDATEURS
══════════════════════════════════════════════════════════ */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.founder-card {
  background: var(--a-card-bg);
  border: 1px solid var(--a-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s var(--a-ease),
              transform 0.4s var(--a-ease),
              background 0.3s ease,
              box-shadow 0.4s ease;
}
.founder-card:hover {
  border-color: var(--a-border-hover);
  transform: translateY(-5px);
}
body:not(.light-theme) .founder-card:hover {
  box-shadow: 0 16px 50px rgba(243,156,18,0.18);
}
body.light-theme .founder-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* ── Zone photo ──────────────────────────────────────────── */
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--a-bg-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--a-ease);
}
.founder-card:hover .founder-photo img { transform: scale(1.04); }

/* Placeholder */
.founder-photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
  width: 100%;
  height: 100%;
}
.founder-photo-placeholder svg {
  width: 48px; height: 48px;
  color: var(--a-placeholder);
}
.founder-photo-placeholder span {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a-placeholder);
}

/* Ligne dorée en bas de carte */
.founder-card::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--a-orange), var(--a-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--a-ease);
}
.founder-card:hover::after { transform: scaleX(1); }

/* ── Infos ───────────────────────────────────────────────── */
.founder-info { padding: 1.8rem; }

.founder-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--a-text);
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.founder-role {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--a-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}
body.light-theme .founder-role { color: var(--a-orange-dark); }

.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--a-badge-bg);
  border: 1px solid var(--a-badge-border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: var(--a-orange);
  letter-spacing: 0.08em;
  transition: background 0.3s ease, color 0.3s ease;
}
body.light-theme .founder-badge { color: var(--a-orange-dark); }
.founder-badge svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════════════════
   VALEURS
══════════════════════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--a-val-bg);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--a-ease),
              border-color 0.4s var(--a-ease),
              background 0.3s ease,
              box-shadow 0.4s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--a-border-hover);
}
body:not(.light-theme) .value-card:hover {
  box-shadow: 0 10px 40px rgba(243,156,18,0.15);
}
body.light-theme .value-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.value-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a-orange), var(--a-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--a-ease);
}
.value-card:hover::after { transform: scaleX(1); }

.value-icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: var(--a-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  transition: background 0.3s ease;
}
.value-card:hover .value-icon { background: rgba(243,156,18,0.18); }
.value-icon svg { width: 24px; height: 24px; color: var(--a-orange); }
body.light-theme .value-icon svg { color: var(--a-orange-dark); }

.value-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--a-text);
  margin-bottom: 0.7rem;
  transition: color 0.3s ease;
}
.value-text {
  font-size: 0.97rem;
  color: var(--a-text-2);
  line-height: 1.75;
  transition: color 0.3s ease;
}

/* ══════════════════════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════════════════════ */
.cta-final {
  text-align: center;
  padding: 5rem 2rem;
  border: 1px solid var(--a-border);
  border-radius: 16px;
  background: var(--a-cta-bg);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, var(--a-cta-glow) 0%, transparent 60%);
}
.cta-final-content { position: relative; z-index: 1; }

.cta-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--a-orange);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}
body.light-theme .cta-eyebrow { color: var(--a-orange-dark); }

.cta-big-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--a-text);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}
.cta-body {
  font-size: 1.15rem;
  color: var(--a-text-2);
  max-width: 440px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* Bouton — identique à votre .cta-button de style.css */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--a-orange), var(--a-red));
  color: #ffffff;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--a-ease), box-shadow 0.4s ease;
  box-shadow: 0 10px 40px var(--a-shadow);
}
/* Shimmer — identique à votre .cta-button::before */
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 0.5s;
}
.cta-btn:hover::before { left: 100%; }
.cta-btn:hover { transform: translateY(-5px) scale(1.04); }
body:not(.light-theme) .cta-btn:hover {
  box-shadow: 0 20px 60px rgba(243,156,18,0.55),
              0 0 100px rgba(243,156,18,0.35);
}
body.light-theme .cta-btn:hover {
  box-shadow: 0 20px 60px rgba(243,156,18,0.35),
              0 0 50px rgba(243,156,18,0.18);
}
.cta-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .founders-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr 1fr; }
  .stats-band    { grid-template-columns: 1fr; }
  .about-wrap    { padding: 0 1.2rem 8rem; }
  .narrative-text { font-size: 1.2rem; }
}
@media (max-width: 500px) {
  .values-grid { grid-template-columns: 1fr; }
}