/* ==========================================================================
   HOLAM — styles.css
   Charte : bordeaux (#6B1A2A) + or (#C9A84C)
   Typographie : Playfair Display (titres) + Inter (corps)
   ========================================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Couleurs primaires Holam — alignées sur le logo officiel */
  --bordeaux: #3D0B16;
  --bordeaux-deep: #2E0A0F;
  --bordeaux-dark: #1F0508;
  --bordeaux-light: #5A1424;
  --gold: #C9A84C;
  --gold-bright: #E2C168;
  --gold-light: #d8bd6a;
  --gold-dark: #a88a35;

  /* Neutres */
  --white: #ffffff;
  --off-white: #faf7f2;
  --cream: #f5efe4;
  --grey-light: #e8e3d8;
  --grey: #9a9a9a;
  --text: #2a2a2a;
  --text-muted: #6a6a6a;

  /* Mur — Pierre claire (travertin) */
  --wall-base: #ede2ce;
  --wall-vein: rgba(160, 130, 80, 0.15);
  --wall-shadow: rgba(74, 50, 30, 0.08);

  /* Relief */
  --relief-light: 0 1px 0 rgba(255, 255, 255, 0.5);
  --relief-shadow: 0 8px 24px rgba(74, 50, 30, 0.12), 0 2px 6px rgba(74, 50, 30, 0.08);
  --relief-strong: 0 12px 32px rgba(46, 10, 15, 0.18), 0 4px 12px rgba(46, 10, 15, 0.1);
  --relief-pressed: inset 0 2px 4px rgba(46, 10, 15, 0.12);

  /* Typographie */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tailles */
  --container-max: 1200px;
  --container-narrow: 760px;
  --section-py: clamp(64px, 10vw, 120px);

  /* Effets */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-bordeaux: 0 8px 24px rgba(107, 26, 42, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--wall-base);
  background-image:
    radial-gradient(ellipse at 20% 30%, var(--wall-vein) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(160, 130, 80, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(200, 170, 120, 0.1) 0%, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0.08 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='800'><filter id='v'><feTurbulence type='turbulence' baseFrequency='0.008 0.06' numOctaves='3' seed='5'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.28  0 0 0 0.15 0'/></filter><rect width='800' height='800' filter='url(%23v)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--bordeaux);
  text-decoration: none;
  transition: color var(--transition);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-py) 0;
}

/* ---------- TYPOGRAPHIE ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.section-eyebrow.light {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bordeaux-deep);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  /* Bossage prononcé style métal repoussé sur mur */
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.7),
    -1px -1px 0 rgba(74, 50, 30, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.5),
    0 3px 4px rgba(74, 50, 30, 0.35),
    0 6px 12px rgba(74, 50, 30, 0.25);
}

.section-title.light {
  color: var(--gold);
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 230, 160, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 640px;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.lead.light {
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-primary {
  background: var(--bordeaux-deep);
  color: var(--gold);
  border-color: var(--bordeaux-deep);
  box-shadow: var(--relief-shadow);
}

.btn-primary:hover {
  background: var(--bordeaux-dark);
  border-color: var(--bordeaux-dark);
  transform: translateY(-2px);
  box-shadow: var(--relief-strong);
  color: var(--gold-bright);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--relief-pressed);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--bordeaux);
  border-color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--bordeaux-deep);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow:
    0 8px 20px rgba(201, 168, 76, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(201, 168, 76, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--bordeaux-deep);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(46, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.brand-logo {
  width: 130px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Crop le bas pour cacher "L'envol signature" du logo header */
/* Image 1280x660 (5:2.58), crop bottom ~28% */
.brand {
  overflow: hidden;
  aspect-ratio: 5 / 1.85;
  width: 130px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.main-nav a:hover {
  color: var(--gold);
}

.main-nav .nav-cta {
  padding: 8px 20px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.main-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--bordeaux);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(226, 193, 104, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(31, 5, 8, 0.5), transparent 50%),
    linear-gradient(135deg, #1F0508 0%, #2E0A0F 50%, #3D0B16 100%);
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Wrapper qui crop le bas du logo (zone "L'envol signature") */
.hero-logo-wrap {
  width: clamp(360px, 88vw, 1100px);
  margin: 0 auto 24px;
  overflow: hidden;
  /* Image 1280x1024, crop bottom ~30% pour cacher "L'envol signature" en gardant HOLAM */
  aspect-ratio: 5 / 2.8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
  /* Bossage prononcé + flottement, dans le même esprit que L'EXCELLENCE AFRICAINE */
  filter:
    drop-shadow(0 1px 0 rgba(255, 230, 160, 0.35))
    drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.6))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7))
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55))
    drop-shadow(0 32px 80px rgba(201, 168, 76, 0.25));
}

.hero-title-emboss {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  margin-bottom: 32px;
  color: var(--gold);
  text-shadow:
    0 1px 0 rgba(255, 230, 160, 0.4),
    0 -1px 0 rgba(0, 0, 0, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 48px;
  font-weight: 300;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.hero-scroll span {
  display: block;
  width: 3px;
  height: 8px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ==========================================================================
   VISION
   ========================================================================== */
.section-vision {
  background: transparent;
  text-align: center;
  position: relative;
  z-index: 1;
}

.vision-content {
  text-align: left;
  margin-top: 40px;
}

.vision-content p {
  margin-bottom: 24px;
}

/* Liste des entités dans la vision — sobre, ton littéraire */
.entities-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 32px;
}

.entities-list li {
  padding: 8px 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.entities-list em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--bordeaux-deep);
  font-size: 19px;
  letter-spacing: 0.01em;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.6),
    -1px -1px 0 rgba(74, 50, 30, 0.3),
    0 2px 3px rgba(74, 50, 30, 0.25);
}

.vision-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--bordeaux-deep);
  text-align: center;
  margin: 56px 0 0;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  position: relative;
  box-shadow: var(--relief-shadow);
}

.vision-quote::before,
.vision-quote::after {
  content: '"';
  font-family: var(--font-serif);
  font-size: 60px;
  color: var(--gold);
  line-height: 0;
  position: absolute;
}

.vision-quote::before {
  top: 30px;
  left: 12px;
}

.vision-quote::after {
  bottom: 5px;
  right: 12px;
}

/* ==========================================================================
   BANDE BORDEAUX — CITATION CARTON FLOTTANT
   ========================================================================== */
.section-quote-band {
  background: linear-gradient(135deg, var(--bordeaux-dark) 0%, var(--bordeaux-deep) 50%, var(--bordeaux) 100%);
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow:
    inset 0 6px 24px rgba(0, 0, 0, 0.4),
    inset 0 -6px 24px rgba(0, 0, 0, 0.4);
}

.section-quote-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
  pointer-events: none;
}

/* Carton flottant — couleur travertin assortie au mur, bordures or marquées */
.quote-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #f5ead2 0%, #ede2ce 100%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--bordeaux-deep);
  text-align: center;
  margin: 0 auto;
  padding: 56px 48px 44px;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 0 0 6px rgba(46, 10, 15, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  /* Relief gravé sur tout le texte du carton */
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.5),
    -1px -1px 0 rgba(74, 50, 30, 0.2),
    0 2px 3px rgba(74, 50, 30, 0.2);
}

.quote-card .quote-line {
  margin-bottom: 16px;
}

.quote-card .quote-line:last-of-type {
  margin-bottom: 0;
}

.quote-card::before,
.quote-card::after {
  content: '"';
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--gold);
  line-height: 0;
  position: absolute;
  font-style: normal;
  text-shadow:
    0 2px 4px rgba(74, 50, 30, 0.3);
}

.quote-card::before {
  top: 44px;
  left: 18px;
}

.quote-card::after {
  bottom: 22px;
  right: 18px;
}

.quote-signature {
  display: block;
  margin-top: 28px;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.25em;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.6),
    -1px -1px 0 rgba(74, 50, 30, 0.2),
    0 2px 2px rgba(74, 50, 30, 0.2);
}

/* ==========================================================================
   ÉCOSYSTÈME — CARTES ENTITÉS
   ========================================================================== */
.section-ecosysteme {
  background: transparent;
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-ecosysteme .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-ecosysteme .entities-grid {
  text-align: left;
}

.entities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.entity-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--relief-shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.entity-card[data-active="false"] {
  display: none;
}

.entity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--relief-strong);
}

.entity-band {
  height: 6px;
  background: linear-gradient(90deg, var(--accent, var(--bordeaux)) 0%, var(--accent-2, var(--gold)) 100%);
}

.entity-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.entity-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.entity-name-note {
  font-size: 14px;
  color: var(--gold-dark);
  margin-left: 4px;
  vertical-align: super;
}

.entity-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.badge-online {
  background: #d8f0dc;
  color: #1e6b3a;
}

.badge-active {
  background: var(--cream);
  color: var(--bordeaux);
}

.badge-coming {
  background: #fdf0d8;
  color: #a88a35;
}

.badge-dev {
  background: #e8e0f0;
  color: #5a3a8a;
}

/* ==========================================================================
   TIROIR « Projets à venir » (entités cachées par défaut)
   ========================================================================== */
.entities-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 48px auto 0;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--bordeaux), #1a0508);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 11, 22, 0.25);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.entities-toggle:hover {
  background: linear-gradient(135deg, #4a1521, var(--bordeaux));
  box-shadow: 0 6px 22px rgba(61, 11, 22, 0.4);
  transform: translateY(-2px);
  color: #e8c878;
}

.section-ecosysteme {
  /* on permet au bouton d'être centré */
}

.section-ecosysteme .entities-toggle {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.entities-toggle-icon {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.35s ease;
}

.entities-toggle[aria-expanded="true"] .entities-toggle-icon {
  transform: rotate(180deg);
}

.entities-coming {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.05s, margin-top 0.4s ease;
  margin-top: 0;
}

.entities-coming:not([hidden]) {
  /* Quand ouvert, le JS ajoutera la classe .open qui révèle */
}

.entities-coming.open {
  max-height: 3000px;
  opacity: 1;
  margin-top: 32px;
}

.entities-coming .entities-grid {
  margin-top: 0;
}

.entities-coming .entity-card {
  animation: entityFadeUp 0.5s ease both;
}

.entities-coming.open .entity-card:nth-child(1) { animation-delay: 0.05s; }
.entities-coming.open .entity-card:nth-child(2) { animation-delay: 0.12s; }
.entities-coming.open .entity-card:nth-child(3) { animation-delay: 0.19s; }
.entities-coming.open .entity-card:nth-child(4) { animation-delay: 0.26s; }
.entities-coming.open .entity-card:nth-child(5) { animation-delay: 0.33s; }

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

.entity-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.entity-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.entity-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--bordeaux);
  letter-spacing: 0.04em;
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--gold);
  transition: all var(--transition);
}

.entity-link:hover {
  color: var(--bordeaux-dark);
  border-bottom-color: var(--bordeaux);
}

.entity-link.disabled {
  color: var(--grey);
  border-bottom-color: var(--grey-light);
  pointer-events: none;
  cursor: default;
}

/* ==========================================================================
   MACHINE-BUSINESS
   ========================================================================== */
.section-mb {
  background: linear-gradient(135deg, var(--bordeaux-dark) 0%, var(--bordeaux-deep) 50%, var(--bordeaux) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    inset 0 6px 24px rgba(0, 0, 0, 0.4),
    inset 0 -6px 24px rgba(0, 0, 0, 0.4);
}

.section-mb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
  pointer-events: none;
}

.mb-content {
  position: relative;
  z-index: 1;
}

.mb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.mb-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.mb-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.mb-cta-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ==========================================================================
   PARTICIPER
   ========================================================================== */
.section-participer {
  background: transparent;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* GATE */
.gate {
  margin-top: 48px;
}

.gate-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 36px;
  border-radius: 4px;
  box-shadow: var(--relief-strong);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--cream);
  color: var(--bordeaux);
  border-radius: 50%;
  margin-bottom: 24px;
}

.gate-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--bordeaux);
  margin-bottom: 12px;
  font-weight: 600;
}

.gate-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-form input {
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--grey-light);
  border-radius: 2px;
  background: var(--white);
  transition: border var(--transition);
  text-align: center;
  letter-spacing: 0.1em;
}

.gate-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.gate-error {
  color: #c8102e;
  font-size: 13px;
  margin-top: 8px;
}

/* CONTENU PRIVÉ */
.private-content {
  margin-top: 48px;
  text-align: left;
}

.campaign-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.term-card {
  background: var(--white);
  padding: 28px 20px;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--relief-shadow);
  border-top: 3px solid var(--gold);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.term-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--relief-strong);
}

.term-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.term-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--bordeaux);
  line-height: 1;
  margin-bottom: 8px;
}

.term-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.how-it-works {
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 32px;
  box-shadow: var(--relief-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.how-it-works h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--bordeaux);
  margin-bottom: 24px;
  font-weight: 600;
}

.steps {
  list-style: none;
  counter-reset: stepCounter;
}

.steps li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 20px;
  line-height: 1.65;
  counter-increment: stepCounter;
  color: var(--text);
  font-size: 15px;
}

.steps li::before {
  content: counter(stepCounter);
  position: absolute;
  left: 0;
  top: -4px;
  width: 36px;
  height: 36px;
  background: var(--bordeaux);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
}

.steps strong {
  color: var(--bordeaux);
}

.legal-note {
  background: #fdf5e7;
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin-bottom: 48px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-note strong {
  color: var(--bordeaux);
}

/* ==========================================================================
   JAUGE DE PROGRESSION DE LA CAMPAGNE
   ========================================================================== */
.progress-gauge {
  background: linear-gradient(180deg, var(--white) 0%, #faf6ec 100%);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 32px 36px;
  margin-bottom: 48px;
  box-shadow: var(--relief-strong);
}

.gauge-stats {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
  text-align: center;
  align-items: end;
}

.gauge-stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gauge-stat-value {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--bordeaux-deep);
  line-height: 1.1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 2px rgba(74, 50, 30, 0.15);
}

.gauge-stat-main .gauge-stat-value {
  font-size: 42px;
  color: var(--bordeaux-deep);
}

.gauge-stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.gauge-stat-sub strong {
  color: var(--gold-dark);
  font-weight: 600;
}

.gauge-bar-wrap {
  margin-bottom: 24px;
}

.gauge-bar {
  position: relative;
  height: 24px;
  background: var(--cream);
  border-radius: 12px;
  overflow: visible;
  box-shadow:
    inset 0 2px 4px rgba(74, 50, 30, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

.gauge-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(168, 138, 53, 0.4),
    0 0 16px rgba(201, 168, 76, 0.4);
  position: relative;
}

.gauge-bar-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--bordeaux-deep);
  z-index: 2;
}

.gauge-bar-threshold::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--bordeaux-deep);
}

.threshold-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bordeaux-deep);
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid var(--bordeaux-deep);
}

.gauge-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gauge-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-light);
}

.gauge-meta-item {
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--bordeaux-deep);
}

@media (max-width: 600px) {
  .gauge-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gauge-stat-main .gauge-stat-value {
    font-size: 32px;
  }
  .progress-gauge {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   VENTILATION DU BUDGET (PALIERS NARRATIFS)
   ========================================================================== */
.budget-breakdown {
  background: var(--white);
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 32px;
  box-shadow: var(--relief-shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.budget-breakdown h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--bordeaux-deep);
  margin-bottom: 24px;
  font-weight: 600;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 3px rgba(74, 50, 30, 0.15);
}

.budget-tiers {
  list-style: none;
  padding: 0;
  margin: 0;
}

.budget-tiers li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream);
}

.budget-tiers li:last-child {
  border-bottom: none;
}

.tier-amount {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--bordeaux-deep);
  line-height: 1.2;
}

.tier-amount small {
  display: block;
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 500;
  font-family: var(--font-sans);
  margin-top: 2px;
}

.tier-action {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  padding-top: 4px;
}

.budget-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-light);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .budget-tiers li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==========================================================================
   STORYTELLING PRODUCTION
   ========================================================================== */
.production-story {
  background: linear-gradient(135deg, #f5ead2 0%, #ede2ce 100%);
  padding: 32px 36px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  margin-bottom: 48px;
  box-shadow: var(--relief-shadow);
}

.production-story h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--bordeaux-deep);
  margin-bottom: 16px;
  font-weight: 600;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 3px rgba(74, 50, 30, 0.15);
}

.production-story p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.production-story strong {
  color: var(--bordeaux-deep);
}

/* ==========================================================================
   ÉCOLE B — CHOIX DU MODE DE PARTICIPATION
   ========================================================================== */
.participation {
  margin-top: 48px;
}

.participation-choice {
  text-align: center;
  margin-bottom: 24px;
}

.participation-choice h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--bordeaux-deep);
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 3px rgba(74, 50, 30, 0.15);
}

.choice-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.choice-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.choice-btn {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--relief-shadow);
  font-family: var(--font-sans);
  text-align: center;
}

.choice-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--relief-strong);
  background: linear-gradient(180deg, var(--white) 0%, #faf3e2 100%);
}

.choice-icon {
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 3px rgba(74, 50, 30, 0.2));
}

.choice-label {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--bordeaux-deep);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 2px rgba(74, 50, 30, 0.12);
}

.choice-detail {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* BOUTON RETOUR */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--bordeaux-deep);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.btn-back:hover {
  color: var(--gold-dark);
}

/* SECTIONS CONDITIONNELLES DANS LE FORMULAIRE */
.form-section {
  background: linear-gradient(180deg, #faf6ec 0%, #f5efe1 100%);
  padding: 28px;
  border-radius: 4px;
  margin: 24px 0;
  border-left: 4px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--bordeaux-deep);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

.badge-pret {
  background: var(--bordeaux-deep);
  color: var(--gold);
}

.badge-don {
  background: var(--gold);
  color: var(--bordeaux-deep);
}

.form-section-help {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.radio-group-pret {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

/* MONTANT PERSONNALISÉ */
.custom-amount {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gold-light);
}

.custom-amount label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.custom-amount input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid var(--grey-light);
  border-radius: 2px;
  background: var(--white);
  transition: border var(--transition);
}

.custom-amount input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field-sublabel {
  display: block;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text);
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
}

.don-type {
  margin-top: 16px;
}

.radio-option-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: 2px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.radio-option-block:hover {
  border-color: var(--gold);
}

.radio-option-block input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--bordeaux-deep);
  flex-shrink: 0;
}

.radio-option-block input[type="radio"]:checked + span strong {
  color: var(--bordeaux-deep);
}

.radio-option-block:has(input:checked) {
  background: linear-gradient(180deg, #faf6ec 0%, #f5efe1 100%);
  border-color: var(--bordeaux-deep);
}

.radio-option-block span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.radio-option-block strong {
  color: var(--bordeaux-deep);
  display: block;
  margin-bottom: 2px;
}

/* FORMULAIRE */
.pret-form {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 4px;
  box-shadow: var(--relief-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.pret-form h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--bordeaux);
  margin-bottom: 32px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid var(--grey-light);
  border-radius: 2px;
  background: var(--white);
  transition: border var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.radio-option {
  position: relative;
  cursor: pointer;
  margin-bottom: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  font-size: 15px !important;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: 2px;
  background: var(--white);
  transition: all var(--transition);
  text-align: center;
  color: var(--text);
}

.radio-option:hover span {
  border-color: var(--gold);
}

.radio-option input:checked + span {
  background: var(--bordeaux);
  color: var(--white);
  border-color: var(--bordeaux);
}

.checkbox-field {
  margin-top: 16px;
}

.checkbox-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text-muted) !important;
  line-height: 1.5;
}

.checkbox-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--bordeaux);
  flex-shrink: 0;
}

.hidden-hp {
  position: absolute;
  left: -9999px;
}

/* SUCCÈS */
.form-success {
  background: var(--white);
  padding: 64px 40px;
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--relief-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--bordeaux);
  margin-bottom: 16px;
}

.form-success p {
  font-size: 17px;
  color: var(--text);
  max-width: 460px;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--bordeaux-deep) 0%, var(--bordeaux-dark) 100%);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
  box-shadow: 0 -8px 32px rgba(46, 10, 15, 0.4);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 72px 24px 56px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

/* Wrapper qui crop le bas du logo footer */
/* Image 1280x1024 (5:4), crop bottom ~30% */
.footer-logo-wrap {
  width: 200px;
  margin-bottom: 8px;
  overflow: hidden;
  aspect-ratio: 5 / 2.8;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: 16px;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  margin-top: 0;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col p {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 64px);
    background: var(--bordeaux);
    padding: 32px 24px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .main-nav a {
    font-size: 16px;
  }

  .main-nav .nav-cta {
    margin-top: 12px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .mb-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .pret-form,
  .how-it-works,
  .gate-card,
  .form-success {
    padding: 32px 24px;
  }

  .terms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .entities-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ANIMATIONS D'ENTRÉE
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
