/* ActifScan · site de présentation
   Maquettes M1 (accueil), M2 (tarifs), M3 (démo), S4 (scan téléphone), TX (textes).
   Téléphone d'abord : les valeurs des maquettes (1440 px) arrivent à partir de 960 px. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --fond: #0A1B3D;
  --marine: #0B3C8A;
  --cyan: #4DD4FF;
  --cercle: #102B5C;
  --lien: #A8E8FF;
  --texte: #FFFFFF;
  --texte-doux: #EEF3FB;
  --texte-pale: #CBD9F5;
  --verre: rgba(255, 255, 255, .12);
  --verre-bord: rgba(255, 255, 255, .18);
  --rayon: 28px;
  --gouttiere: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--lien); }
b, strong { font-weight: 700; }

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

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--cyan); color: var(--fond); padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.evitement:focus { top: 12px; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Page et cercles décoratifs */

.page { position: relative; overflow: hidden; min-height: 100vh; }
.cercles {
  position: absolute; left: 0; top: 0; width: 100%; height: 900px;
  pointer-events: none;
}
.wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* Éléments communs */

.verre {
  background: var(--verre);
  border: 1px solid var(--verre-bord);
  border-radius: var(--rayon);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.btn {
  height: 56px; border-radius: 28px; padding: 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.1; text-align: center;
  text-decoration: none; border: 0; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn-cyan { background: var(--cyan); color: var(--fond); }
.btn-verre { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-fonce { background: var(--fond); color: #fff; }
.btn-plein { width: 100%; }

.etiquette {
  font-size: 13px; letter-spacing: .14em; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; margin: 0;
}
.h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 8px 0 0;
}
.chapeau { font-size: 18px; line-height: 1.5; color: var(--texte-doux); margin: 14px 0 0; max-width: 700px; }
.section { padding-bottom: 56px; }
.grille { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: 1fr; }

.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 16px; font-size: 13px; font-weight: 700;
}
.chip-trouve { background: #CFF3DD; color: #0A5A32; }
.chip-manquant { background: #FFD9D9; color: #8F1717; }
.chip-trop { background: #FFE6BD; color: #7A4100; }
.chip-deplace { background: #E6DBFB; color: #4F27A3; }

/* En-tête */

.entete { position: relative; z-index: 10; }
.entete .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.logo {
  display: inline-flex; align-items: center; gap: 12px; flex: 1;
  color: #fff; text-decoration: none; min-width: 0;
}
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-nom { font-size: 23px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.logo-nom .a { font-weight: 400; color: #fff; }
.logo-nom .s { font-weight: 700; color: var(--cyan); }

.menu-bouton {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.menu-bouton svg { width: 18px; height: 18px; }
.nav {
  display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px;
}
.nav.ouvert { display: flex; }
.nav a.nl {
  color: var(--texte-doux); text-decoration: none; font-size: 17px; font-weight: 500;
  padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav a.nl[aria-current='page'] { font-weight: 700; color: var(--cyan); }
.nav .btn { margin-top: 12px; }
.no-js .nav { display: flex; }
.no-js .menu-bouton { display: none; }

/* Accueil : héros (M1) */

.heros { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 28px; padding-bottom: 56px; }
.heros-texte { flex: 1 1 560px; min-width: 0; }
.heros h1 {
  font-size: 44px; line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 14px 0 20px;
}
.heros h1 .cyan, .cyan { color: var(--cyan); }
.heros-texte > p { font-size: 18px; line-height: 1.5; color: var(--texte-doux); margin: 0 0 28px; max-width: 600px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 220px; }
.heros-visuel { flex: 1 1 320px; display: flex; justify-content: center; }

/* Téléphone de démonstration (M1, S4) */
.tel {
  width: 320px; height: 640px; flex: none; border-radius: 44px; background: #0F2A5E;
  border: 1px solid rgba(255, 255, 255, .2); position: relative; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.tel > svg { position: absolute; left: 0; top: 0; }
.tel .verre { border-radius: 24px; }
.tel-compte {
  position: absolute; left: 14px; right: 14px; top: 22px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.tel-compte .n { font-size: 34px; font-weight: 700; line-height: 1; }
.tel-compte .l { font-size: 14px; opacity: .9; }
.tel-chips { position: absolute; left: 14px; right: 14px; top: 108px; display: flex; gap: 5px; }
.tel-ligne {
  position: absolute; left: 14px; right: 14px; bottom: 78px; height: 56px; border-radius: 22px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 14px; font-weight: 700;
}
.tel-ligne .chip { height: 28px; font-size: 12.5px; padding: 0 11px; }
.tel-bouton {
  position: absolute; left: 14px; right: 14px; bottom: 16px; height: 48px; border-radius: 24px;
  background: #fff; color: var(--fond); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
@media (max-width: 380px) { .tel { zoom: .86; } }

/* Cartes */

.carte-pb { padding: 22px; font-size: 18px; line-height: 1.4; }
.carte { padding: 26px; }
.carte h3 { font-size: 24px; font-weight: 700; margin: 0; line-height: 1.2; }
.carte p { font-size: 17px; line-height: 1.5; color: var(--texte-doux); margin: 8px 0 0; }
.pastille {
  width: 56px; height: 56px; border-radius: 18px; background: var(--cyan); color: var(--fond);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
  margin-bottom: 18px; flex: none;
}
.carte-benefice h3 { font-size: 26px; margin-bottom: 0; }
.icone-carte {
  width: 48px; height: 48px; border-radius: 16px; background: rgba(77, 212, 255, .16);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--cyan);
}
.icone-carte svg { width: 26px; height: 26px; }

.bandeau { padding: 28px 22px; display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
.bandeau > div { flex: 1 1 420px; min-width: 0; }
.bandeau .titre { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 8px 0 0; }
.bandeau p { font-size: 17px; line-height: 1.55; color: #DCE6F7; margin: 0; }

.emplacement-vide {
  border: 2px dashed rgba(255, 255, 255, .3); border-radius: var(--rayon); padding: 28px; color: var(--texte-pale);
}

.rappel {
  background: var(--cyan); color: var(--fond); border-radius: 36px; padding: 32px 24px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.rappel .titre { font-size: 32px; font-weight: 700; letter-spacing: -.02em; max-width: 640px; line-height: 1.1; margin: 0; }

/* Titre des pages intérieures */

.tete-page { padding-top: 28px; padding-bottom: 32px; }
.tete-page.centre { text-align: center; }
.tete-page.centre .chapeau { margin-left: auto; margin-right: auto; }
.tete-page h1 { font-size: 40px; letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 0; font-weight: 700; }

/* Comment ça marche */

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: etape; }
.etape { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.etape .pastille { margin: 0; }
.etape h2 { font-size: 24px; margin: 4px 0 6px; line-height: 1.2; }
.etape p { margin: 0; font-size: 17px; color: var(--texte-doux); }

/* S4 : grille de tuiles */

.tuiles { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
.tuile { border-radius: 32px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.tuile h2, .tuile h3 { margin: 0; font-size: 25px; letter-spacing: -.01em; line-height: 1.15; }
.tuile p { margin: 0; font-size: 16px; line-height: 1.45; }
.tuile .num { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.tuile-cyan { background: var(--cyan); color: var(--fond); }
.tuile-marine { background: var(--marine); }
.tuile-blanche { background: #fff; color: var(--fond); }
.tuile-blanche .etiquette { color: var(--marine); }
.tuile-fond { background: var(--fond); border: 1px solid rgba(255, 255, 255, .2); }
.tuile .pale { color: var(--texte-pale); }
.tuile .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tuile .chip { height: 28px; font-size: 12.5px; padding: 0 11px; }

.icone-app { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.icone-app svg { width: 64px; height: 64px; flex: none; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.store {
  height: 52px; border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, .4);
  display: inline-flex; flex-direction: column; justify-content: center; padding: 0 18px;
  font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.15;
}
.store small { font-size: 11px; font-weight: 500; color: var(--texte-pale); }

/* Tarifs (M2) */

.packs { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 28px; }
.pack { padding: 26px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--rayon); }
.pack h2 { font-size: 24px; font-weight: 700; margin: 0; line-height: 1.2; }
.pack .cible { font-size: 15px; color: var(--texte-pale); }
.pack ul { margin: 0; padding: 0; flex: 1; list-style: none; }
.pack li { margin: 0 0 8px; font-size: 15.5px; line-height: 1.35; display: flex; gap: 10px; }
.pack li::before { content: '✓'; color: var(--cyan); font-weight: 700; }
.prix { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.prix span { font-size: 17px; font-weight: 500; letter-spacing: 0; }
.badge {
  display: inline-flex; align-self: flex-start; height: 28px; align-items: center; padding: 0 12px;
  border-radius: 14px; background: var(--cyan); color: var(--fond); font-size: 12.5px; font-weight: 700;
}
.pack-vedette { background: var(--cyan); color: var(--fond); }
.pack-vedette .cible { color: var(--fond); }
.pack-vedette li::before { color: var(--fond); }
.pack-vedette .badge { background: var(--fond); color: var(--cyan); }
.pack-devis { border-style: dashed; }
.pack-devis .prix { font-size: 38px; line-height: 1.1; }
.note-prix { font-size: 13.5px; color: var(--texte-pale); padding-bottom: 20px; }

.inclus { padding: 22px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.inclus .plein { grid-column: 1 / -1; }
.inclus b { font-size: 17px; }
.inclus .desc { font-size: 15px; color: var(--texte-doux); margin-top: 4px; line-height: 1.45; }
.inclus .bas { font-size: 15.5px; line-height: 1.5; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; }

/* FAQ : <details> natif */

.faq { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; align-items: start; }
.faq details { border-radius: var(--rayon); }
.faq summary {
  padding: 18px 22px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between;
  gap: 12px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 22px 18px; font-size: 15.5px; color: var(--texte-doux); line-height: 1.5; }

/* Demande de démo (M3) */

.demo { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 28px; padding-bottom: 56px; align-items: flex-start; }
.demo-texte { flex: 1 1 380px; min-width: 0; }
.demo-texte h1 { font-size: 40px; line-height: 1.05; letter-spacing: -.03em; margin: 12px 0 18px; }
.demo-texte > p { font-size: 18px; line-height: 1.5; color: var(--texte-doux); margin: 0 0 24px; }
.atouts { list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.7; color: var(--texte-doux); }
.atouts li::before { content: '✓ '; }
.formulaire { flex: 1 1 560px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.rangee { display: flex; gap: 14px; flex-wrap: wrap; }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; flex: 1 1 240px; min-width: 0; }
.champ input, .champ select, .champ textarea {
  height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  padding: 0 18px; font: inherit; font-weight: 400; font-size: 16px; color: #fff; width: 100%;
}
.champ textarea { height: 112px; padding-top: 16px; resize: vertical; }
.champ select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23CBD9F5' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px;
}
.champ select option { color: var(--fond); }
.champ ::placeholder { color: var(--texte-pale); opacity: 1; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.champ [aria-invalid='true'] { border-color: #FFB4B4; }
.champ .facultatif { font-weight: 500; color: var(--texte-pale); }
.formulaire > .champ { flex: none; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: 13px; color: var(--texte-pale); margin: 0; }
.erreur { font-size: 15px; color: #FFD9D9; margin: 0; }
.erreur:empty { display: none; }
.formulaire .btn { height: 60px; }
.formulaire .btn[disabled] { opacity: .7; cursor: progress; }

.confirmation { padding: 20px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.confirmation[hidden] { display: none; }
.confirmation .ok {
  width: 44px; height: 44px; border-radius: 22px; background: #CFF3DD; color: #0A5A32; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.confirmation .corps { flex: 1; min-width: 220px; }
.confirmation b { font-size: 18px; }
.confirmation .corps div { font-size: 15px; color: var(--texte-doux); margin-top: 2px; }

/* Pages légales */

.legal { max-width: 820px; padding-bottom: 56px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; line-height: 1.2; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.6; color: var(--texte-doux); }
.legal ul, .legal ol { padding-left: 22px; }
.chapeau.maj { font-size: 14px; color: var(--texte-pale); }
.legal .cadre { padding: 18px 22px; margin-top: 24px; font-size: 15px; color: var(--texte-pale); }

/* Pied de page */

.pied { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 28px; padding-bottom: 40px; font-size: 14.5px; color: var(--texte-pale); }
.pied .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.pied .marque { flex: 1 1 280px; }
.pied a { color: var(--texte-pale); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pied .bientot { white-space: nowrap; }

/* Tablette */
@media (min-width: 640px) {
  :root { --gouttiere: 28px; }
  .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-3, .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs, .faq, .inclus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile-large { grid-column: span 2; }
  .heros h1 { font-size: 60px; }
  .tete-page h1, .demo-texte h1 { font-size: 48px; }
  .h2 { font-size: 38px; }
  .formulaire { padding: 32px; }
  .rappel { padding: 44px; }
  .bandeau { padding: 34px 40px; }
}

/* Grand écran : valeurs des maquettes */
@media (min-width: 960px) {
  :root { --gouttiere: 40px; }
  .entete .wrap { min-height: 96px; gap: 32px; flex-wrap: nowrap; }
  .logo svg { width: 40px; height: 40px; }
  .logo-nom { font-size: 26px; }
  .menu-bouton { display: none; }
  .nav, .nav.ouvert {
    display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: 32px; padding: 0;
  }
  .nav a.nl { font-size: 16px; padding: 0; border: 0; }
  .nav a.nl:hover { color: #fff; }
  .nav .btn { margin: 0; height: 48px; }
  .heros { padding-top: 56px; padding-bottom: 80px; gap: 48px; }
  .heros-visuel { flex: 0 0 340px; }
  .heros h1 { font-size: 76px; line-height: 1.02; margin: 14px 0 22px; }
  .heros-texte > p { font-size: 21px; margin-bottom: 32px; }
  .actions .btn { flex: none; }
  .h2 { font-size: 44px; }
  .section { padding-bottom: 72px; }
  .grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille-2 { gap: 18px; }
  .carte { padding: 28px; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inclus { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px 28px; }
  .tete-page { padding-top: 36px; }
  .tete-page h1, .demo-texte h1 { font-size: 56px; }
  .chapeau { font-size: 19px; }
  .demo { gap: 56px; padding-top: 40px; padding-bottom: 64px; }
  .demo-texte > p { font-size: 19px; }
  .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bandeau .titre { font-size: 34px; }
  .rappel { padding: 48px; }
  .rappel .titre { font-size: 42px; }
  .pied .wrap { gap: 24px; }
}

/* Demande de démo (M3, révisée) : textes secondaires du bleu pâle de S4 */
.page-demo { --texte-doux: #E3EDFF; }

/* Page de suppression de compte : choix du périmètre */
.choix { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choix legend { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.choix label {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
  font-size: 15.5px; cursor: pointer;
}
.choix label:has(input:checked) { border-color: var(--cyan, #4DD4FF); }
.choix input { accent-color: #4DD4FF; width: 18px; height: 18px; margin: 0; }
#suppression { display: grid; gap: 16px; margin-bottom: 28px; }
#suppression .petit { font-size: 14px; color: var(--texte-doux); margin: 0; line-height: 1.5; }
