  :root {
    --bleu: #1d5f8f;
    --bleu-fonce: #134468;
    --nuit: #0e3554;
    --bleu-clair: #e8f1f8;
    --encre: #16202a;
    --gris: #5b6672;
    --gris-clair: #f3f5f7;
    --vert: #1e7a4c;
    --vert-vif: #3fbf7f;
    --vert-clair: #e6f4ec;
    --ambre: #a35a00;
    --ambre-vif: #ffb547;
    --ambre-clair: #fff3df;
    --rouge: #a8322d;
    --rouge-clair: #fbe9e7;
    --trait: #d5dde5;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: #fff; color: var(--encre); font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.55; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--bleu); }
  h1, h2, h3 { line-height: 1.15; margin: 0; }
  h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; letter-spacing: -.01em; }
  h3 { font-size: 19px; }
  p { margin: 0 0 14px; }
  .conteneur { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
  section { padding: 64px 0; }
  .surtitre { color: var(--bleu); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
  .surtitre::after { content: ""; display: block; width: 56px; height: 6px; background: var(--bleu); margin-top: 10px; }
  .chapeau { color: var(--gris); font-size: 19px; max-width: 720px; margin-top: 16px; }
  .a-remplir { background: #fff59d; color: #5a4a00; padding: 0 6px; border-radius: 4px; }

  /* Boutons */
  .bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ambre-vif); color: #1b1300; font-weight: 800; font-size: 18px; text-decoration: none; padding: 17px 28px; border-radius: 12px; border: 0; cursor: pointer; box-shadow: 0 6px 18px rgba(255,181,71,.35); transition: transform .15s, box-shadow .15s; }
  .bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,181,71,.45); }
  .bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  .rassurance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; color: #cfe0ee; }
  .rassurance span::before { content: "✓ "; color: var(--vert-vif); font-weight: 700; }

  /* Bandeau d'urgence */
  .bandeau { background: var(--ambre-clair); color: var(--ambre); font-weight: 700; font-size: 14px; text-align: center; padding: 10px 16px; border-bottom: 1px solid #f3dcb6; }

  /* Hero */
  .hero { background: radial-gradient(120% 90% at 85% 0%, #1f5a87 0%, var(--bleu-fonce) 45%, var(--nuit) 100%); color: #fff; padding: 56px 0 64px; }
  .hero .grille { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
  .hero .grille > * { min-width: 0; }
  .hero .label { color: #a9cbe6; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
  .hero h1 { font-size: clamp(36px, 7.4vw, 60px); font-weight: 800; letter-spacing: -.015em; margin: 18px 0 18px; }
  .hero h1 em { font-style: normal; color: var(--ambre-vif); }
  .hero .sous { color: #dbe8f3; font-size: 19px; max-width: 560px; margin-bottom: 26px; }
  .hero .prix { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
  .hero .prix b { font-size: 30px; white-space: nowrap; }
  .hero .prix span { color: #cfe0ee; font-size: 15px; }
  .hero .livre { max-width: 250px; margin: 0 auto; transform: rotate(2deg); }
  .hero .livre img { border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); }
  @media (min-width: 860px) {
    .hero .grille { grid-template-columns: 1.25fr .75fr; }
    .hero .livre { max-width: 360px; }
  }

  /* Calendrier */
  .calendrier { background: var(--gris-clair); }
  .dates { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  @media (min-width: 700px) { .dates { grid-template-columns: repeat(4, 1fr); } }
  .date { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 20px; }
  .date b { display: block; font-size: 24px; color: var(--bleu-fonce); }
  .date span { color: var(--gris); font-size: 15px; }
  .date.cle { border: 2px solid var(--bleu); }
  .note { margin-top: 20px; font-size: 15px; color: var(--gris); max-width: 820px; }

  /* Encadres */
  .encadre { border-radius: 12px; padding: 18px 20px; border-left: 6px solid; }
  .encadre .titre { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
  .encadre p:last-child { margin-bottom: 0; }
  .danger { background: var(--rouge-clair); border-color: var(--rouge); } .danger .titre { color: var(--rouge); }
  .retenir { background: var(--bleu-clair); border-color: var(--bleu); } .retenir .titre { color: var(--bleu); }
  .astuce { background: var(--vert-clair); border-color: var(--vert); } .astuce .titre { color: var(--vert); }
  .exemple { background: var(--gris-clair); border-color: #9aa6b2; } .exemple .titre { color: var(--gris); }

  .trois { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  @media (min-width: 800px) { .trois { grid-template-columns: repeat(3, 1fr); } }

  /* Sommaire */
  .chapitres { display: grid; grid-template-columns: 1fr; gap: 0 40px; margin-top: 30px; }
  @media (min-width: 800px) { .chapitres { grid-template-columns: 1fr 1fr; } }
  .chap { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
  .chap .n { width: 40px; height: 40px; border-radius: 50%; background: var(--bleu-fonce); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .chap p { margin: 4px 0 0; color: var(--gris); font-size: 15.5px; }
  .phase { grid-column: 1 / -1; color: var(--bleu); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding-top: 22px; }

  /* Extraits */
  .extraits { background: var(--gris-clair); }
  .extraits .grille { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  @media (min-width: 860px) { .extraits .grille { grid-template-columns: 1fr 1fr; } }
  .carte { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--trait); }
  .carte .ch { font-size: 12.5px; font-weight: 800; color: var(--bleu); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
  .carte h3 { margin-bottom: 12px; }
  table { width: 100%; border-collapse: collapse; font-size: 15px; }
  th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
  th { background: var(--bleu-fonce); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
  td:first-child { font-weight: 700; white-space: nowrap; }

  /* Outils */
  .outils { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
  @media (min-width: 800px) { .outils { grid-template-columns: repeat(4, 1fr); } }
  .outil { border: 1px solid var(--trait); border-radius: 14px; padding: 18px; }
  .outil b { display: block; color: var(--bleu-fonce); margin-bottom: 4px; }
  .outil span { font-size: 14.5px; color: var(--gris); }

  /* Pour qui */
  .pourqui { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  @media (min-width: 800px) { .pourqui { grid-template-columns: 1fr 1fr; } }
  .pourqui ul { list-style: none; padding: 0; margin: 10px 0 0; }
  .pourqui li { padding: 7px 0 7px 30px; position: relative; }
  .pourqui .oui li::before { content: "✓"; position: absolute; left: 4px; color: var(--vert); font-weight: 800; }
  .pourqui .non li::before { content: "✗"; position: absolute; left: 4px; color: var(--rouge); font-weight: 800; }

  /* Achat */
  .achat { background: radial-gradient(120% 90% at 15% 0%, #1f5a87 0%, var(--bleu-fonce) 50%, var(--nuit) 100%); color: #fff; }
  .achat h2 { color: #fff; }
  .achat .surtitre { color: #a9cbe6; } .achat .surtitre::after { background: #fff; }
  .offre { background: #fff; color: var(--encre); border-radius: 20px; padding: 28px 22px; max-width: 560px; margin: 30px auto 0; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
  .offre .ligne-prix { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--trait); padding-bottom: 16px; margin-bottom: 16px; }
  .offre .ligne-prix b { font-size: 32px; color: var(--bleu-fonce); }
  .offre ul { list-style: none; padding: 0; margin: 0 0 22px; }
  .offre li { padding: 6px 0 6px 28px; position: relative; font-size: 16px; }
  .offre li::before { content: "✓"; position: absolute; left: 2px; color: var(--vert); font-weight: 800; }
  .champ { margin-bottom: 14px; }
  .champ label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
  .champ input { width: 100%; font: inherit; font-size: max(16px, 1em); min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--trait); border-radius: 10px; }
  .champ input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(29,95,143,.15); }
  .champ small { display: block; color: var(--gris); font-size: 13px; margin-top: 5px; }
  /* Numero Mobile Money : indicatif fixe, logo de l'operateur detecte dans le champ */
  .tel { display: flex; align-items: center; border: 1.5px solid var(--trait); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
  .tel:focus-within { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(29,95,143,.15); }
  .tel .indicatif { padding: 0 4px 0 14px; color: var(--gris); font-weight: 700; white-space: nowrap; }
  .champ .tel input { border: 0; box-shadow: none; padding-left: 6px; min-width: 0; flex: 1; letter-spacing: .02em; }
  .champ .tel input:focus { box-shadow: none; }
  .tel .logos { display: flex; gap: 6px; padding-right: 10px; flex: none; }
  .tel .logos img { width: 45px; height: 30px; display: block; border-radius: 5px; transition: opacity .15s, transform .15s; }
  .tel[data-operateur="MTN"] .logo-orange, .tel[data-operateur="ORANGE"] .logo-mtn { display: none; }
  .tel[data-operateur="MTN"] .logos img, .tel[data-operateur="ORANGE"] .logos img { transform: scale(1.08); }
  .tel[data-operateur="MTN"] { border-color: #e0b400; }
  .tel[data-operateur="ORANGE"] { border-color: #ff7900; }
  .tel[data-operateur="NON"], .tel[data-operateur="FORMAT"], .tel[data-operateur="LONG"] { border-color: var(--rouge); }
  .tel[data-operateur="NON"] .logos img, .tel[data-operateur="INCONNU"] .logos img { opacity: .35; }
  .detection { margin: 6px 0 0; font-size: 13.5px; color: var(--gris); min-height: 1.4em; }
  .detection.ok { color: var(--vert); font-weight: 600; }
  .detection.ok::before { content: "✓ "; }
  .detection.ko { color: var(--rouge); font-weight: 600; }
  .offre .bouton { width: 100%; margin-top: 8px; }
  .offre .apres { font-size: 13.5px; color: var(--gris); margin-top: 14px; text-align: center; }
  @media (max-width: 420px) {
    .offre { padding: 22px 16px; border-radius: 16px; margin-top: 22px; }
    .offre .ligne-prix b { font-size: 26px; }
    .offre li { font-size: 15px; }
    .tel .indicatif { padding-left: 10px; }
    .tel .logos { gap: 4px; padding-right: 8px; }
    .tel .logos img { width: 39px; height: 26px; }
  }

  /* FAQ */
  details { border-bottom: 1px solid var(--trait); padding: 18px 0; }
  summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--bleu); font-size: 24px; line-height: 1; }
  details[open] summary::after { content: "–"; }
  details p { margin: 12px 0 0; color: #3b4652; }
  .faq { max-width: 820px; margin-top: 20px; }

  footer { background: var(--nuit); color: #cfe0ee; font-size: 14px; padding: 36px 0 90px; }
  footer p { max-width: 820px; }

  /* Barre d'achat collante sur mobile */
  .barre { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--trait); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); z-index: 10; }
  .barre .bouton { padding: 13px 20px; font-size: 16px; box-shadow: none; }
  .barre small { color: var(--gris); display: block; font-size: 12.5px; }
  @media (min-width: 860px) { .barre { display: none; } footer { padding-bottom: 36px; } }

  /* Messages et pages simples (suivi, connexion, espace) */
  .erreur { background: var(--rouge-clair); color: var(--rouge); border-left: 6px solid var(--rouge); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; font-size: 15px; }
  .bouton[disabled] { opacity: .7; cursor: wait; transform: none; }
  .simple { min-height: 100vh; display: flex; flex-direction: column; background: var(--gris-clair); }
  .simple header { background: var(--bleu-fonce); color: #fff; padding: 16px 0; }
  .simple header a { color: #fff; text-decoration: none; font-weight: 800; }
  .simple main { flex: 1; padding: 40px 0 60px; }
  .boite { background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: 30px 22px; max-width: 560px; margin: 0 auto; }
  .boite h1 { font-size: 28px; margin-bottom: 12px; }
  .boite .bouton { width: 100%; margin-top: 10px; }
  .lien-discret { background: none; border: 0; color: var(--bleu); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
  .roue { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--bleu-clair); border-top-color: var(--bleu); animation: tourne 1s linear infinite; margin: 10px auto 20px; }
  @keyframes tourne { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .roue { animation-duration: 3s; } }
  .centre { text-align: center; }

  /* WhatsApp : bouton flottant de la page de vente, et aide sur les pages de paiement */
  .wa-flottant { position: fixed; right: 16px; bottom: 86px; z-index: 11; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; padding: 12px 16px 12px 14px; border-radius: 99px; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .15s; }
  .wa-flottant:hover { transform: translateY(-2px); }
  .wa-flottant svg { flex: none; }
  @media (max-width: 420px) { .wa-flottant span { display: none; } .wa-flottant { padding: 14px; } }
  @media (min-width: 860px) { .wa-flottant { bottom: 24px; } }
  .aide-wa { font-size: 13.5px; color: var(--gris); text-align: center; margin: 10px 0 0; }
  .aide-wa a { color: #128c4b; font-weight: 700; }
  .bouton-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; border: 2px solid #25d366; color: #128c4b; font-weight: 800; text-decoration: none; padding: 13px 18px; border-radius: 12px; }
  .bouton-wa:hover { background: #effbf3; }
  .barre { transition: transform .2s; }
  .barre.cachee { transform: translateY(110%); }
  body:has(.barre.cachee) .wa-flottant { bottom: 24px; }
