/* ════════════════════════════════════════
   LIRONE CLUB — style.css
   Charte : navy profond sur fond quasi-noir,
   accents bleu clair rares. Sobre, dense, confiant.
   ════════════════════════════════════════ */

/* Police d'accent display — italique décoratif réservé aux citations/leads.
   Déclarée en font-style: italic pour matcher les règles `font-style: italic`
   sans faux-oblique synthétique. */
@font-face {
  font-family: 'Thyssen J';
  src: url('assets/fonts/thyssen-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* Police d'accent réservée aux citations (blockquote). Déclarée en italic
   pour matcher `font-style: italic` sans faux-oblique synthétique. */
@font-face {
  font-family: 'Bacher';
  src: url('assets/fonts/bacher.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Fond bleu foncé — UNIFORME sur tout le site (barre de menu + cases) */
  --night: #0D2238;
  --night-1: #0D2238;
  --night-2: #0D2238;
  --night-3: #0D2238;
  --night-4: #0D2238;

  /* Bleu Lirone (inchangé) */
  --blue: #003F7F;
  --blue-medium: #002D5C;
  --blue-light: #5B8FC9;
  --blue-deep: #001A3D;

  /* Beige foncé (contours des cases + overlines) & beige clair (texte) */
  --tan: #E8BA88;
  --cream: #EFDFB4;

  /* CTA — bleu profond désaturé, feutré (jamais "SaaS") */
  --blue-cta: #233A57;
  --blue-cta-hover: #2C496B;

  /* Titres & sous-titres = beige clair exact de l'image (essai) */
  --white: #FFF7E4;
  --off: #FFF7E4;
  --dim: rgba(255, 247, 228, 0.62);   /* texte courant (couleur d'avant) */
  --muted: rgba(255, 247, 228, 0.46); /* texte légal du footer (couleur d'avant) */

  /* Règles fines — contours des cases en beige foncé */
  --rule: rgba(232, 186, 136, 0.22);
  --rule-strong: rgba(232, 186, 136, 0.38);

  --serif: 'EB Garamond', 'Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Thyssen J', 'Libre Baskerville', Georgia, 'Times New Roman', serif; /* citations & italiques premium */
  --sans: "Neue Haas Grotesk Display", "Suisse Int'l", "Inter", system-ui, -apple-system, sans-serif;
  /* Titres (Regular) & sous-titres (Medium) — Avenir Next.
     Police système Apple : rendu exact sur macOS/iOS, repli propre ailleurs. */
  --title-font: "Avenir Next", "Avenir", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1480px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 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(--sans);
  font-weight: 300;
  background-color: var(--night);
  color: var(--off);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  /* fond qui change de teinte selon la section (effet « nouvelle page ») */
  transition: background-color 0.9s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
/* Emphase des mots-clés dans les textes courants : gras net mais retenu */
strong { font-weight: 600; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
sup { font-size: 0.6em; }

::selection { background: var(--blue); color: var(--white); }

/* Focus clavier visible (n'apparaît qu'au clavier, pas au clic souris) */
:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 10001;
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--blue-light);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ───────── Helpers typo ───────── */
.overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tan);
}
.overline__cities {
  display: block;
  margin-top: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.92em;
  color: var(--tan);
}

/* ───────── Reveal (animations) ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ═════════ NAV ═════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 34, 56, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 101;
  will-change: transform;
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.95rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  font-family: var(--serif);
  /* Logo en bas-de-casse serif : il faut une valeur de police nettement plus
     grande que les onglets (en capitales) pour une hauteur visuelle équivalente */
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
}
.nav__logo span { font-style: italic; color: var(--blue-light); }
.nav__logo-img {
  display: block;
  height: clamp(22px, 2.2vw, 30px);
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}
.nav__links a {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--off); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 100%;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.nav__links a.is-current { color: var(--off); }
.nav__links a.is-current::after { transform: scaleX(1); }
.nav__cta {
  color: var(--off) !important;
  border: 1px solid var(--rule-strong);
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  transition: border-color 0.3s, background 0.3s, color 0.3s !important;
}
.nav__cta:hover {
  border-color: var(--blue-light);
  background: rgba(91, 143, 201, 0.08);
  color: var(--white) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: var(--off);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═════════ HERO ═════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 63, 127, 0.22), transparent 55%),
    radial-gradient(100% 120% at 80% 100%, rgba(0, 26, 61, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(24,34,58,0.12) 0%, rgba(24,34,58,0.55) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
/* Image du hero — traitement « galerie » : passe-partout beige décalé,
   ombre profonde, voile navy qui la fond dans le fond et vers le texte. */
/* Passe-partout symétrique : image montée dans un cadre aligné,
   fin liseré beige foncé, ombre profonde, léger voile navy en bas. */
.hero__media {
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.1vw, 15px);
  border: 1px solid rgba(232, 186, 136, 0.42);
  border-radius: 16px;
  background: rgba(232, 186, 136, 0.035);
  box-shadow: 0 40px 90px -35px rgba(0, 0, 0, 0.72);
}
.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/* voile navy discret sur le bas de l'image (fond avec la palette) */
.hero__media::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.1vw, 15px);
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(13, 34, 56, 0.42) 100%);
}
.hero__title {
  font-family: var(--title-font);
  font-weight: 400;
  /* Même taille que les titres de section — hiérarchie uniforme */
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: none;
  margin: 1.4rem 0 1.4rem;
}
/* Le titre s'étend sur toute la largeur et passe à la ligne naturellement */
.hero__title .hl { display: block; }
.hero__title .word {
  display: inline-block;
  white-space: nowrap;
}
.hero__title .char {
  display: inline-block;
}
/* Reflet (sheen) qui balaie le titre — clippé au texte, repli blanc sinon */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title .char {
    background: linear-gradient(105deg, var(--white) 0%, var(--white) 43%, #FFEFD0 50%, var(--white) 57%, var(--white) 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: charSheen 6.5s ease-in-out infinite;
  }
}
@keyframes charSheen {
  0% { background-position: 160% 0; }
  16% { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}
.hero__tagline {
  font-family: 'Bacher', var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  line-height: 1.5;
  color: var(--off);
  max-width: none;
  margin-bottom: clamp(1rem, 2.2vw, 1.4rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.8rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.6rem);
}
.hero__cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--night);
  background: rgba(232, 186, 136, 0.90);
  padding: 0.95rem 1.9rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(232, 186, 136, 0.55);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hero__cta:hover {
  background: rgba(232, 186, 136, 1);
  border-color: rgba(232, 186, 136, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}
.hero__cta-alt {
  position: relative;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off);
  padding-bottom: 4px;
}
.hero__cta-alt::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.hero__cta-alt:hover::after { transform: scaleX(1); }

/* Preuve de rareté — discret mais visible */
.hero__admission {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--tan);
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.hero__facts {
  max-width: 600px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--off);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--blue-light);
  border-radius: 2px;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ═════════ RÉVÉLATION PAR PANNEAU (transition de section) ═════════ */
.reveal-panel {
  position: relative;
  /* visible par défaut — GSAP gère l'état caché/révélé en inline (sûr si le JS ne tourne pas) */
}
/* filet lumineux qui s'ouvre depuis le centre en haut de la section */
.reveal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 143, 201, 0.9) 50%, transparent);
  box-shadow: 0 0 14px rgba(91, 143, 201, 0.45);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s var(--ease) 0.05s;
}
.reveal-panel.panel-in::before { transform: scaleX(1); }

/* ═════════ SECTION GÉNÉRIQUE ═════════ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  /* Chaque section = un plein écran, toutes de hauteur identique,
     contenu centré et visible sans scroll interne. min-height (et non height
     fixe) : sur un très petit écran la section s'allonge au lieu de couper. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 6vh, 4.5rem) var(--pad) clamp(1.25rem, 3vh, 2rem);
}
/* Pas de bride de largeur : le titre s'étend sur toute la largeur
   et ne passe à la ligne que lorsqu'il n'y a plus de place. */
.section__head { margin-bottom: clamp(0.9rem, 2vh, 1.5rem); }
.section__index {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
}
/* Chaque phrase d'un titre multi-phrases passe à la ligne */
.section__title span { display: block; }
/* Dévoilement au masque (clip-path) au lieu du fondu */
.section__title.reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease);
}
.section__title.reveal.is-in { clip-path: inset(0 0 0 0); }
.section__lead {
  margin-top: 1.3rem;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--dim);
  max-width: 46rem;
}

/* ───────── Cartes 3 / 4 ───────── */
.cards-3, .cards-4 { display: grid; gap: 1.1rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
/* Univers d'investissement : toutes les cartes à hauteur identique */
.universes .cards-3 { grid-auto-rows: 1fr; }
.card {
  background: var(--night-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--rule-strong);
  background: var(--night-3);
}
.card h3 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.55rem;
}
.card p { font-size: 0.9rem; color: var(--dim); line-height: 1.5; }

/* Section Fonctionnement : titres de cartes plus visibles */
.concret .card { padding: 1.5rem 1.6rem; }
.concret .card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.concret .card p { font-size: 0.92rem; line-height: 1.55; }
.card--accent {
  background: linear-gradient(160deg, var(--blue-deep), var(--night-2));
  border-color: rgba(232, 186, 136, 0.25);
}
.card--accent h3 { color: var(--white); }

/* ───────── Quote (Vision) ───────── */
.quote {
  position: relative;
  margin: 0 0 clamp(1rem, 2.5vh, 1.75rem);
  padding: clamp(1.1rem, 3vh, 1.9rem) clamp(1rem, 1.5vw, 1.75rem) clamp(1.1rem, 3vh, 1.9rem) clamp(1.5rem, 4vw, 3rem);
  border-left: 2px solid var(--blue);
  background: linear-gradient(110deg, rgba(0, 45, 92, 0.18), transparent 70%);
  border-radius: 0 16px 16px 0;
}
.quote p {
  font-family: 'Bacher', var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.65rem);
  line-height: 1.3;
  color: var(--off);
}
/* Mise en valeur du mot-clé : halo lumineux bleuté, le mot « rayonne »
   sur le navy. Ni gras, ni surlignage, ni couleur plate. */
.quote p strong {
  font-weight: inherit;
  color: #ffffff;
  text-shadow:
    0 0 34px rgba(91, 143, 201, 0.95),
    0 0 16px rgba(91, 143, 201, 0.7),
    0 0 4px rgba(255, 255, 255, 0.55);
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

/* ═════════ TIMELINE (Format) ═════════ */
/* Composition resserrée : on réduit le vide entre le sous-titre et la timeline
   (vide maîtrisé, pas subi). Scopé à la section Format uniquement. */
.format .section__head { margin-bottom: clamp(1.1rem, 2.6vw, 1.9rem); }
.format .timeline { margin-top: clamp(0.5rem, 1.8vw, 1.25rem); }

.timeline {
  position: relative;
  margin: clamp(0.75rem, 1.5vh, 1.25rem) 0 clamp(1rem, 2vh, 1.75rem);
}
.timeline__line {
  position: absolute;
  top: 13px;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: visible;
}
.timeline__track { stroke: var(--rule-strong); stroke-width: 2; }
.timeline__progress {
  stroke: var(--white);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.timeline__nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tnode { position: relative; padding-top: 1.7rem; outline: none; cursor: default; }
.tnode__dot {
  position: absolute;
  top: 6px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--night-4);
  border: 2px solid var(--rule-strong);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.45s, transform 0.45s var(--ease);
  transform-origin: 9px 9px;
}
.tnode.is-in .tnode__dot { background: var(--tan); border-color: var(--tan); }
.tnode:hover .tnode__dot,
.tnode:focus-visible .tnode__dot {
  transform: scale(1.35);
  border-color: var(--tan);
  box-shadow: 0 0 0 6px rgba(232, 186, 136, 0.16), 0 0 20px rgba(232, 186, 136, 0.5);
}

/* ── Bulle d'info au survol des points ── */
.tnode__tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 9px;
  transform: translate(-50%, 10px) scale(0.94);
  transform-origin: 50% 110%;
  width: max-content;
  max-width: 248px;
  padding: 0.95rem 1.1rem 1rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(0, 63, 127, 0.32), transparent 60%),
    linear-gradient(165deg, rgba(20, 26, 44, 0.9), rgba(8, 10, 18, 0.82));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(232, 186, 136, 0.22);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 30px -8px rgba(91, 143, 201, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease), visibility 0.34s;
  z-index: 40;
  overflow: hidden;
}
/* liseré lumineux en haut de la bulle */
.tnode__tip::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
  opacity: 0.7;
}
/* petite flèche en verre */
.tnode__tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, rgba(20, 26, 44, 0.92), rgba(8, 10, 18, 0.85));
  border-right: 1px solid rgba(232, 186, 136, 0.22);
  border-bottom: 1px solid rgba(232, 186, 136, 0.22);
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tnode__tip-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.45rem;
}
.tnode__tip-text {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--off);
}
.tnode__tip--star .tnode__tip-label { color: var(--tan); }
.tnode__tip--star::before {
  background: linear-gradient(90deg, transparent, #9ec2ec, transparent);
  opacity: 1;
}
.tnode--star .tnode__tip { left: 11px; }
.tnode:hover .tnode__tip,
.tnode:focus-visible .tnode__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
/* Premier point : bulle alignée à gauche pour ne pas être coupée par le bord */
.tnode:first-child .tnode__tip {
  left: 0;
  transform: translate(0, 10px) scale(0.94);
  transform-origin: 20px 110%;
}
.tnode:first-child:hover .tnode__tip,
.tnode:first-child:focus-visible .tnode__tip {
  transform: translate(0, 0) scale(1);
}
.tnode:first-child .tnode__tip::after { left: 9px; }
.tnode__q {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}
.tnode__txt { font-size: 0.82rem; color: var(--dim); }
.tnode__season {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
}
.tnode__season--star { color: var(--tan); font-weight: 600; }
.tnode--star .tnode__q { color: var(--white); }
.tnode--star .tnode__dot {
  width: 22px; height: 22px; top: 4px;
}
.tnode--star.is-in .tnode__dot {
  background: var(--tan);
  box-shadow: 0 0 0 6px rgba(232, 186, 136, 0.16), 0 0 22px rgba(232, 186, 136, 0.5);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(232,186,136,0.16), 0 0 22px rgba(232,186,136,0.45); }
  50% { box-shadow: 0 0 0 11px rgba(232,186,136,0.05), 0 0 30px rgba(232,186,136,0.68); }
}

/* ───────── Formats ───────── */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fcard {
  background: var(--night-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
}
.fcard--star {
  background: var(--night-2);
  border-color: rgba(232, 186, 136, 0.28);
}
.fcard__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.55rem;
}
.fcard h3 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.fcard ul { display: grid; gap: 0.5rem; }
.fcard li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--dim);
}
.fcard li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* ═════════ PRODUITS (Opportunités) ═════════ */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; perspective: 1400px; }
.product {
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.18s var(--ease);
  will-change: transform;
}
.product__inner {
  position: relative;
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  height: 100%;
  transition: border-color 0.4s;
}
.product:hover .product__inner { border-color: rgba(232, 186, 136, 0.3); }
/* Balayage lumineux au survol */
.product__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(91, 143, 201, 0.1) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.85s var(--ease);
  pointer-events: none;
}
.product:hover .product__inner::after { transform: translateX(130%); }
/* Lignes de specs révélées en cascade */
.product__specs > div {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.06s);
}
.product.specs-in .product__specs > div { opacity: 1; transform: none; }
.product__head { margin-bottom: 1.5rem; }
.product__badge {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--blue-light);
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.product__badge--alt { background: var(--blue); color: var(--off); }
.product__head h3 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--white);
}
.product__sub { font-size: 0.86rem; color: var(--dim); margin-top: 0.4rem; }
.product__specs {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.product__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}
.product__specs dt { color: var(--dim); }
.product__specs dd { color: var(--off); text-align: right; font-weight: 500; }
.product__hl dd { color: var(--blue-light); font-weight: 700; }
.product__scen { margin-top: 1.5rem; }
.product__scen-title {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.8rem;
}
.product__scen ul { display: grid; gap: 0.6rem; }
.product__scen li {
  font-size: 0.85rem;
  color: var(--dim);
  padding-left: 1rem;
  border-left: 1px solid var(--rule-strong);
}
.product__scen b { color: var(--off); font-weight: 600; }

.disclaimer {
  margin-top: 1.6rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(232, 186, 136, 0.14);
  border-radius: 10px;
  background: transparent;
  font-size: 0.74rem;
  color: var(--dim);
  line-height: 1.55;
}
.disclaimer strong { color: var(--off); }

/* ═════════ AVANTAGES (5 piliers) ═════════ */
/* Padding vertical symétrique : la liste (titre + 5 piliers) se centre
   réellement entre le filet du haut et celui du bas de la section. */
.avantages {
  padding-top: clamp(3.5rem, 6vh, 4.5rem);
  padding-bottom: clamp(3.5rem, 6vh, 4.5rem);
}
/* Section Avantages : liste numérotée avec filet vertical (plus de cartes) */
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: clamp(0.85rem, 2vh, 1.5rem);
  align-items: start;
}
.perk {
  border-left: 3px solid var(--tan);
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
}
.perk__title {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.perk__num {
  color: var(--tan);
  margin-right: 0.35em;
}
.perk__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
}

/* ═════════ PROFILS ═════════ */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.profile {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  background: var(--night-2);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.profile:hover { border-color: rgba(232, 186, 136,0.3); transform: translateY(-5px); }
/* Balayage lumineux qui traverse la carte au survol */
.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(91, 143, 201, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.profile:hover::before { transform: translateX(120%); }
.profile h3 {
  font-family: var(--title-font);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.profile p { font-size: 0.88rem; color: var(--dim); }

/* ═════════ MANIFESTE D'ADMISSION ═════════
   Point d'ancrage visuel : serif sobre (même famille que les titres), centré, tout blanc. */
.manifesto {
  max-width: 880px;
  margin: clamp(0.5rem, 1.5vh, 1rem) auto clamp(1rem, 2.5vh, 1.75rem);
  padding: 0 var(--pad);
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
}
.manifesto span { display: block; }

/* ═════════ PROCESS (Rejoindre) ═════════ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
  margin-bottom: clamp(0.75rem, 2vh, 1.4rem);
}
.step {
  position: relative;
  padding-top: 1.1rem;
}
/* Filet fin qui se trace au reveal */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--rule-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}
.step.is-in::before { transform: scaleX(1); }
.step__num {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--tan);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.step p { font-size: 0.9rem; color: var(--dim); }

.cta {
  text-align: center;
  padding: clamp(1.1rem, 2.8vh, 2rem) var(--pad);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background:
    radial-gradient(80% 130% at 50% 0%, rgba(0, 63, 127, 0.28), transparent 60%),
    var(--night-1);
}
.cta__lead {
  font-family: 'Bacher', var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--off);
  margin-bottom: 0.85rem;
}
.cta__btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--night);
  background: rgba(232, 186, 136, 0.90);
  padding: 1rem 2rem;
  border-radius: 2.5rem;
  border: 1px solid rgba(232, 186, 136, 0.55);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cta__btn:hover {
  background: rgba(232, 186, 136, 1);
  border-color: rgba(232, 186, 136, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}
.cta__link {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ═════════ FOOTER ═════════ */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--night-1);
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2.5rem;
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.footer__logo-img {
  display: block;
  height: clamp(24px, 2.6vw, 32px);
  width: auto;
  margin-bottom: 0.8rem;
}
.footer__brand p { font-size: 0.86rem; color: var(--dim); margin-bottom: 0.6rem; }
.footer__adoss { max-width: 42ch; }
.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--off);
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--blue-light); }
.footer__legal {
  max-width: var(--maxw);
  margin: 2rem auto 0;
}
.footer__legal p { font-size: 0.74rem; color: var(--muted); line-height: 1.6; }

/* ═════════ LENIS (scroll inertiel) ═════════ */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ═════════ INTRO DE CHARGEMENT ═════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--night);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  will-change: transform;
  animation: introOut 0.9s cubic-bezier(.76, 0, .24, 1) 1.15s forwards;
}
.intro__brand {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: introBrand 0.9s var(--ease) 0.15s forwards;
}
.intro__brand i { font-style: italic; color: var(--blue-light); }
.intro__logo {
  display: block;
  height: clamp(34px, 6vw, 54px);
  width: auto;
}
.intro__line {
  width: 0;
  height: 1px;
  background: var(--blue-light);
  animation: introLine 1s var(--ease) 0.3s forwards;
}
@keyframes introBrand { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes introLine { to { width: min(240px, 60vw); } }
@keyframes introOut { to { transform: translateY(-100%); pointer-events: none; visibility: hidden; } }
/* Retour depuis une page interne : aucun rideau d'intro */
html.from-internal .intro { display: none; }

/* ═════════ GRAIN / FILM ═════════ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 0.55s steps(4) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  25% { background-position: -50px 30px; }
  50% { background-position: 40px -40px; }
  75% { background-position: -30px 20px; }
  100% { background-position: 0 0; }
}

/* ═════════ AURORA — fond animé ═════════ */
.aurora {
  position: fixed;
  inset: -12%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora__blob--1 {
  width: 55vmax; height: 55vmax; top: -15%; left: -12%;
  background: radial-gradient(circle, rgba(0, 63, 127, 0.6), transparent 62%);
  animation: drift1 22s ease-in-out infinite;
}
.aurora__blob--2 {
  width: 50vmax; height: 50vmax; top: 20%; right: -15%;
  background: radial-gradient(circle, rgba(0, 45, 92, 0.66), transparent 62%);
  animation: drift2 26s ease-in-out infinite;
}
.aurora__blob--3 {
  width: 48vmax; height: 48vmax; bottom: -20%; left: 20%;
  background: radial-gradient(circle, rgba(91, 143, 201, 0.3), transparent 62%);
  animation: drift3 30s ease-in-out infinite;
}
.aurora__blob--4 {
  width: 38vmax; height: 38vmax; top: 42%; left: 4%;
  background: radial-gradient(circle, rgba(0, 63, 127, 0.45), transparent 60%);
  animation: drift4 24s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(16vw,12vh) scale(1.22); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14vw,-10vh) scale(1.15); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(12vw,-16vh) scale(1.25); } }
@keyframes drift4 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-10vw,8vh) scale(1.1); } 66% { transform: translate(8vw,-6vh) scale(1.18); } }

/* Allègement de l'aurore sur petits écrans (perf / batterie) */
@media (max-width: 768px) {
  .aurora__blob--3, .aurora__blob--4 { display: none; }
  .aurora__blob { filter: blur(60px); }
}

/* ═════════ PARTICULES LUMINEUSES ═════════
   Ambiance extrêmement discrète : faible opacité, dérive très lente,
   mouvement quasi imperceptible. Aucun effet gadget. */
.motes {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.mote {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0;
  filter: blur(0.4px);
  box-shadow: 0 0 6px 1px rgba(91, 143, 201, 0.5);
  will-change: transform, opacity;
}
.mote--1 { top: 18%; left: 12%; animation: mote-drift 64s ease-in-out infinite; }
.mote--2 { top: 72%; left: 24%; width: 3px; height: 3px; animation: mote-drift 82s ease-in-out infinite 6s; }
.mote--3 { top: 34%; left: 58%; animation: mote-drift 71s ease-in-out infinite 12s; }
.mote--4 { top: 84%; left: 68%; animation: mote-drift 90s ease-in-out infinite 3s; }
.mote--5 { top: 12%; left: 82%; width: 1.5px; height: 1.5px; animation: mote-drift 76s ease-in-out infinite 18s; }
.mote--6 { top: 56%; left: 90%; animation: mote-drift 88s ease-in-out infinite 9s; }
.mote--7 { top: 46%; left: 38%; width: 3px; height: 3px; animation: mote-drift 96s ease-in-out infinite 15s; }
@keyframes mote-drift {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.28; }
  50%  { transform: translate(18px, -26px); opacity: 0.42; }
  85%  { opacity: 0.22; }
  100% { transform: translate(-12px, -52px); opacity: 0; }
}

/* Allègement sur petits écrans : moins de particules */
@media (max-width: 768px) {
  .mote--4, .mote--6, .mote--7 { display: none; }
}

/* ═════════ MAGNÉTIQUE ═════════ */
.magnetic { transition: transform .3s var(--ease); will-change: transform; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  /* Hero : image sous le texte, en pleine largeur */
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .hero__media { max-width: 620px; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem var(--pad);
    background: var(--night-1);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav__burger { display: flex; z-index: 101; }

  .cards-3, .formats, .products, .profiles { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Timeline → verticale sur mobile */
  .timeline__line { display: none; }
  .timeline__nodes {
    grid-template-columns: 1fr;
    gap: 0;
    border-left: 2px solid var(--rule-strong);
    padding-left: 1.6rem;
  }
  .tnode { padding-top: 0; padding-bottom: 1.8rem; }
  .tnode__dot { top: 4px; left: -1.6rem; transform: translateX(-50%); }
  /* Sur mobile (pas de survol), la bulle s'affiche en clair sous le libellé */
  .tnode__tip {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-width: none;
    margin-top: 0.55rem;
    box-shadow: none;
  }
  .tnode__tip::after { display: none; }
}

/* ════════════════════════════════════════
   CURSEUR PERSONNALISÉ (point + anneau)
   activé uniquement sur souris fine via .has-cursor sur <html>
   ════════════════════════════════════════ */
.cursor { display: none; }

html.has-cursor,
html.has-cursor body { cursor: none; }
html.has-cursor a,
html.has-cursor button,
html.has-cursor .magnetic,
html.has-cursor [data-tilt],
html.has-cursor .tnode,
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor summary,
html.has-cursor label { cursor: none; }

html.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, width, height, opacity;
}

/* point central — suit la souris précisément */
.cursor__dot {
  width: 10px;
  height: 10px;
  background: var(--blue-light);
  box-shadow: 0 0 12px rgba(91, 143, 201, 1);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

/* anneau — suit avec une légère inertie (positionné en JS) */
.cursor__ring {
  width: 38px;
  height: 38px;
  border: 2.5px solid rgba(91, 143, 201, 0.85);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

/* survol d'un élément interactif : l'anneau grossit et se teinte */
html.has-cursor.cursor-hover .cursor__ring {
  width: 58px;
  height: 58px;
  border-color: rgba(91, 143, 201, 1);
  background-color: rgba(91, 143, 201, 0.1);
}
html.has-cursor.cursor-hover .cursor__dot {
  width: 7px;
  height: 7px;
}

/* clic : petit feedback */
html.has-cursor.cursor-down .cursor__ring {
  width: 26px;
  height: 26px;
}

/* curseur masqué quand la souris sort de la fenêtre */
html.has-cursor.cursor-hidden .cursor { opacity: 0; }

/* ════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section__title.reveal { clip-path: none !important; }
  .reveal-panel { opacity: 1 !important; transform: none !important; }
  .reveal-panel::before { transform: scaleX(1) !important; }
  .step::before { transform: scaleX(1) !important; }
  .product__specs > div { opacity: 1 !important; transform: none !important; }
  .hero__title .char { transform: none !important; }
  .timeline__progress { stroke-dashoffset: 0 !important; }
  .hero__scroll span { animation: none; opacity: 1; }
  .motes { display: none !important; }
}

/* ░░░░░░░░░░ MODAL — ENTRER EN RELATION ░░░░░░░░░░ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--night-1);
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.5s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.modal__close:hover {
  color: var(--white);
  border-color: var(--rule-strong);
  background: var(--night-3);
}
.modal__index {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.8rem;
}
.modal__title {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.modal__title span { display: block; }
.modal__lead {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: 1.6rem;
}

/* ───── Formulaire ───── */
.cform { display: flex; flex-direction: column; gap: 1rem; }
.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cform__field { display: flex; flex-direction: column; gap: 0.4rem; }
.cform__field > span {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cform__field > span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
  font-weight: 400;
}
.cform input,
.cform select,
.cform textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--night);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.3s, background 0.3s;
}
.cform textarea { resize: vertical; min-height: 3rem; line-height: 1.5; }
.cform input::placeholder,
.cform textarea::placeholder { color: var(--muted); }
.cform select { appearance: none; cursor: pointer; }
.cform select:invalid { color: var(--muted); }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: var(--night-2);
}
.cform input.is-error,
.cform select.is-error {
  border-color: rgba(220, 90, 90, 0.7);
}
.cform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.cform__consent input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.cform__consent span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--dim);
}
.cform__consent a { color: var(--blue-light); text-decoration: underline; }
.cform__submit {
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--off);
  background: var(--blue-cta);
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2.5rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.cform__submit:hover {
  background: var(--blue-cta-hover);
  border-color: rgba(232, 186, 136, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}
.cform__submit:disabled { opacity: 0.55; cursor: wait; }
.cform__note {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

/* ───── États succès / erreur ───── */
.cform__state { text-align: center; padding: 1.5rem 0 0.5rem; }
.cform__state h3 {
  font-family: var(--title-font);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.cform__state p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: 1.4rem;
}
.cform__state a { color: var(--blue-light); text-decoration: underline; }
.cform__again {
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--off);
  background: var(--blue-cta);
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2.5rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.cform__again:hover { background: var(--blue-cta-hover); border-color: rgba(232, 186, 136, 0.45); }

@media (max-width: 560px) {
  .cform__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal__panel { transition: none; }
  .modal__panel { transform: none; }
}

/* ════════════════════════════════════════
   ALTERNANCE DES FONDS DE CASES
   Une case sur deux en beige foncé (#E8BA88), l'autre en bleu foncé.
   Sur les cases beiges, le texte passe en navy pour rester lisible.
   ════════════════════════════════════════ */
.card:nth-child(even),
.profile:nth-child(even) {
  background: rgba(232, 186, 136, 0.90); /* beige translucide : le navy transparaît un peu */
  border-color: rgba(232, 186, 136, 0.5);
}
.card:nth-child(even):hover,
.profile:nth-child(even):hover { border-color: rgba(13, 34, 56, 0.5); }

/* Texte navy lisible sur les cases beiges */
.card:nth-child(even) h3,
.card:nth-child(even) p,
.profile:nth-child(even) h3,
.profile:nth-child(even) p {
  color: var(--night);
}
