/* Vivabrief, page d'attente (tâche 4490). Jetons : DESIGN.md. Un seul thème clair, rayon 12 px partout. */
:root {
  --fond: #f6f5f2;
  --carte: #ffffff;
  --encre: #0f2147;
  --gris: #4c525c;
  --filet: #dedbd3;
  --violet: #6d28d9;
  --violet-fonce: #5b21b6;
  --teinte: #ece6fb;
  --alerte: #a33a2b;
  --rayon: 12px;
  --colonne: 72rem;
  --ombre: 0 18px 40px -18px rgb(15 33 71 / .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: .18em; }
a:hover { color: var(--violet-fonce); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .75rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; top: 1rem; }
.contenu { width: min(100% - 2.5rem, var(--colonne)); margin-inline: auto; }

h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--gris); max-width: 34rem; }
.petit { font-size: .9rem; color: var(--gris); }

/* En-tête : une ligne, 68 px */
.entete { height: 68px; display: flex; align-items: center; }
.entete .contenu { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.entete img { height: 38px; width: auto; }
.entete nav { display: flex; align-items: center; gap: 1.5rem; }
.entete nav a { color: var(--encre); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.entete nav a:hover { color: var(--violet); }
.entete nav a.connexion { color: var(--violet); }

/* Boutons et formulaire */
.bouton {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  background: var(--violet); color: #fff; min-height: 52px; padding: 0 1.5rem;
  border-radius: var(--rayon); white-space: nowrap; touch-action: manipulation;
  transition: background-color .2s, transform .15s;
}
.bouton:hover { background: var(--violet-fonce); }
.bouton:active { transform: translateY(1px) scale(.985); }
.bouton[disabled] { opacity: .65; cursor: progress; }
.attente { display: grid; gap: .75rem; max-width: 34rem; }
.attente .ligne { display: flex; gap: .6rem; flex-wrap: wrap; }
.attente label.champ { display: grid; gap: .35rem; font-weight: 600; flex: 1 1 15rem; }
.attente input[type=email] {
  font: inherit; min-height: 52px; padding: 0 1rem; border-radius: var(--rayon);
  border: 1.5px solid #8a8f98; background: #fff; color: var(--encre); width: 100%;
}
.attente input[type=email]::placeholder { color: #5d6470; }
.attente .valider { align-self: end; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--gris); }
.consent input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--violet); flex: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.retour { min-height: 1.5rem; font-weight: 600; }
.retour.ok { color: #146c43; }
.retour.ko { color: var(--alerte); }

/* Héros : deux colonnes, la capture déborde à droite */
.heros { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.heros .contenu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.heros .texte { display: grid; gap: 1.5rem; }
.scene { position: relative; padding-bottom: 3rem; }
.fenetre { border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--carte); box-shadow: var(--ombre); overflow: hidden; }
.fenetre .barre { height: 28px; background: #ebe9e3; border-bottom: 1px solid var(--filet); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.fenetre .barre i { width: 10px; height: 10px; border-radius: 50%; background: #c9c5ba; }
.scene .tel {
  position: absolute; left: -2.5rem; bottom: 0; width: 28%; min-width: 7.5rem;
  border-radius: var(--rayon); border: 1px solid var(--filet); box-shadow: var(--ombre); background: #fff;
}

/* Sections */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
.tete { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 40rem; }
.tete p { color: var(--gris); font-size: 1.1rem; max-width: 36rem; }

/* Fonctions : grille asymétrique, cinq cases pour cinq fonctions */
.fonctions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.case { border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--carte); padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: .75rem; align-content: start; overflow: hidden; }
.case p { color: var(--gris); max-width: 32rem; }
.case img { border-radius: 8px; border: 1px solid var(--filet); margin-top: .75rem; }
.c-transcription { grid-column: span 7; }
.c-resume { grid-column: span 5; background: var(--teinte); border-color: #d8cdf5; align-content: center; }
.c-resume p { color: #3b3f4a; }
.c-demander { grid-column: span 8; }
.c-capter { grid-column: span 4; background: var(--encre); border-color: var(--encre); color: #fff; align-content: center; }
.c-capter p { color: #d6dcec; }
.c-stats { grid-column: span 12; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; }
.c-stats img { margin: 0; }
.c-transcription img, .c-demander img { object-fit: cover; object-position: top; aspect-ratio: 16 / 10; width: 100%; }
.liste-courte { margin: .25rem 0 0; padding-left: 1.1rem; color: inherit; }
.liste-courte li { margin: .2rem 0; }

/* Dans la poche */
.poche { background: var(--teinte); }
.telephones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.telephones figure { margin: 0; display: grid; gap: .75rem; }
.telephones figure:nth-child(2) { margin-top: 2.5rem; }
.telephones figure:nth-child(3) { margin-top: 5rem; }
.telephones img { border-radius: var(--rayon); border: 1px solid #cdc2ee; box-shadow: var(--ombre); background: #fff; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; width: 100%; }
.telephones figcaption { color: #3b3f4a; font-size: .95rem; }

/* Données */
.donnees .contenu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); }
.garanties { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.garanties li { display: grid; gap: .35rem; align-content: start; }
.garanties strong { font-size: 1.05rem; }
.garanties span { color: var(--gris); }

/* Appel final */
.final { background: var(--encre); color: #fff; }
.final .contenu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.final h2 { color: #fff; }
.final .petit, .final .consent { color: #d6dcec; }
.final .attente label.champ { color: #fff; }
.final .retour.ok { color: #8be0b0; }
.final .retour.ko { color: #ffb4a6; }
.final .bouton { background: #fff; color: var(--encre); }
.final .bouton:hover { background: var(--teinte); }
.final a { color: #d9ccfb; }

.pied { padding: 2rem 0 3rem; color: var(--gris); font-size: .95rem; }
.pied .contenu { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.pied ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.pied a { display: inline-flex; min-height: 44px; align-items: center; }

/* Pages de texte */
.texte-long { padding: 2rem 0 5rem; }
.texte-long .contenu { max-width: 46rem; display: grid; gap: 1.25rem; }
.texte-long h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.texte-long ul { margin: 0; padding-left: 1.2rem; }
.texte-long li { margin: .3rem 0; }
.texte-long dl { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem 1rem; margin: 0; }
.texte-long dt { font-weight: 650; }
.texte-long dd { margin: 0; }

@media (max-width: 62rem) {
  .heros .contenu, .donnees .contenu, .final .contenu { grid-template-columns: 1fr; }
  .scene .tel { left: 0; }
  .c-transcription, .c-resume, .c-demander, .c-capter, .c-stats { grid-column: span 12; }
  .c-stats { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 40rem) {
  .entete nav a:not(.connexion) { display: none; }
  .telephones { grid-template-columns: 1fr; max-width: 20rem; margin-inline: auto; }
  .telephones figure:nth-child(n) { margin-top: 0; }
  .garanties { grid-template-columns: 1fr; }
  .attente .valider { width: 100%; }
  .texte-long dl { grid-template-columns: 1fr; }
  .scene { padding-bottom: 2rem; }
  .scene .tel { width: 34%; left: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}

/* Site de vente (tâche 4351) : essai, tarifs, questions */
.petit-bouton { min-height: 44px; padding: 0 1.1rem; display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.entete nav a.petit-bouton { color: #fff; }
.entete nav a.petit-bouton:hover { color: #fff; background: var(--violet-fonce); }
.appel-essai { display: grid; gap: .75rem; justify-items: start; }
a.bouton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
a.bouton:hover { color: #fff; }
a.bouton.secondaire { background: var(--teinte); color: var(--violet-fonce); }
a.bouton.secondaire:hover { background: #ddd2f8; color: var(--violet-fonce); }
.final a.bouton { background: #fff; color: var(--encre); }
.final a.bouton:hover { background: var(--teinte); color: var(--encre); }

.offres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.offre { border-radius: var(--rayon); border: 1px solid var(--filet); background: var(--carte); padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: .75rem; grid-template-rows: auto auto auto 1fr auto; }
.offre.vedette { border: 2px solid var(--violet); box-shadow: var(--ombre); }
.offre .prix { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.offre .prix span { font-size: .95rem; font-weight: 500; color: var(--gris); letter-spacing: 0; }
.offre .detail { color: var(--gris); }
.offre ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.offre .bouton { align-self: end; margin-top: .5rem; }
.note-tarifs { margin-top: 1.5rem; max-width: 46rem; }

.questions { background: var(--teinte); }
.faq { display: grid; gap: .75rem; max-width: 46rem; }
.faq details { background: var(--carte); border: 1px solid #cdc2ee; border-radius: var(--rayon); padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 650; min-height: 56px; display: flex; align-items: center; padding: .5rem 0; }
.faq details[open] summary { color: var(--violet-fonce); }
.faq details p { color: var(--gris); padding-bottom: 1.1rem; }

@media (max-width: 62rem) { .offres { grid-template-columns: 1fr; max-width: 30rem; } }
@media (max-width: 40rem) { .entete nav a.connexion { display: none; } .entete nav a.petit-bouton { display: inline-flex; } .appel-essai .bouton { width: 100%; } }
