/* ==========================================================================
   MEDICS CARE : site public (v3)
   Aucune dépendance : pas de Bootstrap, pas de jQuery, pas de police d'icônes.
   Couleurs du logo : cyan #0cb4e4, rouge #e42424, jaune #fce40c.
   Thème clair par défaut ; html[data-theme="dark"] pour le mode sombre.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --bg-tint: #e9f6fb;
  --surface: #ffffff;
  --ink: #0b2540;
  --text: #3f566b;
  --muted: #68809a;
  --line: #e1ebf3;
  --primary: #0cb4e4;
  --primary-strong: #0a8db5;
  --primary-soft: #e2f6fd;
  --primary-ink: #065a74;
  --btn-from: #0877a0;
  --btn-to: #0a93bd;
  --red: #e42424;
  --red-soft: #fdeaea;
  --yellow: #fce40c;
  --green: #15803d;
  --green-soft: #e4f6ea;
  --navy: #0b2540;
  --navy-2: #123a5e;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, .05), 0 6px 18px rgba(11, 37, 64, .06);
  --shadow: 0 12px 34px rgba(11, 37, 64, .10);
  --shadow-lg: 0 28px 70px rgba(11, 37, 64, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 74px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0a1424;
  --bg-soft: #0d1a2e;
  --bg-tint: #0f2138;
  --surface: #111f35;
  --ink: #eaf2fa;
  --text: #b6c5d4;
  --muted: #8ea2b6;
  --line: #1f3149;
  --primary: #22c3ef;
  --primary-strong: #5ccff3;
  --primary-soft: rgba(12, 180, 228, .15);
  --primary-ink: #b2ebfa;
  --red-soft: rgba(228, 36, 36, .16);
  --green: #6ee7a0;
  --green-soft: rgba(22, 163, 74, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow: 0 12px 34px rgba(0, 0, 0, .4);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; }
h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 12px; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.i-lg { width: 1.6em; height: 1.6em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- animations d'apparition (seulement si JS actif) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); box-shadow: 0 10px 24px rgba(8, 119, 160, .30); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(8, 119, 160, .42); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); }
.btn-light { color: var(--navy); background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-light:hover { transform: translateY(-1px); }
.btn-wa { color: #fff; background: #1faa59; box-shadow: 0 10px 24px rgba(31, 170, 89, .3); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow .i { transition: transform .2s; }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- en-tête ---------- */
.topbar { background: var(--navy); color: #c9dded; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar li { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: inherit; }
.topbar .i { color: var(--primary); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.social { display: inline-flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.social a:hover { background: var(--primary); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
html[data-theme="dark"] .site-header { background: rgba(10, 20, 36, .86); }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 30px rgba(11, 37, 64, .07); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink) !important; text-decoration: none !important; }
.brand img { width: 78px; height: auto; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; flex-wrap: nowrap; }
.nav a { position: relative; white-space: nowrap; padding: 10px 13px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none !important; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--primary-strong); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.chip-btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); font-weight: 800; font-size: 12.5px; letter-spacing: .04em; cursor: pointer; text-decoration: none !important; transition: border-color .15s, color .15s; }
.chip-btn:hover { border-color: var(--primary); color: var(--primary-strong); }
.lang { display: inline-flex; padding: 3px; border: 1.5px solid var(--line); border-radius: 14px; }
.lang a { padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--muted); text-decoration: none !important; }
.lang a[aria-current="true"] { background: var(--primary-soft); color: var(--primary-ink); }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }
.nav-toggle { display: none; }

/* tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(8, 20, 35, .55); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); padding: 22px; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; gap: 6px; }
.drawer.is-open { visibility: visible; }
.drawer.is-open::before { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: 14px; color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none !important; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.drawer-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 15px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.icon-box { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-strong); }
.icon-box img { width: 34px; height: 34px; object-fit: contain; }
.icon-box .i { width: 26px; height: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.checks .i { margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); width: 22px; height: 22px; }

/* ---------- héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 84px) 0 clamp(52px, 7vw, 96px); background: radial-gradient(900px 500px at 88% -8%, rgba(12, 180, 228, .22), transparent 62%), radial-gradient(640px 380px at -6% 108%, rgba(252, 228, 12, .16), transparent 62%), linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--primary-strong), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 560px; margin: 18px 0 30px; font-size: 18px; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust .i { color: var(--primary-strong); }
.hero-visual { position: relative; }
.hero-slides { position: relative; aspect-ratio: 1 / 1.02; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 22, 40, .82)); }
.hero-caption { position: absolute; left: 24px; right: 24px; bottom: 56px; z-index: 2; color: #fff; }
.hero-caption b { display: block; margin-bottom: 4px; font-size: 22px; letter-spacing: -.02em; }
.hero-caption span { font-size: 14.5px; opacity: .88; }
.hero-dots { position: absolute; left: 24px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button[aria-current="true"] { width: 28px; background: #fff; }
.float-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.25; }
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-chip .dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-strong); }
.float-chip.a { left: -28px; top: 38px; }
.float-chip.b { right: -18px; bottom: 150px; }   /* au-dessus de la légende de la bannière (titre + 2 lignes) */
.float-chip.b .dot { background: var(--green-soft); color: var(--green); }

/* accès rapide */
.quick { margin-top: -44px; position: relative; z-index: 5; }
.quick .grid { gap: 18px; }
.quick a { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform .2s; }
.quick a:hover { transform: translateY(-4px); }
.quick .icon-box { margin: 0; flex: none; }
.quick b { display: block; font-size: 16px; }
.quick small { color: var(--muted); font-size: 13.5px; }

/* étapes */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(8, 119, 160, .35); }
.step h3 { margin-top: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* à propos / pourquoi nous */
.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4 / 4.2; }
.badge-card { position: absolute; right: -18px; bottom: 32px; padding: 18px 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.badge-card b { display: block; font-size: 30px; color: var(--primary-strong); letter-spacing: -.03em; line-height: 1; }
.badge-card small { color: var(--muted); font-weight: 600; }
.info-card { padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #d5e4f1; box-shadow: var(--shadow-lg); }
.info-card h3 { color: #fff; display: flex; align-items: center; gap: 10px; }
.info-card li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.info-card li:last-of-type { border-bottom: 0; }
.info-card li b { color: #fff; text-align: right; }
.info-card .btn { margin-top: 18px; }
.prose { max-width: 760px; }
.prose p { color: var(--text); font-size: 17px; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--bg-soft); border-radius: 0 12px 12px 0; }

/* spécialités */
.spec { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.spec-tabs { display: grid; gap: 10px; }
.spec-tabs button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-weight: 700; text-align: left; text-transform: capitalize; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.spec-tabs button img { width: 38px; height: 38px; object-fit: contain; }
.spec-tabs button:hover { border-color: var(--primary); }
.spec-tabs button[aria-selected="true"] { border-color: var(--primary); background: var(--primary-soft); transform: translateX(4px); }
.spec-panel { display: none; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 30px; }
.spec-panel.is-active { display: grid; animation: fade .4s ease; }
.spec-panel h3 { font-size: 26px; text-transform: capitalize; }
.spec-panel img { width: 100%; border-radius: 18px; object-fit: cover; max-height: 280px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.pills span { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }

/* médecins */
.doctor { overflow: hidden; padding: 0; text-align: center; }
.doctor-photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--bg-tint); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doctor:hover .doctor-photo img { transform: scale(1.05); }
.doctor-body { padding: 20px 18px 22px; }
.doctor-body h3 { margin-bottom: 2px; font-size: 18px; }
.doctor-body p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }

/* chiffres */
.stats { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #0a6f94); }
.stats::before { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -200px; border-radius: 50%; background: rgba(12, 180, 228, .18); }
.stat { position: relative; text-align: center; }
.stat b { display: block; font-size: clamp(38px, 5vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat b::after { content: "+"; color: var(--yellow); }
.stat span { display: block; margin-top: 8px; color: #b7d3e6; font-weight: 600; letter-spacing: .04em; }

/* témoignages */
.testi { display: flex; flex-direction: column; gap: 18px; }
.testi .i-quote { width: 36px; height: 36px; color: var(--primary); opacity: .55; }
.testi p { margin: 0; color: var(--ink); font-size: 16.5px; }
.testi footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #fff; font-weight: 800; flex: none; }
.testi footer b { display: block; color: var(--ink); line-height: 1.2; }
.testi footer small { color: var(--muted); }

/* articles */
.post { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post-img img { transform: scale(1.06); }
.post-date { position: absolute; left: 16px; top: 16px; padding: 6px 13px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-sm); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-body h3 { font-size: 18.5px; line-height: 1.3; margin-bottom: 10px; }
.post-body h3 a { color: var(--ink); text-decoration: none !important; }
.post-body h3 a:hover { color: var(--primary-strong); }
.post-body p { color: var(--muted); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 13px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 28px; }
.post-featured .post-img { aspect-ratio: auto; min-height: 320px; }
.post-featured .post-body { justify-content: center; padding: 36px; }
.post-featured h3 { font-size: 28px; }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
details.faq { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s; }
details.faq[open] { border-color: var(--primary); }
details.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: var(--ink); font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .i { transition: transform .25s; color: var(--primary-strong); }
details.faq[open] summary .i { transform: rotate(180deg); }
details.faq .faq-a { padding: 0 24px 22px; color: var(--text); }

/* bannière d'appel à l'action */
.cta { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 68px); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2) 55%, #0a7ea5); box-shadow: var(--shadow-lg); }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta::before { width: 360px; height: 360px; right: -80px; top: -120px; }
.cta::after { width: 220px; height: 220px; right: 160px; bottom: -120px; background: rgba(252, 228, 12, .12); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 640px; }
.cta p { max-width: 560px; margin-bottom: 26px; color: #cfe3f2; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* pages intérieures */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); background: radial-gradient(700px 320px at 90% 0, rgba(12, 180, 228, .18), transparent 65%), linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.page-hero p { max-width: 620px; margin: 0; color: var(--text); font-size: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--primary-ink); }
.tarifs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tarif { padding: 22px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.tarif b { display: block; margin: 6px 0; color: var(--ink); font-size: 28px; letter-spacing: -.03em; }
.tarif small { color: var(--muted); font-weight: 600; }

/* formulaires */
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.field label, .label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 700; font-size: 14px; }
.field .hint { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg-soft); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .7; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368809a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.pass { position: relative; }
.pass .input { padding-right: 52px; }
.pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.pass .eye-off { display: none; }
.pass.is-shown .eye { display: none; }
.pass.is-shown .eye-off { display: inline; }
.strength { height: 5px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--red); transition: width .3s, background .3s; }
.phone-field { display: flex; gap: 0; }
.phone-field .prefix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: 14px 0 0 14px; background: var(--bg-tint); color: var(--ink); font-weight: 700; }
.phone-field .input { border-radius: 0 14px 14px 0; }
.checkset { display: flex; flex-wrap: wrap; gap: 10px; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chk span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 14.5px; font-weight: 600; transition: all .15s; }
.chk input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.chk input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--btn-from); flex: none; }
.form-status { display: none; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; }
.form-status.is-shown { display: block; }
.form-status.ok { background: var(--green-soft); color: var(--green); }
.form-status.ko { background: var(--red-soft); color: var(--red); }
html[data-theme="dark"] .form-status.ko { color: #fca5a5; }
.form-status ul { margin: 0; padding-left: 18px; list-style: disc; }
.price-line { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.price-line b { font-size: 22px; letter-spacing: -.02em; }

/* inscription */
.role-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 26px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); }
.role-tabs button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.role-tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #fff; box-shadow: 0 8px 18px rgba(8, 119, 160, .3); }
.role-panel[hidden] { display: none; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); }

/* contact */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-bottom: 14px; }
.contact-item .icon-box { margin: 0; width: 52px; height: 52px; }
.contact-item h3 { margin-bottom: 2px; font-size: 16px; }
.contact-item p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-item a { color: var(--text); }

/* blog */
.search { position: relative; max-width: 460px; }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 46px; border-radius: 999px; }
.article-head { max-width: 820px; }
.article-cover { margin: 0 auto 40px; max-width: 980px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.share a, .share button { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--primary-strong); }
.comment { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment b { color: var(--ink); }
.comment small { color: var(--muted); margin-left: 8px; }
.comment p { margin: 4px 0 0; }
.side-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border: 0; }
.side-list a { color: var(--ink); font-weight: 700; line-height: 1.35; display: block; }
.side-list small { color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 700; text-decoration: none !important; }
.pagination a:hover { border-color: var(--primary); color: var(--primary-strong); }
.pagination .is-current { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.pagination .is-off { opacity: .4; }

/* confirmation de paiement */
.receipt li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.receipt li:last-child { border: 0; }
.receipt li span { color: var(--ink); font-weight: 700; text-align: right; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.wait { background: var(--primary-soft); color: var(--primary-ink); }
.badge.ko { background: var(--red-soft); color: var(--red); }

/* pied de page */
.site-footer { margin-top: 0; color: #a9c0d3; background: var(--navy); }
html[data-theme="dark"] .site-footer { background: #07101d; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; padding: 70px 0 48px; }
.site-footer h4 { margin-bottom: 18px; color: #fff; font-size: 15px; letter-spacing: .02em; }
.site-footer a { color: #a9c0d3; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 11px; }
.site-footer .brand b { color: #fff; }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 4px 8px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.footer-contact .i { margin-top: 4px; color: var(--primary); }
.footer-note { margin: 16px 0 20px; max-width: 360px; font-size: 14.5px; }
.news-form { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .08); }
.news-form .input { min-height: 44px; border: 0; background: transparent; color: #fff; padding: 0 16px; }
.news-form .input:focus { box-shadow: none; background: transparent; }
.news-form .btn { width: 100%; min-height: 44px; padding: 0 20px; }
.site-footer .form-status { margin: 12px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 22px; }

/* boutons flottants */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; gap: 12px; }
.fab a, .fab button { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s; }
.fab a:hover, .fab button:hover { transform: scale(1.08); }
.fab .wa { background: #1faa59; }
.fab .top { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.fab .top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.mbar { display: none; }

/* ---------- adaptation ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .site-header .container { gap: 12px; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .float-chip.a { left: 10px; } .float-chip.b { right: 10px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: 1fr; }
  .spec-tabs { grid-template-columns: repeat(2, 1fr); }
  .spec-tabs button[aria-selected="true"] { transform: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .split, .grid-3, .post-featured, .spec-panel { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .badge-card { right: 14px; }
  .post-featured .post-img { min-height: 220px; }
  .quick { margin-top: -28px; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .header-actions .btn, .header-actions .lang { display: none; }
  .brand b { display: none; }
  .form-grid, .tarifs { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .spec-tabs { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .fab { bottom: 84px; right: 14px; }
  .fab .wa { display: none; }   /* WhatsApp est déjà dans la barre du bas */
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(11, 37, 64, .1); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; white-space: nowrap; border-radius: 14px; background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none !important; }
  .mbar a.main { background: linear-gradient(135deg, var(--btn-from), var(--btn-to)); color: #fff; }
  body { padding-bottom: 68px; }
  .float-chip { padding: 9px 12px; font-size: 12.5px; }
  .float-chip .dot { width: 32px; height: 32px; }
  .hero-slides { aspect-ratio: 1 / 1.1; }
  .float-chip.b { display: none; }   /* sur téléphone, il recouvrirait la légende de la bannière */
  .hero-caption { left: 18px; right: 18px; bottom: 48px; }
  .hero-caption b { font-size: 19px; }
  .hero-caption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
  .hero-dots { left: 18px; bottom: 18px; }
}
@media (max-width: 420px) {
  .container { width: min(1180px, 100% - 28px); }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media print {
  .topbar, .site-header, .fab, .mbar, .site-footer, .cta { display: none !important; }
  body { color: #000; background: #fff; }
}

/* mises en page à deux colonnes (pages contact, rendez-vous, bénévolat, inscription) */
.cols { display: grid; gap: 40px; align-items: start; }
.cols-contact { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.cols-rdv { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.cols-vol { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.cols-reg { grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
.about-visual img.contain { object-fit: contain; aspect-ratio: auto; padding: 28px; background: var(--bg-soft); }
