/* ========================================
   SIHAM FADLI - SYSTÈME DE DESIGN
   Palette algérienne moderne + élégance méditerranéenne
   ======================================== */

:root {
  /* Couleurs Algérie (raffinées) */
  --vert-national: #006233;
  --vert-profond: #1A2F23;
  --vert-clair: #2D8C5C;
  --vert-tendre: #E8F0EA;

  --or-doux: #C9A961;
  --or-pale: #E8DCB8;
  --or-fonce: #8E7340;

  --rouge-croissant: #D21034;

  /* Neutres élégants */
  --creme: #F8F4ED;
  --lin: #FBFAF6;
  --encre: #1A2F23;
  --encre-douce: #4A5C50;
  --gris-discret: #8B9590;
  --blanc: #FFFFFF;

  /* Univers méditerranéen (pour les pages parcours/presse) */
  --terracotta: #C8634A;
  --ocre: #D4A056;
  --olive: #6B7848;

  /* Ombres */
  --ombre-douce: 0 4px 24px rgba(26, 47, 35, 0.08);
  --ombre-moyenne: 0 12px 40px rgba(26, 47, 35, 0.12);
  --ombre-forte: 0 24px 60px rgba(26, 47, 35, 0.18);

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-petit: 6px;
  --radius-moyen: 14px;
  --radius-large: 24px;
}

/* ============ RESET ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--lin);
  color: var(--encre);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

body.ar {
  direction: rtl;
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============ TYPOGRAPHIE ============ */
.display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-feature-settings: 'ss01';
}

body.ar .display {
  font-family: 'Amiri', serif;
  font-weight: 700;
}

.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-feature-settings: 'tnum', 'zero';
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vert-national);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--or-doux);
}

body.ar .eyebrow::before {
  content: none;
}

body.ar .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--or-doux);
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(26, 47, 35, 0.06);
  transition: padding 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  padding: 0.7rem var(--gutter);
  background: rgba(251, 250, 246, 0.95);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--encre);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.nav-logo-mark span {
  width: 3px;
  background: var(--vert-national);
  border-radius: 1px;
  animation: pulse 1.8s ease-in-out infinite;
}

.nav-logo-mark span:nth-child(1) { height: 40%; animation-delay: 0s; }
.nav-logo-mark span:nth-child(2) { height: 100%; animation-delay: 0.2s; background: var(--or-doux); }
.nav-logo-mark span:nth-child(3) { height: 65%; animation-delay: 0.4s; }
.nav-logo-mark span:nth-child(4) { height: 85%; animation-delay: 0.6s; background: var(--or-doux); }

@keyframes pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.6; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--encre-douce);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--vert-national);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--or-doux);
  border-radius: 2px;
}

.nav-cta {
  background: var(--vert-national);
  color: var(--blanc);
  padding: 0.7rem 1.3rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 98, 51, 0.18);
}

.nav-cta:hover {
  background: var(--vert-profond);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 98, 51, 0.28);
}

.nav-cta-number {
  background: var(--or-doux);
  color: var(--vert-profond);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  background: var(--vert-tendre);
  padding: 0.25rem;
  border-radius: 100px;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 100px;
  color: var(--encre-douce);
  transition: all 0.25s ease;
}

.lang-btn.active {
  background: var(--vert-national);
  color: var(--blanc);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  position: relative;
}

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

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--encre);
  margin: 1rem 0 1.5rem;
  max-width: 900px;
}

body.ar .section-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
}

.section-title em {
  font-style: italic;
  color: var(--vert-national);
}

.section-title-gold em {
  color: var(--or-doux);
}

.section-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--encre-douce);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--vert-national);
  color: var(--blanc);
  box-shadow: 0 6px 24px rgba(0, 98, 51, 0.22);
}

.btn-primary:hover {
  background: var(--vert-profond);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 98, 51, 0.32);
}

.btn-gold {
  background: var(--or-doux);
  color: var(--vert-profond);
  box-shadow: 0 6px 24px rgba(201, 169, 97, 0.3);
}

.btn-gold:hover {
  background: var(--or-fonce);
  color: var(--blanc);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--encre);
  border: 1.5px solid var(--encre);
}

.btn-ghost:hover {
  background: var(--encre);
  color: var(--blanc);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

body.ar .btn:hover .btn-arrow {
  transform: translateX(-4px);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 9rem var(--gutter) 4rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  background: var(--lin);
}

/* Décorations subtiles arrière-plan */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 90vh;
  height: 90vh;
  background: radial-gradient(circle at center, rgba(201, 169, 97, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 70vh;
  height: 70vh;
  background: radial-gradient(circle at center, rgba(0, 98, 51, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  background: var(--vert-tendre);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vert-national);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 98, 51, 0.1);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  background: var(--vert-national);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--encre);
  margin-bottom: 1.5rem;
}

body.ar .hero-title {
  font-family: 'Amiri', serif;
  font-weight: 700;
}

.hero-title em {
  font-style: italic;
  color: var(--vert-national);
  font-weight: 400;
}

.hero-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--or-fonce);
  margin: 1.5rem 0 2rem;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--or-doux);
}

body.ar .hero-quote {
  border-left: none;
  border-right: 2px solid var(--or-doux);
  padding: 0 1.2rem 0 0;
  font-family: 'Amiri', serif;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 2rem 0 2.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(26, 47, 35, 0.08);
  border-bottom: 1px solid rgba(26, 47, 35, 0.08);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-meta-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-discret);
}

.hero-meta-value {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--encre);
}

body.ar .hero-meta-value { font-family: 'Amiri', serif; font-weight: 700; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============ HERO VISUEL ============ */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.poster-frame::before {
  content: '';
  position: absolute;
  inset: -1.5rem -1.5rem 1.5rem 1.5rem;
  border: 2px solid var(--or-doux);
  border-radius: var(--radius-large);
  z-index: 0;
}

body.ar .poster-frame::before {
  inset: -1.5rem 1.5rem 1.5rem -1.5rem;
}

.poster-img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-large);
  box-shadow: var(--ombre-forte);
  z-index: 1;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--vert-national) 0%, var(--vert-profond) 100%);
}

.poster-number {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 80px;
  height: 80px;
  background: var(--or-doux);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--vert-profond);
  box-shadow: var(--ombre-moyenne);
  z-index: 3;
  border: 4px solid var(--lin);
}

body.ar .poster-number {
  right: auto;
  left: -1.5rem;
}

/* Waveform vertical décoratif */
.waveform-vertical {
  position: absolute;
  left: -3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 70%;
  z-index: 2;
}

body.ar .waveform-vertical {
  left: auto;
  right: -3rem;
}

.waveform-vertical .wave {
  height: 3px;
  background: var(--vert-national);
  border-radius: 2px;
  transform-origin: center;
  animation: wave-h 2.2s ease-in-out infinite;
}

.waveform-vertical .wave:nth-child(1) { width: 24px; animation-delay: 0s; }
.waveform-vertical .wave:nth-child(2) { width: 40px; animation-delay: 0.1s; background: var(--or-doux); }
.waveform-vertical .wave:nth-child(3) { width: 18px; animation-delay: 0.2s; }
.waveform-vertical .wave:nth-child(4) { width: 52px; animation-delay: 0.3s; background: var(--or-doux); }
.waveform-vertical .wave:nth-child(5) { width: 32px; animation-delay: 0.4s; }
.waveform-vertical .wave:nth-child(6) { width: 60px; animation-delay: 0.5s; background: var(--or-doux); }
.waveform-vertical .wave:nth-child(7) { width: 22px; animation-delay: 0.6s; }
.waveform-vertical .wave:nth-child(8) { width: 45px; animation-delay: 0.7s; background: var(--or-doux); }
.waveform-vertical .wave:nth-child(9) { width: 28px; animation-delay: 0.8s; }
.waveform-vertical .wave:nth-child(10) { width: 38px; animation-delay: 0.9s; background: var(--or-doux); }
.waveform-vertical .wave:nth-child(11) { width: 16px; animation-delay: 1.0s; }
.waveform-vertical .wave:nth-child(12) { width: 50px; animation-delay: 1.1s; background: var(--or-doux); }
.waveform-vertical .wave:nth-child(13) { width: 25px; animation-delay: 1.2s; }
.waveform-vertical .wave:nth-child(14) { width: 42px; animation-delay: 1.3s; background: var(--or-doux); }

@keyframes wave-h {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.4); opacity: 0.5; }
}

/* ============ VALEURS ============ */
.values {
  background: var(--vert-tendre);
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--blanc);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-moyen);
  border-top: 3px solid var(--or-doux);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre-moyenne);
}

.value-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--or-doux);
  margin-bottom: 0.5rem;
}

.value-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--vert-national);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

body.ar .value-title { font-family: 'Amiri', serif; font-weight: 700; }

.value-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--encre-douce);
}

/* ============ PARCOURS PREVIEW ============ */
.parcours-preview {
  background: var(--lin);
}

.parcours-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.parcours-photo {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--ombre-forte);
}

.parcours-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.parcours-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 47, 35, 0.4) 100%);
  pointer-events: none;
}

.parcours-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(26, 47, 35, 0.1);
  border-bottom: 1px solid rgba(26, 47, 35, 0.1);
}

.parcours-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--vert-national);
  line-height: 1;
  letter-spacing: -0.04em;
}

body.ar .parcours-stat-num { font-family: 'Amiri', serif; font-weight: 700; }

.parcours-stat-label {
  font-size: 0.8rem;
  color: var(--encre-douce);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ============ MESURES (PROGRAMME) ============ */
.mesures {
  background: var(--lin);
  position: relative;
}

.mesures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mesure-card {
  background: var(--blanc);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-moyen);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  border: 1px solid rgba(26, 47, 35, 0.06);
}

.mesure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-moyenne);
}

.mesure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--vert-national) 0%, var(--or-doux) 100%);
}

.mesure-num {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--or-doux);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.mesure-title {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--vert-national);
  margin-bottom: 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

body.ar .mesure-title { font-family: 'Amiri', serif; font-weight: 700; }

.mesure-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--encre-douce);
}

.mesure-desc strong {
  color: var(--vert-national);
  font-weight: 600;
}

/* ============ ENGAGEMENT (CALL TO ACTION) ============ */
.engagement {
  background: var(--vert-national);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.engagement::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vh;
  height: 60vh;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.engagement .section-title {
  color: var(--blanc);
}

.engagement .section-title em {
  color: var(--or-doux);
}

.engagement .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.engagement-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.engagement-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--blanc);
}

.engagement-cta .btn-ghost:hover {
  background: var(--blanc);
  color: var(--vert-national);
  border-color: var(--blanc);
}

.engagement-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--or-pale);
  margin: 3rem 0;
  padding: 0 0 0 2rem;
  border-left: 3px solid var(--or-doux);
  max-width: 700px;
}

body.ar .engagement-quote {
  border-left: none;
  border-right: 3px solid var(--or-doux);
  padding: 0 2rem 0 0;
  font-family: 'Amiri', serif;
}

/* ============ TIMELINE ============ */
.timeline-wrapper {
  max-width: 900px;
  margin: 4rem auto 0;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--vert-national) 0%, var(--or-doux) 50%, transparent 100%);
}

body.ar .timeline-wrapper::before { left: auto; right: 14px; }

.timeline-item {
  padding-left: 60px;
  margin-bottom: 3.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ar .timeline-item { padding-left: 0; padding-right: 60px; }

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--lin);
  border: 2px solid var(--vert-national);
  border-radius: 50%;
}

body.ar .timeline-item::before { left: auto; right: 5px; }

.timeline-item::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--or-doux);
  border-radius: 50%;
}

body.ar .timeline-item::after { left: auto; right: 11px; }

.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--or-doux);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--vert-national);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

body.ar .timeline-title { font-family: 'Amiri', serif; font-weight: 700; }

.timeline-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--encre-douce);
  max-width: 620px;
}

/* ============ PRESSE ============ */
.presse {
  background: var(--vert-tendre);
}

.presse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.presse-card {
  background: var(--blanc);
  padding: 2rem;
  border-radius: var(--radius-moyen);
  border: 1px solid rgba(26, 47, 35, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.presse-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-moyenne);
  border-color: var(--or-doux);
}

.presse-source {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--vert-national);
  margin-bottom: 0.3rem;
}

body.ar .presse-source { font-family: 'Amiri', serif; }

.presse-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gris-discret);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.presse-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--encre);
  line-height: 1.35;
  margin-bottom: 1.2rem;
  flex: 1;
}

body.ar .presse-title { font-family: 'Amiri', serif; font-weight: 700; }

.presse-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--or-fonce);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s, color 0.25s;
}

.presse-link:hover {
  color: var(--vert-national);
  gap: 0.7rem;
}

/* ============ FOOTER ============ */
footer {
  background: var(--vert-profond);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem var(--gutter) 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--blanc);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--or-pale);
  line-height: 1.5;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-doux);
  margin-bottom: 1.2rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}

.footer-list a:hover {
  color: var(--or-doux);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.footer-social a:hover {
  background: var(--or-doux);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.8);
  transition: fill 0.25s;
}

.footer-social a:hover svg {
  fill: var(--vert-profond);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  max-width: 900px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============ ANIMATIONS GLOBALES ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MEDIA QUERIES ============ */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }

  body.ar .hero { text-align: center; }

  .hero-actions {
    justify-content: center;
  }

  .hero-quote {
    text-align: left;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta {
    justify-content: center;
  }

  .waveform-vertical {
    display: none;
  }

  .parcours-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .parcours-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .poster-frame {
    max-width: 320px;
  }

  .poster-number {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
    top: -1rem;
    right: -1rem;
  }
}

@media (max-width: 600px) {
  .nav-cta-text {
    display: none;
  }

  .hero-meta {
    gap: 1.2rem;
  }

  .hero-title {
    letter-spacing: -0.025em;
  }
}

/* ============ ACCESSIBILITÉ ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--or-doux);
  outline-offset: 4px;
  border-radius: 4px;
}
.hero-tagline {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-fonce);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--or-doux);
}

body.ar .hero-tagline {
  font-family: 'Noto Naskh Arabic', sans-serif;
  letter-spacing: 0;
}
/* Mise en valeur du n° de bulletin */
.hero-meta-item-highlight {
  position: relative;
  padding-left: 1.2rem;
  border-left: 2px solid var(--or-doux);
}

body.ar .hero-meta-item-highlight {
  padding-left: 0;
  padding-right: 1.2rem;
  border-left: none;
  border-right: 2px solid var(--or-doux);
}

.hero-meta-value-big {
  font-family: 'Fraunces', serif !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  color: var(--or-fonce) !important;
  letter-spacing: -0.02em;
  line-height: 1;
}
/* Badge "Tête de liste N°1" en bas de l'affiche */
.poster-position {
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vert-national);
  color: var(--blanc);
  padding: 0.45rem 1.3rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: var(--ombre-douce);
  z-index: 3;
  border: 2px solid var(--lin);
  white-space: nowrap;
}

.poster-position-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.poster-position-number {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--or-doux);
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: -0.01em;
}

body.ar .poster-position-number {
  font-family: 'Amiri', serif;
  font-weight: 700;
  padding-left: 0;
  padding-right: 0.9rem;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   AJUSTEMENTS TYPOGRAPHIE ARABE - V2 FORCÉE
   ========================================= */

/* Navigation */
body.ar .nav-links a {
  font-size: 1.15rem !important;
  font-weight: 500;
}

body.ar .nav-cta {
  font-size: 1.05rem !important;
  padding: 0.85rem 1.6rem !important;
}

body.ar .lang-btn {
  font-size: 1rem !important;
  padding: 0.45rem 0.95rem !important;
}

body.ar .nav-logo {
  font-size: 1.6rem !important;
}

/* Titres */
body.ar .section-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem) !important;
  line-height: 1.25 !important;
}

body.ar .hero-title {
  font-size: clamp(3.5rem, 7.5vw, 6.5rem) !important;
  line-height: 1.15 !important;
}

/* SOUS-TITRES - c'est ce qui était trop petit chez toi */
body.ar .section-subtitle {
  font-size: 1.55rem !important;
  line-height: 1.95 !important;
  max-width: 780px !important;
}

body.ar .hero-quote {
  font-size: clamp(1.5rem, 2vw, 1.8rem) !important;
  line-height: 1.75 !important;
}

/* Citation engagement (« نائب نافع... ») */
body.ar .engagement-quote {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem) !important;
  line-height: 1.65 !important;
}

/* Eyebrows */
body.ar .eyebrow {
  font-size: 1.05rem !important;
  letter-spacing: 0.05em !important;
}

/* Boutons */
body.ar .btn {
  font-size: 1.2rem !important;
  padding: 1.2rem 2.2rem !important;
}

body.ar .hero-tag {
  font-size: 1.1rem !important;
}

body.ar .hero-tag span {
  font-size: 1.1rem !important;
}

/* Cartes */
body.ar .mesure-title,
body.ar .value-title {
  font-size: 1.8rem !important;
  line-height: 1.4 !important;
}

body.ar .mesure-desc,
body.ar .value-desc {
  font-size: 1.2rem !important;
  line-height: 1.85 !important;
}

body.ar .value-num,
body.ar .mesure-num {
  font-size: 1rem !important;
}

/* Hero meta */
body.ar .hero-meta-label {
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
}

body.ar .hero-meta-value {
  font-size: 1.45rem !important;
}

body.ar .hero-tagline {
  font-size: 1.25rem !important;
  letter-spacing: 0.05em !important;
}

/* Stats */
body.ar .parcours-stat-num,
body.ar .rameem-stat-num,
body.ar .jivep-visual-big {
  font-size: 3.5rem !important;
}

body.ar .parcours-stat-label,
body.ar .rameem-stat-label,
body.ar .jivep-visual-label {
  font-size: 1.05rem !important;
}

/* Timeline */
body.ar .timeline-title { font-size: 1.7rem !important; }
body.ar .timeline-desc { font-size: 1.2rem !important; line-height: 1.85 !important; }
body.ar .timeline-year { font-size: 1.1rem !important; }

/* Presse */
body.ar .presse-source { font-size: 1.5rem !important; }
body.ar .presse-title { font-size: 1.35rem !important; line-height: 1.55 !important; }
body.ar .presse-link { font-size: 1.1rem !important; }
body.ar .presse-date { font-size: 0.95rem !important; }

/* Footer */
body.ar .footer-brand { font-size: 1.85rem !important; }
body.ar .footer-tagline { font-size: 1.2rem !important; line-height: 1.75 !important; }
body.ar .footer-heading { font-size: 1rem !important; letter-spacing: 0.1em !important; }
body.ar .footer-list a { font-size: 1.15rem !important; }
body.ar .footer-disclaimer { font-size: 1rem !important; line-height: 1.9 !important; }

/* Fix : eyebrow ne doit jamais avoir de fond hérité */
.eyebrow,
.eyebrow em,
.eyebrow span {
  background: transparent !important;
  color: inherit !important;
  font-style: inherit !important;
}

/* Fix : forcer la couleur de l'eyebrow sur fond vert */
.engagement .eyebrow {
  color: var(--or-doux) !important;
}

/* Couleur de sélection personnalisée - or doux au lieu du bleu Windows */
::selection {
  background: rgba(201, 169, 97, 0.35);
  color: var(--encre);
}

.engagement ::selection,
footer ::selection {
  background: rgba(201, 169, 97, 0.5);
  color: var(--blanc);
}

/* =========================================
   AUGMENTATION DES EYEBROWS (étiquettes
   de section) sur tout le site
   ========================================= */

.eyebrow {
  font-size: 1.3rem !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  gap: 1rem !important;
}

.eyebrow::before,
body.ar .eyebrow::after {
  width: 48px !important;
  height: 2px !important;
}

/* En arabe, on monte encore un peu */
body.ar .eyebrow {
  font-size: 1.5rem !important;
  letter-spacing: 0.06em !important;
}

/* Nom de famille en bâton fort, à la manière de l'affiche officielle */
.hero-title .nom-bold {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-style: normal;
  color: var(--vert-national);
  letter-spacing: -0.01em;
  font-size: 0.85em; /* légèrement plus petit que le prénom italique */
  margin-left: 0.2em;
}

/* Nom de famille en bâton fort, style affiche officielle */
.hero-title .nom-bold {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-style: normal;
  color: var(--encre); /* noir profond (vert très foncé qui paraît noir) */
  letter-spacing: -0.01em;
  font-size: 0.85em;
  margin-left: 0.2em;
}

/* Nom de famille en noir au lieu du vert */
.hero-title .nom-noir {
  color: var(--encre);
}

/* === Menu mobile deroulant (fix affichage .open) === */
@media (max-width: 968px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 250, 246, 0.98);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(26, 47, 35, 0.08);
    box-shadow: 0 12px 28px rgba(26, 47, 35, 0.10);
    padding: 0.4rem var(--gutter) 1rem;
    list-style: none;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    width: 100%;
    padding: 0.95rem 0.2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(26, 47, 35, 0.06);
  }
  .nav-links.open a.active::after { display: none; }
  body.ar .nav-links.open a { text-align: right; }

  /* Burger -> croix quand le menu est ouvert */
  .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); }
}
