/* Ambevo — styles communs du site vitrine.
   Ils reprennent le thème de l'application (apps/web/src/assets/css/main.css du dépôt platform) :
   un cadre bleu nuit qui porte la navigation, une toile claire, un bandeau violet en tête de
   section sur lequel se posent les captures et les cartes blanches, le violet plein pour l'action
   principale, Geist pour tout le texte. */

:root {
  --cadre: #161826;
  --cadre-2: #1f2132;
  --toile: #e6e6ee;
  --toile-claire: #f4f4f8;
  --surface: #ffffff;
  --violet: #5d5294;
  --violet-fonce: #4a4180;
  --violet-clair: #796cbf;
  --violet-50: #fafaff;
  --violet-100: #f5f4ff;
  --violet-200: #e7e5fe;
  --violet-300: #d2cefd;
  --violet-700: #5d5294;
  --violet-800: #423a6a;
  --ambre: #f0b44c;
  --texte: #23232b;
  --texte-fort: #111118;
  --texte-doux: #5b5c68;
  --texte-sur-violet: #e7e5fe;
  --trait: #e2e2eb;
  --bandeau: linear-gradient(150deg, #2b2741 0%, #4a4180 40%, #6d60b0 100%);
  --ombre-carte: 0 0 0 1px rgb(17 17 24 / 0.05), 0 2px 4px rgb(17 17 24 / 0.06), 0 16px 36px -20px rgb(33 29 54 / 0.45);
  --ombre-capture: 0 0 0 1px rgb(17 17 24 / 0.06), 0 30px 60px -30px rgb(22 24 38 / 0.6);
  --rayon-sm: 4px;
  --rayon-md: 10px;
  --rayon-lg: 16px;
  --police: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--toile);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--texte-fort); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; font-weight: 750; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 720; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--violet-clair); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Bandeau de relecture (à retirer une fois la version choisie) */
.revue { background: #fff7e6; color: #5a3a06; font-size: 13.5px; border-bottom: 1px solid #f1d9a8; }
.revue .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-block: 8px; }
.revue strong { font-weight: 650; }
.revue nav { display: flex; gap: 12px; margin-left: auto; }
.revue a { text-decoration: underline; text-underline-offset: 2px; }
.revue a[aria-current] { font-weight: 650; text-decoration: none; }

/* Logo : le A au pouls, ambre en haut, lavande en bas, coupé par la ligne du pouls */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.logo svg { width: 32px; height: 28px; flex: none; }
.logo { --logo-haut: var(--ambre); --logo-bas: #9184d9; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--rayon-md); font-weight: 600; font-size: 16px; line-height: 1.2;
  white-space: nowrap; border: 0; cursor: pointer; font-family: inherit;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-plein { background: var(--violet); color: #fff; }
.btn-plein:hover { background: var(--violet-fonce); }
.btn-blanc { background: #fff; color: var(--violet-800); }
.btn-blanc:hover { background: var(--violet-100); }
.btn-verre { background: rgb(255 255 255 / 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); }
.btn-verre:hover { background: rgb(255 255 255 / 0.2); }
.btn-trait { background: #fff; color: var(--texte-fort); box-shadow: inset 0 0 0 1px #c9cad6; }
.btn-trait:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* Barre du haut, sur le cadre bleu nuit */
.barre { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--cadre); color: #fff; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cadre); }
.barre .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }
.barre nav { display: flex; gap: 6px; font-size: 15px; }
.barre nav a { color: #b8bbcf; padding: 7px 12px; border-radius: 8px; }
.barre nav a:hover { color: #fff; background: rgb(255 255 255 / 0.06); }
.barre .actions { display: flex; align-items: center; gap: 14px; }
.barre .connexion { font-size: 15px; color: #b8bbcf; }
.barre .connexion:hover { color: #fff; }
.barre .btn-plein { background: #6d60b0; }
.barre .btn-plein:hover { background: #7d70c2; }
@media (max-width: 900px) { .barre nav, .barre .connexion { display: none; } }

/* Héros : le bandeau violet, et la capture posée dessus qui déborde sur la toile */
.heros { position: relative; color: #fff; padding-top: 72px; }
.heros::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(100% - var(--debord, 160px)); background: var(--bandeau); }
.heros > .wrap { position: relative; }
.heros h1 { color: #fff; }
.heros .chapo { font-size: 20px; line-height: 1.55; color: var(--texte-sur-violet); max-width: 34em; }
.heros .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.heros .prix-court { font-size: 15px; color: var(--violet-300); }
.heros .prix-court strong { color: #fff; font-weight: 650; }
.pastille {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; align-self: start;
  padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); color: #fff;
}
.pastille .point { width: 7px; height: 7px; border-radius: 50%; background: #7ee2ad; box-shadow: 0 0 0 4px rgb(126 226 173 / 0.2); }

/* Captures */
.capture { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--ombre-capture); }
.capture img { width: 100%; }
.telephone {
  width: 100%; max-width: 300px; border-radius: 42px; padding: 9px; background: #0f1019;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 40px 70px -30px rgb(22 24 38 / 0.7);
}
.telephone img { border-radius: 34px; width: 100%; }

/* Sections */
.section { padding-block: 104px; }
.section.blanche { background: var(--surface); }
.section.claire { background: var(--toile-claire); }
.entete { display: grid; gap: 14px; max-width: 720px; margin-bottom: 52px; }
.entete p { font-size: 18.5px; color: var(--texte-doux); }
.surtitre { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); font-weight: 500; }
.sur-violet .surtitre { color: var(--violet-300); }

/* Cartes blanches */
.carte { background: var(--surface); border-radius: var(--rayon-lg); box-shadow: var(--ombre-carte); }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grille-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grille-4 { grid-template-columns: minmax(0, 1fr); } }
.benefice { padding: 26px; display: grid; gap: 10px; align-content: start; }
.benefice p { color: var(--texte-doux); font-size: 16px; }
.icone { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-100); color: var(--violet); display: grid; place-items: center; margin-bottom: 6px; box-shadow: inset 0 0 0 1px var(--violet-200); }
.icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Avant / maintenant */
.avant-apres { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 34px; }
.avant-apres .etiquette { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.avant-apres .avant .etiquette { background: #efeff4; color: var(--texte-doux); }
.avant-apres .apres .etiquette { background: var(--violet-200); color: var(--violet-800); }
.avant-apres p { color: var(--texte-doux); }
.avant-apres .apres p { color: var(--texte); }
.avant-apres .fleche { color: var(--violet); font-size: 26px; }
@media (max-width: 760px) { .avant-apres { grid-template-columns: minmax(0, 1fr); } .avant-apres .fleche { transform: rotate(90deg); justify-self: start; } }

/* Colonnes texte + image */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.duo.inverse > :first-child { order: 2; }
@media (max-width: 940px) { .duo { grid-template-columns: minmax(0, 1fr); gap: 40px; } .duo.inverse > :first-child { order: 0; } }
.coches { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.coches li { position: relative; padding-left: 36px; color: var(--texte-doux); }
.coches li strong { color: var(--texte-fort); font-weight: 600; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 7px; background: var(--violet-100);
  box-shadow: inset 0 0 0 1px var(--violet-200);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5294' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 16px; background-repeat: no-repeat; background-position: center;
}
.telephones { display: flex; justify-content: center; gap: 22px; }
.telephones .telephone { max-width: 270px; }
.telephones .telephone:nth-child(2) { margin-top: 56px; }

/* Rôles */
.role { padding: 28px; display: grid; gap: 10px; align-content: start; }
.role .badge { justify-self: start; font-size: 13px; font-weight: 600; color: var(--violet-800); background: var(--violet-200); padding: 4px 11px; border-radius: 999px; }
.role p { color: var(--texte-doux); font-size: 16px; }
.confiance { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; color: var(--texte-doux); font-size: 15.5px; }
.confiance li { display: flex; gap: 8px; align-items: center; }
.confiance li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-clair); }

/* Étapes */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: etape; }
.etapes li { counter-increment: etape; padding: 28px; display: grid; gap: 8px; align-content: start; }
.etapes li::before { content: counter(etape); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.etapes p { color: var(--texte-doux); font-size: 16px; }
@media (max-width: 860px) { .etapes { grid-template-columns: minmax(0, 1fr); } }

/* Tarif */
.tarif { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; overflow: hidden; }
.tarif .gauche { padding: 40px; display: grid; gap: 16px; align-content: start; background: var(--bandeau); color: #fff; }
.tarif .gauche h3 { color: #fff; font-size: 22px; }
.tarif .montant { font-size: 64px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tarif .montant small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--violet-300); margin-left: 6px; }
.tarif .gauche p { color: var(--texte-sur-violet); font-size: 16px; }
.tarif .inclus { list-style: none; display: grid; gap: 8px; font-size: 15.5px; color: #fff; }
.tarif .inclus li { display: flex; gap: 10px; }
.tarif .inclus li::before { content: "✓"; color: var(--violet-300); font-weight: 700; }
.tarif .droite { padding: 40px; display: grid; gap: 20px; align-content: start; }
.calcul label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--texte-fort); margin-bottom: 12px; }
.calcul output { font-variant-numeric: tabular-nums; color: var(--violet); }
.calcul input[type=range] { width: 100%; accent-color: var(--violet); }
.calcul .resultat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 12px; background: var(--violet-100); box-shadow: inset 0 0 0 1px var(--violet-200); margin-top: 18px; }
.calcul .resultat strong { font-size: 32px; font-weight: 750; letter-spacing: -0.03em; color: var(--texte-fort); font-variant-numeric: tabular-nums; }
.calcul .resultat span { color: var(--texte-doux); font-size: 15px; }
.paliers { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.paliers th, .paliers td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--trait); }
.paliers th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-800); font-weight: 500; }
.paliers td:last-child, .paliers th:last-child { text-align: right; }
.note { font-size: 14px; color: var(--texte-doux); }
@media (max-width: 860px) { .tarif { grid-template-columns: minmax(0, 1fr); } .tarif .gauche, .tarif .droite { padding: 28px; } }

/* Questions */
.questions { display: grid; gap: 12px; max-width: 860px; }
.questions details { background: var(--surface); border-radius: 14px; box-shadow: var(--ombre-carte); }
.questions summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--texte-fort); display: flex; justify-content: space-between; gap: 16px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--violet); font-size: 22px; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 24px 22px; color: var(--texte-doux); }

/* Vidéo (emplacement) */
.video { position: relative; display: block; border-radius: var(--rayon-lg); overflow: hidden; box-shadow: var(--ombre-capture); background: var(--cadre); }
.video img { opacity: 0.55; width: 100%; }
.video .lecture { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: #fff; text-align: center; padding: 20px; }
.video .rond { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.video .rond svg { width: 28px; height: 28px; fill: var(--violet); margin-left: 4px; }
.video .lecture strong { font-size: 20px; }
.video .lecture span { font-size: 14.5px; color: var(--violet-200); }

/* Appel final, sur le bandeau */
.final { background: var(--bandeau); color: #fff; padding-block: 96px; }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.final h2 { color: #fff; }
.final p { color: var(--texte-sur-violet); font-size: 18.5px; margin-top: 14px; }
.final .ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.final .ctas small { color: var(--violet-300); font-size: 14px; text-align: center; }
@media (max-width: 860px) { .final .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Pied de page, sur le cadre */
.pied { background: var(--cadre); color: #9a9db3; font-size: 14.5px; padding-block: 40px; }
.pied .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.pied .logo { color: #fff; font-size: 17px; }
.pied .logo svg { width: 27px; height: 24px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied a:hover { color: #fff; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .entete { margin-bottom: 36px; }
  .heros { padding-top: 48px; }
  .heros .chapo { font-size: 18px; }
  .heros .ctas .btn { flex: 1 1 100%; }
  .final { padding-block: 72px; }
}
