/*
 * Fichier : site/assets/site.css
 * Rôle    : Styles du site vitrine (toutes les pages). Couleurs et typographies
 *           définies une seule fois dans :root.
 * Version : 1.1.a — 2026-10-06
 */

:root {
  --indigo: #1B2A4A;       /* nuit de Nouakchott : titres, bandeaux sombres */
  --sarcelle: #0E5E5A;     /* couleur de la marque (même que l'application) */
  --sarcelle-clair: #DCEDEA;
  --safran: #E3A72F;       /* boutons d'action, coupons */
  --safran-clair: #FBEFD3;
  --sable: #EFE4CC;        /* bandes chaudes, avec parcimonie */
  --chaux: #F7F8F6;        /* fond général */
  --encre: #16211F;        /* texte */
  --gris: #55615F;
  --trait: #D9E0DD;
  --blanc: #FFFFFF;
  --f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  --large: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--chaux); color: var(--encre); font-family: var(--f-texte); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--sarcelle); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--safran); outline-offset: 3px; border-radius: 6px;
}
.wrap { width: min(var(--large), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--f-titre); line-height: 1.08; margin: 0; letter-spacing: -0.02em; color: var(--indigo); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: #2E3A38; max-width: 56ch; }
.petit { font-size: 0.92rem; color: var(--gris); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--f-titre); font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-action { background: var(--safran); color: var(--indigo); }
.btn-action:hover { background: #EDB648; }
.btn-ligne { border-color: currentColor; color: var(--indigo); background: transparent; }
.btn-ligne:hover { background: rgba(27, 42, 74, .06); }
.btn-clair { background: #fff; color: var(--indigo); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247, 248, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); font-family: var(--f-titre); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.marque svg { width: 34px; height: 34px; }
.menu { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.menu a { white-space: nowrap; text-decoration: none; color: var(--encre); padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 0.97rem; }
.menu a:hover { background: var(--sarcelle-clair); }
.menu a[aria-current="page"] { color: var(--sarcelle); box-shadow: inset 0 -3px 0 var(--safran); border-radius: 0; }
.menu .connexion { margin-inline-start: 10px; border: 2px solid var(--indigo); border-radius: 999px; padding: 7px 16px; }
.menu .connexion:hover { background: var(--indigo); color: #fff; }
.burger { display: none; margin-inline-start: auto; background: none; border: 2px solid var(--indigo); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--indigo); }
.tel-haut { font-weight: 700; text-decoration: none; color: var(--indigo); white-space: nowrap; }
@media (max-width: 1360px) {
  .tel-haut { display: none; }
}
@media (max-width: 1080px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .menu { display: none; position: absolute; inset-inline: 0; top: 72px; flex-direction: column; align-items: stretch; background: var(--chaux); border-bottom: 1px solid var(--trait); padding: 10px 20px 20px; }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px; }
  .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--safran); }
  .menu .connexion { margin: 8px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-titre { margin-bottom: 40px; max-width: 760px; }
.section-titre p { margin-top: 14px; color: #2E3A38; font-size: 1.1rem; }
.fond-sable { background: var(--sable); }
.fond-indigo { background: var(--indigo); color: #E6EAF2; }
.fond-indigo h2, .fond-indigo h3 { color: #fff; }
.fond-blanc { background: #fff; }

/* ---------- Accueil : héros ---------- */
.heros { padding: 64px 0 96px; overflow: hidden; }
.heros .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.heros h1 { max-width: 13ch; }
.heros .lead { margin-top: 22px; }
.preuves { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; font-weight: 700; color: var(--indigo); font-size: 0.97rem; }
.preuves li { display: flex; gap: 8px; align-items: center; }
.preuves svg { flex-shrink: 0; color: var(--sarcelle); }
@media (max-width: 900px) { .heros .wrap { grid-template-columns: 1fr; } .heros { padding-top: 36px; } }

/* Le coupon : l'élément signature du site */
.coupons { position: relative; height: 420px; }
.coupon { position: absolute; width: min(100%, 380px); display: grid; grid-template-columns: 96px 1fr; background: #fff; border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(27, 42, 74, .45); color: var(--encre); }
.coupon .talon { background: var(--safran); border-radius: 18px 0 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--f-titre); color: var(--indigo); border-inline-end: 3px dashed rgba(27, 42, 74, .35); position: relative; }
.coupon .talon b { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.coupon .talon span { font-weight: 700; font-size: 0.95rem; }
.coupon .corps { padding: 18px 20px; }
.coupon .corps strong { display: block; font-family: var(--f-titre); font-size: 1.15rem; color: var(--indigo); }
.coupon .etapes { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.coupon .etapes span { font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EEF2F1; color: var(--gris); }
.coupon .etapes span.fait { background: var(--sarcelle-clair); color: var(--sarcelle); }
.coupon:nth-child(1) { top: 0; inset-inline-start: 6%; transform: rotate(-5deg); }
.coupon:nth-child(2) { top: 140px; inset-inline-start: 0; transform: rotate(2deg); z-index: 2; }
.coupon:nth-child(3) { top: 278px; inset-inline-start: 10%; transform: rotate(-2deg); }
.coupon:nth-child(3) .talon { background: var(--sarcelle); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .coupon { animation: arrivee .7s cubic-bezier(.2, .8, .2, 1) both; }
  .coupon:nth-child(2) { animation-delay: .18s; }
  .coupon:nth-child(3) { animation-delay: .36s; }
  @keyframes arrivee { from { opacity: 0; translate: 60px 30px; } }
}
@media (max-width: 900px) { .coupons { height: 400px; max-width: 420px; } }

/* ---------- Étapes (vraie séquence : numérotées) ---------- */
.etapes-liste { counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0; list-style: none; }
.etapes-liste li { counter-increment: e; position: relative; padding-top: 64px; }
.etapes-liste li::before { content: counter(e); position: absolute; top: 0; inset-inline-start: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.etapes-liste li:not(:last-child)::after { content: ""; position: absolute; top: 22px; inset-inline-start: 58px; inset-inline-end: -16px; border-top: 2px dashed var(--trait); }
.etapes-liste h3 { margin-bottom: 8px; }
.etapes-liste p { font-size: 0.98rem; color: #2E3A38; }
@media (max-width: 900px) { .etapes-liste { grid-template-columns: 1fr 1fr; } .etapes-liste li::after { display: none; } }
@media (max-width: 560px) { .etapes-liste { grid-template-columns: 1fr; } }

/* ---------- Comparatif ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; font-size: 0.98rem; }
.compare th, .compare td { padding: 16px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--trait); }
.compare thead th { font-family: var(--f-titre); font-size: 1.05rem; color: var(--indigo); background: #F1F4F3; }
.compare thead th:last-child { background: var(--sarcelle); color: #fff; }
.compare td:last-child { background: #F3FAF8; font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.table-defil { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--trait); }
.table-defil .compare { min-width: 640px; }

/* ---------- Blocs de contenu ---------- */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 900px) { .deux, .trois { grid-template-columns: 1fr; gap: 32px; } }
.atout h3 { margin: 14px 0 8px; }
.atout p { color: #2E3A38; font-size: 1rem; }
.atout .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sarcelle-clair); color: var(--sarcelle); display: flex; align-items: center; justify-content: center; }
.fond-indigo .atout p { color: #C9D2E3; }
.fond-indigo .atout .ico { background: rgba(255, 255, 255, .1); color: var(--safran); }
.coche { list-style: none; padding: 0; margin: 0; }
.coche li { position: relative; padding-inline-start: 34px; margin-bottom: 12px; }
.coche li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sarcelle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.encadre { background: #fff; border: 1px solid var(--trait); border-radius: var(--r); padding: 28px; }
.encadre.safran { background: var(--safran-clair); border-color: #EBCF8E; }
.citation { font-family: var(--f-titre); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; color: #fff; max-width: 30ch; font-weight: 650; }

/* ---------- Matières ---------- */
.niveaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--indigo); }
.niveaux > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--trait); }
.niveaux h3 { margin-bottom: 10px; }
.niveaux ul { margin: 0; padding: 0; list-style: none; color: #2E3A38; }
.niveaux li { padding: 3px 0; }
@media (max-width: 900px) { .niveaux { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .niveaux { grid-template-columns: 1fr; } }
.puces { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.puces li { background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--indigo); }

/* ---------- Tarifs et simulateur ---------- */
.formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.formule { background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.formule.mise-en-avant { border: 2px solid var(--sarcelle); box-shadow: 0 20px 40px -24px rgba(14, 94, 90, .5); }
.formule .prix { font-family: var(--f-titre); font-size: 2.4rem; font-weight: 800; color: var(--indigo); margin: 14px 0 2px; }
.formule .prix small { font-size: 1rem; font-weight: 600; color: var(--gris); }
.formule .coche { margin: 18px 0 24px; font-size: 0.97rem; }
.formule .btn { margin-top: auto; }
.repere { align-self: flex-start; background: var(--sarcelle); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
@media (max-width: 900px) { .formules { grid-template-columns: 1fr; } }
.simulateur { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--trait); }
.simulateur .reglages { padding: 32px; }
.simulateur .resultat { padding: 32px; background: var(--indigo); color: #E6EAF2; }
.simulateur label { display: block; font-weight: 700; margin: 18px 0 8px; color: var(--indigo); }
.simulateur input[type=range] { width: 100%; accent-color: var(--sarcelle); }
.simulateur .valeur { font-family: var(--f-titre); font-size: 1.6rem; font-weight: 800; color: var(--indigo); }
.simulateur .total { font-family: var(--f-titre); font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1.1; }
.tickets { display: flex; flex-wrap: wrap; gap: 5px; margin: 18px 0; }
.tickets i { width: 22px; height: 14px; border-radius: 3px; background: var(--safran); display: block; }
@media (max-width: 800px) { .simulateur { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem; color: var(--indigo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 6px; top: 14px; font-size: 1.8rem; font-weight: 400; color: var(--sarcelle); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: #2E3A38; }
.faq h2 { margin: 48px 0 8px; font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Formulaires ---------- */
.formulaire { background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 32px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.champs .large { grid-column: 1 / -1; }
.champ label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.96rem; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--trait); border-radius: 12px; background: #fff; color: var(--encre); }
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--sarcelle); outline: none; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } .formulaire { padding: 22px; } }

/* ---------- Bandeau d'appel ---------- */
.appel { background: var(--sarcelle); color: #E7F3F1; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.appel h2 { color: #fff; }
.appel .btns { justify-content: flex-end; margin: 0; }
@media (max-width: 900px) { .appel { grid-template-columns: 1fr; padding: 36px 26px; } .appel .btns { justify-content: flex-start; } }

/* ---------- Connexion ---------- */
.espaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.espace { background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; text-decoration: none; color: var(--encre); }
.espace:hover { border-color: var(--sarcelle); }
.espace h2 { font-size: 1.5rem; margin: 16px 0 8px; }
.espace .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .espaces { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--indigo); color: #C9D2E3; padding: 64px 0 28px; margin-top: 0; }
.pied .wrap > .colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.pied h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.pied a { color: #E6EAF2; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { padding: 4px 0; }
.pied .marque { color: #fff; }
.pied .bas { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; }
@media (max-width: 900px) { .pied .wrap > .colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied .wrap > .colonnes { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-titre { padding: 64px 0 40px; }
.page-titre h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 18ch; }
.page-titre .lead { margin-top: 16px; }
.fil { font-size: 0.92rem; color: var(--gris); margin-bottom: 18px; }
.fil a { color: var(--gris); }
.whatsapp-flottant { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
