/* ==========================================================================
   Main dans la Main Finance S.A. — Design system
   Couleurs issues du logo : bleu marine / bleu royal / or
   ========================================================================== */
:root {
  --navy-950: #061330;
  --navy-900: #0a1f44;
  --navy-800: #0d2a5c;
  --blue-700: #0b4aa8;
  --blue-600: #0f5bc7;
  --blue-500: #1f74e0;
  --blue-400: #4a9bf0;
  --sky-100: #eaf3ff;
  --sky-50: #f4f8ff;
  --gold-500: #e3a92c;
  --gold-400: #f0c04f;
  --gold-700: #8f6200;
  --ink: #0f1b33;
  --muted: #53617a;
  --line: #e1e8f4;
  --white: #fff;
  --success: #0f7a4d;
  --danger: #c62828;

  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06), 0 2px 8px rgba(10, 31, 68, .05);
  --shadow-md: 0 6px 24px rgba(10, 31, 68, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, .18);

  --container: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--sky-50); }
.section--dark { background: var(--navy-900); color: #d6e2f7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section--dark .eyebrow { color: var(--gold-400); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section--dark .lead { color: #aec2e4; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 500; font-size: .98rem; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; text-decoration: none; }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--primary { background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); color: #fff; box-shadow: 0 8px 20px rgba(15, 91, 199, .32); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 91, 199, .42); }
.btn--gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); box-shadow: 0 8px 20px rgba(227, 169, 44, .35); }
.btn--gold:hover { color: var(--navy-950); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(227, 169, 44, .5); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-950); color: #b9c9e6; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #dbe6fa; }
.topbar a:hover { color: var(--gold-400); }
.topbar ul { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar li { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--gold-400); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; font-family: var(--font-head); font-size: .95rem; font-weight: 500; color: var(--navy-900); border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--sky-100); color: var(--blue-600); }
.nav a[aria-current="page"] { color: var(--blue-600); background: var(--sky-100); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy-900); }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(74, 155, 240, .35), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(227, 169, 44, .16), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 72%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-400), #ffe3a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #bfd0ee; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: #d3e0f6; }
.hero-badges svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; }
.hero-visual { position: relative; }
.hero-photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; border: 1px solid rgba(255, 255, 255, .18); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy-900); line-height: 1.1; }
.float-card span { font-size: .85rem; color: var(--muted); }
.float-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-100); color: var(--blue-600); display: grid; place-items: center; }
.float-card .ico svg { width: 22px; height: 22px; }
.float-card--a { left: -28px; bottom: 56px; }
.float-card--b { right: -18px; top: 36px; animation-delay: -3s; }
.float-card--b .ico { background: #fff4d8; color: var(--gold-700); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Partners strip ---------- */
.partners { background: #fff; border-bottom: 1px solid var(--line); }
.partners .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 28px; flex-wrap: wrap; }
.partners p { margin: 0; font-size: .92rem; color: var(--muted); max-width: 260px; line-height: 1.4; }
.partner-list { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-list li { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy-800); padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--sky-50); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% 0, rgba(74, 155, 240, .22), transparent 70%); pointer-events: none; }
.stats .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 56px; }
.stat { text-align: center; padding: 8px 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; background: linear-gradient(180deg, #fff, #b9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: #aec2e4; font-size: .98rem; }

/* ---------- Cards ---------- */
.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); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #c9daf5; }
.icon-chip { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue-500), var(--blue-700)); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 22px rgba(15, 91, 199, .28); }
.icon-chip svg { width: 28px; height: 28px; }
.icon-chip--gold { background: linear-gradient(145deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); box-shadow: 0 10px 22px rgba(227, 169, 44, .32); }
.card p { color: var(--muted); }
.card .link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; margin-top: 4px; }
.card .link svg { width: 16px; height: 16px; transition: transform .2s; }
.card .link:hover svg { transform: translateX(4px); }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5bc7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.section--dark .tick-list li { color: #e3ecfb; }
.section--dark .tick-list li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c04f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { position: relative; }
.split-media > img, .photo { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split-media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--r-xl); background: linear-gradient(145deg, var(--sky-100), #fff4d8); z-index: -1; }
.split--reverse .split-media::before { inset: 24px 24px -24px -24px; }
.split-media { z-index: 0; }
.badge-note { position: absolute; left: 20px; bottom: 20px; background: rgba(10, 31, 68, .88); backdrop-filter: blur(8px); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: .92rem; max-width: 260px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 32px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--gold-400); display: block; margin-bottom: 14px; }
.step h3 { color: #fff; }
.step p { color: #aec2e4; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--sky-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(6, 19, 48, .82)); opacity: 0; transition: opacity .25s; }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; height: 100%; }
.quote .stars { display: flex; gap: 3px; color: var(--gold-500); margin-bottom: 16px; }
.quote .stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.quote blockquote { margin: 0 0 24px; font-size: 1.12rem; color: var(--ink); line-height: 1.6; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue-500), var(--navy-800)); color: #fff; font-family: var(--font-head); font-weight: 600; flex: none; }
.quote footer b { display: block; font-family: var(--font-head); font-weight: 500; color: var(--navy-900); line-height: 1.2; }
.quote footer span { font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #bcd3f5; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--font-head); font-weight: 500; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5bc7' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky-100); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 a { color: inherit; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.tag { display: inline-block; font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); background: var(--sky-100); padding: 4px 12px; border-radius: 999px; }
.article { max-width: 780px; margin-inline: auto; }
.article h2 { font-size: 1.7rem; margin-top: 1.8em; }
.article p, .article li { font-size: 1.12rem; }
.article ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.2em; }
.article li { margin-bottom: .4em; }
.callout { background: var(--sky-100); border-left: 4px solid var(--blue-500); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 1.6em 0; }
.callout p { margin: 0; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 400px at 90% -20%, rgba(74, 155, 240, .38), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800)); padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 14px; }
.page-hero p { color: #bfd0ee; max-width: 640px; font-size: 1.15rem; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: #8fa7d0; margin-bottom: 20px; }
.crumbs a { color: #bcd0f0; }
.crumbs a:hover { color: var(--gold-400); }

/* ---------- Products ---------- */
.tabs { display: inline-flex; padding: 6px; border-radius: 999px; background: var(--sky-100); gap: 4px; margin-bottom: 40px; }
.tabs button { border: 0; background: transparent; font-family: var(--font-head); font-weight: 500; font-size: .98rem; padding: 12px 26px; border-radius: 999px; cursor: pointer; color: var(--navy-800); min-height: 46px; transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.product { display: flex; flex-direction: column; }
.product h3 { margin-bottom: 8px; }
.product .tick-list { margin: 8px 0 22px; }
.product .btn { margin-top: auto; align-self: flex-start; }
.pill { display: inline-block; font-size: .78rem; font-family: var(--font-head); font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #fff4d8; color: var(--gold-700); margin-bottom: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field .label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy-900); margin-bottom: 8px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #cfdaee; border-radius: 14px; font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9db8e3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31, 116, 224, .18); }
.field .hint { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.field .error { display: none; font-size: .86rem; color: var(--danger); margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-600); flex: none; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.alert { display: none; border-radius: var(--r-md); padding: 18px 22px; background: #e8f7ef; border: 1px solid #b6e3cb; color: #0b5c3a; font-weight: 500; }
.alert.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Simulator ---------- */
.sim { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.range-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.range-row output { font-family: var(--font-head); font-weight: 600; color: var(--blue-600); font-size: 1.15rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue-500) var(--fill, 30%), #dbe6f7 var(--fill, 30%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-600); box-shadow: 0 2px 8px rgba(10, 31, 68, .3); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-600); cursor: grab; }
.sim-result { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.sim-result .big { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.sim-result .big small { font-size: 1rem; color: #aec2e4; font-weight: 400; margin-left: 6px; }
.sim-result dl { margin: 24px 0; display: grid; gap: 0; }
.sim-result dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.sim-result dt { color: #aec2e4; }
.sim-result dd { margin: 0; font-family: var(--font-head); font-weight: 500; font-variant-numeric: tabular-nums; }
.sim-result .disclaimer { font-size: .85rem; color: #93abd3; margin: auto 0 20px; }
.bar { height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .14); display: flex; margin-top: 8px; }
.bar i { display: block; height: 100%; }
.bar .cap { background: var(--blue-400); }
.bar .int { background: var(--gold-400); }
.legend { display: flex; gap: 18px; font-size: .85rem; color: #aec2e4; margin-top: 10px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--blue-400); }
.legend span + span::before { background: var(--gold-400); }

/* ---------- Contact ---------- */
.agency { display: flex; flex-direction: column; gap: 14px; }
.agency h3 { display: flex; align-items: center; gap: 12px; margin: 0; }
.agency .pill { margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--blue-600); margin-top: 3px; }
.info-list b { color: var(--navy-900); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-family: var(--font-head); font-weight: 500; color: var(--navy-900); }

/* ---------- Client area ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.auth-side { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #d6e2f7; padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 1.9rem; }
.auth-side::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 155, 240, .4), transparent 70%); }
.auth-form { padding: clamp(28px, 4vw, 52px); }
.notice { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: #fff8e6; border: 1px solid #f3dca0; color: #6b4b00; font-size: .93rem; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px); text-align: center; color: #fff; background: radial-gradient(600px 300px at 80% 0, rgba(240, 192, 79, .28), transparent 60%), linear-gradient(135deg, var(--blue-700), var(--navy-900)); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-band p { color: #c9d9f3; max-width: 560px; margin: 0 auto 30px; font-size: 1.15rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9bcdd; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-logo { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 16px; margin-bottom: 20px; }
.footer-logo img { height: 44px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a9bcdd; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .info-list li { color: #a9bcdd; }
.site-footer .info-list svg { color: var(--gold-400); }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: #7f95bb; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 10px 10px; }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: calc(var(--header-h)) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 28px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 18px; font-size: 1.05rem; }
  .header-cta .btn--primary { display: none; }
  .hero .container, .split, .sim, .auth { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .hero-visual { max-width: 560px; }
  .float-card--a { left: 8px; }
  .float-card--b { right: 8px; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .topbar ul:last-child { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 1rem; }
  .brand img { height: 44px; }
  .grid--4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { padding: 10px 14px; }
  .float-card strong { font-size: 1.05rem; }
  .gallery .wide { grid-column: span 2; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 12px 10px; font-size: .9rem; }
  .topbar .container { justify-content: center; }
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; gap: 10px; }
  .mobile-cta .btn { flex: 1; box-shadow: var(--shadow-lg); }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Icons ---------- */
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 1.25em; height: 1.25em; flex: none; }
.quote .stars svg.i { fill: currentColor; stroke: none; }

/* ---------- Corrections ---------- */
html, body { overflow-x: clip; }
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-400); }
.nav a { white-space: nowrap; padding: 10px 13px; }
.nav-extra { display: none; }
.topbar ul:last-child { gap: 22px; }
@media (max-width: 960px) { .nav-extra { display: block; } .topbar ul:last-child { display: none; } }
.auth-side .tick-list li { color: #e3ecfb; }
.auth-side .tick-list li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c04f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.auth-side > * { position: relative; z-index: 1; }
h3 > svg.i { display: inline-block; vertical-align: -.2em; margin-right: .4em; color: var(--blue-600); }
.agency h3 > svg.i { margin-right: 0; }
@media (max-width: 640px) { .topbar { display: none; } }

/* ---------- WordPress ---------- */
.alert--error { background: #fdecec; border-color: #f3b9b9; color: #8c1d1d; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.nav-links, .navigation.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); font-family: var(--font-head); }
.page-numbers.current, .page-numbers:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.article img { border-radius: var(--r-lg); margin: 1.4em 0; }
.alignwide, .alignfull { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Corrections mobile (v1.0.1) ---------- */
.split > *, .grid > *, .sim > *, .auth > *, .hero .container > * { min-width: 0; }
@media (max-width: 960px) {
  .hero .container, .split, .sim, .auth { grid-template-columns: minmax(0, 1fr); }
}
.info-list li, .info-list a, .info-list span { min-width: 0; overflow-wrap: anywhere; }
.link, .card .link { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer li { margin-bottom: 0; }
.site-footer li a, .info-list a, .crumbs a { display: inline-block; padding: 10px 0; }
.site-footer .info-list li { margin-bottom: 4px; }
.tag { font-size: .78rem; }
.mobile-cta .btn { min-height: 48px; }

/* ---------- Bannière héros en carrousel (v1.1.0) ---------- */
.hero-slider { position: relative; overflow: hidden; color: #fff; background: var(--navy-950); }
.hero-stage { display: grid; min-height: clamp(620px, 88vh, 800px); }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; padding: 56px 0 130px; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.08); transition: transform 9s ease-out; }
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(900px 520px at 88% 0%, rgba(74, 155, 240, .38), transparent 62%), linear-gradient(100deg, rgba(6, 19, 48, .95) 0%, rgba(10, 31, 68, .9) 42%, rgba(11, 74, 168, .6) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-content > * { max-width: 720px; }
.hero-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.02em; color: #fff; margin: 0 0 22px; text-wrap: balance; }
.hero-title em { font-style: normal; background: linear-gradient(90deg, var(--gold-400), #ffe3a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slider .lead { color: #c9d9f3; margin-bottom: 34px; }
.hero-slider .eyebrow { color: var(--gold-400); }
.hero-slider .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.hero-anim { opacity: 0; transform: translateY(24px); }
.hero-slide.is-active .hero-anim { opacity: 1; transform: none; transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 0 18px; background: linear-gradient(transparent, rgba(6, 19, 48, .78)); }
.hero-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.hero-slider .hero-badges { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hero-slider .hero-badges li { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: #d3e0f6; }
.hero-slider .hero-badges svg { width: 20px; height: 20px; color: var(--gold-400); }
.hero-controls { display: flex; align-items: center; gap: 6px; }
.hero-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.hero-btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .55); }
.hero-btn svg { width: 20px; height: 20px; }
.hero-dots { display: flex; align-items: center; }
.hero-dot { position: relative; width: 52px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.hero-dot::before { background: rgba(255, 255, 255, .32); }
.hero-dot::after { background: var(--gold-400); transform: scaleX(0); transform-origin: left; }
.hero-dot[aria-current="true"]::after { animation: hero-progress var(--hero-delay, 5s) linear forwards; }
.hero-slider.is-paused .hero-dot[aria-current="true"]::after { animation-play-state: paused; }
.hero-slider.is-static .hero-dot[aria-current="true"]::after { animation: none; transform: scaleX(1); }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 960px) {
  .hero-stage { min-height: 640px; }
  .hero-slide { padding: 44px 0 150px; }
  .hero-bar-inner { justify-content: center; }
  .hero-slider .hero-badges { display: none; }
}
@media (max-width: 640px) {
  .hero-stage { min-height: 660px; }
  .hero-slider .hero-actions .btn { flex: 1 1 100%; }
  .hero-dot { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-slide.is-active .hero-bg { transform: none; transition: none; }
  .hero-anim, .hero-slide.is-active .hero-anim { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
}
.hero-btn svg[hidden] { display: none; }

/* ---------- Héros centré (v1.1.1) ---------- */
.hero-content { text-align: center; }
.hero-content > * { margin-left: auto; margin-right: auto; }
.hero-slider .eyebrow { justify-content: center; }
.hero-slider .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.hero-slider .hero-actions { justify-content: center; }
.hero-slide::before { background: radial-gradient(900px 520px at 50% 0%, rgba(74, 155, 240, .34), transparent 62%), linear-gradient(180deg, rgba(6, 19, 48, .9) 0%, rgba(10, 31, 68, .84) 55%, rgba(11, 74, 168, .72) 100%); }

/* ---------- Boutons du héros centrés (v1.1.2) ---------- */
.hero-slider .hero-actions { margin: 0 auto; justify-content: center; }

/* ---------- Barre du héros centrée, sur tous les appareils (v1.1.3) ---------- */
.hero-slide { padding-bottom: 150px; }
.hero-bar { padding: 14px 0 16px; }
.hero-bar-inner { flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.hero-slider .hero-badges { display: flex; justify-content: center; text-align: center; gap: 6px 26px; }
.hero-controls { justify-content: center; }
@media (max-width: 960px) {
  .hero-slide { padding-bottom: 170px; }
  .hero-slider .hero-badges { display: flex; }
}
@media (max-width: 640px) {
  .hero-slide { padding-bottom: 190px; }
  .hero-slider .hero-badges { gap: 4px 16px; }
  .hero-slider .hero-badges li { font-size: .88rem; gap: 7px; }
  .hero-slider .hero-badges svg { width: 18px; height: 18px; }
}

/* ---------- Barre mobile masquable (v1.1.4) ---------- */
.mobile-cta { transition: transform .3s ease, opacity .3s ease; }
.mobile-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Héros sans contrôles : seul le défilement automatique reste (v1.1.5) ---------- */
.hero-slide { padding-bottom: 110px; }
@media (max-width: 960px) { .hero-slide { padding-bottom: 130px; } }
@media (max-width: 640px) { .hero-slide { padding-bottom: 140px; } }

/* ---------- Petit titre du héros sur une seule ligne en mobile (v1.1.6) ---------- */
@media (max-width: 640px) {
  .hero-slider .eyebrow { white-space: nowrap; letter-spacing: .08em; font-size: .72rem; gap: 8px; }
  .hero-slider .eyebrow::before, .hero-slider .eyebrow::after { width: 14px; }
}
@media (max-width: 380px) {
  .hero-slider .eyebrow::before, .hero-slider .eyebrow::after { display: none; }
}
