/* ========================================
   ACADÉMIE FRANÇAISE DE FOOTBALL — ÉGYPTE
   Design v2 — Dynamic Sport Club
   ======================================== */

:root {
  --navy:       #0A1E3F;
  --navy-deep:  #060F24;
  --navy-soft:  #1E2F52;
  --cream:      #F5F1EA;
  --cream-warm: #EDE6D6;
  --paper:      #E8E2D5;
  --red:        #C8102E;
  --red-deep:   #9E0C24;
  --white:      #FFFFFF;
  --ink:        #1A1A1A;
  --grey-soft:  #8B8579;
  --grey-line:  #D5CFC0;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --container: 1360px;
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--navy-deep);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===========================================
   TYPOGRAPHIE
   =========================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--red);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h1 { font-size: clamp(3rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.serif-italic { font-style: italic; font-weight: 300; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
  color: var(--grey-soft);
}

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

section { padding-block: 7rem; }

/* ===========================================
   BOUTONS
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(5px); }

/* ===========================================
   REVEAL
   =========================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================================
   HEADER / NAV
   =========================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 72px;
  background: rgba(6,15,36,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  transition: background 0.3s, box-shadow 0.3s;
  overflow: visible;
}
.site-header.scrolled {
  background: rgba(6,15,36,0.99);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Hide lang-switch inside nav on desktop (shown in header instead) */
.nav-lang-li { display: none; }

/* LANGUAGE SWITCHER */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.25rem;
  flex-shrink: 0;
}
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: white; background: rgba(255,255,255,0.08); }
.lang-switch a.lang-active { color: white; font-weight: 600; }
.lang-switch-sep { color: rgba(255,255,255,0.2); font-size: 0.65rem; }

.logo { display: flex; align-items: center; gap: 1rem; overflow: visible; }
.logo-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); transition: transform 0.3s var(--ease); margin-top: 14px; }
.logo:hover .logo-img { transform: scale(1.06); }


/* Logo footer */
.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.2rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; color: var(--white); }
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  margin-left: 0.5rem;
}
.nav-links .nav-cta:hover { background: var(--red-deep); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===========================================
   HERO — PLEIN ÉCRAN AVEC PHOTO
   =========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy-deep);
}

/* Video background fills the hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Fallback photo if video fails */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('public/photos/photo12.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

/* Sound toggle button */
.hero-sound-btn {
  position: absolute;
  bottom: 7rem;
  right: 2rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(6,15,36,0.45);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 1.1rem;
}
.hero-sound-btn:hover {
  border-color: white;
  background: rgba(6,15,36,0.7);
}

/* Gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(6,15,36,1)    0%,
      rgba(6,15,36,0.75) 30%,
      rgba(6,15,36,0.3)  65%,
      rgba(6,15,36,0.5)  100%);
}

/* Push content below overlay */
.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  padding: 6rem var(--gutter) 0;
  margin-top: 72px;
}
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 0;
  max-width: 1000px;
}

.hero-content .eyebrow { margin-bottom: 2rem; }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 2rem;
}
.hero-content h1 .ital,
.hero-content h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--red);
}

.hero-text {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Hide old hero-visual (replaced by CSS background) */
.hero-visual { display: none; }

/* Stats bar pinned to bottom of hero */
.hero-stats-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(6,15,36,0.6);
  backdrop-filter: blur(20px);
}
.hero-stat-item {
  padding: 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}
.hero-stat-num small { font-size: 0.5em; color: var(--red); }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ===========================================
   MARQUEE
   =========================================== */

.marquee {
  overflow: hidden;
  background: var(--red);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  padding: 0 2.5rem;
  white-space: nowrap;
}
.marquee-item::after {
  content: '·';
  margin-left: 2.5rem;
  opacity: 0.5;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================================
   MANIFESTO
   =========================================== */

.manifesto {
  background: var(--navy-deep);
  color: var(--white);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.manifesto-label h2 { color: var(--white); }
.manifesto-label .eyebrow { margin-bottom: 1.5rem; }

.tricolore { display: flex; gap: 4px; margin-top: 2rem; }
.tricolore span { display: block; width: 28px; height: 4px; border-radius: 2px; }
.tricolore span:nth-child(1) { background: #002395; }
.tricolore span:nth-child(2) { background: #ffffff; }
.tricolore span:nth-child(3) { background: var(--red); }

.manifesto-text p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}
.manifesto-text p:last-child { margin-bottom: 0; }
.manifesto-text em { color: var(--white); font-style: normal; font-weight: 600; }

/* ===========================================
   PILLARS
   =========================================== */

.pillars { background: var(--cream); }
.pillars-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 4rem;
}
.pillars-header h2 { color: var(--navy); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--grey-line);
}
.pillar {
  background: var(--cream);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pillar:hover { background: var(--white); }
.pillar:hover::after { transform: scaleX(1); }

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.75rem;
}
.pillar h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 1rem; }
.pillar p  { font-size: 0.88rem; color: var(--grey-soft); line-height: 1.7; }

/* ===========================================
   STATS
   =========================================== */

.stats { background: var(--navy-deep); color: var(--white); padding-block: 7rem; }
.stats-header { text-align: center; margin-bottom: 0; }
.stats-header h2 { color: var(--white); }
.stats-header .eyebrow { margin-bottom: 1.5rem; justify-content: center; }
.stats-header .eyebrow::before { display: none; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.stat {
  text-align: center;
  padding: 4rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: var(--red);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.stat-num small { font-size: 0.5em; color: var(--red); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ===========================================
   PROGRAMMES PREVIEW — PHOTO CARDS
   =========================================== */

.programmes-preview { background: var(--navy-deep); padding-block: 7rem; }
.programmes-preview .pillars-header h2 { color: var(--white); }
.programmes-preview .lead { color: rgba(255,255,255,0.5); }

/* New card grid (replaces old list) */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.programme-card {
  position: relative;
  overflow: hidden;
  background: var(--navy-soft);
  display: block;
  aspect-ratio: 3/4;
}
.programme-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: brightness(0.75) saturate(0.9);
}
.programme-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.6) saturate(1);
}
.programme-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,15,36,0.95) 0%, rgba(6,15,36,0.2) 55%, transparent 100%);
  transition: background 0.4s;
}
.programme-card:hover::after {
  background: linear-gradient(to top, rgba(200,16,46,0.9) 0%, rgba(6,15,36,0.4) 55%, transparent 100%);
}
.programme-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2rem 2rem 2.5rem;
  transform: translateY(4px);
  transition: transform 0.4s var(--ease);
}
.programme-card:hover .programme-card-body { transform: translateY(0); }

.programme-card-age {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: block;
  transition: color 0.3s;
}
.programme-card:hover .programme-card-age { color: rgba(255,255,255,0.6); }
.programme-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.75rem; }
.programme-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.programme-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, gap 0.3s;
}
.programme-card:hover .programme-card-arrow { color: var(--white); gap: 1rem; }

/* Hide legacy list */
.programmes-list { display: none; }
.programme-row  { display: none; }

/* ===========================================
   PHOTO STRIP
   =========================================== */

.photo-strip {
  display: flex;
  overflow: hidden;
}
.photo-strip img {
  flex: 1;
  object-fit: cover;
  height: 420px;
  min-width: 60px;
  transition: flex 0.6s var(--ease), filter 0.4s;
  filter: brightness(0.65) saturate(0.7);
}
.photo-strip img:hover {
  flex: 5;
  filter: brightness(1) saturate(1);
}

/* ===========================================
   QUOTE
   =========================================== */

.quote-section { background: var(--cream); padding-block: 7rem; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.6;
  color: var(--red);
  opacity: 0.2;
  display: block;
  margin-bottom: 1.5rem;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
  max-width: 28ch;
  margin-bottom: 3rem;
}
.quote-attr { display: flex; align-items: center; gap: 1.25rem; }
.quote-attr strong { display: block; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.quote-attr small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-soft);
}

/* ===========================================
   CTA SECTION
   =========================================== */

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 8rem var(--gutter);
  text-align: center;
  background: var(--navy-deep);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,16,46,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .eyebrow { justify-content: center; margin-bottom: 1.5rem; }
.cta-banner .eyebrow::before { display: none; }
.cta-banner h2 { color: var(--white); margin: 0 auto 2.5rem; max-width: 18ch; }
.cta-banner .serif-italic { color: var(--red); }

/* ===========================================
   PAGE HEADER (inner pages)
   =========================================== */

.page-header {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  padding-top: 72px;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.35) saturate(0.6);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6,15,36,0.97) 0%, rgba(6,15,36,0.5) 60%, rgba(6,15,36,0.6) 100%);
}

.page-header .container {
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 2;
}
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 { color: var(--white); max-width: 22ch; margin-bottom: 2rem; }
.page-header h1 em { color: var(--red); font-style: italic; font-weight: 300; display: block; }
.page-header-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.page-header-meta span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ===========================================
   GRID HELPERS
   =========================================== */

.grid { display: grid; gap: 2rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ===========================================
   MÉTHODE
   =========================================== */

.method-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.method-intro-img {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.method-intro-img img {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(10,30,63,0.15);
}
.method-intro-img-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--grey-soft);
  line-height: 1.4;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0 1rem;
}
.method-intro h2 { color: var(--navy); margin: 1.5rem 0 2rem; }

.method-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--grey-line);
  align-items: start;
}
.method-step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--grey-line);
  line-height: 1;
}
.method-step h3 { font-size: 1.3rem; color: var(--navy); }
.method-step h3 em { font-style: italic; color: var(--red); }
.method-step p { font-size: 0.92rem; color: var(--grey-soft); line-height: 1.7; }

/* ===========================================
   STAGES
   =========================================== */

.stage-block {
  background: rgba(255,255,255,0.04);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
}
.stage-block:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-6px);
  background: rgba(255,255,255,0.07);
}
.stage-block-featured { border-color: var(--red); background: rgba(200,16,46,0.06); }
.stage-block-featured:hover { border-color: var(--red); }
.stage-badge-pill {
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 6px 6px;
}
.stage-block-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: -1.5rem;
}
.stage-block-month {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.stage-block h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.75rem; }
.stage-block p  { color: rgba(255,255,255,0.6); }
.stage-block-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stage-block-info span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* Prog cards */
.prog-card {
  background: var(--white);
  padding: 3rem;
  border-bottom: 4px solid var(--grey-line);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.prog-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.prog-card-age {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.prog-card h3 { color: var(--navy); margin-bottom: 0.75rem; font-size: 2rem; }
.prog-card-tagline { color: var(--grey-soft); margin-bottom: 2rem; }
.prog-card-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
.prog-card-list li {
  font-size: 0.9rem;
  color: var(--navy-soft);
  padding-left: 1.25rem;
  position: relative;
}
.prog-card-list li::before { content: '—'; position: absolute; left: 0; color: var(--red); }
.prog-card-details {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-line);
}
.prog-card-details div { display: flex; flex-direction: column; gap: 0.3rem; }
.prog-card-details span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-soft); }
.prog-card-details strong { font-size: 0.95rem; color: var(--navy); }

/* ===========================================
   GALERIE
   =========================================== */

.galerie-masonry { columns: 3; column-gap: 1rem; margin-top: 3rem; }
.galerie-item { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; background: var(--navy-soft); }
.galerie-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: brightness(0.88);
}
.galerie-item:hover img { transform: scale(1.05); filter: brightness(1); }
.galerie-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(6,15,36,0.85));
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.galerie-item:hover .galerie-caption { opacity: 1; transform: translateY(0); }

/* ===========================================
   CONTACT
   =========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-info h3 { color: var(--navy); margin-bottom: 0.75rem; }
.contact-block { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--grey-line); }
.contact-block h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.contact-block p { font-size: 1rem; color: var(--navy); }
.contact-block a { color: var(--navy); border-bottom: 1px solid var(--grey-line); transition: border-color 0.2s; }
.contact-block a:hover { border-color: var(--red); }

.contact-photo-block { aspect-ratio: 4/5; overflow: hidden; background: var(--navy-soft); }
.contact-photo-block img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================================
   INSCRIPTION FORM
   =========================================== */

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 5rem;
  align-items: start;
  padding-top: 4rem;
}
.form-sidebar {
  position: sticky;
  top: 7rem;
  background: var(--cream-warm);
  padding: 2.5rem;
  border-left: 3px solid var(--red);
}
.form-sidebar h3 { color: var(--navy); margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.form-sidebar li { font-size: 0.9rem; color: var(--navy-soft); padding-left: 1.25rem; position: relative; }
.form-sidebar li::before { content: '→'; position: absolute; left: 0; color: var(--red); }

.inscription-form { display: flex; flex-direction: column; }
.form-section { padding: 3rem 0; border-bottom: 1px solid var(--grey-line); }
.form-section:first-child { padding-top: 0; }
.form-section-title { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.form-section-title span { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--grey-line); line-height: 1; }
.form-section-title h3 { color: var(--navy); font-size: 1.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-soft); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--grey-line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 120px; resize: vertical; }

.radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-option, .check-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--navy-soft);
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--grey-line);
  transition: border-color 0.2s, background 0.2s;
}
.radio-option:hover, .check-option:hover { border-color: var(--red); background: rgba(200,16,46,0.04); }
/* Reset complet pour radios et checkboxes — évite tout héritage de .field input */
.radio-option input[type="radio"],
.radio-option input[type="checkbox"],
.check-option input[type="radio"],
.check-option input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--red);
  pointer-events: auto !important;
}

.form-submit { padding: 3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.form-note { font-size: 0.8rem; color: var(--grey-soft); max-width: 40ch; line-height: 1.6; }

/* ===========================================
   FOOTER
   =========================================== */

/* Logo + texte à cheval entre la dernière section et le footer */
.footer-logo-bridge {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-bottom: -60px;
  height: 120px;
  overflow: visible;
}
.footer-logo-bridge img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.7));
  border: 4px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-top: 5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.15;
}
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col li { font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.footer-col a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ===========================================
   COACH ALTERNATING LAYOUT (methode.html)
   =========================================== */

.coach-methode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.coach-methode-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.coach-methode-row-reverse {
  direction: rtl;
}
.coach-methode-row-reverse > * {
  direction: ltr;
}
.coach-methode-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.coach-methode-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.coach-methode-text {
  padding: 1rem 0;
}
.coach-methode-text .eyebrow {
  color: var(--red);
}
.coach-methode-text h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--cream);
  margin: 1rem 0 0.5rem;
  line-height: 1.1;
}
.coach-methode-text h3 em {
  color: var(--red);
  font-style: italic;
  font-weight: 300;
}
.coach-methode-text .coach-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.45);
  margin-bottom: 1.5rem;
  display: block;
}
.coach-methode-text p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: rgba(245,241,234,0.65);
  line-height: 1.8;
}

/* ===========================================
   AVIS PARENTS
   =========================================== */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.avis-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.avis-card:hover {
  box-shadow: 0 8px 32px rgba(10,30,63,0.09);
  transform: translateY(-2px);
}
.avis-stars {
  display: flex;
  gap: 0.15rem;
  font-size: 1.1rem;
  color: #F59E0B;
  letter-spacing: 0.05em;
}
.avis-comment {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
  font-style: italic;
  flex: 1;
}
.avis-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-line);
}
.avis-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.avis-author-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
}
.avis-author-detail {
  font-size: 0.75rem;
  color: var(--grey-soft);
}

/* ===========================================
   TARIFS
   =========================================== */
.tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.tarif-card {
  background: var(--white);
  border: 2px solid var(--grey-line);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.tarif-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.tarif-card.featured {
  border-color: var(--navy);
  box-shadow: 0 8px 40px rgba(10,30,63,0.12);
}
.tarif-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}
.tarif-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--navy);
  line-height: 1;
}
.tarif-price small {
  font-size: 1.2rem;
  color: var(--grey-soft);
  margin-left: 0.25rem;
}
.tarif-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.tarif-desc {
  font-size: 0.9rem;
  color: var(--grey-soft);
  line-height: 1.65;
}
.tarif-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
  flex: 1;
}
.tarif-list li {
  font-size: 0.88rem;
  color: var(--navy-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.tarif-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ===========================================
   WHATSAPP FLOATING BUTTON
   =========================================== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55), 0 2px 12px rgba(0,0,0,0.15);
}
.wa-float svg { width: 30px; height: 30px; }

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1100px) {
  .pillars-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-bar    { grid-template-columns: repeat(2, 1fr); }
  .manifesto-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .method-intro      { grid-template-columns: 1fr; }
  .method-intro-img  { position: relative; top: 0; }
  .method-intro-img img { width: 100%; margin-left: 0; }
  .contact-grid      { grid-template-columns: 1fr; }
  .form-wrapper      { grid-template-columns: 1fr; }
  .form-sidebar      { position: relative; top: 0; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .programmes-grid   { grid-template-columns: repeat(2, 1fr); }
  .cols-3            { grid-template-columns: 1fr 1fr; }
  .galerie-masonry   { columns: 2; }
}

@media (max-width: 768px) {
  section { padding-block: 4.5rem; }

  /* ===== MENU MOBILE PLEIN ÉCRAN ===== */
  .menu-toggle { display: flex !important; z-index: 200; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header { z-index: 150; }

  /* Réduit le <nav> à zéro sans cacher son contenu fixed */
  .site-header nav { width: 0; overflow: visible; padding: 0; }

  /* Lang switch collé au burger */
  .site-header > .lang-switch {
    display: flex !important;
    gap: 0.2rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
  }
  .site-header > .lang-switch a {
    font-size: 0.62rem !important;
    padding: 0.22rem 0.45rem !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 3px !important;
    color: rgba(255,255,255,0.65) !important;
    letter-spacing: 0.08em !important;
    background: none !important;
  }
  .site-header > .lang-switch a.lang-active {
    background: #c0392b !important;
    border-color: #c0392b !important;
    color: white !important;
  }
  .site-header > .lang-switch .lang-switch-sep { display: none !important; }

  /* Cache le lang switch dans le menu */
  .nav-lang-li { display: none !important; }

  /* Le menu plein écran */
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    min-height: 100dvh !important;
    background: #060f24 !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 90px 2rem 2rem !important;
    z-index: 190 !important;
    overflow-y: auto !important;
    list-style: none !important;
    gap: 0 !important;
  }
  .nav-links.open { display: flex !important; }

  /* Liens du menu */
  .nav-links > li { width: 100% !important; }
  .nav-links > li > a {
    display: flex !important;
    align-items: center !important;
    font-family: 'Fraunces', Georgia, serif !important;
    font-size: 1.45rem !important;
    font-weight: 300 !important;
    font-style: italic !important;
    color: rgba(255,255,255,0.6) !important;
    padding: 1rem 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 0 !important;
    background: none !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    width: 100% !important;
    transition: color 0.15s, padding-left 0.15s !important;
  }
  .nav-links > li > a.active { color: #fff !important; }
  .nav-links > li > a:active { color: #fff !important; padding-left: 0.5rem !important; }

  /* Bouton S'inscrire */
  .nav-links > li > a.nav-cta {
    font-family: 'Manrope', sans-serif !important;
    font-style: normal !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #fff !important;
    background: #c0392b !important;
    padding: 0.9rem 1.5rem !important;
    border-radius: 5px !important;
    border: none !important;
    margin-top: 1rem !important;
    display: inline-flex !important;
    width: auto !important;
    align-self: flex-start !important;
  }

  /* ===== LAYOUT ===== */
  .hero-stats-bar    { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid      { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .programmes-grid   { grid-template-columns: 1fr; }
  .programme-card    { aspect-ratio: 16/9; }
  .method-step       { grid-template-columns: 2.5rem 1fr; }
  .method-step p     { grid-column: 1 / -1; }
  .cols-2, .cols-3   { grid-template-columns: 1fr; }
  .galerie-masonry   { columns: 1; }
  .coach-methode-row,
  .coach-methode-row-reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .coach-methode-photo { max-width: 300px; margin: 0 auto; aspect-ratio: 1/1; }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom     { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-grid         { grid-template-columns: 1fr; }
  .form-submit       { flex-direction: column; align-items: flex-start; }
  .pillars-header    { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
