/* ============================================================
   AZURWIFI — Design System
   DA : bleu Méditerranée profond + azur électrique + orange CTA
   Mobile-first · zéro dépendance · zéro requête externe (CWV max)
   ============================================================ */

:root {
  --navy: #06182B;
  --navy-2: #0B2540;
  --ink: #0F2A43;
  --blue: #0A66E8;
  --azure: #22B0F0;
  --accent: #FF6B2C;
  --accent-dk: #E85812;
  --green: #12B76A;
  --bg: #F5F9FD;
  --card: #FFFFFF;
  --line: #E1EAF4;
  --text: #3D5A75;
  --muted: #52708E; /* contraste AA (4.5+) sur fond blanc — PageSpeed accessibilité */
  --star: #FFB021;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(8, 40, 80, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 40, 80, 0.16);
  --grad: linear-gradient(135deg, #0A66E8, #22B0F0);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--card);
  line-height: 1.65;
  font-size: 16.5px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p + p { margin-top: 0.9em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 10px;
}
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { margin-top: 10px; color: var(--muted); }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 1.02rem; font-weight: 700; line-height: 1.2;
  text-decoration: none !important; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn svg { flex: none; }
/* Texte navy sur orange : contraste 6.3:1 (AA) là où blanc/orange échoue */
.btn-primary {
  background: var(--accent); color: #06182B;
  box-shadow: 0 6px 20px rgba(255, 107, 44, 0.38);
}
.btn-primary:hover { background: #FF7E45; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(10,102,232,0.3); }
.btn-blue:hover { background: #0857C6; transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
.btn-wa:hover { background: #1da851; color: #fff; text-decoration: none; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: #EDF5FF; }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: #BBD4EE; font-size: 0.86rem;
  padding: 7px 0; text-align: center;
}
.topbar strong { color: #fff; }
.topbar a { color: #7FC4F8; font-weight: 700; }
header.site {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: 1160px; margin: 0 auto;
}
.nav .logo img { height: 46px; width: auto; display: block; }
.nav-links { display: none; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.97rem; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { display: none; align-items: center; gap: 12px; }
.lang-switch {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px;
  font-size: 0.82rem; font-weight: 800; color: var(--muted); letter-spacing: 0.06em;
}
.lang-switch:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 1.02rem; white-space: nowrap; }
.nav-phone:hover { color: var(--blue); text-decoration: none; }
.nav-wa {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: #25D366; color: #fff;
}
.nav-wa:hover { background: #1da851; text-decoration: none; color: #fff; }
.burger { background: none; border: 0; cursor: pointer; padding: 8px; display: block; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }
.mobile-menu {
  display: none; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--bg); }
.mobile-menu .btn { margin-top: 14px; }
@media (min-width: 980px) {
  .nav-links, .nav-cta { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(34,176,240,0.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(10,102,232,0.4), transparent 60%),
    linear-gradient(160deg, #071D35 0%, #0B2848 55%, #0A3560 100%);
  color: #D7E7F7; padding: 64px 0 72px; overflow: hidden; position: relative;
}
.hero h1 { color: #fff; }
.hero .accent { color: var(--azure); }
.hero-grid { display: grid; gap: 42px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-sub { margin-top: 18px; font-size: 1.13rem; max-width: 560px; color: #B9D2E9; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: #DCEBFA; border-radius: 999px; padding: 7px 14px;
  font-size: 0.86rem; font-weight: 600;
}
.badge svg { color: var(--azure); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: #8FB0CD; }
.hero-note strong { color: #CFE6FA; }

/* étoiles social proof */
.stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }

/* ---------- Carte formulaire ---------- */
.lead-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 28px; color: var(--text);
}
.lead-card h2, .lead-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.lead-card .lead-sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.lead-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.lead-progress i { height: 5px; flex: 1; border-radius: 3px; background: var(--line); }
.lead-progress i.on { background: var(--grad); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 10px;
  background: #fff; cursor: pointer; font-family: var(--font); font-size: 0.93rem;
  font-weight: 600; color: var(--ink); text-align: center; transition: 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.chip svg { color: var(--blue); }
.chip:hover, .chip.sel { border-color: var(--blue); background: #EDF5FF; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: #FBFDFF; transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field .err { display: none; color: #D92D20; font-size: 0.82rem; margin-top: 5px; font-weight: 600; }
.field.invalid input { border-color: #D92D20; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); margin: 12px 0; }
.consent input { margin-top: 3px; }
.lead-back { background: none; border: 0; color: var(--muted); font-size: 0.88rem; cursor: pointer; font-family: var(--font); padding: 8px 0; }
.lead-back:hover { color: var(--blue); }
.lead-trust { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bg); font-size: 0.78rem; color: var(--muted); text-align: center; }
.lead-step { display: none; }
.lead-step.on { display: block; animation: fadeUp 0.25s ease; }
.form-ok { text-align: center; padding: 24px 4px; }
.form-ok .tick { width: 56px; height: 56px; border-radius: 50%; background: #E8F8F0; color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s;
}
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: #EDF5FF;
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); font-size: 0.92rem; }
.card .price-tag { display: inline-block; margin-top: 12px; background: #FFF3EC; color: var(--accent-dk); font-weight: 800; font-size: 0.85rem; border-radius: 8px; padding: 4px 10px; }

/* pain cards */
.pain { border-left: 4px solid var(--accent); }
.pain h3 { font-size: 1.02rem; }

/* ---------- Étapes ---------- */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 0; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; box-shadow: 0 6px 16px rgba(10,102,232,0.35);
}
.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (min-width: 900px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust { display: flex; gap: 13px; align-items: flex-start; }
.trust .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #EDF5FF; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.trust b { display: block; color: var(--ink); font-size: 0.97rem; }
.trust span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Tarifs ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--bg); font-size: 0.97rem; }
.price-table th { background: var(--navy-2); color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-table td.p { font-weight: 800; color: var(--ink); white-space: nowrap; }
.price-table td.n { color: var(--muted); font-size: 0.86rem; }
.price-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.price-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Avis ---------- */
.review { display: flex; flex-direction: column; gap: 10px; }
.review .stars { font-size: 0.95rem; }
.review p { font-size: 0.95rem; color: var(--text); font-style: italic; }
.review .who { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.review .who span { color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--ink);
  list-style: none; position: relative; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Zones / villes ---------- */
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.city-chip {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 0.92rem;
  transition: 0.15s;
}
.city-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; background: #EDF5FF; }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(34,176,240,0.3), transparent 60%),
    linear-gradient(150deg, #071D35, #0B3055);
  color: #C9DEF1; border-radius: 24px; padding: 48px 28px; text-align: center;
}
.cta-final h2 { color: #fff; margin-bottom: 12px; }
.cta-final p { max-width: 560px; margin: 0 auto 26px; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Contenu éditorial ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 38px 0 14px; }
.prose p { margin-bottom: 14px; }
.prose strong { color: var(--ink); }
.breadcrumbs { font-size: 0.84rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy); color: #9DB8D2; padding: 56px 0 110px; font-size: 0.92rem;
}
footer.site h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.04em; }
footer.site a { color: #9DB8D2; display: inline-block; padding: 3px 0; }
footer.site a:hover { color: #7FC4F8; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; padding-bottom: 4px; } }
.footer-brand img { height: 44px; margin-bottom: 12px; }
.footer-phone { font-size: 1.25rem; font-weight: 800; color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 22px; font-size: 0.8rem; color: #6E8DAB; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Barre mobile sticky (call + devis) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(8,40,80,0.12);
}
.sticky-bar .btn { padding: 13px 10px; font-size: 0.95rem; }
.sticky-wa {
  width: 48px; height: 48px; border-radius: 12px; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sticky-wa:hover { background: #1da851; text-decoration: none; color: #fff; }
@media (min-width: 980px) { .sticky-bar { display: none; } }

/* ---------- Bouton WhatsApp flottant (desktop) ---------- */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 94;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wa-fab:hover { background: #1da851; color: #fff; text-decoration: none; transform: scale(1.06); }
@media (min-width: 980px) { .wa-fab { display: flex; } }

/* ---------- Modale exit intent ---------- */
.modal-veil {
  position: fixed; inset: 0; background: rgba(6,24,43,0.65); z-index: 120;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-veil.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; max-width: 440px; width: 100%;
  padding: 30px; position: relative; box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease;
}
.modal h3 { font-size: 1.35rem; margin-bottom: 8px; }
.modal p { font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1; }

/* ---------- Bannière consentement ---------- */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  background: var(--navy); color: #C9DEF1; padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  display: none; font-size: 0.88rem;
}
.consent-banner.show { display: block; }
.consent-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Divers ---------- */
.checklist { list-style: none; margin: 18px 0; }
.checklist li { padding: 7px 0 7px 34px; position: relative; color: var(--text); font-size: 0.99rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px;
  border-radius: 50%; background: #E8F8F0;
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 15px; width: 10px; height: 6px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.hero .checklist li { color: #C9DEF1; }
.pill-note {
  display: inline-flex; align-items: center; gap: 8px; background: #E8F8F0; color: #0A7A48;
  font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 7px 16px;
}
.anchor-offset { scroll-margin-top: 90px; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
