/* Institut Al-Fawzan : site vitrine.
   Concept : papier crème, vert et or du logo, titres Montserrat comme le logotype,
   filets dorés façon manuscrit, motif géométrique discret. Mobile d'abord. */
:root {
  --bg: #fbfaf6;
  --tint: #eef4ee;
  --sand: #f4efe2;
  --panel: #ffffff;
  --ink: #17241d;
  --muted: #4f5f55;
  --green: #2c8560;
  --green-ink: #1c6746;
  --gold: #b0834a;
  --gold-ink: #7f5a27;
  --rule: #ddd6c4;
  --btn: #1c6746;
  --btn-ink: #ffffff;
  --wa: #1b7448;
  --focus: #0b5cad;
  --shadow: 0 1px 2px rgba(23,36,29,.06), 0 8px 24px rgba(23,36,29,.07);
  --f-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-slogan: "Lora", Georgia, serif;
  --f-ar: "Amiri", "Traditional Arabic", serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='%23b0834a' stroke-opacity='.32' stroke-width='1'%3E%3Crect x='14' y='14' width='44' height='44'/%3E%3Crect x='14' y='14' width='44' height='44' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a14; --tint: #14241b; --sand: #182a20; --panel: #172a20; --ink: #ece8da; --muted: #aebcb1;
    --green-ink: #6cc59b; --gold-ink: #d6ae63; --rule: #2d3f35; --btn: #e7e0c6; --btn-ink: #0c2a1d;
    --focus: #7db8f0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a14; --tint: #14241b; --sand: #182a20; --panel: #172a20; --ink: #ece8da; --muted: #aebcb1;
  --green-ink: #6cc59b; --gold-ink: #d6ae63; --rule: #2d3f35; --btn: #e7e0c6; --btn-ink: #0c2a1d;
  --focus: #7db8f0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--btn); color: var(--btn-ink); padding: 12px 18px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.ar { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; font: 600 16px/1.2 var(--f-body); padding: 13px 22px; border-radius: 8px; text-decoration: none; text-align: center; min-height: 48px; transition: filter .15s, transform .15s, box-shadow .15s; }
.btn.solid { background: var(--btn); color: var(--btn-ink); }
.btn.line { background: transparent; color: var(--green-ink); box-shadow: inset 0 0 0 2px currentColor; }
.btn.wa { background: var(--wa); color: #fff; }
.btn:hover { filter: brightness(1.1); }
.btn.sm { padding: 10px 16px; min-height: 44px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.link { font-weight: 700; color: var(--green-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--gold); }

/* En-tête collant */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; margin-right: auto; min-height: 48px; }
.brand .lg { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fbfaf6; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--rule); }
.brand .lg img { width: 66%; height: auto; display: block; }
.brand b { display: block; white-space: nowrap; font: 800 15px/1.1 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--green-ink); }
.brand small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { padding: 12px 11px; text-decoration: none; font: 600 15px/1.2 var(--f-body); border-radius: 6px; position: relative; min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { color: var(--green-ink); }
.menu a[aria-current="page"] { color: var(--green-ink); font-weight: 700; }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--gold); }
.hdr-r { display: flex; align-items: center; gap: 12px; }
.hdr-login { font-size: 14px; font-weight: 600; color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; padding: 10px 2px; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); cursor: pointer; place-items: center; padding: 0; }
.burger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
@media (max-width: 1270px) { .hdr-login { display: none; } }
@media (max-width: 1020px) {
  .js .burger { display: grid; }
  .js .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 14px; box-shadow: 0 14px 24px rgba(0,0,0,.08); }
  .js .menu.open { display: flex; }
  .js .menu a { padding: 14px 6px; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .js .menu a[aria-current="page"]::after { left: 6px; right: auto; width: 28px; bottom: 7px; }
  .menu { flex-wrap: wrap; }
  .no-js .menu a { padding-inline: 8px; }
  .no-js .top .wrap { flex-wrap: wrap; }
}
@media (max-width: 480px) { .top .hdr-r .btn { display: none; } }
@media (max-width: 400px) { .brand small { display: none; } .brand b { font-size: 14px; } }

/* Hero */
.hero-s { background: linear-gradient(180deg, var(--sand), var(--bg)); position: relative; overflow: hidden; }
.hero-s::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .7; -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 100%); mask-image: linear-gradient(100deg, transparent 38%, #000 100%); pointer-events: none; }
.hero { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding-block: 56px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1.2 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.08; color: var(--green-ink); margin-top: 16px; }
.hero p.lead { margin-top: 18px; font-size: 19px; max-width: 33em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: 15px; color: var(--muted); font-weight: 600; }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.arch { justify-self: center; width: min(100%, 340px); background: #fbfaf6; border-radius: 999px 999px 22px 22px; padding: 56px 44px 36px; box-shadow: 0 0 0 1px var(--rule), 0 0 0 10px color-mix(in srgb, #fbfaf6 55%, transparent), var(--shadow); }
.arch img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 34px 44px; }
  .arch { width: min(62%, 240px); padding: 40px 28px 24px; }
}

/* Bandeau de réassurance */
.assure-s { border-block: 1px solid var(--rule); background: var(--panel); }
.assure { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.assure li { display: flex; flex-direction: column; gap: 6px; padding: 22px 18px; border-left: 1px solid var(--rule); }
.assure li:first-child { border-left: 0; padding-left: 0; }
.assure .ico { color: var(--green); }
.assure li > div { display: grid; gap: 2px; }
.assure b { font: 700 15px/1.25 var(--f-head); color: var(--green-ink); }
.assure span { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1020px) { .assure { grid-template-columns: repeat(2, 1fr); } .assure li { border-left: 0; padding: 18px 12px 18px 0; border-top: 1px solid var(--rule); } .assure li:nth-child(-n+2) { border-top: 0; } .assure li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); } .assure li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .assure { grid-template-columns: 1fr; } .assure li { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); } .assure li:first-child { border-top: 0; } .assure li > div { display: grid; gap: 2px; } }

/* Sections */
section { padding-block: 68px; }
.sec-tint { background: var(--tint); }
.sec-sand { background: var(--sand); }
.shead { max-width: 44em; }
.shead h2, h2.t { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; color: var(--green-ink); margin-top: 10px; }
.shead .intro, .intro { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }
.more { margin-top: 28px; }
.rule2 { border: 0; border-top: 3px double var(--gold); margin: 0; }
@media (max-width: 700px) { section { padding-block: 48px; } }

/* Cartes génériques */
.cards { margin-top: 34px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; left: 24px; top: -1px; width: 44px; height: 4px; background: var(--gold); border-radius: 0 0 3px 3px; }
.card .ci { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--green-ink); display: grid; place-items: center; font: 400 30px/1 var(--f-ar); }
.card .ci .ico { width: 26px; height: 26px; }
.card h3 { font-size: 20px; font-weight: 800; color: var(--green-ink); }
.card p { color: var(--muted); font-size: 16.5px; }
.card ul { list-style: none; display: grid; gap: 8px; margin-top: 4px; font-size: 16px; }
.card ul li { padding-left: 24px; position: relative; color: var(--ink); }
.card ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .grow { flex: 1; }
.cards.two-c { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards, .cards.two-c { grid-template-columns: 1fr; } }

/* Pour qui */
.who-card .tag { font: 700 12px/1 var(--f-head); letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.parents { margin-top: 24px; background: var(--panel); border: 1px solid var(--rule); border-left: 5px solid var(--gold); border-radius: 12px; padding: 24px 26px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 40px; align-items: start; }
.parents h3 { font-size: 21px; font-weight: 800; color: var(--green-ink); }
.parents p { color: var(--muted); margin-top: 8px; }
.parents ul { list-style: none; display: grid; gap: 9px; }
.parents li { padding-left: 28px; position: relative; }
.parents li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 860px) { .parents { grid-template-columns: 1fr; } }

/* Étapes */
.steps { list-style: none; margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 4px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font: 800 22px/1 var(--f-head); margin-bottom: 14px; box-shadow: 0 0 0 5px var(--bg); position: relative; z-index: 1; }
.sec-tint .steps li::before { box-shadow: 0 0 0 5px var(--tint); }
.steps li::after { content: ""; position: absolute; top: 30px; left: 62px; right: -26px; border-top: 2px dashed var(--gold); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font: 800 19px/1.3 var(--f-head); color: var(--green-ink); }
.steps p { margin-top: 6px; color: var(--muted); }
.steps.long { grid-template-columns: 1fr; max-width: 760px; gap: 0; }
.steps.long li { padding: 0 0 28px 72px; }
.steps.long li::before { position: absolute; left: 0; top: 0; margin: 0; }
.steps.long li::after { left: 25px; right: auto; top: 58px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--gold); }
@media (max-width: 820px) {
  .steps:not(.long) { grid-template-columns: 1fr; gap: 0; }
  .steps:not(.long) li { padding: 0 0 26px 70px; }
  .steps:not(.long) li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps:not(.long) li::after { left: 25px; right: auto; top: 58px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--gold); display: block; }
  .steps:not(.long) li:last-child::after { display: none; }
}

/* Formules */
.formules { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.fcard { background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: 12px; padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.fcard h3 { font-size: 24px; font-weight: 800; color: var(--green-ink); display: flex; align-items: baseline; gap: 10px; }
.fcard h3 .ar { font: 400 26px/1 var(--f-ar); color: var(--gold-ink); }
.fcard .kick { font-weight: 700; }
.fcard .price { font: 800 38px/1 var(--f-head); color: var(--ink); }
.fcard .price small { font: 500 15px/1 var(--f-body); color: var(--muted); }
.fcard ul { list-style: none; display: grid; gap: 8px; font-size: 16px; color: var(--muted); }
.fcard ul li { padding-left: 24px; position: relative; }
.fcard ul li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.fcard .btn { margin-top: auto; }
.fcard .grow { flex: 1; align-content: start; }
.fcard .sub3 { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.fcard .sub3 div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.fcard .sub3 b { font-weight: 700; }
.fcard .sub3 span { font: 800 17px/1 var(--f-head); white-space: nowrap; }
.fcard .sub3 em { font-style: normal; color: var(--muted); font-size: 14px; display: block; font-weight: 400; }
@media (max-width: 960px) { .formules { grid-template-columns: 1fr; max-width: 560px; } }
.terms { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.terms > div { padding: 18px 22px; border-left: 1px solid var(--rule); }
.terms > div:first-child { border-left: 0; }
.terms b { display: block; font: 800 16px/1.3 var(--f-head); color: var(--green-ink); }
.terms p { margin-top: 4px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 860px) { .terms { grid-template-columns: 1fr; max-width: 560px; } .terms > div { border-left: 0; border-top: 1px solid var(--rule); } .terms > div:first-child { border-top: 0; } }
.compare { margin-top: 30px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font: 800 15px/1.2 var(--f-head); color: var(--green-ink); background: var(--tint); }
.compare tbody th { font-weight: 700; width: 20%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .n { font: 800 18px/1.1 var(--f-head); white-space: nowrap; }
.compare caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--muted); caption-side: bottom; font-size: 14px; }

/* Plateforme (schéma) */
.plat { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .ico { color: var(--green); margin-top: 2px; }
.ticks b { display: block; font: 700 17px/1.3 var(--f-head); color: var(--green-ink); }
.ticks span { color: var(--muted); font-size: 16px; }
.mock { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow), 0 0 0 8px color-mix(in srgb, var(--gold) 14%, transparent); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--tint); border-bottom: 1px solid var(--rule); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.mock-bar span { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; }
.mk .ico { color: var(--green-ink); }
.mk b { display: block; font: 700 15px/1.2 var(--f-head); }
.mk small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.mk.hl { background: color-mix(in srgb, var(--green) 10%, var(--panel)); border-color: color-mix(in srgb, var(--green) 40%, var(--rule)); }
.bar { height: 10px; border-radius: 6px; background: var(--tint); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 6px; }
.mock-cap { padding: 0 18px 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .plat { grid-template-columns: 1fr; gap: 36px; } }

/* Enseignants */
.profs { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.prof { border: 1px solid var(--rule); border-radius: 12px; padding: 20px 20px 18px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.prof .av { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--green-ink); display: grid; place-items: center; font: 800 16px/1 var(--f-head); }
.prof h3 { font: 800 18px/1.25 var(--f-head); color: var(--green-ink); }
.prof .pm { font-weight: 700; color: var(--ink); }
.prof dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; color: var(--muted); margin: 2px 0 8px; }
.prof dt { font-weight: 700; color: var(--ink); }
.prof dd { margin: 0; }
.prof .btn { margin-top: auto; align-self: flex-start; }
.note { margin-top: 24px; color: var(--muted); max-width: 70ch; }
.tchips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tchips li { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--rule); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tchips li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* Pages intérieures */
.pagehead { padding-block: 44px 8px; background: linear-gradient(180deg, var(--sand), var(--bg)); }
.pagehead .wrap { padding-bottom: 28px; }
.pagehead h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.1; color: var(--green-ink); }
.pagehead p { margin-top: 12px; color: var(--muted); max-width: 40em; font-size: 18px; }
.crumb { font: 600 14px/1.2 var(--f-body); color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--green-ink); display: inline-flex; align-items: center; min-height: 44px; }
.crumb { align-items: center; margin-bottom: 2px; }
main > section:first-of-type.pad-s { padding-top: 40px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 44px; } }
.dl { margin: 20px 0 0; display: grid; }
.dl > div { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px dotted var(--gold); }
.dl > div:first-child { border-top: 1px dotted var(--gold); }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; color: var(--muted); font-size: 16px; }
.star { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.star li { padding-left: 26px; position: relative; }
.star li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.article { max-width: 720px; }

/* FAQ */
.faq { margin-top: 28px; max-width: 800px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 600; font-size: 18px; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 500 28px/1 var(--f-body); color: var(--gold-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details .a { padding: 0 44px 20px 0; color: var(--muted); }

/* Contact */
.contact { background: var(--tint); }
.contact h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--green-ink); }
.contact .lead { margin-top: 12px; color: var(--muted); max-width: 38em; font-size: 18px; }
.who { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } }
.who .p { background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.who h3 { font-size: 21px; font-weight: 800; color: var(--green-ink); }
.who .num { font: 700 20px/1.2 var(--f-head); letter-spacing: .02em; user-select: all; }
.who p.s { color: var(--muted); font-size: 16px; }
.who .btn { margin-top: auto; align-self: flex-start; }

/* Pied de page */
.foot { background: #0f2a1d; color: #e9e4d2; padding-block: 52px 110px; }
.foot a { color: inherit; }
.foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px 40px; }
.foot .brand b { color: #fff; }
.foot .brand small { color: #b9c7bd; }
.foot .brand .lg { box-shadow: none; }
.foot p.d { margin-top: 14px; color: #c3cfc6; font-size: 15.5px; max-width: 28em; }
.foot h2 { font: 700 13px/1.2 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: #dcb878; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 2px; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 16px; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .ct b { display: block; font-weight: 600; font-size: 15px; color: #fff; }
.foot .ct a { font-weight: 600; font-size: 16.5px; letter-spacing: .01em; }
.foot .ct li { padding: 4px 0; }
.foot .ct span { display: block; color: #b9c7bd; font-size: 14px; }
.foot .soc { display: flex; flex-wrap: wrap; gap: 8px; }
.foot .soc a { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.foot .soc a:hover { background: rgba(255,255,255,.18); }
.foot .soc svg { width: 20px; height: 20px; fill: #fff; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #b9c7bd; }
.foot .legal a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
.foot :focus-visible { outline-color: #9cd0ff; }
@media (max-width: 960px) { .foot .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot .grid { grid-template-columns: 1fr; } }

/* Bouton WhatsApp flottant, discret */
.fabwrap { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); padding: 0; transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--focus), 0 4px 16px rgba(0,0,0,.3); }
.fabmenu { width: min(300px, calc(100vw - 28px)); background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.28); padding: 14px; display: grid; gap: 8px; }
.fabmenu p { font: 700 15px/1.3 var(--f-head); color: var(--green-ink); padding: 2px 2px 4px; }
.fabmenu a, .fabmenu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; text-decoration: none; padding: 11px 14px; min-height: 52px; border-radius: 9px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: 600 16px/1.25 var(--f-body); cursor: pointer; }
.fabmenu a:hover, .fabmenu button:hover { border-color: var(--green); }
.fabmenu small { font-weight: 400; font-size: 14px; color: var(--muted); }
.fabmenu .x2 { border: 0; background: none; font-size: 14px; min-height: 44px; color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }

/* Fenêtre de message */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(6,20,13,.62); display: flex; align-items: flex-end; justify-content: center; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) { .ov { align-items: center; } }
.dlg { background: var(--bg); color: var(--ink); width: 100%; max-width: 480px; border-radius: 12px; border-top: 4px solid var(--gold); padding: 22px 24px 24px; display: grid; gap: 16px; max-height: 100%; overflow-y: auto; }
.dlg h2 { font-size: 24px; font-weight: 800; color: var(--green-ink); }
.dlg .x { justify-self: end; margin: -6px -10px -10px 0; background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--muted); width: 48px; height: 48px; }
.field { display: grid; gap: 6px; }
.field label, .field .lab { font-weight: 600; font-size: 15px; }
.field input[type=text], .field input[type=number] { font: 400 17px/1.3 var(--f-body); padding: 11px 12px; border: 1px solid var(--muted); border-radius: 8px; background: transparent; color: var(--ink); width: 100%; min-height: 48px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; justify-content: center; padding: 11px 8px; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 16px; min-height: 48px; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green-ink); font-weight: 700; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.go { display: grid; gap: 10px; }
.hint { font-size: 14px; color: var(--muted); }
.hint.warn { color: var(--gold-ink); font-weight: 600; }
.pre { font-size: 15px; color: var(--muted); border: 1px dashed var(--muted); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }

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

/* ===== Refonte v3 : organisation riche (bandeau, enseignements numérotés, différences, étapes, avis, appel final) ===== */
.spr { position: absolute; }
[data-mt="0"] { margin-top: 0; } [data-mt="56"] { margin-top: 56px; } [data-mb="16"] { margin-bottom: 16px; }
.w62 { width: 62%; } .fx1 { flex: 1; }
.announce { background: #0f2a1d; color: #f2ecd9; font-size: 15px; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; padding-block: 9px; }
.announce p { display: flex; align-items: center; gap: 10px; }
.announce .dot { width: 8px; height: 8px; border-radius: 50%; background: #dcb878; flex: none; box-shadow: 0 0 0 4px rgba(220,184,120,.22); }
.announce button { background: transparent; color: #dcb878; border: 0; font: 700 15px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.announce button:hover { color: #fff; }
@media (max-width: 560px) { .announce p { font-size: 14px; } }

.sec-pad { padding-block: 84px; }
@media (max-width: 700px) { .sec-pad { padding-block: 56px; } }

/* Enseignements : grandes cartes numérotées */
.big3 { margin-top: 38px; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.big { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.big::after { content: ""; position: absolute; inset: auto -30px -30px auto; width: 150px; height: 150px; background: var(--pattern); opacity: .55; pointer-events: none; }
.big .bn { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.big .bn b { font: 800 14px/1 var(--f-head); letter-spacing: .14em; color: var(--gold-ink); }
.big .bn i { font: 400 56px/1 var(--f-ar); color: var(--gold); opacity: .85; font-style: normal; }
.big .ci { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--green-ink); display: grid; place-items: center; font: 400 32px/1 var(--f-ar); }
.big .ci .ico { width: 28px; height: 28px; }
.big h3 { font-size: 23px; font-weight: 800; color: var(--green-ink); line-height: 1.2; }
.big .sub { font: 700 13px/1.35 var(--f-head); letter-spacing: .07em; text-transform: uppercase; color: var(--gold-ink); }
.big p { color: var(--muted); font-size: 17px; position: relative; z-index: 1; }
.big dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15.5px; position: relative; z-index: 1; }
.big dt { font-weight: 700; color: var(--green-ink); } .big dd { margin: 0; color: var(--ink); }
.big .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.big > p:not(.sub):last-of-type { flex: 1; }
@media (max-width: 960px) { .big3 { grid-template-columns: 1fr; max-width: 620px; } }

/* Ce qui fait la différence : bande verte profonde */
.diff { background: #12352a; color: #efe9d6; padding-block: 84px; position: relative; overflow: hidden; }
.diff::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .22; pointer-events: none; }
.diff .wrap { position: relative; }
.diff .eyebrow { color: #dcb878; } .diff .eyebrow::before { background: #dcb878; }
.diff h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; color: #fff; margin-top: 10px; max-width: 18em; }
.d4 { margin-top: 40px; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.d4 article { border-top: 3px solid #dcb878; padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.d4 .ico { width: 34px; height: 34px; color: #dcb878; }
.d4 h3 { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.25; }
.d4 p { color: #cdd8cf; font-size: 16.5px; }
.d4l { margin-top: 34px; } .d4l article { border-top-color: var(--gold); } .d4l .ico { color: var(--gold-ink); } .d4l h3 { color: var(--green-ink); } .d4l p { color: var(--muted); }
@media (max-width: 1020px) { .d4 { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; } }
@media (max-width: 560px) { .d4 { grid-template-columns: 1fr; } .diff { padding-block: 56px; } }

/* Étapes en chiffres arabes-indiens */
.steps3 { list-style: none; margin-top: 36px; display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); counter-reset: none; }
.steps3 li { position: relative; padding: 0 0 0 0; display: grid; gap: 6px; align-content: start; }
.steps3 .sn { font: 400 84px/.9 var(--f-ar); color: var(--gold); opacity: .9; margin-bottom: 4px; }
.steps3 .st { font: 700 12px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.steps3 b { font: 800 20px/1.25 var(--f-head); color: var(--green-ink); }
.steps3 p { color: var(--muted); font-size: 17px; }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -14px; width: 28px; border-top: 2px dashed var(--gold); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 28px; } .steps3 li:not(:last-child)::after { display: none; } .steps3 li { grid-template-columns: 64px 1fr; column-gap: 16px; } .steps3 .sn { grid-row: span 3; font-size: 64px; } }
.more .inl { margin-left: 18px; display: inline-block; padding: 12px 0; }
@media (max-width: 420px) { .more .inl { margin-left: 0; } }

/* Avis */
.avis { background: var(--sand); padding-block: 72px; }
.av-in { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: start; max-width: 60em; }
.qm { font: 700 150px/.8 var(--f-slogan); color: var(--gold); opacity: .55; }
.avis h2 { font: italic 500 clamp(24px, 3.4vw, 36px)/1.3 var(--f-slogan); color: var(--green-ink); margin-top: 12px; }
.avis p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 38em; }
@media (max-width: 600px) { .av-in { grid-template-columns: 1fr; } .qm { font-size: 90px; } .avis { padding-block: 48px; } }

/* Appel final */
.cta-final { background: #12352a; color: #efe9d6; padding-block: 84px; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .2; pointer-events: none; }
.cta-in { position: relative; max-width: 780px; }
.cta-final .ar-big { position: absolute; right: -10px; top: -26px; font: 400 150px/1 var(--f-ar); color: #dcb878; opacity: .16; pointer-events: none; }
.cta-final .eyebrow { color: #dcb878; } .cta-final .eyebrow::before { background: #dcb878; }
.cta-final h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.12; color: #fff; margin-top: 12px; }
.cta-final .lead { margin-top: 14px; color: #cdd8cf; font-size: 18px; max-width: 36em; }
.cta-final .who .p { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-top: 4px solid #dcb878; box-shadow: none; }
.cta-final .who h3 { color: #fff; } .cta-final .who .num { color: #efe9d6; }
.cta-final .alt { margin-top: 22px; } .cta-final .link { background: none; border: 0; cursor: pointer; color: #dcb878; font: 700 16px/1.2 var(--f-body); padding: 10px 0; min-height: 44px; }
.cta-final :focus-visible { outline-color: #9cd0ff; }
@media (max-width: 700px) { .cta-final { padding-block: 56px; } .cta-final .ar-big { font-size: 96px; top: -16px; } }
.foot .h2b { margin-top: 24px; }
.who .num, .card .num { font: 700 20px/1.2 var(--f-head); letter-spacing: .02em; user-select: all; }
@media print { .announce { display: none; } }
.pbuh{font-family:"Amiri",serif;font-variant-emoji:text;font-size:1.05em;white-space:nowrap}
.hdr-login{white-space:nowrap}

.fhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.fscope { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.fscope i { font-style: normal; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--tint); color: var(--green-ink); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); white-space: nowrap; }

.fcard .for { font-size: 15.5px; color: var(--muted); }
.fcard .for b { color: var(--green-ink); }
.compare tbody th[scope="row"] { font: 700 15px/1.3 var(--f-head); color: var(--green-ink); white-space: nowrap; }
.mailline { margin: 18px 0 0; text-align: center; color: var(--muted, inherit); }
.mailline a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Animation d'ouverture (page d'accueil, une seule fois par navigateur) */
.splash { display: none; }
html.splash-on { --splash-ok: 1; }
html.splash-on body::before { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; background: radial-gradient(circle at 50% 44%, #2e7a58 0%, #1c5a40 52%, #113c2a 100%); animation: splash-auto .7s ease 5.4s forwards; }
html.splash-ready body::before { display: none; }
html.splash-on .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #2e7a58 0%, #1c5a40 52%, #113c2a 100%);
  color: #f4efe2; transition: opacity .7s ease, visibility .7s ease;
  animation: splash-auto .7s ease 5.4s forwards;
}
html.splash-on .splash::before {
  content: ""; position: absolute; inset: 0; background: url(splash-pattern.svg) center / 80px 80px;
  animation: splash-pat 4.2s ease-out both;
}
html.splash-on .splash.splash-out { opacity: 0; visibility: hidden; }
.splash-in { position: relative; display: grid; justify-items: center; gap: 14px; padding: 0 24px; text-align: center; }
.splash-logo { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.splash-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.splash-ring circle { fill: none; stroke: #d9b66a; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 352; animation: splash-draw 1.5s cubic-bezier(.4,0,.2,1) .25s forwards; }
.splash-disc { width: 104px; height: 104px; border-radius: 50%; background: #fbf8ef; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: splash-pop .9s cubic-bezier(.2,.9,.3,1.2) .1s both; }
.splash-disc img { width: 62px; height: auto; display: block; animation: splash-write 1.5s cubic-bezier(.4,0,.2,1) .5s both; }
.splash-name { margin: 8px 0 0; font: 700 clamp(24px, 5.4vw, 38px)/1.2 var(--f-head, 'Montserrat', sans-serif); letter-spacing: .04em; }
.sn-mask { display: block; overflow: hidden; padding: 2px 0 6px; }
.sn-in { display: block; animation: splash-rise .9s cubic-bezier(.2,.8,.2,1) 1.4s both; }
.sn-in b { color: #e3b95e; font-weight: 700; }
.splash-rule { display: block; width: 72px; height: 2px; margin: 2px 0 4px; background: #d9b66a; transform-origin: center; animation: splash-grow .7s ease 2.1s both; }
.splash-tag { margin: 0; max-width: 34ch; font: 600 clamp(11px, 2.8vw, 13px)/1.6 var(--f-head, 'Montserrat', sans-serif); letter-spacing: .22em; text-transform: uppercase; color: #cfd8c4; animation: splash-up .8s ease 2.3s both; }
.splash-skip { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); background: transparent; border: 0; color: #f4efe2; font: 600 15px/1 var(--f-body, sans-serif); padding: 12px 14px; cursor: pointer; opacity: .85; border-radius: 8px; }
.splash-skip:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.splash-skip:focus-visible { outline: 3px solid #d9b66a; outline-offset: 2px; opacity: 1; }
@keyframes splash-write { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes splash-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes splash-grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes splash-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes splash-pat { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes splash-auto { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { html.splash-on .splash { display: none; } }
