/* =====================================================================
   M Bizz — maquette du site public (octobre 2026)
   Couleurs et police : charte 25-Kit-de-marque-M-Bizz.
   Aucun script, aucune ressource externe : polices servies par le site
   lui-même (CSP : style-src 'self'; font-src 'self'; img-src 'self' data:).
   ===================================================================== */
/* Poppins (licence SIL OFL), jeu latin seul : 5 fichiers d'environ 8 Ko.
   swap : le texte s'affiche tout de suite avec la police du téléphone. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/poppins-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("polices/poppins-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("polices/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("polices/poppins-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("polices/poppins-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bleu: #1E40AF;          /* primaire (charte) */
  --bleu-fonce: #1E3A8A;
  --bleu-clair: #3B82F6;
  --bleu-pale: #EEF2FF;
  --vert: #16A34A;          /* décor (pastilles, coches) */
  --vert-fonce: #15803D;    /* boutons : texte blanc à 5,0:1 */
  --vert-pale: #F0FDF4;
  --orange: #EA580C;        /* décor */
  --orange-texte: #C2410C;  /* texte orange : 5,2:1 sur blanc */
  --texte: #1F2937;
  --doux: #55606F;          /* 5,9:1 sur --fond */
  --fond: #F4F6FB;
  --blanc: #FFFFFF;
  --bordure: #D9DEE7;
  --rayon: 14px;
  --police: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.6;
  color: var(--texte); background: var(--blanc);
}
img, svg { display: block; }
a { color: var(--bleu); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 12px; }
code { background: var(--fond); padding: 1px 6px; border-radius: 6px; font-size: .95em; }

.zone { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.zone-etroite { max-width: 760px; }
.centre { text-align: center; margin-top: 32px; }

.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 8px; z-index: 100; background: var(--blanc); padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 3px; border-radius: 6px; }

/* ---- Boutons : 48 px de haut minimum (cible tactile) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-grand { min-height: 56px; padding: 14px 26px; font-size: 17px; }
.btn-petit { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-vert { background: var(--vert-fonce); color: var(--blanc); }
.btn-vert:hover { background: #166534; }
.btn-contour { background: var(--blanc); color: var(--bleu); border-color: var(--bleu); }
.btn-contour:hover { background: var(--bleu-pale); }
.btn-blanc { background: var(--blanc); color: var(--bleu-fonce); }
.btn-blanc:hover { background: var(--bleu-pale); }

/* ---- En-tête ---- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--bordure); }
.entete-ligne { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 19px; color: var(--bleu-fonce); text-decoration: none; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--texte); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--fond); color: var(--bleu); }
.entete-cta { display: none; } /* téléphone : le bouton collant du bas suffit */
.heros-actions .btn { flex: 1 1 100%; }

/* ---- Héros ---- */
.heros { background: linear-gradient(180deg, var(--bleu-pale) 0%, var(--blanc) 100%); padding: 40px 0 56px; }
.heros-grille { display: grid; gap: 40px; align-items: center; }
.surtitre { color: var(--bleu); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 14px; }
h1 { font-size: clamp(30px, 6.4vw, 52px); font-weight: 800; color: var(--bleu-fonce); letter-spacing: -.02em; margin-bottom: 18px; }
.surligne { color: var(--vert-fonce); }
.chapo { font-size: clamp(17px, 2.2vw, 20px); color: var(--texte); max-width: 34em; margin-bottom: 26px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.garanties { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--doux); font-size: 15px; font-weight: 500; }
.garanties li { display: inline-flex; align-items: center; gap: 6px; }
.garanties svg { color: var(--vert); }

/* ---- Illustration téléphone (à remplacer par une vraie capture) ---- */
.telephone {
  width: min(300px, 82vw); margin: 0 auto; padding: 12px; border-radius: 36px;
  background: #111827; box-shadow: 0 24px 60px rgba(30,58,138,.25);
}
.tel-ecran { background: var(--fond); border-radius: 26px; padding: 16px 14px 18px; display: grid; gap: 10px; }
.tel-barre { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--bleu-fonce); white-space: nowrap; }
.tel-pastille { background: #FFF7ED; color: var(--orange-texte); border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 700; }
.tel-carte { background: var(--blanc); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.tel-carte-bleue { background: var(--bleu); color: var(--blanc); }
.tel-libelle { font-size: 12px; font-weight: 600; opacity: .85; }
.tel-montant { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tel-sous { font-size: 12px; opacity: .85; }
.tel-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tel-valeur { font-size: 19px; font-weight: 800; }
.tel-vert { color: var(--vert-fonce); }
.tel-orange { color: var(--orange-texte); }
.tel-alerte { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--orange-texte); border: 1px solid #FED7AA; }
.tel-bouton { background: var(--vert-fonce); color: var(--blanc); text-align: center; font-weight: 800; border-radius: 12px; padding: 13px; font-size: 15px; }

/* ---- Sections ---- */
section { padding: 64px 0; scroll-margin-top: 72px; } /* ancres sous l'en-tête collant */
.bande-claire { background: var(--fond); }
.bande-bleue { background: var(--bleu-fonce); color: var(--blanc); }
.titre-section { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--bleu-fonce); text-align: center; margin-bottom: 36px; letter-spacing: -.01em; }
.titre-blanc { color: var(--blanc); }
.titre-gauche { text-align: left; margin-bottom: 12px; }
.intro { text-align: center; color: var(--doux); max-width: 44em; margin: -16px auto 32px; }
.grille-3 { display: grid; gap: 16px; }

.carte-question { background: var(--blanc); border-radius: var(--rayon); padding: 22px; border: 1px solid var(--bordure); }
.question { font-weight: 700; font-size: 18px; color: var(--bleu-fonce); }
.carte-question p:last-child { color: var(--doux); margin: 0; }

.fonction { padding: 22px; border-radius: var(--rayon); border: 1px solid var(--bordure); background: var(--blanc); }
.icone { width: 48px; height: 48px; border-radius: 12px; background: var(--bleu-pale); color: var(--bleu); display: grid; place-items: center; margin-bottom: 14px; }
.fonction h3 { font-size: 19px; margin-bottom: 8px; color: var(--texte); }
.fonction p { color: var(--doux); margin: 0; }

.etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
.etapes li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--rayon); padding: 22px; }
.numero { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--vert); color: var(--blanc); font-weight: 800; margin-bottom: 12px; }
.etapes h3 { font-size: 19px; margin-bottom: 6px; }
.etapes p { margin: 0; color: #DBEAFE; }

/* ---- Tarifs ---- */
.tarifs { display: grid; gap: 14px; }
.tarif { position: relative; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px; background: var(--blanc); }
.tarif h3 { font-size: 18px; margin-bottom: 8px; }
.prix { font-size: 28px; font-weight: 800; color: var(--bleu-fonce); margin-bottom: 2px; }
.prix span { display: block; font-size: 14px; font-weight: 600; color: var(--doux); }
.annuel { font-size: 14px; color: var(--vert-fonce); font-weight: 600; }
.tarif ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.tarif li::before { content: "✓"; color: var(--vert); font-weight: 800; margin-right: 8px; }
.tarif-mis-en-avant { border: 2px solid var(--bleu); box-shadow: 0 12px 30px rgba(30,64,175,.14); }
.etiquette { position: absolute; top: -13px; left: 18px; background: var(--bleu); color: var(--blanc); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 0; }
.note { text-align: center; color: var(--doux); font-size: 14px; margin-top: 22px; }

/* ---- Questions (details natif, sans script) ---- */
details { border: 1px solid var(--bordure); border-radius: 12px; margin-bottom: 10px; background: var(--blanc); }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--bleu); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 16px; margin: 0; color: var(--doux); }

/* ---- Pied de page ---- */
.pied { background: #0F172A; color: #CBD5E1; padding: 48px 0 110px; font-size: 15px; }
.pied a { color: #E2E8F0; }
.pied-grille { display: grid; gap: 28px; }
.marque-pied { color: var(--blanc); margin-bottom: 10px; }
.pied-titre { font-size: 15px; color: var(--blanc); margin-bottom: 10px; }
.liste-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.liste-simple a { display: inline-block; padding: 4px 0; }

/* ---- Bouton collant (téléphone) ---- */
.cta-collant {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--bordure);
}
.cta-collant .btn { width: 100%; }

/* ---- Android ou iPhone, sans script ----
   -webkit-touch-callout n'existe que sur iPhone et iPad, où tous les
   navigateurs utilisent le moteur de Safari. */
@supports not (-webkit-touch-callout: none) { .pour-iphone { display: none !important; } }
@supports (-webkit-touch-callout: none) { .pour-android { display: none !important; } }
.lien-iphone { font-weight: 600; margin: -8px 0 18px; }
.lien-iphone a { display: inline-block; padding: 6px 0; }
.lien-clair { color: var(--blanc); font-weight: 700; }

/* ---- Page iPhone ---- */
.heros-court { padding-bottom: 40px; }
.adresse-app { color: var(--doux); font-size: 15px; margin: 0; }
.gestes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.gestes li { display: flex; gap: 16px; align-items: flex-start; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px; }
.gestes .numero { flex: none; margin: 0; }
.gestes h3 { font-size: 19px; color: var(--bleu-fonce); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gestes p { color: var(--doux); }
.gestes p:last-child { margin-bottom: 0; }
.pictos { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bleu-pale); color: var(--bleu-clair); }
.astuce { background: #FFF7ED; border-radius: 10px; padding: 10px 12px; color: var(--texte) !important; font-size: 15px; }
.differences { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.differences li { border-left: 4px solid var(--vert); background: var(--fond); border-radius: 10px; padding: 14px 16px; color: var(--doux); }
.differences strong { color: var(--texte); }

/* ---- Tablette et ordinateur ---- */
@media (min-width: 640px) {
  .grille-3 { grid-template-columns: repeat(2, 1fr); }
  .tarifs { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .entete-cta { display: inline-flex; margin-left: 8px; }
  .heros-actions .btn { flex: 0 0 auto; }
  .heros { padding: 72px 0 88px; }
  .heros-grille { grid-template-columns: 1.15fr .85fr; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .tarifs { grid-template-columns: repeat(3, 1fr); }
  .pied-grille { grid-template-columns: 1.4fr 1fr 1fr; }
  .pied { padding-bottom: 48px; }
  .cta-collant { display: none; }
}
@media (min-width: 1100px) {
  .tarifs { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
