/* Feuille de style de matteoth.com, COMMUNE à l'accueil et à /mrr.
 *
 * Même exigence que la page Aulne — fond qui vit, titres gras et serrés,
 * très peu de texte — mais dans la DA du site : noir et bleu, General Sans
 * pour les titres, Satoshi pour le texte. La page Aulne porte sa propre
 * charte, dans aulne/aulne.css, et n'utilise pas ce fichier.
 */

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

:root {
  --bg: #02030a;          /* noir à peine bleuté, contre le banding */
  --nuit: #050a1c;        /* le bas du dégradé, avant le bleu */
  --ink: #f5f7ff;         /* 19,9:1 */
  --ink-soft: #9aa3bd;    /*  8,2:1 */
  --ink-faint: #757d95;   /*  5,0:1 — le plancher de la page */
  --bleu-nuit: #0d1e4d;   /* le bleu de la marque : aplats seulement,
                             il pèse 1,28:1 sur le fond */
  --bleu: #163183;
  --bleu-vif: #224cc9;    /* la lumière */
  --bleu-clair: #7390e7;  /*  6,7:1 */
  --bleu-pale: #b0c1f2;   /* 11,5:1 */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

html { -webkit-text-size-adjust: 100%; }
/* Jamais de fond uni : le noir descend vers le bleu nuit. */
body {
  min-height: 100svh;
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg) 35%, var(--nuit) 70%, #081236 100%);
  color: var(--ink);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   FONDS — halos qui dérivent, grain, horizon
   ============================================================ */

/* Halos flous qui bougent lentement, comme sur Aulne, en bleus seulement.
   Le flou est dans le dégradé lui-même et non dans un filter : sur une
   grande surface, le téléphone découpe un filter en tuiles et laisse une
   arête droite à l'écran. */
.halo { position: fixed; border-radius: 50%; pointer-events: none; }
.halo.vif   { width: 75vmax; height: 75vmax; left: -28vmax; top: -34vmax;
  background: radial-gradient(closest-side, rgba(34, 76, 201, 0.42), transparent); animation: derive 24s ease-in-out infinite alternate; }
.halo.clair { width: 55vmax; height: 55vmax; right: -22vmax; top: 10vh;
  background: radial-gradient(closest-side, rgba(115, 144, 231, 0.20), transparent); animation: derive 28s ease-in-out infinite alternate-reverse; }
.halo.blanc { width: 38vmax; height: 38vmax; left: 40%; top: 32%;
  background: radial-gradient(closest-side, rgba(245, 247, 255, 0.05), transparent); animation: derive 32s ease-in-out infinite alternate; }
@keyframes derive { to { transform: translate(6vmax, 4vmax) scale(1.08); } }

/* Grain : sans lui, les dégradés se découpent en paliers. */
.grain {
  position: fixed; inset: 0; pointer-events: none;
  opacity: 0.08; mix-blend-mode: overlay;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* L'horizon de l'accueil, la signature du site : un arc de lumière bleue qui
   monte du bas. Dégradés seulement, ni box-shadow ni filter (même raison).
   Il est posé dans le PREMIER ÉCRAN et non sur la fenêtre : depuis que
   l'accueil défile vers « Le business », un horizon fixe passerait sous
   chaque schéma. */
.horizon, .filet {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 160vmax; height: 160vmax; border-radius: 50%;
  top: calc(100% - 24vh);
  pointer-events: none;
}
.horizon { background: radial-gradient(closest-side, var(--bg) 90%, rgba(22, 49, 131, 0.65) 98%, rgba(34, 76, 201, 0.8) 100%); }
.filet { border-top: 1px solid rgba(176, 193, 242, 0.75); }
.lueur {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 45% at 50% 100%, rgba(34, 76, 201, 0.5), rgba(13, 30, 77, 0.3) 55%, transparent 80%);
}

/* ============================================================
   EN-TÊTE — la marque à gauche, la barre à droite (comme sur Aulne)
   ============================================================ */
.entete {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.marque {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: "General Sans", sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.marque img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(176, 193, 242, 0.45);
}

.barre { display: flex; gap: 4px; flex-wrap: wrap; }
/* 44 px de haut : un onglet se rate au pouce comme un bouton. */
.barre a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 14px; border-radius: 999px;
  font-family: "General Sans", sans-serif; font-weight: 600; font-size: 0.88rem; letter-spacing: -0.01em;
  color: rgba(245, 247, 255, 0.62); text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.barre a:hover { color: var(--ink); }
/* aria-current : la page ouverte ne se signale pas qu'en couleur. */
.barre a[aria-current="page"] {
  color: var(--ink); background: rgba(22, 49, 131, 0.45);
  border-color: rgba(115, 144, 231, 0.32);
}

/* ============================================================
   TITRES — General Sans en capitales, très gras, serré
   ============================================================ */
/* Le reflet reste dans les blancs et les bleus clairs : le titre ne passe
   jamais par une teinte illisible sur le noir. */
.titre {
  font-family: "General Sans", system-ui, sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.055em; line-height: 0.92;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 36%, var(--bleu-pale) 50%, var(--ink) 64%, var(--ink) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: reflet 7s linear infinite, monte 1.1s var(--ease) both;
}
.accroche {
  margin-top: 16px;
  font-family: "General Sans", sans-serif; font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: -0.02em;
  color: var(--bleu-clair);
  animation: monte 1.1s var(--ease) 0.12s both;
}

/* ============================================================
   ACCUEIL — un écran
   ============================================================ */
/* Le premier écran : la barre en haut, la photo et le titre au centre,
   l'horizon en bas. Il remplit la hauteur, et « Le business » vient dessous.
   svh et non vh : vh compte la barre d'adresse du téléphone. */
.premier-ecran {
  position: relative; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr;
}
.premier-ecran main {
  position: relative; z-index: 1; align-self: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 20px 16vh;
}
.profil {
  width: clamp(76px, 18vw, 104px); height: auto; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  /* Liseré et lueur reprennent l'horizon : la photo est dans la même lumière. */
  border: 1px solid rgba(176, 193, 242, 0.5);
  box-shadow: 0 0 0 6px rgba(13, 30, 77, 0.6), 0 14px 50px rgba(34, 76, 201, 0.55);
  animation: monte 1.1s var(--ease) both;
}
/* Tailles ramenées de moitié à la demande de Thomas : à 8,5 rem, le titre
   écrasait la page au lieu de la tenir. */
.premier-ecran .titre { margin-top: 24px; font-size: clamp(2rem, 6vw, 4.25rem); }
/* Le point bat doucement : seul signe que la page est « en cours ». Hors du
   reflet, en bleu clair plein. */
.titre .point { color: var(--bleu-clair); -webkit-text-fill-color: var(--bleu-clair); animation: bat 2.4s ease-in-out infinite; }

/* ============================================================
   MRR — l'ouverture, puis les trois formations
   ============================================================ */
.contenu { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ouverture { padding: clamp(40px, 7vh, 72px) 0 0; text-align: center; }
.ouverture .titre { font-size: clamp(1.9rem, 5vw, 3.6rem); }

/* Trois formations côte à côte, l'une sous l'autre au téléphone — jamais
   trois colonnes écrasées. */
.formations {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
  animation: monte 1.1s var(--ease) 0.24s both;
}
/* La carte N'EST PAS un lien : JDS et CLM ont deux destinations (une fois,
   deux fois), et deux destinations ne tiennent pas dans un lien. Le bouton
   principal prend toute la largeur : la cible reste large au pouce.
   Le liseré est un dégradé (padding + fond), pas une ombre : plus lumineux
   en haut, comme si la lumière venait des halos. */
.formation {
  position: relative; border-radius: 26px; padding: 1px;
  background: linear-gradient(160deg, rgba(176, 193, 242, 0.45), rgba(115, 144, 231, 0.08) 45%, rgba(34, 76, 201, 0.35));
}
.formation-corps {
  height: 100%; display: flex; flex-direction: column;
  padding: 26px 24px 24px; border-radius: 25px;
  background: linear-gradient(180deg, rgba(10, 20, 52, 0.96), rgba(4, 8, 22, 0.96));
}
.formation .budget {
  align-self: flex-start;
  padding: 7px 12px; border-radius: 999px;
  font-family: "General Sans", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.01em;
  color: var(--bleu-pale); background: rgba(22, 49, 131, 0.5);
  border: 1px solid rgba(115, 144, 231, 0.25);
}
.formation h2 {
  margin-top: 18px;
  font-family: "General Sans", sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem); letter-spacing: -0.05em; line-height: 0.95;
}
/* flex: 1 pousse le prix et les boutons en bas : une description d'une
   ligne de plus ne décale pas le prix d'une carte par rapport aux autres. */
.formation .quoi { flex: 1; margin-top: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.formation .prix {
  margin-top: 26px;
  font-family: "General Sans", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.5rem); letter-spacing: -0.05em; line-height: 0.95;
}

/* La rangée du paiement en deux fois existe sur TOUTES les cartes, même
   celle qui n'en a pas : sans elle, le bouton de CFS remonterait de 44 px
   par rapport aux deux autres. */
.deux-fois { min-height: 44px; margin-top: 14px; display: flex; align-items: center; }
.deux-fois a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none;
  font-family: "General Sans", sans-serif; font-weight: 600; font-size: 0.88rem; letter-spacing: -0.01em;
  color: var(--bleu-pale);
  border: 1px solid rgba(115, 144, 231, 0.32);
  background: rgba(22, 49, 131, 0.25);
}
.deux-fois a:hover { color: var(--ink); background: rgba(22, 49, 131, 0.5); }
.deux-fois span { font-size: 0.88rem; color: var(--ink-faint); }

.acheter {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; margin-top: 12px; padding: 14px 20px; border-radius: 999px;
  font-family: "General Sans", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, var(--bleu-vif), var(--bleu) 55%, var(--bleu-nuit));
  border: 1px solid rgba(176, 193, 242, 0.45);
  box-shadow: 0 12px 34px -10px rgba(34, 76, 201, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.acheter:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(34, 76, 201, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

.fin { padding: 88px 0 48px; text-align: center; font-family: "General Sans", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.02em; color: var(--ink-faint); }

/* Le ciel du premier écran — lueur et horizon — s'estompe vers le bas au
   lieu de s'arrêter net au bord de l'écran : coupé par l'overflow, l'arc
   laissait une arête droite au-dessus de « Le business ». */
.ciel {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}

/* Le renvoi vers « Le business », sous le titre. */
.vers-bas {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 26px; padding: 0 18px;
  border-radius: 999px; text-decoration: none;
  font-family: "General Sans", sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em;
  color: var(--bleu-pale); border: 1px solid rgba(115, 144, 231, 0.32); background: rgba(22, 49, 131, 0.25);
  animation: monte 1.1s var(--ease) 0.24s both;
}
.vers-bas:hover { color: var(--ink); background: rgba(22, 49, 131, 0.5); }

/* ============================================================
   ACCUEIL — LE BUSINESS : le MRR, en trois étapes
   ============================================================
   SIMPLE, À DESSEIN. Deux versions illustrées — au trait, puis une scène
   en relief avec parallaxe — ont été jugées chargées. Il reste le titre,
   trois étapes numérotées, une ligne de faits et un bouton. */
.business { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: clamp(64px, 10vh, 112px) 20px 0; text-align: center; }
.surtitre {
  font-family: "General Sans", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--bleu-clair);
}
.business .titre { margin-top: 12px; font-size: clamp(1.9rem, 5vw, 3.4rem); }
.business .accroche { max-width: 34ch; margin-left: auto; margin-right: auto; }

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; list-style: none; text-align: left; }
.etape {
  padding: 24px 22px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 30, 77, 0.55), rgba(5, 10, 28, 0.55));
  border: 1px solid rgba(115, 144, 231, 0.18);
}
.etape .num {
  display: block;
  font-family: "General Sans", sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -0.05em;
  color: var(--bleu-clair);
}
.etape h3 { margin-top: 14px; font-family: "General Sans", sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1.2; }
.etape p { margin-top: 6px; font-size: 0.95rem; color: var(--ink-soft); }

.en-ligne { margin: 28px auto 0; max-width: 62ch; font-size: 0.95rem; color: var(--ink-soft); }

.business .suite { margin-top: 32px; }
.business .suite .acheter { display: inline-flex; padding: 14px 26px; }

@media (max-width: 860px) {
  .etapes { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) {
  .formations { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .marque { font-size: 0.98rem; }
  .barre a { padding: 10px 11px; font-size: 0.84rem; }
}

@keyframes reflet { to { background-position: -250% center; } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }
@keyframes bat { 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .halo, .titre, .titre .point, .accroche, .profil, .formations, .vers-bas { animation: none; }
  .acheter, .barre a { transition: none; }
}
