/* Mieux Assurer — feuille de style unique du site statique.
 * Mêmes noms de variables que les sites ADPO et Babylone (le formulaire de devis s'en sert),
 * aux couleurs de Mieux Assurer (rose #c93388). */
:root {
  --blue-900: #3a1430;
  --blue-700: #c93388;
  --blue-500: #d9579f;
  --blue-50: #fbeef5;
  --ice: #fbf7f9;
  --orange: #c93388;
  --orange-dark: #a3266d;
  --ink: #2a2328;
  --muted: #6b5f67;
  --line: #eadde4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(58, 20, 48, .08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue-900); }
h1, h2, h3 { line-height: 1.2; color: var(--blue-900); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.2rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
strong { color: var(--blue-900); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; border: 0; cursor: pointer; font: inherit;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .15s, background .15s, color .15s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(201, 51, 136, .3); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border: 2px solid currentColor; color: var(--orange-dark); background: none; }
.btn-ghost:hover { background: var(--blue-50); color: var(--orange-dark); }
.btn-light { background: #fff; color: var(--orange-dark); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-900); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: .5em .75em; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); background: var(--blue-50); }
.nav .btn { margin-left: 8px; color: #fff; padding: .65em 1.2em; }
.nav .btn:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--blue-900); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; justify-content: center; border-radius: 999px; border: 0; }
}
@media (max-width: 420px) { .brand img { height: 42px; } .header-inner { min-height: 66px; } }

/* ---------- Héros (accueil) ---------- */
.hero { background: radial-gradient(1100px 480px at 90% 0, #f8d9ea 0, transparent 60%), var(--ice); padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-dark); background: #fbe3f0; padding: .35em .8em; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { border-radius: 22px; box-shadow: 0 18px 40px rgba(58, 20, 48, .18); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--blue-900); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: .4em; }
@media (max-width: 820px) { .hero { padding: 32px 0 44px; } .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-art { order: -1; max-height: 260px; width: 100%; } }

/* ---------- Page intérieure ---------- */
.page-head { background: var(--ice); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-head .lead { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 46em; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--ice); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-title h2 { margin-top: 0; }
.section-title p { color: var(--muted); margin: 0; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split h2 { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split > img { max-height: 280px; } }
.parrainage-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--blue-50); border: 1px solid #f2cfe2; border-radius: 22px; padding: 32px; }
.parrainage-band h2 { margin: 0 0 .4rem; }
.parrainage-band p { margin: 0; max-width: 40em; color: var(--muted); }
.parrainage-band > div:nth-child(2) { flex: 1; min-width: 240px; }
.parrainage-band .note { margin-top: .5em; font-size: .82rem; }
.prime { flex: none; width: 120px; height: 120px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(201, 51, 136, .35); }
.prime strong { color: #fff; font-size: 2.1rem; line-height: 1; }
.prime span { font-size: .85rem; font-weight: 700; }
.callout { border-left: 4px solid var(--orange); background: var(--blue-50); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.6em; }
.callout p { margin: 0; }
.callout .note { margin-top: .5em; }

/* ---------- Contenu éditorial ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 0 64px; }
.layout.single { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 32px; } }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { max-width: 48em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.figure-large { border-radius: 18px; margin: 0 0 28px; width: 100%; }
.note { font-size: .9rem; color: var(--muted); }
.aside { display: flex; flex-direction: column; gap: 20px; }
.aside .card { padding: 22px; font-size: .95rem; }
.aside .card h2 { font-size: 1.12rem; margin: 0 0 .7rem; }
.aside .cta-card { background: var(--orange); color: #fff; border: 0; }
.aside .cta-card h2, .aside .cta-card strong { color: #fff; }

/* ---------- Formulaires contact et parrainage ---------- */
.form-site { margin: 0 0 24px; }
.form-site fieldset.card { border: 1px solid var(--line); margin: 0 0 20px; padding: 18px 22px 6px; box-shadow: none; background: var(--ice); }
.form-site legend { font-weight: 800; color: var(--blue-900); padding: 0 8px; margin-left: -8px; }
.field { margin: 0 0 16px; flex: 1; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--blue-900); margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field-md { max-width: 280px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .field { min-width: 220px; }
.form-site input[type="text"], .form-site input[type="email"], .form-site input[type="tel"], .form-site textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .72em .85em;
  border: 1.5px solid #dcc7d3; border-radius: 10px; background: #fff; min-height: 48px;
}
.form-site textarea { resize: vertical; }
.form-site input:focus, .form-site textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(201, 51, 136, .15); }
.form-site input:user-invalid { border-color: #d24a3c; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; margin: 8px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Interlocuteur (page contact) */
.aside .interlocuteur { display: flex; gap: 16px; align-items: center; }
.interlocuteur img { width: 96px; height: 128px; object-fit: cover; border-radius: 12px; flex: none; }
.interlocuteur p { margin: 0; color: var(--muted); }

/* Carte Google Maps chargée au clic (page contact) */
.carte { position: relative; aspect-ratio: 4 / 3; max-height: 420px; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--blue-50); }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte-attente { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--orange); }
.carte-attente p { margin: .3em 0; color: var(--ink); }
.carte-attente .note { max-width: 30em; }
@media (max-width: 520px) { .carte { aspect-ratio: auto; min-height: 340px; } }

/* ---------- Bandeau d'appel et pied de page ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange), #8e1f5d); color: #fbe3f0; padding: 44px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; }
.site-footer { background: #222; color: #b9b0b5; font-size: .92rem; padding: 48px 0 24px; }
.site-footer a { color: #f1e6ec; text-decoration: none; }
.site-footer a:hover { color: #f7a8d4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35em 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
