@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.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;
}
/* Site public — Fonds Funéraire Essakina */
:root {
    --green: #101a6b; --green-2: #2c3a99; --green-soft: #eceef7; --gold: #5c6499; --gold-soft: #eef0f7; /* couleurs du logo : bleu marine #101a6b, gris-bleu #a5abc7 */
    --ink: #0e1440; --text: #3d4468; --muted: #6b7090; --line: #e2e4ee; --cream: #f6f7fb; --white: #fff;
    --danger: #b42318; --radius: 16px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --num: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; /* chiffres : police lisible */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--cream); font-size: 16px; line-height: 1.6; }
a { color: var(--green); }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 18px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section { padding: 80px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(16,26,107,.25); }
.btn-primary:hover { background: #0b1250; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-ghost { border-color: rgba(16,26,107,.35); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green-soft); }
.btn-light { background: #fff; color: var(--green); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* En-tête */
.top-strip { background: var(--green); color: #dfe3f3; font-size: 13px; }
.top-strip .wrap { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.top-strip a { color: #fff; font-weight: 600; text-decoration: none; }
.header { background: rgba(246,247,251,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 46px; height: 46px; }
.brand .brand-mark { width: 50px; height: auto; flex: none; }
.brand .n1 { font-size: 13px; color: var(--muted); line-height: 1; }
.brand .n2 { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.05; color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green); }
.header-cta { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
    .nav, .header-cta .btn-ghost { display: none; }
    .burger { display: block; }
    .header-cta { margin-left: 0; }
    .nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); padding: 16px 20px 22px; border-bottom: 1px solid var(--line); gap: 14px; }
}

/* Hero */
/* Bannière d'accueil */
.banner { background: var(--cream); padding: 28px 0 0; line-height: 0; }
.banner picture { display: block; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(14,20,64,.10); }
.banner img { display: block; width: 100%; height: auto; }
.banner + .hero { padding-top: 48px; }
@media (max-width: 700px) {
    .banner { padding: 0; }
    .banner .wrap { padding: 0; }
    .banner picture { border-radius: 0; border: 0; box-shadow: none; }
    .banner img { aspect-ratio: 900 / 576; }
}
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; background:
    radial-gradient(900px 400px at 85% -10%, rgba(165,171,199,.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(44,58,153,.14), transparent 60%), var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.ayah { font-family: "Amiri", serif; font-size: 30px; color: var(--green); direction: rtl; line-height: 1.6; }
.ayah-fr { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.hero p.lead { font-size: 19px; color: var(--text); max-width: 560px; margin: 18px 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero .trust b { color: var(--ink); display: block; font-size: 18px; font-family: var(--num); font-weight: 700; }
.urgence-card { background: var(--green); color: #eceef7; border-radius: 24px; padding: 30px; box-shadow: 0 30px 60px rgba(16,26,107,.25); position: relative; }
.urgence-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; pointer-events: none; }
.urgence-card h3 { color: #fff; font-family: var(--serif); font-size: 26px; }
.urgence-card .tel { display: block; font-size: 30px; font-weight: 700; color: #fff; text-decoration: none; margin: 10px 0 4px; letter-spacing: .02em; }
.urgence-card ul { padding-left: 18px; margin: 16px 0 0; font-size: 15px; }
.urgence-card li { margin-bottom: 6px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 44px 0 60px; } }

/* Engagements */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Formules */
.bg-white { background: #fff; }
/* Deux rangées symétriques ; dans une rangée, les cartes partagent les mêmes lignes (subgrid)
   pour aligner titres, prix, frais, listes et boutons. */
.packs-group + .packs-group { margin-top: 44px; }
.packs-group-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 26px; text-align: center; }
.packs-group-head span { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.packs-group-head span::before, .packs-group-head span::after { content: ""; width: 42px; height: 1.5px; background: var(--gold); opacity: .6; }
.packs-group-head small { font-size: 14px; color: var(--muted); }
.packs { --col: calc((100% - 2 * 22px) / 3); display: grid; grid-template-columns: repeat(3, var(--col)); grid-auto-rows: auto; gap: 22px; justify-content: center; }
.packs-2 { grid-template-columns: repeat(2, var(--col)); }
.packs-1 { grid-template-columns: var(--col); }
.pack { background: var(--cream); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s;
        display: flex; flex-direction: column; }
@supports (grid-template-rows: subgrid) {
    .packs { grid-template-rows: repeat(6, auto); }
    .pack { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .pack .price, .pack .btn { align-self: end; } /* aligne prix et boutons d'une carte à l'autre */
}
.pack-featured { border-color: var(--green-2); box-shadow: 0 18px 40px -18px rgba(16,26,107,.35); }
.pack:hover { border-color: var(--green-2); box-shadow: 0 20px 40px rgba(14,20,64,.08); transform: translateY(-3px); }
.pack .tag { position: absolute; top: -12px; left: 22px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.pack h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.pack .who { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pack .price { font-family: var(--num); font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: var(--green); line-height: 1; margin: 18px 0 6px; }
.pack .price small { font-family: Inter, sans-serif; font-size: 15px; color: var(--muted); font-weight: 500; }
.pack .fee { white-space: nowrap; font-size: 13px; color: #4a5287; background: var(--gold-soft); border-radius: 8px; padding: 4px 9px; display: inline-block; margin-top: 6px; font-weight: 600; }
.pack .fee.none { background: var(--green-soft); color: var(--green); }
.pack ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 14.5px; flex: 1; border-top: 1px solid var(--line); padding-top: 14px; }
.pack .btn { width: 100%; justify-content: center; }
.pack li { padding: 5px 0 5px 26px; position: relative; }
.pack li::before { content: "✓"; position: absolute; left: 0; color: var(--green-2); font-weight: 700; }
.pack li.no { color: #9a9fbb; }
.pack li.no::before { content: "–"; color: #b8bcd2; }
@media (max-width: 900px) {
    .packs, .packs-2, .packs-1 { grid-template-columns: minmax(0, 560px); }
    .pack { grid-row: auto; display: flex; }
    .pack .price, .pack .btn { align-self: auto; }
    .packs { grid-template-rows: none; }
}

/* Calculateur */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(14,20,64,.07); }
.calc-form { padding: 36px; }
.calc-res { background: linear-gradient(160deg, var(--green), #0b1250); color: #dfe3f3; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.calc-res h3 { color: #fff; font-family: var(--serif); font-size: 30px; }
.calc-res .amount { font-family: var(--num); font-size: 44px; color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0; }
.calc-res .note { font-size: 14px; opacity: .85; }
@media (max-width: 800px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc-form, .calc-res { padding: 24px 20px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field .req::after { content: " *"; color: var(--danger); }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s; }
/* Champs date : sur mobile (Safari iOS surtout) leur largeur minimale native débordait de l'écran */
input[type=date].input { display: block; min-width: 0; max-width: 100%; min-height: 48px; -webkit-appearance: none; appearance: none; }
input[type=date].input::-webkit-date-and-time-value { text-align: left; }
.calc-form, .calc-form .field { min-width: 0; }
.input:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(44,58,153,.12); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 90px; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px; text-align: center; cursor: pointer; font-weight: 600; font-size: 15px; background: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; color: var(--green); }
.stepper output { min-width: 40px; text-align: center; font-size: 22px; font-weight: 700; color: var(--ink); }

/* Étapes « comment ça marche » */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: #4a5287; font-weight: 700; font-family: var(--num); font-size: 18px; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text); }

/* Bandeau CTA + pied de page */
.cta-band { background: linear-gradient(135deg, var(--green), #0b1250); color: #dfe3f3; border-radius: 28px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.footer { background: #0b1033; color: #b8bdd8; padding: 56px 0 26px; margin-top: 80px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer a { color: #eceef7; text-decoration: none; }
.footer a.btn-light { color: var(--green); } /* bouton lisible sur fond sombre */
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr; } }

/* Inscription (assistant) */
.wizard { max-width: 860px; margin: 0 auto; }
.progress-steps { display: flex; gap: 6px; margin: 0 0 26px; }
.progress-steps .ps { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.progress-steps .ps::before { content: ""; display: block; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 8px; }
.progress-steps .ps.on { color: var(--green); }
.progress-steps .ps.on::before { background: var(--green-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: 0 20px 40px rgba(14,20,64,.05); }
.panel h2 { font-size: 30px; margin-bottom: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 0 18px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .panel { padding: 22px; } }
.pack-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pack-choice { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; display: block; background: #fff; }
.pack-choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(44,58,153,.12); }
.pack-choice input { margin-right: 6px; accent-color: var(--green); }
.pack-choice .p { font-family: var(--num); font-size: 22px; color: var(--green); font-weight: 700; letter-spacing: -.01em; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; font-size: 15px; }
.alert.err { background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); }
.alert.info { background: var(--green-soft); border: 1px solid #d3d7ec; color: #0b1250; }
.alert.gold { background: var(--gold-soft); border: 1px solid #d8dbea; color: #3f4677; }
.child-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr .7fr auto; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.child-row .field { margin: 0; }
.child-row .rm { background: none; border: 0; color: var(--danger); font-size: 22px; cursor: pointer; padding: 10px; }
@media (max-width: 640px) { .child-row { grid-template-columns: 1fr 1fr; } }
.recap { width: 100%; border-collapse: collapse; font-size: 15px; }
.recap td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.recap td:first-child { color: var(--muted); width: 38%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-box { background: var(--cream); border: 1.5px dashed var(--gold); border-radius: 16px; padding: 22px; }
.pay-box .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pay-box .row:last-child { border-bottom: 0; }
.pay-box b { color: var(--ink); }
@media print { .header, .top-strip, .footer, .no-print { display: none !important; } body { background: #fff; } }

/* Charte & engagements */
.charte h3 { font-family: var(--serif); font-size: 26px; margin: 28px 0 8px; }
.charte h4 { font-size: 17px; color: var(--green); margin: 20px 0 4px; }
.charte-list { margin: 6px 0 10px; padding-left: 22px; }
.charte-list li { margin: 3px 0; }
.charte-note { background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 15px; color: #3f4677; }
.consents { display: grid; gap: 10px; }
.consents .check { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.consents .check:has(input:checked) { border-color: var(--green-2); background: var(--green-soft); }
.sign-pad { position: relative; border: 2px solid var(--green-2); border-radius: 14px; background: #fff; height: 210px; overflow: hidden;
            box-shadow: 0 0 0 4px rgba(44,58,153,.10), inset 0 2px 6px rgba(14,20,64,.05); }
.sign-pad.signed { border-color: var(--green); }
.sign-pad.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sign-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9a9fbb; font-size: 15px; pointer-events: none; }
.sign-hint[hidden] { display: none; }
.sign-pad::after { content: "✕"; position: absolute; left: 20px; right: 20px; bottom: 44px; border-bottom: 1.5px solid #cfd2e3; color: #b8bcd2; font-size: 16px; line-height: 1; padding-bottom: 4px; pointer-events: none; }
.sign-clear { position: absolute; top: 10px; right: 10px; z-index: 2; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.alert.info { background: var(--green-soft); border: 1px solid #d3d7ec; color: var(--green); }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.about p { color: var(--text); margin: 12px 0 18px; }
.about-points { display: grid; gap: 10px; }
.about-points div { background: var(--cream); border-radius: 14px; padding: 12px 16px; border-left: 4px solid var(--green-2); }
.about-points b { display: block; color: var(--ink); }
.about-points span { font-size: 14px; color: var(--muted); }
.about-points .about-warn { border-left-color: var(--gold); background: var(--gold-soft); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; padding: 24px; } }

/* Lisibilité des chiffres */
body, h1, h2, h3 { font-variant-numeric: lining-nums; }
.pack .price, .calc-res .amount, .pack-choice .p, .pay-box b, .recap td, .urgence-card .tel, .top-strip a { font-variant-numeric: lining-nums tabular-nums; }
.urgence-card .tel { font-family: var(--num); letter-spacing: 0; }

/* Smartphone : pas de bandeau du haut, logo + « Essakina » seuls dans l'en-tête */
@media (max-width: 900px) {
    .top-strip { display: none; }
    .header .brand .n1 { display: none; }
}
/* Site public Essakina — couche « moderne » (chargée après site.css)
   Animations, en-tête dynamique, cartes, et ergonomie smartphone (menu plein écran,
   carrousel des formules, frise des étapes, barre d'actions en bas). */

:root {
    --grad: linear-gradient(135deg, #101a6b 0%, #2c3a99 100%);
    --grad-deep: linear-gradient(150deg, #0b1250 0%, #101a6b 55%, #2c3a99 120%);
    --shadow-sm: 0 1px 2px rgba(14,20,64,.05), 0 2px 8px rgba(14,20,64,.04);
    --shadow-md: 0 10px 30px -10px rgba(14,20,64,.18);
    --shadow-lg: 0 30px 60px -20px rgba(14,20,64,.28);
    --ease: cubic-bezier(.2,.8,.2,1);
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #d9ddf2; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(44,58,153,.35); outline-offset: 2px; }
section[id] { scroll-margin-top: 80px; }

/* ── Apparition au défilement ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ── Boutons ── */
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); box-shadow: 0 10px 24px -8px rgba(16,26,107,.55); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 30px -8px rgba(16,26,107,.6); transform: translateY(-2px); }
.btn-ghost { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green-2); background: #fff; }
.btn-urgence { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }

/* ── En-tête dynamique ── */
.header { background: rgba(246,247,251,.75); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: transparent; transition: box-shadow .25s, background .25s, border-color .25s; }
.header .wrap { transition: height .25s var(--ease); }
.header.scrolled { background: rgba(255,255,255,.9); border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(14,20,64,.18); }
.header.scrolled .wrap { height: 64px; }
.brand .brand-mark { transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.04); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav-extra { display: none; }

/* Burger animé */
.burger { width: 44px; height: 44px; border-radius: 12px; font-size: 0; position: relative; padding: 0; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ── Bannière & hero ── */
.banner { background: transparent; }
.banner picture { border: 0; box-shadow: var(--shadow-lg); }
.banner img { transition: transform 1.2s var(--ease); }
.banner picture:hover img { transform: scale(1.015); }
.hero { background:
    radial-gradient(700px 380px at 90% 0%, rgba(165,171,199,.28), transparent 65%),
    radial-gradient(600px 380px at 0% 100%, rgba(44,58,153,.16), transparent 65%), var(--cream); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; animation: float 14s ease-in-out infinite alternate; }
.hero::before { width: 320px; height: 320px; background: #c7cdf0; top: -80px; right: 8%; }
.hero::after { width: 260px; height: 260px; background: #dfe3f5; bottom: -60px; left: 4%; animation-delay: -6s; }
@keyframes float { to { transform: translate(30px, 24px) scale(1.08); } }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { letter-spacing: -.01em; }
.hero .trust { gap: 12px; }
.hero .trust > div { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); }
.urgence-card { background: var(--grad-deep); border-radius: 28px; overflow: hidden; }
.urgence-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.urgence-card .tel { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 10px 16px; font-size: 26px; margin: 12px 0 0; transition: background .2s, transform .2s var(--ease); position: relative; z-index: 1; }
.urgence-card .tel:hover { background: rgba(255,255,255,.18); transform: translateX(3px); }
.urgence-card ul { position: relative; z-index: 1; margin-top: 18px; }

/* ── Titres de section ── */
.eyebrow { display: inline-block; background: #e7e9f6; color: #3a4380; border-radius: 999px; padding: 5px 14px; font-size: 12px; letter-spacing: .1em; }
.calc-res .eyebrow { background: rgba(255,255,255,.12); }

/* ── Engagements ── */
.feature { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfd4ee; }
.feature .ic { background: linear-gradient(135deg, #eceef9, #dfe3f5); border-radius: 16px; transition: transform .35s var(--ease); }
.feature:hover .ic { transform: rotate(-6deg) scale(1.08); }
.about { border-radius: 28px; box-shadow: var(--shadow-sm); }
.about-points div { transition: transform .2s var(--ease); }
.about-points div:hover { transform: translateX(4px); }

/* ── Formules ── */
.pack { background: #fff; border-radius: 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pack-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.pack .tag { background: var(--grad); box-shadow: 0 6px 14px -4px rgba(16,26,107,.5); }
.pack .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack .price small { -webkit-text-fill-color: var(--muted); }
.packs { position: relative; } /* repère des positions du carrousel */
.car-dots { display: none; }

/* ── Calculateur ── */
.calc { border-radius: 28px; box-shadow: var(--shadow-lg); border: 0; }
.calc-res { background: var(--grad-deep); position: relative; overflow: hidden; }
.calc-res::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.calc-res .amount { transition: transform .3s var(--ease); }
.seg label { transition: border-color .2s, background .2s, transform .15s; }
.seg label:active { transform: scale(.97); }
.stepper button { transition: background .15s, transform .15s; }
.stepper button:hover { background: var(--green-soft); }
.stepper button:active { transform: scale(.92); }

/* ── Étapes : frise ── */
.steps { position: relative; }
.step { border-radius: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -6px rgba(16,26,107,.5); }

/* ── FAQ ── */
.faq details { border-radius: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { border-color: #cfd4ee; box-shadow: var(--shadow-md); }
.faq summary { align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); transition: transform .3s var(--ease), background .2s, color .2s; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); background: var(--green); color: #fff; }
.faq details[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ── Bandeau final & pied de page ── */
.cta-band { background: var(--grad-deep); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.08), transparent 30%); animation: spin 18s linear infinite; pointer-events: none; }
.cta-band > * { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { background: radial-gradient(800px 300px at 80% 0%, rgba(44,58,153,.35), transparent 70%), #0b1033; }
.footer a:not(.btn) { transition: color .2s; }
.footer a:not(.btn):hover { color: #fff; text-decoration: underline; }

/* ── Formulaires (inscription) ── */
.panel { border-radius: 28px; box-shadow: var(--shadow-md); }
.input { transition: border-color .2s, box-shadow .2s; }

/* ── Haut de page & barre d'actions ── */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.m-actionbar { display: none; }

/* ═══════════════ Tablette & smartphone ═══════════════ */
@media (max-width: 960px) {
    /* Menu plein écran */
    .header .wrap { height: 64px; gap: 12px; }
    .header-cta { margin-left: auto; }
    .burger { margin-left: 0; }
    .nav { display: flex !important; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; flex-direction: column; gap: 0; margin: 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
    .nav.open { position: fixed; top: 64px; bottom: 0; gap: 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); background: #fff; opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); border: 0; }
    .nav a { font-size: 19px; font-weight: 600; color: var(--ink); padding: 16px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
    .nav a::after { position: static; content: "›"; height: auto; background: none; transform: none; color: var(--accent, #a5abc7); font-size: 24px; font-weight: 400; }
    .nav.open > a { animation: navIn .4s var(--ease) both; }
    .nav.open > a:nth-child(2) { animation-delay: .04s; } .nav.open > a:nth-child(3) { animation-delay: .08s; } .nav.open > a:nth-child(4) { animation-delay: .12s; } .nav.open > a:nth-child(5) { animation-delay: .16s; } .nav.open > a:nth-child(6) { animation-delay: .2s; }
    @keyframes navIn { from { opacity: 0; transform: translateX(-14px); } }
    .nav-extra { display: grid; gap: 10px; margin-top: 22px; }
    .nav-extra .btn { width: 100%; padding: 15px; font-size: 16px; border-bottom: 0; }
    .nav-extra .btn::after { display: none; }
    .nav-extra .btn { justify-content: center; font-size: 16px; }
    .nav-extra .btn-primary { color: #fff; }
    .nav-extra .btn-urgence { color: #9f1239; }
    body.menu-open { overflow: hidden; }
    /* le flou d'arrière-plan enfermerait le menu fixe dans l'en-tête : fond opaque à la place */
    .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246,247,251,.97); }
    .header.scrolled, body.menu-open .header { background: #fff; }
}

@media (max-width: 760px) {
    body { font-size: 15.5px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .wrap { padding: 0 18px; }
    .section { padding: 54px 0; }
    .section-head { margin-bottom: 28px; }
    h2 { font-size: 30px; }
    .header-cta { display: none; }
    .burger { margin-left: auto; }
    .brand .brand-mark { width: 42px; }
    .brand .n2 { font-size: 22px; }

    /* Hero */
    .banner + .hero { padding-top: 30px; }
    .hero { padding: 30px 0 40px; text-align: center; }
    .hero .wrap { gap: 28px; }
    .ayah { font-size: 26px; text-align: center; }
    .ayah-fr { font-size: 13px; }
    .hero h1 { font-size: 34px; }
    .hero p.lead { font-size: 16.5px; margin: 14px auto 22px; }
    .hero .ctas { flex-direction: column; }
    .hero .ctas .btn { width: 100%; padding: 15px; }
    .hero .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; font-size: 12px; line-height: 1.35; }
    .hero .trust > div { padding: 10px 6px; border-radius: 14px; }
    .hero .trust b { font-size: 15px; }
    .urgence-card { text-align: left; padding: 24px 20px; border-radius: 24px; }
    .urgence-card .tel { font-size: 24px; justify-content: center; }
    .urgence-card ul { font-size: 14px; }

    /* Engagements en tuiles 2 × 2 */
    .features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature { padding: 16px 14px; border-radius: 18px; }
    .feature .ic { width: 42px; height: 42px; font-size: 21px; margin-bottom: 10px; }
    .feature h3 { font-size: 15px; }
    .feature p { font-size: 13px; line-height: 1.45; }
    .about { padding: 22px 18px; border-radius: 22px; gap: 20px; }
    .about .btn { width: 100%; }

    /* Formules en carrousel */
    .packs, .packs-2, .packs-1 { display: flex !important; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; scroll-padding: 0 18px; gap: 14px; margin: 0 -18px; padding: 16px 18px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .packs::-webkit-scrollbar { display: none; }
    .pack { flex: 0 0 84%; scroll-snap-align: start; padding: 24px 20px 20px; }
    .packs-1 .pack { flex-basis: 100%; }
    .pack:hover { transform: none; }
    .pack h3 { font-size: 25px; }
    .pack .price { font-size: 34px; }
    .pack ul { font-size: 14px; margin: 14px 0 18px; }
    .packs-group-head span { font-size: 22px; }
    .car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
    .car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cfd3e3; cursor: pointer; transition: width .3s var(--ease), background .3s; }
    .car-dots button.on { width: 24px; background: var(--green); }

    /* Calculateur */
    .calc { border-radius: 24px; }
    .calc-res { text-align: center; }
    .calc-res .btn { width: 100%; white-space: normal; }
    .stepper { justify-content: center; }
    .stepper button { width: 52px; height: 52px; }

    /* Étapes en frise verticale */
    .steps { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
    .steps::before { content: ""; position: absolute; left: 23px; top: 20px; bottom: 30px; width: 2px; background: linear-gradient(var(--green-2), #d9ddf2); }
    .step { background: none; border: 0; box-shadow: none; padding: 0 0 22px 58px; }
    .step:hover { transform: none; box-shadow: none; }
    .step::before { position: absolute; left: 0; top: 0; margin: 0; width: 40px; height: 40px; }
    .step h3 { padding-top: 8px; }

    /* FAQ, bandeau, pied */
    .faq details { padding: 15px 16px; }
    .faq summary { font-size: 15px; }
    .cta-band { padding: 30px 22px; border-radius: 24px; text-align: center; justify-content: center; }
    .cta-band .btn { width: 100%; }
    .footer { margin-top: 54px; padding: 40px 0 22px; text-align: center; }
    .footer .brand { justify-content: center; }
    .footer p { margin-left: auto; margin-right: auto; }
    .footer .copy { justify-content: center; text-align: center; }

    /* Barre d'actions en bas */
    .m-actionbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(14,20,64,.2); transform: translateY(110%); transition: transform .35s var(--ease); }
    body.past-hero .m-actionbar { transform: none; }
    body.menu-open .m-actionbar { transform: translateY(110%); }
    .m-actionbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; padding: 13px 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
    .m-actionbar .ab-call { flex: .8; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
    .m-actionbar .ab-main { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(16,26,107,.6); }
    .to-top { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
@media print { .m-actionbar, .to-top { display: none !important; } body { padding: 0; } }
/* Site public Essakina — mise en page inspirée de essakina.be (Avada) : police Inter, arcs, bords
   arrondis, boutons 4px, sections alternées. Couleurs = celles du logo : bleu marine #101a6b,
   gris-bleu #a5abc7 / #6b7a9d (bannière) — pas de gris foncé (demande du client).
   Chargé après site.css et site-modern.css ; retirer le <link> pour revenir au thème précédent. */

:root {
    --green: #101a6b; --green-2: #1c3165; --green-soft: #eceef7;
    --gold: #6b7a9d; --gold-soft: #eef0f6; --logo-grey: #a5abc7;
    --ink: #0e1440; --text: #3d4468; --muted: #6b7090; --line: #e2e4ee; --cream: #f9f8f7;
    --navy-deep: #0b1250; --sky: #f3f4fa;
    --serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --grad: linear-gradient(180deg, #101a6b, #101a6b);
    --grad-deep: linear-gradient(160deg, #101a6b 0%, #1c3165 100%);
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(14,20,64,.05), 0 2px 8px rgba(14,20,64,.04);
    --shadow-md: 0 12px 30px -12px rgba(14,20,64,.18);
    --shadow-lg: 0 30px 60px -24px rgba(14,20,64,.30);
}

/* ── Typographie ── */
body { background: #fff; color: var(--text); letter-spacing: .015em; line-height: 1.72; }
h1, h2, h3, .brand .n2, .pack h3, .packs-group-head span, .urgence-card h3, .calc-res h3, .charte h3 {
    font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.15; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
.brand .n2 { font-size: 22px; letter-spacing: -.01em; }
::selection { background: #d9ddf2; color: var(--ink); }
:focus-visible { outline-color: rgba(16,26,107,.45); }
a { color: var(--green); }

/* Sur-titre : gris-bleu du logo, sans pastille */
.eyebrow { background: none; padding: 0; border-radius: 0; color: var(--gold); font-size: 13px; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.calc-res .eyebrow, .cta-band .eyebrow { background: none; color: #fff; }

/* ── Boutons : coins 4px, aplat bleu marine ── */
.btn { border-radius: 4px; font-weight: 500; letter-spacing: .015em; padding: 13px 29px; }
.btn-sm { padding: 8px 18px; }
.btn-primary, .btn-primary:hover { background: var(--green); box-shadow: none; }
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: #cfd2e3; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); background: #fff; }
.btn-light { color: var(--ink); }
.btn-gold { background: var(--gold); }
.btn-urgence { border-radius: 4px; }

/* ── Bandeau du haut (bleu marine) & en-tête ── */
.top-strip { background: var(--green); color: #fff; font-size: 13px; font-weight: 500; }
.top-strip .wrap { padding-top: 10px; padding-bottom: 10px; }
.top-strip a { color: #fff; }
.header { background: rgba(255,255,255,.92); }
.header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 6px 24px -14px rgba(14,20,64,.25); }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav a::after { background: var(--green); }
@media (max-width: 960px) {
    .header, .header.scrolled, body.menu-open .header { background: #fff; }
    .nav a::after { background: none; color: var(--green); }
}

/* ── Bloc d'accueil bleu très clair avec arcs (bannière + hero) ── */
.banner { background: var(--sky); padding-top: 32px; }
.banner picture { border-radius: 8px; box-shadow: 0 30px 60px -24px rgba(16,26,107,.30); }
.hero { background: var(--sky); padding-bottom: 130px;
        border-radius: 0 0 50% 50% / 0 0 70px 70px; }
.hero::before, .hero::after { filter: none; opacity: 1; animation: none; background: none; border-radius: 50%; }
.hero::before { width: 760px; height: 760px; right: -220px; top: -260px; border: 46px solid rgba(16,26,107,.06); box-shadow: inset 0 0 0 1px rgba(16,26,107,.12); }
.hero::after { width: 560px; height: 560px; right: -120px; top: -150px; left: auto; bottom: auto; border: 2px solid rgba(165,171,199,.7); }
.ayah { color: #101a6b; }
.hero .trust > div { background: #fff; border-color: #dfe2ef; border-radius: 8px; box-shadow: var(--shadow-sm); backdrop-filter: none; }
.urgence-card { background: var(--green); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(16,26,107,.45); color: #e3e6f4; }
.urgence-card::after { border-radius: 6px; border-color: rgba(255,255,255,.22); }
.urgence-card::before { background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.urgence-card .tel { border-radius: 6px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }

/* ── Sections : alternance blanc / bleu très clair ── */
.section { background: #fff; }
.section.bg-white { background: var(--sky); }
.section-head p { color: var(--muted); }

/* ── Cartes : plus sobres, coins 8px ── */
.feature, .step, .faq details, .about, .panel, .calc, .pack, .pack-choice, .consents .check { border-radius: 8px; }
.feature { border-color: var(--line); }
.feature:hover { border-color: #c9cde3; }
.feature .ic { background: var(--gold-soft); border-radius: 50%; }
.about { border-color: var(--line); }
.about-points div { background: var(--sky); border-left-color: var(--green); border-radius: 4px; }
.about-points .about-warn { border-left-color: var(--gold); background: var(--gold-soft); }

/* Formules */
.pack { border-color: var(--line); }
.pack:hover { border-color: var(--green); }
.pack-featured { border: 2px solid var(--green); background: #fff; }
.pack .tag { background: var(--gold); border-radius: 4px; box-shadow: none; }
.pack .price { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.pack .fee { background: var(--sky); color: var(--green-2); border-radius: 4px; }
.pack .fee.none { background: var(--gold-soft); color: #1c3165; }
.pack li::before { color: var(--gold); }
.packs-group-head span { font-size: 24px; }
.packs-group-head span::before, .packs-group-head span::after { background: var(--gold); opacity: 1; }

/* Calculateur : résultat sur fond bleu marine */
.calc { border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.calc-res { background: linear-gradient(160deg, #101a6b, #1c3165); color: #dfe3f3; }
.calc-res::after { width: 360px; height: 360px; right: -150px; bottom: -150px; background: none; border: 2px solid rgba(255,255,255,.25); }
.calc-res .amount { color: #fff; }
.input { border-radius: 4px; border-color: #d6d9e6; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16,26,107,.14); }
.seg label, .stepper button { border-radius: 4px; }
.seg label:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }

/* Étapes */
.step::before { background: var(--green); box-shadow: none; }
@media (max-width: 760px) { .steps::before { background: linear-gradient(var(--green), #d9ddf2); } }

/* FAQ */
.faq details[open] { border-color: #c9cde3; }
.faq summary::after { background: var(--green-soft); color: var(--green); }
.faq details[open] summary::after { background: var(--green); }

/* Bandeau final : bleu + arcs */
.cta-band { background: linear-gradient(135deg, #101a6b, #1c3165); border-radius: 12px; color: #dfe3f3; }
.cta-band::before { inset: auto; width: 520px; height: 520px; left: -160px; top: -200px; border-radius: 50%; background: none; border: 40px solid rgba(255,255,255,.07); box-shadow: 0 0 0 2px rgba(255,255,255,.2); animation: none; }

/* Pied de page */
.footer { background: var(--navy-deep); color: #b8bdd8; border-radius: 50% 50% 0 0 / 60px 60px 0 0; padding-top: 80px; }
.footer a.btn-light { color: var(--ink); }

/* Inscription, charte, alertes */
.progress-steps .ps.on { color: var(--green); }
.progress-steps .ps.on::before { background: var(--green); }
.pack-choice:has(input:checked) { box-shadow: 0 0 0 3px rgba(16,26,107,.14); }
.pack-choice .p { color: var(--ink); }
.alert { border-radius: 6px; }
.alert.info { background: var(--sky); border-color: #d6daec; color: #101a6b; }
.alert.gold { background: var(--gold-soft); border-color: #d8dbea; color: #3f4677; }
.charte h4 { color: var(--green-2); }
.charte-note { background: var(--gold-soft); border-left-color: var(--gold); color: #3f4677; border-radius: 4px; }
.pay-box { border-color: var(--gold); border-radius: 8px; }
.sign-pad { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16,26,107,.10), inset 0 2px 6px rgba(14,20,64,.05); }

/* Haut de page & barre d'actions smartphone */
.to-top { background: var(--green); border-radius: 4px; }
@media (max-width: 760px) {
    .hero { padding-bottom: 80px; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
    .hero::before { width: 460px; height: 460px; right: -220px; top: -160px; border-width: 30px; }
    .hero::after { width: 340px; height: 340px; right: -160px; top: -100px; }
    .footer { border-radius: 50% 50% 0 0 / 34px 34px 0 0; padding-top: 56px; }
    .m-actionbar a { border-radius: 6px; }
    .m-actionbar .ab-main { background: var(--green); box-shadow: none; }
    .car-dots button.on { background: var(--green); }
}

/* ═══════════ Calibrage typographique ═══════════
   Une seule échelle pour tout le site public (avant : ~25 tailles différentes) :
   13 · 14 · 15 · 16 · 18 · 20 · 24 · titres fluides. Interligne serré pour les titres, aéré pour le texte. */
:root {
    --fs-xs: 13px;   /* sur-titres, mentions, étiquettes */
    --fs-sm: 14px;   /* textes secondaires, légendes */
    --fs-ui: 15px;   /* menu, boutons, textes de cartes */
    --fs-base: 16px; /* texte courant, champs de formulaire */
    --fs-md: 18px;   /* chapeaux, titres de cartes */
    --fs-lg: 20px;
    --fs-xl: 24px;   /* titres de blocs */
    --fs-h2: clamp(28px, 3vw, 38px);
    --fs-h1: clamp(32px, 4vw, 48px);
}
body { font-size: var(--fs-base); line-height: 1.7; letter-spacing: .005em; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3 { font-size: var(--fs-md); line-height: 1.3; }
.eyebrow { font-size: var(--fs-xs); letter-spacing: .14em; }
.section-head p { font-size: var(--fs-md); line-height: 1.6; }

/* En-tête */
.top-strip { font-size: var(--fs-xs); }
.brand .n1 { font-size: var(--fs-xs); }
.brand .n2 { font-size: 22px; }
.nav a { font-size: var(--fs-ui); }
.btn { font-size: var(--fs-ui); }
.btn-sm { font-size: var(--fs-sm); }

/* Accueil */
.ayah { font-size: 28px; }
.ayah-fr { font-size: var(--fs-sm); }
.hero p.lead { font-size: var(--fs-md); line-height: 1.65; }
.hero .trust { font-size: var(--fs-xs); }
.hero .trust b { font-size: var(--fs-md); letter-spacing: -.01em; }
.urgence-card h3 { font-size: var(--fs-xl); }
.urgence-card p { font-size: var(--fs-ui); }
.urgence-card .tel { font-size: 26px; }
.urgence-card ul { font-size: var(--fs-ui); }

/* Cartes d'engagement, charte */
.feature h3, .step h3 { font-size: var(--fs-md); }
.feature p, .step p { font-size: var(--fs-ui); line-height: 1.6; }
.about p { font-size: var(--fs-base); }
.about-points b { font-size: var(--fs-base); }
.about-points span { font-size: var(--fs-sm); }

/* Formules */
.packs-group-head span { font-size: var(--fs-xl); }
.packs-group-head small { font-size: var(--fs-sm); }
.pack h3 { font-size: var(--fs-xl); }
.pack .who { font-size: var(--fs-sm); }
.pack .price { font-size: 38px; }
.pack .price small { font-size: var(--fs-ui); }
.pack .fee, .pack .tag { font-size: var(--fs-xs); }
.pack ul { font-size: var(--fs-ui); }

/* Calculateur & formulaires */
.calc-res h3 { font-size: var(--fs-xl); }
.calc-res .amount { font-size: 42px; }
.calc-res .note { font-size: var(--fs-sm); }
.field label { font-size: var(--fs-sm); }
.input { font-size: var(--fs-base); } /* 16px : évite le zoom automatique sur iPhone */
.seg label { font-size: var(--fs-ui); }
.stepper output { font-size: var(--fs-lg); }
.step::before { font-size: var(--fs-md); }
.panel h2 { font-size: 28px; }
.pack-choice .p { font-size: 22px; }
.progress-steps .ps { font-size: var(--fs-xs); }
.alert, .check, .recap { font-size: var(--fs-ui); }

/* FAQ, bandeau final, pied de page */
.faq summary { font-size: 17px; line-height: 1.4; }
.faq details p { font-size: var(--fs-base); }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); }
.footer { font-size: var(--fs-ui); }
.footer h4 { font-size: var(--fs-base); }
.footer .copy { font-size: var(--fs-xs); }

/* Charte & confidentialité */
.charte h3 { font-size: 22px; }
.charte h4 { font-size: var(--fs-md); }
.charte-note { font-size: var(--fs-ui); }

/* Smartphone */
@media (max-width: 760px) {
    body { font-size: var(--fs-base); }
    h1, .hero h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    .section-head p, .hero p.lead { font-size: 17px; }
    .ayah { font-size: 24px; }
    .ayah-fr, .hero .trust { font-size: 12px; }
    .hero .trust b { font-size: var(--fs-base); }
    .urgence-card h3 { font-size: 22px; }
    .urgence-card .tel { font-size: 24px; }
    .feature h3 { font-size: var(--fs-ui); }
    .feature p { font-size: var(--fs-xs); }
    .pack h3 { font-size: 22px; }
    .pack .price { font-size: 34px; }
    .packs-group-head span { font-size: 22px; }
    .calc-res h3 { font-size: 22px; }
    .calc-res .amount { font-size: 36px; }
    .panel h2 { font-size: 24px; }
    .faq summary { font-size: var(--fs-base); }
    .brand .n2 { font-size: var(--fs-lg); }
}

/* ═══════════ Arrondi moderne (2026-10-07) ═══════════
   Boutons en pilule, cartes à grands rayons, ombres douces teintées bleu marine,
   pastilles pour sur-titres/étiquettes, légère élévation au survol. Remplace les coins 4–8px ci-dessus. */
:root {
    --r-sm: 14px;  /* champs, petits éléments */
    --r-md: 20px;  /* cartes */
    --r-lg: 28px;  /* grands blocs */
    --r-pill: 999px;
    --shadow-soft: 0 2px 6px rgba(16,26,107,.04), 0 12px 32px -12px rgba(16,26,107,.14);
    --shadow-lift: 0 4px 10px rgba(16,26,107,.05), 0 26px 50px -18px rgba(16,26,107,.28);
    --radius: var(--r-md);
}

/* Boutons & menu */
.btn, .btn-urgence { border-radius: var(--r-pill); padding: 13px 26px; }
.btn-sm { padding: 9px 18px; }
.btn-primary { box-shadow: 0 10px 22px -10px rgba(16,26,107,.6); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(16,26,107,.65); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); }
@media (min-width: 961px) {
    .nav { gap: 4px; align-items: center; }
    .nav a { padding: 8px 14px; border-radius: var(--r-pill); transition: background .2s, color .2s; }
    .nav a::after { display: none; }
    .nav a:hover { background: var(--green-soft); color: var(--green); }
}

/* Sur-titres en pastille */
.eyebrow { background: var(--green-soft); color: var(--green-2); padding: 6px 14px; border-radius: var(--r-pill); gap: 8px; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--logo-grey); }
.calc-res .eyebrow, .cta-band .eyebrow { background: rgba(255,255,255,.12); color: #fff; align-self: flex-start; }

/* Accueil */
.banner picture { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.hero .trust > div { border-radius: 18px; box-shadow: var(--shadow-soft); }
.urgence-card { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.urgence-card::after { border-radius: 20px; }
.urgence-card .tel { border-radius: 18px; }

/* Cartes */
.feature, .step, .about, .pack, .calc, .panel { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.faq details, .pack-choice, .consents .check { border-radius: var(--r-md); }
.feature, .step, .pack { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature:hover, .step:hover, .pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--green-soft), #dfe3f5); }
.about-points div { border-left: 0; border-radius: var(--r-sm); padding: 14px 18px 14px 44px; position: relative; background: var(--sky); }
.about-points div::before { content: ""; position: absolute; left: 18px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16,26,107,.1); }
.about-points .about-warn::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(107,122,157,.18); }

/* Formules */
.pack .tag { border-radius: var(--r-pill); padding: 4px 14px; background: var(--green); box-shadow: 0 6px 14px -6px rgba(16,26,107,.6); }
.pack .fee { border-radius: var(--r-pill); padding: 4px 12px; }
.pack-featured { box-shadow: var(--shadow-lift); }

/* Calculateur & formulaires */
.calc { border: 0; box-shadow: var(--shadow-lift); }
.input { border-radius: var(--r-sm); }
.seg { background: var(--sky); padding: 5px; border-radius: var(--r-pill); gap: 4px; }
.seg label { border: 0; border-radius: var(--r-pill); background: transparent; padding: 10px; }
.seg label:has(input:checked) { background: #fff; color: var(--green); box-shadow: 0 4px 12px -4px rgba(16,26,107,.25); }
.stepper button { border-radius: 50%; }
.step::before { border-radius: 14px; }

/* FAQ */
.faq details { padding: 18px 24px; }
.faq summary::after { border-radius: 50%; }

/* Bandeau final, pied de page */
.cta-band { border-radius: 32px; box-shadow: var(--shadow-lift); }

/* Inscription, charte, alertes */
.alert { border-radius: var(--r-sm); }
.charte-note { border-left: 0; border-radius: var(--r-md); padding: 16px 20px; }
.pay-box { border-radius: var(--r-md); }
.sign-pad { border-radius: var(--r-md); }
.sign-clear { border-radius: var(--r-pill); }
.progress-steps .ps::before { height: 6px; }

/* Haut de page & smartphone */
.to-top { border-radius: 50%; }
@media (max-width: 760px) {
    .banner picture { border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .feature, .step, .about, .pack, .panel, .calc { border-radius: 22px; }
    .step { box-shadow: none; }
    .urgence-card, .cta-band { border-radius: 24px; }
    .m-actionbar a { border-radius: var(--r-pill); }
    .m-actionbar { border-radius: 22px 22px 0 0; }
}

/* ═══════════ Mobile : rayon unique + menu moderne (2026-10-08) ═══════════
   Sur smartphone, boutons et widgets partagent le même arrondi (--r-m) pour une harmonie visuelle.
   Retour arrière : supprimer ce bloc. */
@media (max-width: 760px) {
    :root { --r-m: 18px; }
    /* Widgets / cartes */
    .feature, .step, .about, .pack, .panel, .calc, .urgence-card, .cta-band,
    .faq details, .pack-choice, .consents .check, .hero .trust > div,
    .charte-note, .pay-box, .sign-pad, .about-points div, .alert { border-radius: var(--r-m); }
    /* Boutons, champs, barre d'action */
    .btn, .btn-sm, .btn-urgence, .sign-clear, .m-actionbar a, .input, .seg, .urgence-card .tel { border-radius: var(--r-m); }
    .seg label { border-radius: calc(var(--r-m) - 5px); } /* concentrique au conteneur (padding 5px) */
}

/* Menu mobile : boutons arrondis modernes (même rayon que les widgets), effet d'appui */
@media (max-width: 960px) {
    .nav, .nav.open { gap: 10px; padding-top: 18px; }
    .nav > a {
        justify-content: center; text-align: center;
        font-size: 18px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2;
        color: var(--green, #101a6b); padding: 17px 20px;
        background: var(--sky, #f3f4fa); border: 1px solid #e6e8f2; border-radius: var(--r-m, 18px);
        box-shadow: 0 1px 2px rgba(16,26,107,.04);
        transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
        -webkit-tap-highlight-color: transparent;
    }
    .nav > a::before, .nav > a::after { content: none; display: none; }
    .nav > a:active, .nav > a:focus-visible {
        transform: scale(.97);
        background: linear-gradient(135deg, var(--green, #101a6b), var(--green-2, #1c3165)); color: #fff; border-color: transparent;
        box-shadow: 0 12px 24px -12px rgba(16,26,107,.6);
    }
    /* Le menu s'affiche d'un coup, sans effet d'apparition */
    .nav, .nav.open { transition: none; transform: none; }
    .nav.open > a, .nav.open .nav-extra { animation: none; }
    .nav-extra { margin-top: 14px; }
    .nav-extra .btn { font-weight: 700; font-size: 16px; padding: 17px; border-radius: var(--r-m, 18px); }
    .nav-extra .btn:active { transform: scale(.97); }
}

/* Mode application iPhone (icône écran d'accueil) : en-tête et menu sous la barre d'état / l'encoche.
   env(safe-area-inset-top) vaut 0 dans Safari normal → sans effet hors mode application. */
@media (max-width: 960px) {
    .header { padding-top: env(safe-area-inset-top); }
    .nav, .nav.open { top: calc(64px + env(safe-area-inset-top)); }
}

/* ═══════════ CECIV : ajouts propres à l'accueil (même langage visuel qu'Essakina) ═══════════ */
:root { --serif: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.brand .brand-mark { width: 50px; height: auto; flex: none; }
.btn-light-outline { border-color: rgba(255,255,255,.4); color: #fff; }

/* Carte « Secrétariat » du hero (remplace la carte d'urgence) */
.urgence-card .live { display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 2px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 600; color: #fff; }
.urgence-card .live i { width: 9px; height: 9px; border-radius: 50%; background: #a5abc7; flex: none; }
.urgence-card .live.open i { background: #5ee0a0; box-shadow: 0 0 0 4px rgba(94,224,160,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(94,224,160,0); } }
.urgence-card ul.hours { list-style: none; padding: 0; margin: 16px 0 0; }
.urgence-card ul.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; margin: 0 -12px 2px; border-radius: 10px; font-size: 15px; }
.urgence-card ul.hours li b { font-weight: 500; opacity: .85; }
.urgence-card ul.hours li.today { background: rgba(255,255,255,.14); }
.urgence-card ul.hours li.today b { opacity: 1; font-weight: 700; }
.urgence-card .addr { font-size: 14px; opacity: .8; margin-top: 4px; }

/* Cartes d'initiatives (sans prix) */
.packs.simple { grid-template-rows: none; }
.packs.simple .pack { display: flex; grid-row: auto; }
.packs.simple .pack p { color: var(--text); font-size: 15px; margin: 14px 0 22px; flex: 1; }
.packs.simple .pack .btn { margin-top: auto; }
.pack .price.txt { font-size: 28px; }

/* Bandeau fin (prières, etc.) */
.about.slim { grid-template-columns: 1fr auto; margin-top: 26px; }
.about.slim h3 { font-size: 20px; }
.about.slim p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 860px) { .about.slim { grid-template-columns: 1fr; } .about.slim .btn { width: 100%; } }

/* Widget « Quel cours d'arabe ? » */
.calc-form .intro { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.calc-res .note + .note { margin-top: 8px; }
.calc-res .tag-pill { align-self: flex-start; margin-bottom: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }

/* Contacts */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cbox { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-soft, 0 2px 6px rgba(16,26,107,.04)); }
.cbox h3 { font-size: 24px; margin-bottom: 8px; }
.crow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.crow:last-of-type { border-bottom: 0; }
.crow .ic { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; font-size: 19px; }
.crow b { display: block; color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.crow span, .crow a { color: var(--text); font-size: 15px; }
.crow a { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1px solid #c9cde3; }
.crow a:hover { border-color: var(--green); }
.cbox .mailz { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.cbox .mailz a { color: var(--green); font-weight: 600; text-decoration: none; font-size: 15px; }
.cbox .map { margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.cbox .map iframe { display: block; }
@media (max-width: 860px) { .cgrid { grid-template-columns: 1fr; } .cbox { padding: 22px 18px; border-radius: 22px; } }

/* Nous rejoindre */
.phone-big { display: inline-block; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--green); text-decoration: none; letter-spacing: -.01em; margin: 4px 0 2px; }
.about .hours-note { font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.about .btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.steps-title { text-align: center; margin: 54px 0 22px; font-size: 22px; }

/* Mobile : 4 tuiles de confiance en 2 colonnes */
@media (max-width: 760px) { .hero .trust { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 760px) { .m-actionbar .ab-call { background: var(--green-soft); color: var(--green); border-color: #d3d7ec; } }
@media (min-width: 761px) { .hero .trust { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px; }
  .hero .trust > div { padding: 12px 14px; font-size: 13px; } }
