/* ==========================================================================
   Studeva × My Serious Game — landing
   HTML/CSS statique, sans JS ni build.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette MySG */
  --principal: #00446f;
  --secondaire: #009cb4;
  --ciel: #009dcc;
  --nuit: #010918;
  --blanc: #fff;
  --gris: #f4f4f4;
  --texte: rgba(0, 0, 0, 0.8);
  --lien: #007f93; /* turquoise assombri : lisible en petit sur fond blanc */

  --police: "Montserrat", Arial, sans-serif;
  --conteneur: 1240px;
  --gouttiere: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 9vw, 110px);
  --rayon: 20px;
  --rayon-lg: 30px;
  --pilule: 50px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
}

h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--lien); }
a:hover { color: var(--principal); }

:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 24px; }

.conteneur {
  width: 100%;
  max-width: var(--conteneur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--section); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Typo ---------- */

.h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--principal);
  text-wrap: balance;
}
.h2--clair { color: var(--blanc); }
.accent { color: var(--secondaire); }

/* Mot en contour, signature MySG.
   Le contour est tracé sous un remplissage couleur de fond (paint-order) :
   ça masque les jointures internes des lettres, que -webkit-text-stroke
   laisserait voir avec un remplissage transparent. */
.contour {
  color: var(--nuit);
  -webkit-text-stroke: clamp(2.5px, 0.22vw, 3px) var(--blanc);
  paint-order: stroke fill;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--pilule);
  background: var(--secondaire);
  color: var(--nuit);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag--ciel { background: var(--ciel); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--pilule);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.bouton:hover { transform: translateY(-2px); }

.bouton--cta {
  background: var(--secondaire);
  color: var(--blanc);
  font-weight: 800;
  font-size: 17px;
  padding: 18px 34px;
  box-shadow: 0 10px 40px rgba(0, 157, 204, 0.45);
}
.bouton--cta:hover { background: var(--ciel); color: var(--blanc); box-shadow: 0 14px 48px rgba(0, 157, 204, 0.6); }

.bouton--blanc { background: var(--blanc); color: var(--principal); padding: 14px 28px; }
.bouton--blanc:hover { color: var(--principal); }

.bouton--bleu { background: var(--principal); color: var(--blanc); }
.bouton--bleu:hover { background: var(--nuit); color: var(--blanc); }

.lien-clair {
  color: var(--blanc);
  font-weight: 700;
  padding: 16px 10px;
  text-underline-offset: 6px;
}
.lien-clair:hover { color: var(--ciel); }

/* ---------- Halo ---------- */

.halo {
  position: absolute;
  border-radius: 100%;
  filter: blur(110px);
  pointer-events: none;
}
.halo--turquoise { background: radial-gradient(circle farthest-corner at 50% 50%, var(--ciel), var(--secondaire) 93%); }
.halo--bleu { background: var(--principal); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  color: var(--blanc);
}
.hero .halo--turquoise { width: 900px; height: 620px; left: 50%; bottom: -120px; margin-left: -450px; opacity: 0.5; }
.hero .halo--bleu { width: 420px; height: 420px; left: -180px; bottom: -160px; opacity: 0.9; }

.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
}
.nav__marques { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.nav__studeva { height: 34px; width: auto; }
.nav__sep { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.3); }
.nav__reco {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.nav__reco img { height: 24px; width: auto; }

.hero__corps {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: var(--section);
}
.hero__texte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 860px;
  text-align: center;
}
.hero__titre {
  font-size: clamp(34px, 3.9vw, 56px); /* plafonné : au-delà le titre écrase le hero sur grand écran */
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}
.hero__titre .lueur { color: var(--ciel); text-shadow: 0 5px 20px rgba(0, 156, 180, 0.7); }
.hero__intro { max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.mention { font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* Aperçu produit : maquette du tableau de bord Studeva (couleurs de l'app, données fictives).
   Tout est en em : la maquette se réduit d'un bloc en changeant le font-size de .tb. */
.apercu { width: 100%; max-width: 1040px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.apercu__note { font-size: 12px; color: rgba(255, 255, 255, 0.7); }

.tb {
  --tb-prune: #2a1f31;
  --tb-encre: #3d2e46;
  --tb-fond: #fbf5ff;
  --tb-bord: #e5daeb;
  --tb-discret: #685a71;
  width: 100%;
  display: grid;
  grid-template-columns: 15em minmax(0, 1fr);
  gap: 0.6em;
  padding: 0.6em;
  border-radius: var(--rayon);
  background: var(--tb-prune);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  font-size: clamp(10px, 1.15vw, 14px);
  line-height: 1.35;
  text-align: left;
  color: var(--tb-encre);
}
.tb i { display: block; font-style: normal; }
.tb--vert { background: #2e9e5b; }
.tb--orange { background: #f2a33d; }
.tb--gris { background: #8a8086; }

.tb__nav { display: flex; flex-direction: column; gap: 0.25em; padding: 1em 0.5em; color: var(--tb-fond); }
.tb__logo { align-self: flex-start; height: 2.4em; width: auto; margin: 0 0 1.2em 0.5em; }
.tb__rubrique { margin-top: 0.9em; padding-left: 0.8em; font-size: 0.82em; font-weight: 700; opacity: 0.7; }
.tb__lien { padding: 0.5em 0.8em; border-radius: 0.5em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb__lien--actif { background: var(--tb-encre); font-weight: 700; box-shadow: inset 2px 0 0 var(--tb-fond); }

.tb__main { display: flex; flex-direction: column; gap: 1em; min-width: 0; padding: 1.5em; border-radius: 14px; background: var(--tb-fond); }
.tb__titre { font-size: 1.35em; font-weight: 700; }

.tb__synthese {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.7em 40% 1.7em 1.7em; /* la marge droite laisse la place au personnage */
  border-radius: 1em;
  background: linear-gradient(135deg, #f5edf9, #fbf0e4);
}
.tb__synthese::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 5%;
  width: 9em;
  height: 9em;
  border: 2px solid rgba(242, 179, 61, 0.6);
  border-radius: 50%;
}
.tb__perso { position: absolute; z-index: 1; right: 3%; bottom: 0; width: 36%; height: auto; }
.tb__bonjour { font-size: 1.6em; font-weight: 700; }
.tb__label { font-size: 0.82em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tb-discret); }
.tb__global { display: flex; align-items: center; gap: 1.4em; }
.tb__donut {
  flex: none;
  display: grid;
  place-items: center;
  width: 6.4em;
  height: 6.4em;
  border-radius: 50%;
  background: conic-gradient(#2e9e5b 0 72%, #d5e6da 72% 100%);
}
.tb__donut span { display: grid; place-items: center; width: 77%; height: 77%; border-radius: 50%; background: #f8eff5; font-size: 1.3em; font-weight: 800; }
.tb__inscrits strong { display: block; font-size: 1.8em; font-weight: 800; line-height: 1.2; }
.tb__barre { display: flex; gap: 2px; height: 0.7em; border-radius: var(--pilule); overflow: hidden; }
.tb__barre .tb--vert { flex: 72; }
.tb__barre .tb--orange { flex: 19; }
.tb__barre .tb--gris { flex: 9; }
.tb__legende { display: flex; flex-wrap: wrap; gap: 0.3em 1.2em; font-size: 0.95em; }
.tb__legende span { display: inline-flex; align-items: center; gap: 0.4em; }
.tb__legende i { width: 0.65em; height: 0.65em; border-radius: 50%; }

.tb__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em; }
.tb__stat { display: flex; flex-direction: column; gap: 0.2em; padding: 1.1em 1.2em; border: 1px solid var(--tb-bord); border-radius: 0.9em; background: #fff; font-weight: 600; }
.tb__stat strong { font-size: 1.8em; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.tb__stat small { font-size: 0.85em; font-weight: 500; color: var(--tb-discret); }

/* ---------- Bandeau défilant ---------- */

.bandeau {
  overflow: hidden;
  padding-block: 18px;
  background: var(--ciel);
  color: var(--principal);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.bandeau__piste { display: inline-flex; animation: defile 40s linear infinite; }
.bandeau__groupe { display: inline-flex; gap: 48px; padding-right: 48px; }
.bandeau__groupe span:nth-child(even) { opacity: 0.6; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Bénéfices ---------- */

.benefices { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.benefices .h2 { max-width: 860px; }

.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }

.benefice { display: flex; flex-direction: column; gap: 14px; }
.benefice__num { font-size: 62px; font-weight: 800; line-height: 1; color: var(--secondaire); }
.benefice h3 { font-size: 24px; line-height: 1.2; font-weight: 800; text-transform: uppercase; color: var(--principal); }

/* ---------- Fonctionnalités ---------- */

.fonctionnalites { background: var(--principal); color: var(--blanc); }
.fonctionnalites__tete { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.fonctionnalites .grille { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }

.carte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--rayon-lg) 0 var(--rayon-lg) var(--rayon-lg);
  background: var(--blanc);
  color: var(--texte);
  transition: transform 0.25s ease;
}
.carte:hover { transform: translateY(-4px); }
.carte h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; color: var(--principal); }

/* ---------- Confiance MySG ---------- */

.confiance { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 56px); }
.confiance__texte { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.confiance__texte img { height: 38px; width: auto; }
.confiance__texte p { max-width: 560px; font-size: 18px; }
.chiffres { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.chiffre { display: flex; flex-direction: column; gap: 6px; padding: clamp(20px, 3vw, 28px); border-radius: var(--rayon); background: var(--gris); font-weight: 600; }
.chiffre strong { font-size: clamp(32px, 3.2vw, 44px); font-weight: 900; line-height: 1; white-space: nowrap; color: var(--principal); }

/* ---------- Rendez-vous ---------- */

.rdv__bloc {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(36px, 5vw, 56px);
  padding: clamp(32px, 6vw, 88px);
  border-radius: var(--rayon-lg);
  background: var(--nuit);
  color: var(--blanc);
}
.rdv .halo { width: 520px; height: 520px; right: -140px; top: -140px; opacity: 0.5; filter: blur(100px); }
.rdv__texte { position: relative; flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.rdv__titre { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.15; font-weight: 800; text-transform: uppercase; }
.rdv__texte > p:not(.mention) { max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.rdv .bouton--cta { font-size: 18px; padding: 20px 38px; }

.etapes { position: relative; flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.etape {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, 0.08);
}
.etape__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pilule);
  background: var(--ciel);
  color: var(--nuit);
  font-weight: 900;
}
.etape strong { display: block; text-transform: uppercase; }

/* ---------- FAQ ---------- */

.faq { max-width: 920px; display: flex; flex-direction: column; gap: 40px; }
.faq .h2 { text-align: center; font-size: clamp(28px, 3vw, 42px); }
.faq__liste { display: flex; flex-direction: column; gap: 16px; }
.faq__item { border-radius: var(--rayon); background: var(--gris); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 3vw, 32px);
  font-size: 18px;
  font-weight: 800;
  color: var(--principal);
  cursor: pointer;
  list-style: none;
  border-radius: var(--rayon);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--secondaire);
  border-bottom: 3px solid var(--secondaire);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__item p { padding: 0 clamp(20px, 3vw, 32px) 24px; }
.faq__action { display: flex; justify-content: center; }

/* ---------- Pied de page ---------- */

.pied { background: var(--principal); color: var(--blanc); }
.pied__corps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.pied__marques { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.pied__marques img:first-child { height: 28px; width: auto; }
.pied__marques img:last-child { height: 22px; width: auto; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.pied__liens a { color: var(--blanc); }
.pied__liens a:hover { color: var(--ciel); }

/* ---------- Petits écrans ---------- */

/* Dès que le bouton de l'en-tête passerait sous les logos, on le masque :
   le CTA du hero prend le relais. */
@media (max-width: 780px) {
  .nav { flex-wrap: nowrap; justify-content: center; }
  .nav .bouton { display: none; }
}

@media (max-width: 560px) {
  .tb { grid-template-columns: 1fr; font-size: 10.5px; }
  .tb__nav { display: none; }
  .tb__main { padding: 1.1em; }
  .tb__synthese { padding: 1.4em 34% 1.4em 1.4em; }
  .tb__perso { width: 38%; right: 0; }
  .tb__stat { padding: 0.9em; }
  .tb__stat strong { font-size: 1.5em; }
  .tb__stat small { display: none; }
  .hero .halo--turquoise { width: 520px; height: 420px; margin-left: -260px; bottom: -80px; }
  /* En-tête compact sur une ligne : logos réduits, « Recommandé par » au-dessus du logo MySG. */
  .nav { padding-block: 18px; }
  .nav__marques { flex-wrap: nowrap; gap: 14px; }
  .nav__studeva { height: 26px; }
  .nav__sep { height: 28px; }
  .nav__reco { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9px; }
  .nav__reco img { height: 15px; }
  .pied__marques .nav__sep { display: none; }
  /* CTA plus compacts, sur une seule ligne */
  .bouton--cta, .rdv .bouton--cta { padding: 13px 24px; font-size: 15px; white-space: nowrap; }
  .hero__actions { flex-direction: column; gap: 4px; }
  /* Étapes : la pastille numérotée passe au-dessus du texte */
  .etape { flex-direction: column; padding: 20px; gap: 12px; }
  .rdv__bloc { padding: 28px 20px; }
}

@media (max-width: 360px) {
  .tb__stat { padding: 0.7em; }
  .tb__stat strong { font-size: 1.25em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bandeau__piste { animation: none; }
  .bouton, .carte { transition: none; }
  .bouton:hover, .carte:hover { transform: none; }
}
