/* ==========================================================================
   Page "À propos" — GammaInvest
   Refonte narrative (inspirée dans sa construction — pas dans son design —
   de la logique éditoriale d'une page "Histoire" de marque) : grandes
   photos du fondateur, alternance de sections claires/sombres à fort
   contraste, apparition progressive au scroll (mécanisme .reveal déjà
   utilisé sur tout le site), léger parallax sur les photos. Aucune piste
   de scroll géante, aucun pinning : des sections normales, denses,
   toujours utiles à l'écran. Réutilise la DA publique existante (couleurs,
   radius, shadows, boutons, cards). Préfixe de classes : "ap-".
   ========================================================================== */

/* ----------------------------------------------------------------------
   1. HERO — le fondateur
   ---------------------------------------------------------------------- */
.ap-hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}
/* CORRECTIF 2026-08-23 : en thème Premium, aligné sur le "noir vrai"
   #08090b du reste du site (tableau de bord, outils…) plutôt que
   var(--navy-deep) (patch bleuté) — même logique que le correctif du
   2026-08-13 déjà appliqué à glossaire-hero.css / shop-cinematic.css /
   diagnostic-cinematic.css. */
.dark-section .ap-hero { background: #08090b; }

.ap-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 92vh;
}

.ap-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 6% 70px 8%;
}

.ap-hero-kicker {
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.ap-hero-copy h1 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.28;
  max-width: 620px;
  margin: 0 0 30px;
}

.ap-hero-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.ap-hero-byline::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--gold-light);
}

.ap-hero-byline strong {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}

.ap-hero-byline span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.ap-scroll-cue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ap-scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: apBounce 1.6s ease-in-out infinite;
}

@keyframes apBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}

.ap-hero-media {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 30px 0;
  display: flex;
}

.ap-hero-photo-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ap-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  will-change: transform;
}

.ap-hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 14, 28, 0.06) 0%, transparent 26%, rgba(5, 14, 28, 0.42) 100%),
    linear-gradient(140deg, rgba(10, 31, 60, 0.22), transparent 55%);
  pointer-events: none;
}

/* --- Entrée en cascade du texte du hero (même mécanique que .shop-hero-anim) --- */
.ap-hero-anim {
  opacity: 0;
  transform: translateY(18px);
}
.ap-hero-anim.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ap-hero-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.ap-hero-halo {
  position: absolute;
  top: -8%;
  left: -6%;
  width: 42vw;
  max-width: 480px;
  height: 42vw;
  max-height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 199, 147, 0.14), transparent 68%);
  z-index: 1;
  pointer-events: none;
}

/* ----------------------------------------------------------------------
   2. L'HISTOIRE AVANT GAMMAINVEST — 3 temps, timeline compacte
   ---------------------------------------------------------------------- */
.ap-story {
  padding: 88px 0;
}

.ap-story-head {
  max-width: 620px;
  margin: 0 auto 50px;
  text-align: center;
}

.ap-story-head .eyebrow { justify-content: center; }

.ap-story-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.ap-story-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 34px 0;
}

.ap-story-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.ap-story-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--off-white);
  border: 1.5px solid rgba(201, 162, 75, 0.4);
}

.ap-story-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.ap-story-item p {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.ap-story-item p.ap-quote {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 10px;
}

/* ----------------------------------------------------------------------
   3. NAISSANCE DE GAMMAINVEST — bandeau sombre plein écran
   ---------------------------------------------------------------------- */
.ap-mission {
  background: radial-gradient(circle at 20% 15%, #16294a 0%, var(--navy-deep) 62%);
  padding: 96px 0;
  text-align: center;
}
/* CORRECTIF 2026-08-23 : voir .dark-section .ap-hero ci-dessus — même
   remplacement du patch bleuté par le noir vrai du thème Premium. */
.dark-section .ap-mission {
  background: radial-gradient(circle at 20% 15%, rgba(201,162,75,0.08) 0%, #08090b 62%);
}

.ap-mission .eyebrow { justify-content: center; color: var(--gold-light); }

.ap-mission-title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin: 0 auto 26px;
}

.ap-mission-title .accent { color: var(--gold-light); }

.ap-mission p.lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  line-height: 1.75;
}

.ap-mission-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.ap-mission-chips span {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.ap-mission-note {
  max-width: 560px;
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ----------------------------------------------------------------------
   4. VISION DU FONDATEUR — portrait + citation
   ---------------------------------------------------------------------- */
.ap-vision {
  padding: 92px 0;
  background: var(--off-white);
}

.ap-vision-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.ap-vision-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.ap-vision-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-vision-copy .eyebrow { margin-bottom: 18px; }

.ap-vision-quote {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 22px;
}

.ap-vision-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
}

/* ----------------------------------------------------------------------
   4bis. PREUVES — résultats personnels de Jean
   ---------------------------------------------------------------------- */
.ap-proof {
  padding: 92px 0;
  background: var(--off-white);
}

.ap-proof-head {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

.ap-proof-head .eyebrow { justify-content: center; }

.ap-proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto 22px;
}

.ap-proof-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ap-proof-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.ap-proof-value {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.ap-proof-value span {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* CORRECTIF 2026-08-18 : .dark-section p (style.css, plus spécifique
   qu'un simple .ap-proof-note) repassait ce texte en blanc translucide
   sous le thème sombre sitewide, alors que .ap-proof-card garde son fond
   blanc — texte à peine lisible sur fond blanc (remonté par Jean sur un
   autre cas identique, shop.html). */
.dark-section .ap-proof-note { color: var(--text-secondary); }

.ap-proof-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 10px;
}

.ap-proof-disclaimer {
  max-width: 640px;
  margin: 0 auto 50px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.ap-proof-why {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.ap-proof-why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ap-proof-why-item strong { color: var(--navy); }

.ap-proof-why-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 75, 0.14);
  color: var(--gold-dark);
  margin-top: 1px;
}

.ap-proof-why-icon svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .ap-proof-stats { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------------
   5. GAMMAINVEST AUJOURD'HUI — 4 cartes
   ---------------------------------------------------------------------- */
.ap-today {
  padding: 88px 0;
}

.ap-today-head {
  max-width: 620px;
  margin: 0 auto 46px;
  text-align: center;
}

.ap-today-head .eyebrow { justify-content: center; }

.ap-today-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ap-today-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ap-today-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.ap-today-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.ap-today-card-icon svg { width: 20px; height: 20px; }

.ap-today-card h3 {
  font-size: 16.5px;
  color: var(--navy);
  margin-bottom: 8px;
}

.ap-today-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ap-today-card-fact {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: auto;
  padding-top: 4px;
}

/* ----------------------------------------------------------------------
   6. UNE PHILOSOPHIE SIMPLE — bandeau sombre, 3 principes
   ---------------------------------------------------------------------- */
.ap-philo {
  background: var(--navy-deep);
  padding: 88px 0;
}
/* CORRECTIF 2026-08-23 : voir .dark-section .ap-hero ci-dessus. */
.dark-section .ap-philo { background: #08090b; }

.ap-philo .eyebrow { justify-content: center; color: var(--gold-light); }

.ap-philo-head {
  text-align: center;
  margin-bottom: 46px;
}

.ap-philo-head h2 {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.01em;
  position: relative;
  padding-top: 6px;
  padding-bottom: 22px;
  margin: 0 auto;
}

.ap-philo-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 2px;
  background: var(--gold-light);
}

.ap-philo-list {
  max-width: 760px;
  margin: 0 auto;
}

.ap-philo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-philo-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.ap-philo-item span.ap-philo-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
}

.ap-philo-item p {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* ----------------------------------------------------------------------
   7. FAQ — accordéon natif (details/summary)
   ---------------------------------------------------------------------- */
.ap-faq {
  padding: 88px 0;
}

.ap-faq-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.ap-faq-head .eyebrow { justify-content: center; }

.ap-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.ap-faq-item {
  border-bottom: 1px solid var(--border);
}

.ap-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.ap-faq-item summary::-webkit-details-marker { display: none; }

.ap-faq-item summary .ap-faq-plus {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}

.ap-faq-item summary .ap-faq-plus::before,
.ap-faq-item summary .ap-faq-plus::after {
  content: '';
  position: absolute;
  background: var(--gold-dark);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.ap-faq-item summary .ap-faq-plus::before { width: 14px; height: 2px; }
.ap-faq-item summary .ap-faq-plus::after { width: 2px; height: 14px; }

.ap-faq-item[open] summary .ap-faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.ap-faq-item p {
  padding: 0 4px 22px;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ----------------------------------------------------------------------
   8. MESSAGE DU FONDATEUR — clôture
   ---------------------------------------------------------------------- */
.ap-closing {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #16294a 0%, var(--navy-deep) 68%);
}
/* CORRECTIF 2026-08-23 : voir .dark-section .ap-hero ci-dessus. */
.dark-section .ap-closing {
  background: radial-gradient(circle at 50% 30%, rgba(201,162,75,0.08) 0%, #08090b 68%);
}

.ap-closing-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-closing-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0.1;
  will-change: transform;
}

.ap-closing-logo img {
  width: clamp(60px, 8vw, 100px);
  height: auto;
}

.ap-closing-logo span {
  font-size: clamp(46px, 9vw, 130px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.ap-closing-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 14, 28, 0.15) 0%, transparent 40%, rgba(5, 14, 28, 0.55) 100%);
}

.ap-closing-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.ap-closing-copy .eyebrow { justify-content: center; color: var(--gold-light); margin-bottom: 22px; }

.ap-closing-quote {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  margin: 0 0 26px;
}

.ap-closing-welcome {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 30px;
}

/* ----------------------------------------------------------------------
   9. Réduction de mouvement
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ap-scroll-cue svg { animation: none; }
}

/* ----------------------------------------------------------------------
   10. Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .ap-today-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .ap-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .ap-hero-copy { padding: 64px 24px 40px; order: 2; }
  .ap-hero-media { order: 1; aspect-ratio: 4 / 5; padding: 18px; }
  .ap-hero-photo-frame::after { background: linear-gradient(0deg, rgba(5,14,28,0.5) 0%, rgba(5,14,28,0.05) 30%, transparent 55%); }
  .ap-hero-copy h1 { max-width: none; }
  .ap-hero-byline { margin-bottom: 28px; }

  .ap-story-item { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .ap-story-num { margin: 0 auto; }

  .ap-vision-grid { grid-template-columns: 1fr; gap: 32px; }
  .ap-vision-photo { max-width: 300px; margin: 0 auto; }
  .ap-vision-copy { text-align: center; }
  .ap-vision-copy p { margin-left: auto; margin-right: auto; }

  .ap-today-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .ap-today-grid { grid-template-columns: 1fr; }
  .ap-mission-title { font-size: clamp(26px, 8vw, 36px); }
  .ap-closing { min-height: 62vh; }
}
