/* ==========================================================================
   ANÉLYA ACADÉMIE — site vitrine
   Identité reprise du CRM Anélya : noir profond, or du logo (lumière en haut à
   droite, jamais de fond doré plein), bleu pétrole pour les titres, cyan pour
   les liens. Une seule source de lumière sur tout le site : le coin haut-droit.
   ========================================================================== */

:root {
  --noir: #030405;
  --surface: #0d1218;
  --surface-2: #141b23;
  --texte: #f5f2ea;
  --texte-2: #a2a9b2;
  --texte-3: #69727d;
  --or: #b8862b;
  --or-texte: #a57a24;
  --or-survol: #c39237;
  --or-clair: #e2ba60;
  --or-lumiere: #fff3cc;
  --petrole: #146a8a;
  --petrole-clair: #3aa6c8;
  --cyan: #2cc2dc;
  --rouge: #f25f5c;
  --vert: #34d399;
  --bord: rgba(184, 134, 43, 0.14);
  --bord-fort: rgba(184, 134, 43, 0.32);

  --anneau-or: radial-gradient(130% 190% at 100% 0%, #fff3cc 0%, #e2ba60 10%, #a87a22 26%, #6e4e10 48%, #3a2807 75%, #2a1d05 100%);
  --anneau-bleu: radial-gradient(130% 190% at 100% 0%, #b9ecfb 0%, #3aa6c8 9%, #15698a 24%, #0c4459 46%, #06283a 74%, #041a24 100%);
  --texte-or: linear-gradient(100deg, #6e4e10 0%, #b8862b 18%, #e2ba60 32%, #fff3cc 40%, #e2ba60 48%, #a87a22 64%, #e2ba60 82%, #6e4e10 100%);

  --police-titre: "Cinzel", "Times New Roman", serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --largeur: 1200px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--texte);
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Grain très léger sur tout le site : donne de la matière au noir. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(184, 134, 43, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; color: var(--texte-2); }
.chapeau { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--texte-2); max-width: 62ch; }

/* Texte or métallique, avec un reflet qui passe lentement. */
.texte-or {
  background: var(--texte-or);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: reflet-texte 7s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(214, 164, 64, 0.18));
}
@keyframes reflet-texte { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.texte-bleu { color: var(--petrole-clair); text-shadow: 0 0 24px rgba(58, 166, 200, 0.35); }

/* Étiquette de section : le cadre bleu lumineux du CRM (lumière en haut à droite). */
.etiquette {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: var(--noir);
  color: var(--petrole-clair);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.etiquette::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--anneau-bleu);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.etiquette::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(44, 194, 220, 0.6);
  order: -1;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }

/* ---------- Boutons (repris du CRM) ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 12px;
  font: 600 0.98rem/1 var(--police-texte);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none !important;
  transition: color 0.35s ease, background-color 0.35s ease, transform 0.35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-or, .or-lumineux {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--noir);
  color: var(--or-texte);
  text-shadow: 0 0 10px rgba(214, 164, 64, 0.18);
}
.btn-or::before, .or-lumineux::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--anneau-or);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: filter 0.35s ease;
  pointer-events: none;
}
.btn-or::after, .or-lumineux::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(70% 120% at 100% 0%, rgba(255, 224, 150, 0.16), rgba(255, 224, 150, 0.04) 45%, transparent 70%);
  opacity: 0.6;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.btn-or:hover, .or-lumineux:hover {
  color: var(--or-survol);
  background: linear-gradient(rgba(122, 87, 20, 0.10), rgba(122, 87, 20, 0.10)), var(--noir);
  box-shadow: 0 0 34px -8px rgba(214, 164, 64, 0.45);
}
.btn-or:hover::before, .or-lumineux:hover::before { filter: brightness(1.35); }
.btn-or:hover::after, .or-lumineux:hover::after { opacity: 1; }
/* Éclat qui traverse le bouton or au survol. */
.btn-or .eclat {
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 180, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-or:hover .eclat { animation: eclat 0.9s var(--ease); }
@keyframes eclat { to { left: 130%; } }
.btn-gros { padding: 1.15rem 2.1rem; font-size: 1.05rem; border-radius: 14px; }

.btn-bleu {
  background: rgba(20, 106, 138, 0.08);
  color: var(--texte);
  box-shadow: inset 0 0 0 1px rgba(58, 166, 200, 0.35);
}
.btn-bleu:hover { background: rgba(20, 106, 138, 0.2); box-shadow: inset 0 0 0 1px rgba(58, 166, 200, 0.7), 0 0 30px -8px rgba(44, 194, 220, 0.5); }

/* ---------- Préchargeur ---------- */
.prechargeur {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--noir);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.prechargeur img { width: min(260px, 60vw); opacity: 0; transform: scale(0.92); filter: blur(8px); animation: apparition-logo 1.2s var(--ease) 0.1s forwards; }
.prechargeur .ligne { position: absolute; bottom: 30%; width: min(220px, 50vw); height: 1px; background: rgba(184, 134, 43, 0.15); overflow: hidden; }
.prechargeur .ligne::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--or-clair), transparent); transform: translateX(-100%); animation: chargement 1.3s var(--ease) forwards; }
@keyframes apparition-logo { to { opacity: 1; transform: none; filter: none; } }
@keyframes chargement { to { transform: translateX(100%); } }
.prechargeur.fini { opacity: 0; visibility: hidden; }
html.deja-vu .prechargeur { display: none; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s ease, box-shadow 0.4s ease;
}
.entete.defile {
  padding: 10px 0;
  background: rgba(3, 4, 5, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--bord);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.marque { display: flex; align-items: center; flex-shrink: 0; }
.marque img { height: 54px; width: auto; transition: height 0.4s var(--ease); filter: drop-shadow(0 0 14px rgba(214, 164, 64, 0.15)); }
.entete.defile .marque img { height: 44px; }
.menu { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  white-space: nowrap;
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  color: var(--texte-2);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}
.menu a:hover { color: var(--texte); background: var(--surface-2); }
.menu a[aria-current="page"] { color: var(--or-texte); }
.menu a.or-lumineux:hover { background: linear-gradient(rgba(122, 87, 20, 0.10), rgba(122, 87, 20, 0.10)), var(--noir); color: var(--or-survol); }
.entete .btn { padding: 0.75rem 1.25rem; font-size: 0.92rem; white-space: nowrap; }
.burger { display: none; background: none; border: 0; color: var(--texte); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
.menu-ouvert .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }
  .entete .btn-entete { display: none; }
  .nav-principale {
    position: fixed; inset: 0; z-index: -1;
    display: grid; place-items: center;
    background: rgba(3, 4, 5, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .menu-ouvert .nav-principale { opacity: 1; visibility: visible; }
  .menu { flex-direction: column; gap: 0.6rem; }
  .menu a { font-family: var(--police-titre); font-size: 1.5rem; padding: 0.6rem 1.4rem; text-align: center; }
  .menu li { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .menu-ouvert .menu li { opacity: 1; transform: none; }
  .menu-ouvert .menu li:nth-child(2) { transition-delay: 0.05s; } .menu-ouvert .menu li:nth-child(3) { transition-delay: 0.1s; }
  .menu-ouvert .menu li:nth-child(4) { transition-delay: 0.15s; } .menu-ouvert .menu li:nth-child(5) { transition-delay: 0.2s; }
  .menu-ouvert .menu li:nth-child(6) { transition-delay: 0.25s; }
  .menu-ouvert { overflow: hidden; }
  .menu-ouvert .entete { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; }
}

/* ---------- Scène lumineuse (hero et en-têtes de page) ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; }
.scene canvas.poussiere { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* Source de lumière en haut à droite : halo or + halo bleu pétrole. */
.scene .halo {
  position: absolute; z-index: -2; pointer-events: none;
  top: -35vh; right: -25vw;
  width: 110vw; height: 110vh;
  background:
    radial-gradient(closest-side, rgba(255, 220, 140, 0.20), rgba(184, 134, 43, 0.09) 38%, transparent 72%),
    radial-gradient(closest-side at 35% 70%, rgba(20, 106, 138, 0.22), transparent 70%);
  filter: blur(10px);
  animation: respiration 9s ease-in-out infinite;
}
@keyframes respiration { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
/* Rayons de lumière qui descendent du coin haut-droit. */
.scene .rayons {
  position: absolute; z-index: -2; pointer-events: none;
  top: -60%; right: -40%;
  width: 180%; height: 220%;
  transform-origin: 100% 0;
  background: repeating-conic-gradient(from 200deg at 100% 0%,
    rgba(255, 226, 160, 0.075) 0deg 2.2deg, transparent 2.2deg 7deg,
    rgba(255, 226, 160, 0.04) 7deg 8.5deg, transparent 8.5deg 15deg);
  -webkit-mask: radial-gradient(circle at 100% 0%, #000 0%, rgba(0,0,0,0.6) 30%, transparent 62%);
  mask: radial-gradient(circle at 100% 0%, #000 0%, rgba(0,0,0,0.6) 30%, transparent 62%);
  filter: blur(3px);
  animation: rayons 26s ease-in-out infinite alternate;
}
@keyframes rayons { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
.scene .sol {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--noir));
}

/* ---------- Hero accueil ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; }
.hero .conteneur { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .ligne { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .ligne > span { display: inline-block; transform: translateY(110%); animation: monte 1.1s var(--ease) forwards; }
.hero h1 .ligne:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .ligne:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes monte { to { transform: none; } }
.hero .chapeau { margin-bottom: 2.4rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .apparait { opacity: 0; transform: translateY(18px); animation: apparait 1s var(--ease) forwards; }
@keyframes apparait { to { opacity: 1; transform: none; } }

.logo-scene { position: relative; aspect-ratio: 1; display: grid; place-items: center; perspective: 1000px; }
.logo-scene .anneau {
  position: absolute; inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(58, 166, 200, 0.14);
  animation: tourne 60s linear infinite;
}
.logo-scene .anneau::before, .logo-scene .anneau::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--or-clair); box-shadow: 0 0 14px var(--or-clair), 0 0 30px rgba(226, 186, 96, 0.6);
  top: -4px; left: calc(50% - 4px);
}
.logo-scene .anneau::after { top: auto; bottom: -4px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan), 0 0 30px rgba(44, 194, 220, 0.6); }
.logo-scene .anneau.a2 { inset: 16%; border-color: rgba(184, 134, 43, 0.12); animation-duration: 40s; animation-direction: reverse; }
.logo-scene .anneau.a2::before { left: auto; right: 14%; top: 10%; width: 5px; height: 5px; }
.logo-scene .anneau.a2::after { display: none; }
@keyframes tourne { to { transform: rotate(360deg); } }
.logo-scene .lueur {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(226, 186, 96, 0.22), rgba(20, 106, 138, 0.14) 45%, transparent 70%);
  filter: blur(30px);
  animation: respiration 6s ease-in-out infinite;
}
.logo-flotte { position: relative; width: 78%; animation: flotte 7s ease-in-out infinite; transform-style: preserve-3d; }
.logo-inclinaison { transition: transform 0.6s var(--ease); transform-style: preserve-3d; position: relative; }
.logo-inclinaison img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 40px rgba(214, 164, 64, 0.16)); }
/* Reflet qui balaie le logo, découpé à la forme exacte du logo. */
.logo-reflet {
  position: absolute; inset: 0;
  -webkit-mask: url("../img/logo-anelya.png") center / contain no-repeat;
  mask: url("../img/logo-anelya.png") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 246, 215, 0.75) 48%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 246, 215, 0.75) 52%, transparent 62%);
  background-size: 300% 100%;
  background-position: 120% 0;
  mix-blend-mode: overlay;
  animation: balayage 6.5s ease-in-out 1.6s infinite;
  pointer-events: none;
}
@keyframes balayage { 0% { background-position: 120% 0; } 40%, 100% { background-position: -30% 0; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.defiler {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--texte-3); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.defiler i { width: 1px; height: 46px; background: linear-gradient(var(--or), transparent); position: relative; overflow: hidden; }
.defiler i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 12px; border-radius: 2px; background: var(--or-lumiere); box-shadow: 0 0 8px var(--or-clair); animation: goutte 2s ease-in infinite; }
@keyframes goutte { from { top: -12px; } to { top: 46px; } }

/* ---------- Bandeau défilant ---------- */
.bandeau {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  background: linear-gradient(90deg, rgba(20, 106, 138, 0.06), rgba(184, 134, 43, 0.05));
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.bandeau .piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.bandeau:hover .piste { animation-play-state: paused; }
.bandeau span { font-family: var(--police-titre); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--texte-3); white-space: nowrap; padding: 0 1.4rem; display: flex; align-items: center; gap: 2.8rem; }
.bandeau span::after { content: "✦"; color: var(--or); font-size: 0.8em; text-shadow: 0 0 12px rgba(226, 186, 96, 0.7); }
.bandeau span:nth-child(3n+1) { color: var(--texte-2); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section-tete { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-tete.centre { margin-left: auto; margin-right: auto; text-align: center; }
.section-tete h2 { margin-bottom: 1.2rem; }
.separateur { height: 1px; max-width: var(--largeur); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--bord-fort), rgba(58, 166, 200, 0.3), transparent); }

/* ---------- Cartes lumineuses ---------- */
.grille { display: grid; gap: 1.4rem; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

.carte {
  --mx: 100%; --my: 0%;
  position: relative;
  isolation: isolate;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 27, 35, 0.9), rgba(13, 18, 24, 0.9));
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  transform-style: preserve-3d;
}
/* Contour : discret au repos, s'allume à l'endroit où se trouve la souris. */
.carte::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 230, 170, 0.75), transparent 45%),
    linear-gradient(160deg, rgba(184, 134, 43, 0.28), rgba(58, 166, 200, 0.12) 60%, rgba(184, 134, 43, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.carte::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(226, 186, 96, 0.09), transparent 42%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.carte:hover::after { opacity: 1; }
.carte:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(214, 164, 64, 0.35); }
.carte h3 { margin: 1.4rem 0 0.8rem; color: var(--texte); }
.carte p:last-child { margin-bottom: 0; }
.carte .numero { position: absolute; top: 1.2rem; right: 1.6rem; font-family: var(--police-titre); font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(184, 134, 43, 0.22); pointer-events: none; }
.carte .lien-carte { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem; font-weight: 600; font-size: 0.95rem; }
.carte .lien-carte svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.carte:hover .lien-carte svg { transform: translateX(4px); }

.icone {
  position: relative; isolation: isolate;
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--noir);
  color: var(--or-clair);
}
.icone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: var(--anneau-or);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.icone::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(80% 100% at 100% 0%, rgba(255, 224, 150, 0.2), transparent 70%); }
.icone svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(226, 186, 96, 0.5)); }
.icone.bleue { color: var(--cyan); }
.icone.bleue::before { background: var(--anneau-bleu); }
.icone.bleue::after { background: radial-gradient(80% 100% at 100% 0%, rgba(120, 215, 245, 0.18), transparent 70%); }
.icone.bleue svg { filter: drop-shadow(0 0 6px rgba(44, 194, 220, 0.5)); }

.puces { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.65rem; }
.puces li { position: relative; padding-left: 1.6rem; color: var(--texte-2); font-size: 0.98rem; }
.puces li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, var(--or-lumiere), var(--or)); box-shadow: 0 0 10px rgba(226, 186, 96, 0.55); }

/* ---------- Frise AFEST ---------- */
.frise { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.frise .rail { position: absolute; top: 29px; left: 29px; right: 29px; height: 2px; background: rgba(184, 134, 43, 0.14); border-radius: 2px; overflow: hidden; }
.frise .rail i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); background: linear-gradient(90deg, var(--or), var(--or-clair), var(--cyan)); box-shadow: 0 0 12px rgba(226, 186, 96, 0.8); }
.etape { position: relative; }
.etape .pastille {
  position: relative; isolation: isolate; z-index: 1;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--police-titre); font-size: 1.35rem; font-weight: 700;
  background: var(--noir); color: var(--texte-3);
  transition: color 0.6s ease, box-shadow 0.6s ease;
}
.etape .pastille::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; padding: 1.5px;
  background: rgba(184, 134, 43, 0.25);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background 0.6s ease;
}
.etape.allumee .pastille { color: var(--or-clair); box-shadow: 0 0 34px -4px rgba(226, 186, 96, 0.55); text-shadow: 0 0 12px rgba(226, 186, 96, 0.7); }
.etape.allumee .pastille::before { background: var(--anneau-or); }
.etape h3 { margin: 1.6rem 0 0.7rem; font-size: 1.2rem; }
.etape p { font-size: 0.97rem; }

/* ---------- Bloc citation / approche ---------- */
.approche { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.citation { font-family: var(--police-titre); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3; color: var(--texte); margin: 0; position: relative; }
.citation::before { content: "“"; position: absolute; top: -0.55em; left: -0.08em; font-size: 4.5em; line-height: 1; color: rgba(184, 134, 43, 0.16); }

/* ---------- Le nom : A · NE · LYA ---------- */
.nom { display: flex; justify-content: center; align-items: baseline; gap: clamp(0.4rem, 2vw, 1.4rem); margin: 0 auto 3rem; flex-wrap: wrap; }
.nom .syllabe { text-align: center; }
.nom .lettres { display: block; font-family: var(--police-titre); font-size: clamp(3.4rem, 11vw, 8.5rem); line-height: 1; font-weight: 700; }
.nom .point { font-family: var(--police-titre); font-size: clamp(2rem, 5vw, 4rem); color: var(--petrole-clair); text-shadow: 0 0 20px rgba(58, 166, 200, 0.7); }
.nom .prenom { display: block; margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--petrole-clair); }
.nom .syllabe { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(10px); transition: all 1.2s var(--ease); }
.visible .nom .syllabe { opacity: 1; transform: none; filter: none; }
.visible .nom .syllabe:nth-of-type(2) { transition-delay: 0.25s; }
.visible .nom .syllabe:nth-of-type(3) { transition-delay: 0.5s; }

/* Trois lumières (les trois personnages du logo) */
.trois { display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem); margin: 0 0 3rem; }
.trois span { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9fe3f5, var(--petrole) 55%, #06283a); box-shadow: 0 0 20px rgba(58, 166, 200, 0.8), 0 0 60px rgba(58, 166, 200, 0.35); animation: pulse 3s ease-in-out infinite; }
.trois span:nth-child(2) { animation-delay: 0.5s; transform: translateY(-14px); }
.trois span:nth-child(3) { animation-delay: 1s; }

/* ---------- Panneau d'appel à l'action ---------- */
.panneau {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: 28px;
  background: var(--noir);
  text-align: center;
}
.panneau::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: var(--anneau-or);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panneau::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 224, 150, 0.16), transparent 65%),
    radial-gradient(50% 80% at 0% 100%, rgba(20, 106, 138, 0.2), transparent 70%);
}
.panneau h2 { margin-bottom: 1.2rem; }
.panneau .chapeau { margin: 0 auto 2.4rem; }
.panneau .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- En-tête des pages intérieures ---------- */
.page-tete { padding: clamp(160px, 20vw, 220px) 0 clamp(70px, 9vw, 110px); }
.page-tete h1 { font-size: clamp(2.3rem, 5.5vw, 4.3rem); margin-bottom: 1.4rem; max-width: 18ch; }
.fil { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--texte-3); margin-bottom: 1.6rem; }
.fil a { color: var(--texte-3); }
.fil a:hover { color: var(--or-clair); }

/* ---------- Contenu éditorial ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 3.5rem 0 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.8rem; color: var(--or-clair); }
.prose ul { padding-left: 1.2rem; color: var(--texte-2); }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--texte); font-weight: 600; }

.encadre {
  position: relative; isolation: isolate;
  padding: 1.6rem 1.8rem; border-radius: 16px; margin: 2rem 0;
  background: rgba(20, 106, 138, 0.07);
}
.encadre::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: var(--anneau-bleu);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.encadre p:last-child { margin-bottom: 0; }
.encadre strong { color: var(--cyan); }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.collant { position: sticky; top: 120px; }

/* Liste de définitions (mentions légales) */
.infos { display: grid; grid-template-columns: max-content 1fr; gap: 0.7rem 2rem; margin: 0 0 1.5rem; }
.infos dt { color: var(--texte-3); font-size: 0.93rem; }
.infos dd { margin: 0; color: var(--texte); }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 1.2rem; }
.formulaire .ligne-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.champ label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 0.45rem; color: var(--texte); }
.champ label .requis { color: var(--or-clair); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 0; border-radius: 12px;
  background: var(--surface);
  color: var(--texte);
  font: inherit; font-size: 0.98rem;
  box-shadow: inset 0 0 0 1px var(--bord);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b8862b' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.8rem; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-3); }
.champ input:hover, .champ select:hover, .champ textarea:hover { box-shadow: inset 0 0 0 1px var(--bord-fort); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 0 4px rgba(44, 194, 220, 0.1); }
.consentement { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.88rem; color: var(--texte-2); }
.consentement input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--or); flex-shrink: 0; }
.message-form { display: none; padding: 1rem 1.2rem; border-radius: 12px; font-size: 0.95rem; }
.message-form.ok { display: block; background: rgba(52, 211, 153, 0.08); color: var(--vert); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }

.coordonnees { display: grid; gap: 1.6rem; }
.coordonnees .ligne-coord { display: flex; gap: 1rem; align-items: flex-start; }
.coordonnees .ligne-coord .icone { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.coordonnees .ligne-coord .icone svg { width: 21px; height: 21px; }
.coordonnees strong { display: block; color: var(--texte); margin-bottom: 0.15rem; font-weight: 600; }
.coordonnees span { color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { position: relative; padding: 90px 0 36px; border-top: 1px solid var(--bord); overflow: hidden; }
.pied::before { content: ""; position: absolute; top: -1px; right: 0; width: 45%; height: 1px; background: linear-gradient(90deg, transparent, var(--or-clair)); box-shadow: 0 0 20px var(--or-clair); }
.pied::after { content: ""; position: absolute; top: -200px; right: -200px; width: 500px; height: 400px; background: radial-gradient(closest-side, rgba(184, 134, 43, 0.08), transparent); pointer-events: none; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 4rem; }
.pied img { height: 70px; width: auto; margin-bottom: 1.2rem; }
.pied h4 { font-family: var(--police-titre); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-clair); margin: 0 0 1.2rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pied a { color: var(--texte-2); font-size: 0.95rem; }
.pied a:hover { color: var(--texte); }
.pied p, .pied address { font-size: 0.93rem; color: var(--texte-2); font-style: normal; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 28px; border-top: 1px solid var(--bord); font-size: 0.84rem; color: var(--texte-3); }
.pied-bas p { margin: 0; color: var(--texte-3); }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.revele.visible { opacity: 1; transform: none; }

/* Retour en haut */
.haut {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease);
}
.haut.visible { opacity: 1; visibility: visible; transform: none; }
.haut svg { width: 18px; height: 18px; }

/* ---------- Adaptation écrans ---------- */
@media (max-width: 1020px) {
  .hero .conteneur { grid-template-columns: 1fr; text-align: center; }
  .hero .chapeau { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .logo-scene { max-width: 460px; margin: 0 auto; order: -1; width: 100%; }
  .hero { padding-top: 110px; }
  .defiler { display: none; }
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .frise { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .frise .rail { display: none; }
  .approche, .deux-colonnes { grid-template-columns: 1fr; }
  .collant { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .marque img { height: 44px; }
  .grille-3, .grille-2, .grille-4, .frise { grid-template-columns: 1fr; }
  .formulaire .ligne-2 { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; }
  .infos { grid-template-columns: 1fr; gap: 0.2rem; }
  .infos dd { margin-bottom: 0.8rem; }
  .logo-scene { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .revele { opacity: 1; transform: none; }
}

/* « Notre approche » : la citation passe au-dessus des cartes dès que l'écran se resserre. */
@media (max-width: 1180px) {
  .approche { grid-template-columns: 1fr; }
  .approche .citation { max-width: 26ch; }
}
@media (max-width: 640px) {
  .etiquette { letter-spacing: 0.14em; font-size: 0.7rem; }
}
