/* ============================================================
   D.J.E.D SARL — Feuille de style « Premium »
   Palette issue du logo : vert profond + or
   ============================================================ */

:root {
  --green: #0e4d34;
  --green-dark: #093525;
  --green-deeper: #062619;
  --green-soft: #14503a;
  --gold: #c39a3e;
  --gold-light: #d9b45a;
  --gold-pale: #eed9a4;
  --gold-deep: #a67f2c;
  --cream: #faf8f3;
  --cream-2: #f4efe4;
  --ink: #17211b;
  --muted: #5e6c63;
  --line: rgba(14, 77, 52, 0.10);
  --gold-line: rgba(195, 154, 62, 0.35);
  --white: #ffffff;
  --shadow-soft: 0 10px 40px -18px rgba(9, 53, 37, 0.25);
  --shadow: 0 30px 70px -30px rgba(9, 53, 37, 0.45);
  --shadow-gold: 0 20px 45px -18px rgba(166, 127, 44, 0.55);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-light); color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(92%, var(--max)); margin: 0 auto; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ---------- Éléments d'ornement ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.tag::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head.center .tag::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(270deg, var(--gold), transparent);
}
.tag.light { color: var(--gold-light); }

.section-head { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head h2, .section h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--green); }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; font-weight: 300; }

/* Filet doré sous les titres centrés */
.section-head.center h2::after {
  content: "";
  display: block;
  width: 64px; height: 2px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #251c06;
  box-shadow: var(--shadow-gold);
}
/* Reflet lumineux qui traverse le bouton */
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn-gold:hover::after { left: 130%; }

.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: #fff; backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-light); color: var(--gold-pale); }
.btn.full { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(9, 53, 37, 0.3); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo {
  width: 58px; height: 58px; border-radius: 12px;
  object-fit: contain; background: #fff; padding: 3px;
  box-shadow: 0 0 0 1px var(--gold-line), 0 6px 18px -8px rgba(9, 53, 37, 0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; color: var(--green); letter-spacing: 4px; font-weight: 700; }
.brand-text em { font-style: normal; font-size: 0.6rem; letter-spacing: 5px; color: var(--gold-deep); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  position: relative;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  letter-spacing: 0.02em;
  transition: color 0.25s;
  padding: 0.3rem 0;
}
/* Soulignement doré animé */
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--gold-deep); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.main-nav .nav-cta {
  background: var(--green);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.main-nav .nav-cta:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 24px -10px rgba(9, 53, 37, 0.6);
  transform: translateY(-2px);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--green); transition: 0.3s; border-radius: 2px; }

/* ============ HERO ============ */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 100% at 85% -10%, rgba(195, 154, 62, 0.28), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(217, 180, 90, 0.12), transparent 45%),
    linear-gradient(158deg, var(--green-dark) 0%, var(--green) 52%, var(--green-deeper) 100%);
}
/* Trame fine + halo */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 10v52M18 26h36M18 46h36' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='2'/%3E%3C/svg%3E");
}
/* Grand cercle ornemental doré */
.hero-bg::before {
  content: "";
  position: absolute;
  right: -12%; top: -30%;
  width: 720px; height: 720px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 90, 0.22);
  box-shadow: inset 0 0 120px rgba(217, 180, 90, 0.06);
}

.hero-inner { position: relative; padding: clamp(5rem, 11vw, 9rem) 0 clamp(4.5rem, 8vw, 6.5rem); max-width: 800px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-pale); font-weight: 600;
  margin-bottom: 2rem;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(217, 180, 90, 0.35);
  border-radius: 999px;
  background: rgba(217, 180, 90, 0.08);
  backdrop-filter: blur(6px);
}

.hero-title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 600; text-wrap: balance; }
.hero-title .gold {
  background: linear-gradient(115deg, var(--gold-light) 10%, #f4e3ae 45%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin: 1.8rem 0 2.6rem; font-size: 1.18rem; max-width: 620px;
  color: rgba(255, 255, 255, 0.82); font-weight: 300; line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.8rem, 5vw, 4rem);
  margin-top: 4rem; padding-top: 2.4rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(217,180,90,0.5), rgba(255,255,255,0.08)) 1;
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stats strong { font-family: "Cormorant Garamond", serif; font-size: 2.3rem; color: var(--gold-light); font-weight: 700; line-height: 1; }
.hero-stats span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.05em; }

/* Bandeau défilant sous le hero */
.marquee {
  position: relative;
  background: var(--green-deeper);
  border-top: 1px solid rgba(217, 180, 90, 0.25);
  border-bottom: 1px solid rgba(217, 180, 90, 0.25);
  overflow: hidden;
  padding: 0.95rem 0;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  display: inline-flex; align-items: center; gap: 3.5rem;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600; white-space: nowrap;
}
.marquee span::after { content: "✦"; color: rgba(217, 180, 90, 0.5); font-size: 0.7rem; letter-spacing: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Grilles ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5.5vw, 5rem); align-items: center; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }

/* ============ À PROPOS ============ */
.apropos { background: var(--white); }
/* Filigrane décoratif */
.apropos::before {
  content: "DJED";
  position: absolute;
  right: 2%; top: 8%;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(14, 77, 52, 0.035);
  pointer-events: none;
  user-select: none;
}
.apropos-text h2 { font-size: clamp(2.2rem, 4.5vw, 3.1rem); color: var(--green); margin-bottom: 1.4rem; }
.apropos-text p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.apropos-text strong { color: var(--ink); }
.apropos-text em { color: var(--gold-deep); }

.check-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.check-list li {
  position: relative; padding: 0.9rem 1.1rem 0.9rem 3.2rem;
  color: var(--ink); font-weight: 500;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.check-list li:hover { transform: translateX(6px); border-color: var(--gold-line); box-shadow: var(--shadow-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
}

/* Pilier Djed stylisé */
.apropos-visual {
  background:
    radial-gradient(120% 100% at 70% 0%, rgba(217, 180, 90, 0.18), transparent 50%),
    linear-gradient(160deg, var(--green) 0%, var(--green-dark) 60%, var(--green-deeper) 100%);
  border-radius: var(--radius);
  padding: 3.8rem 2rem 2.2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 420px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  border: 1px solid rgba(217, 180, 90, 0.2);
}
.apropos-visual::before {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(217, 180, 90, 0.3);
  top: 50%; left: 50%; transform: translate(-50%, -56%);
}
.apropos-visual::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 1px dashed rgba(217, 180, 90, 0.15);
  top: 50%; left: 50%; transform: translate(-50%, -56%);
}
.djed-pillar { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; z-index: 1; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45)); }
.djed-pillar > span {
  height: 13px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-pale) 50%, var(--gold-deep));
}
.djed-pillar > span:nth-child(1) { width: 124px; }
.djed-pillar > span:nth-child(2) { width: 138px; }
.djed-pillar > span:nth-child(3) { width: 124px; }
.djed-pillar > span:nth-child(4) { width: 110px; }
.djed-shaft {
  width: 42px; height: 140px; margin-top: 5px; border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light) 45%, var(--gold-deep));
}
.djed-caption {
  color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; margin-top: 2rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  position: relative; z-index: 1;
}

/* ============ SERVICES ============ */
.services { background: var(--cream); }
.card {
  position: relative;
  background: var(--white); border-radius: var(--radius); padding: 2.6rem 2.1rem;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* Liseré doré qui se déploie en haut de chaque carte */
.card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.card:hover::before { transform: scaleX(1); }

.card-featured {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(217, 180, 90, 0.2), transparent 55%),
    linear-gradient(165deg, var(--green) 0%, var(--green-dark) 70%, var(--green-deeper) 100%);
  color: #fff;
  border-color: rgba(217, 180, 90, 0.3);
}
.card-featured::before { transform: scaleX(1); }
.card.card-featured h3, .card.card-featured > p { color: #fff; }
.card-featured .mini-list li { color: rgba(255, 255, 255, 0.85); }
.card-featured .card-icon { background: rgba(217, 180, 90, 0.16); color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(217, 180, 90, 0.35); }

.card-icon {
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 1.5rem;
  background: rgba(14, 77, 52, 0.07); color: var(--green);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(14, 77, 52, 0.1);
  transition: transform 0.4s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.7rem; color: var(--green); margin-bottom: 0.8rem; }
.card > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.4rem; }
.mini-list { list-style: none; margin-top: auto; display: grid; gap: 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.card-featured .mini-list { border-top-color: rgba(255, 255, 255, 0.12); }
.mini-list li { position: relative; padding-left: 1.5rem; font-size: 0.9rem; color: var(--ink); }
.mini-list li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: 0.6rem; line-height: 2.4;
}

/* ============ ZONE D'ACTION ============ */
.zone {
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(217, 180, 90, 0.12), transparent 50%),
    linear-gradient(150deg, var(--green) 0%, var(--green-dark) 75%, var(--green-deeper) 100%);
  color: #fff;
  overflow: hidden;
}
.zone::before {
  content: "";
  position: absolute; left: -10%; bottom: -40%;
  width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(217, 180, 90, 0.15);
}
.zone h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.1rem); margin-bottom: 1.4rem; }
.zone h2::after {
  content: "";
  display: block;
  width: 64px; height: 2px;
  margin-top: 1.2rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.zone p { color: rgba(255, 255, 255, 0.8); font-weight: 300; font-size: 1.02rem; }
.zone-points { margin-top: 2.4rem; display: grid; gap: 1.1rem; }
.zone-point {
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.zone-point:hover { background: rgba(255, 255, 255, 0.09); transform: translateX(6px); }
.zone-point strong { display: block; color: var(--gold-light); font-size: 1.12rem; margin-bottom: 0.15rem; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; }
.zone-point span { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

.zone-visual { display: flex; justify-content: center; position: relative; z-index: 1; }
.globe-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 180, 90, 0.3);
  border-radius: var(--radius); padding: 3.2rem 2.8rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.7rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.globe {
  width: 185px; height: 185px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(238, 217, 164, 0.55), transparent 55%),
    conic-gradient(from 45deg, var(--green-soft), var(--gold-deep), var(--green-soft));
  box-shadow:
    inset -14px -14px 34px rgba(0, 0, 0, 0.4),
    0 0 0 10px rgba(217, 180, 90, 0.07),
    0 0 0 22px rgba(217, 180, 90, 0.04),
    0 24px 50px -18px rgba(0, 0, 0, 0.55);
  position: relative;
  animation: globe-float 7s ease-in-out infinite;
}
@keyframes globe-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.globe::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='185' height='185'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.28'%3E%3Cellipse cx='92' cy='92' rx='91' ry='37'/%3E%3Cellipse cx='92' cy='92' rx='60' ry='91'/%3E%3Cline x1='1' y1='92' x2='184' y2='92'/%3E%3C/g%3E%3C/svg%3E");
}
.globe-card p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: 0.02em; }

/* ============ VALEURS ============ */
.valeurs { background: var(--cream-2); }
.valeurs::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 12v56M24 28h32M24 50h32' stroke='%230e4d34' stroke-opacity='0.02' stroke-width='2'/%3E%3C/svg%3E");
  pointer-events: none;
}
.value {
  position: relative;
  background: var(--white); border-radius: var(--radius); padding: 2.6rem 2.2rem;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.value::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.value:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.value:hover::after { transform: scaleX(1); }
.value-num {
  font-family: "Cormorant Garamond", serif; font-size: 3.4rem; font-weight: 700; line-height: 1;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value h3 { font-size: 1.8rem; color: var(--green); margin: 0.5rem 0 0.7rem; }
.value p { color: var(--muted); font-size: 0.97rem; }

/* ============ LIEN ESPACE MEMBRE (header) ============ */
.nav-login {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 500;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
  color: var(--green);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.nav-login svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-login:hover {
  background: rgba(195, 154, 62, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.nav-login::after { display: none !important; }

/* ============ SÉLECTEUR DE LANGUE ============ */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); padding-left: 0.6rem;
  border-left: 1px solid var(--line);
}
.lang-switch a { color: var(--muted); transition: color 0.25s; }
.lang-switch a:hover { color: var(--gold-deep); }
.lang-switch a.active { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ============ COURS DES MÉTAUX ============ */
.cours {
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(217, 180, 90, 0.10), transparent 55%),
    linear-gradient(165deg, var(--green-dark) 0%, var(--green-deeper) 100%);
  color: #fff;
}
.cours .section-head h2 { color: #fff; }
.cours .section-sub { color: rgba(255, 255, 255, 0.7); }
.cours .section-head.center h2::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cours-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  max-width: 1000px; margin: 0 auto;
}
.cours-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.cours-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.cours-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.9rem; }
.cours-head h3 { font-size: 1.45rem; color: var(--gold-light); }
.cours-var {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 0.22rem 0.55rem; border-radius: 999px;
}
.cours-var.up { color: #7fd6a4; background: rgba(127, 214, 164, 0.14); }
.cours-var.down { color: #f0a6a6; background: rgba(240, 166, 166, 0.14); }

.cours-prix { display: flex; flex-direction: column; gap: 0.1rem; }
.cours-prix strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.1rem; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.cours-unite {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55); font-weight: 600;
}
.cours-secondaire {
  margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
}

.cours-maj {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem; margin-top: 1.8rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.6);
}
.cours-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7fd6a4;
  box-shadow: 0 0 0 3px rgba(127, 214, 164, 0.22);
  animation: cours-pulse 2.4s ease-in-out infinite;
}
@keyframes cours-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.cours-stale { color: #f0c98a; font-style: italic; }
.cours-disclaimer {
  max-width: 820px; margin: 1.2rem auto 0;
  font-size: 0.76rem; line-height: 1.65; text-align: center;
  color: rgba(255, 255, 255, 0.45); font-style: italic;
}

/* Léger flash quand une valeur change au rafraîchissement */
@keyframes cours-flash {
  0% { color: var(--gold-light); }
  100% { color: inherit; }
}
.cours-updated { animation: cours-flash 1.4s ease-out; }

/* ============ ÉQUIPE ============ */
.equipe { background: var(--cream); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.8rem; max-width: 1000px; margin: 0 auto; }
.team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.team-photo {
  width: 118px; height: 118px; margin: 0 auto 1.2rem;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--gold-line), 0 14px 30px -14px rgba(9, 53, 37, 0.6);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { color: var(--gold-light); font-family: "Cormorant Garamond", serif; font-size: 2.4rem; font-weight: 700; }
.team-card h3 { font-size: 1.5rem; color: var(--green); }
.team-role {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700; margin-top: 0.25rem;
}
.team-bio { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }

/* ============ SIMULATEUR ============ */
.simulateur { background: var(--white); }
.sim-card {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 70%, var(--green-deeper) 100%);
  border: 1px solid rgba(217, 180, 90, 0.28);
  border-radius: var(--radius);
  padding: 2.6rem;
  box-shadow: var(--shadow);
}
.sim-controls { display: grid; gap: 1.8rem; align-content: start; }
.sim-field { display: grid; gap: 0.5rem; }
.sim-field label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700;
}
.sim-field output {
  font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: #fff; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sim-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  outline: none; cursor: pointer;
}
.sim-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  border: 2px solid var(--green-deeper);
  cursor: pointer;
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.6);
}
.sim-field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  border: 2px solid var(--green-deeper); cursor: pointer;
}
.sim-field input[type="range"]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.sim-results { display: grid; gap: 1rem; align-content: center; }
.sim-result {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  display: grid; gap: 0.2rem;
}
.sim-result.highlight {
  background: rgba(217, 180, 90, 0.13);
  border-color: rgba(217, 180, 90, 0.45);
}
.sim-label {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65); font-weight: 600;
}
.sim-result strong {
  font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 700;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15;
}
.sim-result.highlight strong { color: var(--gold-light); font-size: 2.2rem; }
.sim-disclaimer {
  max-width: 940px; margin: 1.4rem auto 0;
  font-size: 0.8rem; color: var(--muted); font-style: italic; text-align: center; line-height: 1.6;
}

/* ============ DOCUMENTS ============ */
.documents { background: var(--cream-2); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.doc-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.doc-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: rgba(14, 77, 52, 0.07); color: var(--green);
  display: grid; place-items: center;
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-info { display: grid; gap: 0.15rem; }
.doc-info strong { color: var(--green); font-size: 1.05rem; }
.doc-desc { color: var(--muted); font-size: 0.88rem; }
.doc-meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-top: 0.2rem; }

/* ============ RETOUR EN HAUT ============ */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 59;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--gold-light);
  border: 1px solid rgba(217, 180, 90, 0.45);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(9, 53, 37, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s, background 0.3s, color 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); color: var(--gold-pale); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.back-to-top svg { width: 20px; height: 20px; }
/* Se place au-dessus du bouton WhatsApp lorsqu'il est actif */
.back-to-top.with-wa { bottom: 88px; }

/* ============ BOUTON WHATSAPP ============ */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.75); }
.wa-tooltip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--green-dark); color: #fff;
  font-size: 0.78rem; white-space: nowrap;
  padding: 0.45rem 0.9rem; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  box-shadow: var(--shadow-soft);
}
.whatsapp-fab:hover .wa-tooltip { opacity: 1; }

/* ============ GALERIE / CAROUSEL ============ */
.galerie { background: var(--white); }
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-line);
  background: var(--green-deeper);
}
.carousel-track { position: relative; aspect-ratio: 16 / 9; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.6rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(6, 38, 25, 0.85));
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(217, 180, 90, 0.5);
  background: rgba(6, 38, 25, 0.55);
  color: var(--gold-light);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s, transform 0.25s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(6, 38, 25, 0.85); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active { background: var(--gold-light); border-color: var(--gold-light); transform: scale(1.25); }

/* ============ ACTUALITÉS ============ */
.actus { background: var(--cream-2); }
.actus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; max-width: 1000px; margin: 0 auto; }
.actu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.actu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-line); }
.actu-img { aspect-ratio: 16 / 9; overflow: hidden; }
.actu-img img { width: 100%; height: 100%; object-fit: cover; }
.actu-body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: 0.45rem; }
.actu-date {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}
.actu-body h3 { font-size: 1.45rem; color: var(--green); }
.actu-body p { color: var(--muted); font-size: 0.94rem; white-space: pre-line; }

/* ============ CTA BANNER ============ */
.cta-banner {
  position: relative;
  background:
    radial-gradient(110% 130% at 50% -20%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-light) 100%);
  color: #251c06; text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-banner::before { left: -120px; top: -160px; }
.cta-banner::after { right: -100px; bottom: -180px; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: #1f2d0d; }
.cta-inner p { margin: 0.8rem 0 2.2rem; color: #3a2e10; font-size: 1.08rem; }
.cta-banner .btn-gold {
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(9, 53, 37, 0.65);
}
.cta-banner .btn-gold:hover { background: var(--green-dark); }

/* ============ CONTACT ============ */
.contact { background: var(--white); }
.contact-text h2 { font-size: clamp(2.2rem, 4.5vw, 3.1rem); color: var(--green); margin-bottom: 1.2rem; }
.contact-text > p { color: var(--muted); margin-bottom: 2rem; font-size: 1.02rem; }
.contact-info { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.contact-info li {
  display: flex; flex-direction: column;
  padding: 1.1rem 1.4rem;
  background: var(--cream);
  transition: background 0.25s;
}
.contact-info li + li { border-top: 1px solid var(--line); }
.contact-info li:hover { background: var(--cream-2); }
.ci-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 0.15rem; }
.contact-info a, .contact-info span:last-child { color: var(--ink); font-weight: 500; }
.contact-info a:hover { color: var(--gold-deep); }
.contact-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted); font-style: italic; }

.contact-form {
  position: relative;
  background: var(--cream); border-radius: var(--radius); padding: 2.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.contact-form::before {
  content: "";
  position: absolute; top: 0; left: 10%;
  width: 80%; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.45rem;
  color: var(--green); letter-spacing: 0.12em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 62, 0.14);
}
.field textarea { resize: vertical; }
.form-hint { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); text-align: center; }

.form-alert {
  padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.4rem;
}
.form-alert.ok { background: #e8f3ec; color: #14532d; border: 1px solid #bbdcc8; }
.form-alert.err { background: #fdecec; color: #8c1d1d; border: 1px solid #f0bcbc; }

.field-consent { margin: 1.4rem 0; }
.consent {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.83rem; color: var(--muted); line-height: 1.55;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; margin-top: 0.15rem;
  flex-shrink: 0; cursor: pointer;
  accent-color: var(--green);
}
.consent a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--green); }

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-deeper) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 4rem;
  overflow: hidden;
}
/* Filet doré au sommet du footer */
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-footer::after {
  content: "";
  position: absolute; right: -140px; top: -60px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(217, 180, 90, 0.1);
  pointer-events: none;
}
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; padding-bottom: 3.2rem; position: relative; z-index: 1; }
.footer-logo {
  width: 150px; height: auto; border-radius: 14px;
  background: #fff; padding: 10px; object-fit: contain; margin-bottom: 1.2rem;
  box-shadow: 0 0 0 1px rgba(217, 180, 90, 0.4), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.footer-brand p { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-tagline {
  margin-top: 1rem; font-style: italic; color: var(--gold-light) !important;
  font-size: 1.05rem !important; font-family: "Cormorant Garamond", serif;
  text-transform: none !important; letter-spacing: 0.02em !important;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-cols h4 {
  font-family: "Inter", sans-serif; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid rgba(217, 180, 90, 0.2);
}
.footer-cols a { display: block; font-size: 0.9rem; margin-bottom: 0.65rem; color: rgba(255, 255, 255, 0.65); transition: color 0.2s, transform 0.2s; }
.footer-cols a:hover { color: var(--gold-pale); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.4rem 0; position: relative; z-index: 1; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.footer-caps { letter-spacing: 0.22em; color: var(--gold-light) !important; text-transform: uppercase; font-size: 0.72rem !important; align-self: center; }

/* ============ PAGE LÉGALE ============ */
.legal { background: var(--white); min-height: 60vh; }
.legal-inner { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); color: var(--green); margin-bottom: 0.6rem; }
.legal-updated { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.legal-sommaire {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1.6rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid var(--gold-line);
}
.legal-sommaire a {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--green) !important; text-decoration: none !important;
  transition: background 0.25s, border-color 0.25s;
}
.legal-sommaire a:hover { background: var(--cream); border-color: var(--gold); }

.legal section { margin-top: 3rem; scroll-margin-top: 92px; }
.legal h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--green);
  padding-bottom: 0.8rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--gold-line);
}
.legal h3 { font-size: 1.35rem; color: var(--green); margin: 1.8rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.98rem; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.3rem; display: grid; gap: 0.45rem; margin: 0.8rem 0; }
.legal a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--green); }
.footer-caps a:hover { color: #fff; }

/* ============ ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
/* Décalage en cascade pour les grilles */
.cards-3 > .reveal:nth-child(2) { transition-delay: 0.12s; }
.cards-3 > .reveal:nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .globe { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 1rem 6% 1.4rem;
    transform: translateY(-130%); transition: transform 0.4s var(--ease); box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav .nav-cta { text-align: center; margin-top: 0.9rem; border-bottom: 0; }
  .nav-login { justify-content: center; margin-top: 0.6rem; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.reverse .zone-visual { order: -1; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-3 > .reveal:nth-child(2), .cards-3 > .reveal:nth-child(3) { transition-delay: 0s; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .apropos::before { display: none; }

  .cours-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.6rem; }
  .lang-switch { border-left: 0; padding-left: 0; justify-content: center; padding-top: 0.9rem; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-tooltip { display: none; }
}

@media (max-width: 520px) {
  .hero-stats { gap: 1.6rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }
  .contact-form { padding: 1.8rem 1.4rem; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .cours-grid { grid-template-columns: 1fr; }
}
