/* ============================================================
   Manaboo — vitrine (accueil, tarifs, catalogue, FAQ publique)
   Piste A+ validée en novembre 2026 : le rapport au premier plan,
   les dessins des outils pour les familles, le livre offert.
   ============================================================ */

:root {
  --violet: #4F46E5;
  --violet-fonce: #3730A3;
  --encre: #1E1B4B;
  --texte: #4B5068;
  --texte-doux: #6B6F86;
  --brume: #F5F5FB;
  --brume-bord: #ECEBF6;
  --lavande: #EEEDFD;
  --ligne: #E4E3F3;
  --bord-bouton: #D9D8F2;
  --nuit-texte: #C9C8EE;
  --blanc: #FFFFFF;
  --arbre: #2F9E6E;
  --spectre: linear-gradient(90deg, #E8871E, #E8A13A, #6FAE3F, #2FB6A3, #4F46E5);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --ui: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ui);
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-fonce); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.v-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .v-wrap { padding: 0 20px; } }

/* ---------- Boutons ---------- */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 12px; font-weight: 600; font-size: 17px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  font-family: var(--ui); line-height: 1.2;
}
.v-btn--petit { padding: 11px 18px; font-size: 15px; border-radius: 10px; }
.v-btn--primaire { background: var(--violet); color: var(--blanc); }
.v-btn--primaire:hover { background: var(--violet-fonce); color: var(--blanc); }
.v-btn--contour { background: var(--blanc); color: var(--encre); border-color: var(--bord-bouton); }
.v-btn--contour:hover { border-color: var(--violet); color: var(--encre); }
.v-btn--blanc { background: var(--blanc); color: var(--encre); }
.v-btn--blanc:hover { background: var(--lavande); color: var(--encre); }
.v-btn--nuit { background: var(--encre); color: var(--blanc); }
.v-btn--nuit:hover { background: #2E2A6B; color: var(--blanc); }
.v-btn--fantome { color: var(--blanc); border-color: rgba(255,255,255,.35); }
.v-btn--fantome:hover { border-color: var(--blanc); color: var(--blanc); }
.v-lien { font-weight: 600; font-size: 16px; }

/* ---------- En-tête ---------- */
.v-entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.v-entete__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.v-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--violet); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.v-logo img { width: 34px; height: 34px; object-fit: contain; }
.v-nav { display: flex; align-items: center; gap: 26px; }
.v-nav__lien { color: var(--texte); text-decoration: none; font-size: 15px; font-weight: 500; }
.v-nav__lien:hover, .v-nav__lien.is-actif { color: var(--encre); }
.v-nav__lien.is-actif { font-weight: 600; }
.v-nav__connexion { color: var(--encre); font-weight: 600; }
.v-filet { height: 3px; background: var(--spectre); }
@media (max-width: 860px) {
  .v-nav { gap: 16px; }
  .v-nav__secondaire { display: none; }
}

/* ---------- Typographie de section ---------- */
.v-h1 { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -0.038em; font-weight: 800; text-wrap: balance; }
.v-h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.v-intro { font-size: 18px; line-height: 1.6; color: var(--texte); max-width: 36em; }
.v-section { padding: 104px 0; }
.v-section--brume { background: var(--brume); border-top: 1px solid var(--brume-bord); border-bottom: 1px solid var(--brume-bord); }
.v-section--serre { padding: 88px 0; }
@media (max-width: 640px) { .v-section, .v-section--serre { padding: 64px 0; } }
.v-titre-ligne { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }

/* ---------- Coches ---------- */
.v-coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.45; }
.v-coches li { display: flex; gap: 10px; align-items: flex-start; }
.v-coches svg { flex: none; margin-top: 1px; }
.v-coches--ligne { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--texte); }
.v-coches--ligne li { align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.v-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 96px; }
.v-hero__texte { flex: 1 1 460px; min-width: 0; }
.v-hero__texte .v-h1 { margin-bottom: 24px; }
.v-hero__chapo { font-size: 20px; line-height: 1.55; color: var(--texte); max-width: 32em; margin-bottom: 32px; }
.v-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.v-hero__visuel { flex: 1 1 440px; min-width: 0; position: relative; padding: 0 28px 110px 0; }
@media (max-width: 640px) { .v-hero { padding-top: 48px; padding-bottom: 56px; gap: 40px; } .v-hero__visuel { padding-right: 0; } }

/* ---------- Rapport (exemple) ---------- */
.v-rapport { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; box-shadow: 0 1px 2px rgba(30,27,75,.06), 0 28px 64px -28px rgba(30,27,75,.32); padding: 28px 30px 24px; }
.v-rapport__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.v-rapport__surtitre { font-size: 13px; color: var(--texte-doux); margin-bottom: 4px; }
.v-rapport__titre { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.v-rapport__logo { width: 28px; height: 28px; object-fit: contain; }
.v-dimensions { display: flex; flex-direction: column; gap: 16px; }
.v-dimension__ligne { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.v-dimension__score { font-family: var(--mono); font-weight: 500; color: var(--texte); }
.v-zones { position: relative; display: flex; gap: 3px; height: 8px; }
.v-zones span { flex: 1; background: #ECEBF8; }
.v-zones span:first-child { border-radius: 4px 0 0 4px; }
.v-zones span:nth-child(3) { border-radius: 0 4px 4px 0; }
.v-zones .v-repere { position: absolute; top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #8B5CF6; border: 3px solid var(--blanc); box-shadow: 0 0 0 1px #8B5CF6; flex: none; }
.v-zones__legende { display: flex; justify-content: space-between; font-size: 12px; color: var(--texte-doux); margin-top: 8px; }
.v-bref { margin-top: 22px; padding: 16px 18px; background: var(--brume); border-radius: 12px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.v-bref svg { flex: none; }
.v-bref__texte { flex: 1 1 200px; min-width: 0; }
.v-bref__titre { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.v-bref__texte p:last-child { font-size: 15px; line-height: 1.55; color: var(--texte); }
.v-rapport__pied { margin-top: 16px; font-size: 13px; color: var(--texte-doux); }
.v-mes-tests { position: absolute; right: 0; bottom: 0; width: 268px; background: var(--encre); color: var(--blanc); border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 48px -24px rgba(30,27,75,.55); }
.v-mes-tests__titre { font-size: 13px; color: var(--nuit-texte); margin-bottom: 12px; }
.v-mes-tests__ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; font-weight: 600; }
.v-mes-tests__ligne + .v-mes-tests__ligne { border-top: 1px solid rgba(255,255,255,.1); }
.v-etat { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.v-etat--fait { background: rgba(110,231,183,.16); color: #A7F3D0; }
.v-etat--attente { background: rgba(165,180,252,.18); color: #C7D2FE; }
@media (max-width: 640px) {
  .v-hero__visuel { padding-bottom: 0; }
  .v-mes-tests { position: relative; width: 240px; margin: -14px 0 0 auto; }
}
@media (max-width: 480px) { .v-rapport { padding: 22px 20px 20px; } }

/* ---------- Familles ---------- */
.v-barre { display: flex; height: 14px; gap: 3px; margin-bottom: 40px; }
.v-barre span:first-child { border-radius: 7px 0 0 7px; }
.v-barre span:last-child { border-radius: 0 7px 7px 0; }
.v-familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
/* Trois colonnes dès 700 px : avec six familles, la grille automatique en met cinq et laisse la dernière carte seule sur une deuxième ligne */
@media (min-width: 700px) { .v-familles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; } }
.v-famille { display: flex; flex-direction: column; gap: 8px; }
.v-famille__dessin { background: var(--blanc); border-radius: 16px; padding: 16px; display: flex; justify-content: center; margin-bottom: 8px; }
.v-famille__nom { display: flex; align-items: center; gap: 10px; }
.v-famille__nom h3 { font-size: 17px; font-weight: 700; }
.v-pastille { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.v-famille__nombre { font-family: var(--mono); font-size: 14px; color: var(--texte); }
.v-famille__exemples { font-size: 15px; line-height: 1.5; color: var(--texte); }

/* ---------- Panneaux « pour qui » ---------- */
.v-panneaux { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.v-panneau { flex: 1 1 420px; min-width: 0; background: var(--brume); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.v-panneau h3 { font-size: 28px; letter-spacing: -0.02em; font-weight: 700; }
.v-panneau__texte { font-size: 17px; line-height: 1.6; color: var(--texte); }
.v-panneau .v-btn { align-self: flex-start; margin-top: 8px; }
.v-panneau--nuit { background: var(--encre); color: var(--blanc); }
.v-panneau--nuit .v-panneau__texte { color: var(--nuit-texte); }
@media (max-width: 640px) { .v-panneau { padding: 28px 24px; } .v-panneau h3 { font-size: 24px; } }

/* ---------- Étapes ---------- */
.v-etapes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.v-etapes li { border-top: 2px solid var(--violet); padding-top: 20px; }
.v-etapes__num { font-family: var(--mono); font-size: 15px; color: var(--violet); font-weight: 600; }
.v-etapes h3 { margin: 8px 0; font-size: 20px; font-weight: 700; }
.v-etapes p { font-size: 16px; line-height: 1.6; color: var(--texte); }

/* ---------- Livre ---------- */
.v-livre { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.v-livre__couverture { flex: none; width: 220px; height: 304px; background: var(--violet); border-radius: 4px 12px 12px 4px; box-shadow: inset 12px 0 0 rgba(0,0,0,.14), 0 32px 56px -26px rgba(30,27,75,.55); padding: 28px 24px 24px 34px; display: flex; flex-direction: column; justify-content: space-between; color: var(--blanc); }
.v-livre__collection { font-size: 13px; color: #C7D2FE; margin-bottom: 12px; }
.v-livre__titre { font-size: 28px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.v-livre__couverture img { width: 32px; height: 32px; object-fit: contain; }
.v-livre__texte { flex: 1 1 440px; min-width: 0; }
.v-livre__texte .v-h2 { margin-bottom: 16px; }
.v-livre__texte .v-intro { margin-bottom: 20px; }
.v-livre__texte .v-coches { margin-bottom: 26px; }

/* ---------- Modèles ---------- */
.v-modeles { display: flex; flex-wrap: wrap; gap: 56px; }
.v-modeles__intro { flex: 1 1 320px; min-width: 0; }
.v-modeles__intro .v-h2 { margin-bottom: 18px; }
.v-modeles__liste { flex: 1.4 1 520px; min-width: 0; }
.v-modele { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid #E2E1F1; font-size: 16px; }
.v-modele:last-child { border-bottom: 0; }
.v-modele strong { flex: 0 0 190px; }
.v-modele span { flex: 1 1 260px; color: var(--texte); }

/* ---------- Tarif ---------- */
.v-tarif { background: var(--lavande); border-radius: 24px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.v-tarif__prix { flex: 1 1 340px; min-width: 0; }
.v-tarif__montant { font-size: clamp(72px, 8vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.v-tarif__unite { margin-top: 14px; font-size: 21px; font-weight: 700; }
.v-tarif__detail { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--texte); max-width: 28em; }
.v-tarif__packs { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.v-pack-ligne { background: var(--blanc); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.v-pack-ligne--vedette { box-shadow: 0 0 0 2px var(--violet); }
.v-pack-ligne__nom { font-weight: 700; font-size: 17px; }
.v-pack-ligne__detail { margin-top: 2px; font-size: 14px; color: var(--texte); }
.v-pack-ligne__prix { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.v-badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--violet); background: var(--lavande); padding: 3px 9px; border-radius: 20px; margin-left: 6px; vertical-align: 2px; }
.v-badge--offert { color: #166534; background: #DCFCE7; margin-left: 0; }
@media (max-width: 640px) { .v-tarif { padding: 32px 24px; } }

/* ---------- Tête de page (tarifs, catalogue, FAQ) ---------- */
.v-page-tete { padding-top: 72px; padding-bottom: 72px; }
.v-page-tete .v-h1 { margin-bottom: 20px; max-width: 15em; }
.v-page-tete .v-hero__chapo { margin-bottom: 24px; }
@media (max-width: 640px) { .v-page-tete { padding-top: 44px; padding-bottom: 44px; } }

/* ---------- Packs (page tarifs) ---------- */
.v-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
.v-pack { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.v-pack--vedette { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 20px 40px -24px rgba(79,70,229,.45); }
.v-pack__etiquette { position: absolute; top: -12px; left: 22px; background: var(--violet); color: var(--blanc); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.v-pack__nom { font-size: 18px; font-weight: 700; }
.v-pack__credits { font-size: 14px; color: var(--texte); }
.v-pack__credits span { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--violet); letter-spacing: -0.02em; margin-right: 4px; }
.v-pack__prix { font-family: var(--mono); font-size: 24px; font-weight: 600; margin-top: 8px; }
.v-pack__unitaire { font-family: var(--mono); font-size: 13px; color: var(--texte-doux); }
.v-pack__desc { font-size: 14px; line-height: 1.5; color: var(--texte); margin: 10px 0 6px; }
.v-pack__liste { font-size: 14px; gap: 8px; margin-bottom: 16px; flex-grow: 1; }
.v-pack__btn { margin-top: auto; }
.v-note { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--texte); }
.v-cadeau { background: #DCFCE7; color: #166534; border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; }

/* ---------- Catalogue public ---------- */
.v-ancres { display: flex; flex-wrap: wrap; gap: 10px; }
.v-ancres a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 600; }
.v-ancres a:hover { border-color: var(--violet); color: var(--encre); }
.c-famille-tete { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.c-famille-tete h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 6px; }
.c-famille-tete .v-intro { font-size: 16px; }
.c-tuile { flex: none; width: 112px; height: 112px; border-radius: 20px; background: var(--brume); display: flex; align-items: center; justify-content: center; }
.v-section--brume .c-tuile { background: var(--blanc); }
.c-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.c-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.c-carte__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--texte-doux); }
.c-carte h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.c-carte h3 a { color: var(--encre); text-decoration: none; }
.c-carte h3 a:hover { color: var(--violet); }
.c-carte__desc { font-size: 15px; line-height: 1.55; color: var(--texte); flex-grow: 1; }
.c-carte__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.c-prix { font-size: 12px; font-weight: 600; color: var(--violet); background: var(--lavande); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.c-avertissement { font-size: 14px; line-height: 1.6; color: var(--texte-doux); max-width: 46em; }

/* ---------- Fiche d'un test ---------- */
.f-retour { display: inline-block; margin-bottom: 28px; }
.f-tete { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.f-tete__texte { flex: 1 1 520px; min-width: 0; }
.f-famille { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--texte); margin-bottom: 14px; }
.f-colonnes { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.f-contenu { flex: 1.6 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.f-cote { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.f-carte { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 26px 28px; }
.f-carte h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.f-carte > p { font-size: 16px; line-height: 1.65; color: var(--texte); }
.f-prix { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.f-prix small { display: block; font-size: 14px; font-weight: 500; color: var(--texte); letter-spacing: 0; margin-top: 2px; }
.f-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.f-similaires { display: flex; flex-direction: column; gap: 8px; }
.f-similaires a { display: block; padding: 11px 14px; border: 1px solid var(--ligne); border-radius: 12px; color: var(--encre); text-decoration: none; font-size: 15px; font-weight: 600; }
.f-similaires a:hover { border-color: var(--violet); }
@media (max-width: 860px) { .f-cote { position: static; } }

/* ---------- Engagement ---------- */
.v-engagement { border-top: 1px solid var(--brume-bord); }
.v-engagement__in { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.v-engagement__in svg { flex: none; }
.v-engagement__texte { flex: 1 1 480px; min-width: 0; font-size: 17px; line-height: 1.6; color: var(--texte); }
.v-engagement__texte strong { color: var(--encre); }

/* ---------- Appel final ---------- */
.v-appel { background: var(--encre); color: var(--blanc); }
.v-appel__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 88px; padding-bottom: 88px; }
.v-appel__texte { flex: 1 1 480px; min-width: 0; }
.v-appel__texte .v-h2 { margin-bottom: 12px; }
.v-appel__texte p { color: var(--nuit-texte); font-size: 18px; line-height: 1.55; }
.v-appel__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .v-appel__in { padding-top: 64px; padding-bottom: 64px; } }

/* ---------- Pied de page ---------- */
.v-pied { background: var(--blanc); }
.v-pied__colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.v-pied__marque .v-logo { font-size: 20px; margin-bottom: 12px; }
.v-pied__marque .v-logo img { width: 28px; height: 28px; }
.v-pied__marque p { font-size: 14px; line-height: 1.6; color: var(--texte); }
.v-pied__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.v-pied__col h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.v-pied__col a { color: var(--texte); text-decoration: none; }
.v-pied__col a:hover { color: var(--violet); }
.v-pied__reseaux { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.v-pied__bas { border-top: 1px solid var(--brume-bord); padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: var(--texte-doux); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
