@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-text: #0F172A;
  --color-accent: #00668C;
  --color-accent-100: #E6F2F7;
  --color-accent-200: #C6E2EE;
  --color-accent-300: #93C8DC;
  --color-accent-400: #4FA3C2;
  --color-accent-500: #1A80A6;
  --color-accent-600: #00577A;
  --color-accent-700: #004A66;
  --color-accent-800: #003650;
  --color-accent-900: #0A192F;
  --color-divider: color-mix(in srgb, #0A192F 16%, transparent);
  --font-heading: "Montserrat", "Segoe UI", sans-serif;
  --font-heading-weight: 800;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --radius-md: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); margin: 0; }
p { margin: 0; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-900); }
img { display: block; max-width: 100%; }
figure { margin: 0; }

/* — blueprint corner decoration — */
.blueprint { position: relative; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid var(--color-divider);
  padding: 11px 16px;
}
.btn-primary { background: #10B981; border-color: #10B981; color: #0A192F; font-weight: 800; }
.btn-primary:hover { background: #34D399; color: #0A192F; }
.btn-secondary { color: #0A192F; }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

/* — tags — */
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 6px 12px; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); background: none; }

/* — form fields — */
.field label { display: block; font-size: 13px; font-weight: 600; color: #0F172A; margin-bottom: 4px; }
.input {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px;
  color: var(--color-text); background: #FFFFFF; border: 1px solid var(--color-divider);
}
.input:focus-visible { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
textarea.input { resize: vertical; min-height: 110px; }
.seg { display: inline-flex; border: 1px solid var(--color-divider); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-opt:has(input:checked) { background: var(--color-accent-900); color: #F8FAFC; }

/* — header — */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px,4vw,40px);
  display: flex; align-items: center; gap: 16px; height: 76px;
}
.logo-link { display: flex; margin-right: auto; }
.logo-link img { height: 46px; width: auto; }
nav.main-nav { display: flex; gap: 2px; align-items: center; }
nav.main-nav a {
  padding: 8px 10px; font-size: 14px; font-weight: 600; color: #0A192F;
  text-decoration: none; border-bottom: 2px solid transparent;
}
nav.main-nav a.active { border-bottom-color: #10B981; }
.mobile-toggle { display: none; width: 48px; height: 48px; padding: 0; background: transparent; border: none; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--color-divider); background: #F8FAFC; padding: 8px clamp(18px,4vw,40px) 20px; flex-direction: column; }
.mobile-nav a { padding: 14px 0; font-size: 18px; font-weight: 700; color: #0A192F; text-decoration: none; border-bottom: 1px solid var(--color-divider); }
.mobile-nav.open { display: flex; }

@media (max-width: 1080px) {
  nav.main-nav { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
}

/* — sections — */
section { padding: clamp(40px,6vw,88px) 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px,4vw,40px); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #00668C; margin-bottom: 10px; }
.page { display: none; }
.page.active { display: block; }

/* — hero — */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px),1fr)); gap: clamp(40px,6vw,80px); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(38px,5.6vw,68px); line-height: 1.04; letter-spacing: -0.03em; color: #0A192F; margin: 0 0 22px; }
.hero p.lead { font-size: clamp(17px,1.5vw,19px); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta .btn { font-size: 16px; padding: 17px 22px; }
.hero-promises { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; font-weight: 600; color: #0A192F; }
.hero-promises span { display: flex; gap: 7px; align-items: center; }
.hero-figure { margin: 0; position: relative; max-width: 520px; justify-self: center; width: 100%; }
.hero-figure img { width: 100%; aspect-ratio: 779/900; object-fit: cover; }
.hero-quote { position: absolute; left: -14px; bottom: 28px; background: #0A192F; color: #F8FAFC; padding: 14px 18px; transform: rotate(-3deg); max-width: 260px; }
.hero-quote .name { font-weight: 800; font-size: 18px; line-height: 1.2; }
.hero-quote .role { font-size: 13px; opacity: 0.85; margin-top: 4px; }

/* — reassurance cards — */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); gap: 28px; }
.promise-card { padding: 28px 26px; background: #FFFFFF; }
.promise-card .n { font-size: 13px; font-weight: 800; color: #00668C; letter-spacing: 0.1em; }
.promise-card h3 { font-size: 24px; color: #0A192F; margin: 10px 0 10px; }

/* — bento solutions — */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.bento a { display: flex; flex-direction: column; text-decoration: none; color: #0F172A; background: #FFFFFF; }
.bento a:hover { background: #E6F2F7; }
.bento a.featured { grid-column: span 2; grid-row: span 2; }
.bento img { width: 100%; aspect-ratio: 4/3; flex: 1 1 auto; min-height: 0; object-fit: cover; }
.bento a.featured img { aspect-ratio: auto; }
.bento-body { padding: 18px 18px 22px; position: relative; }
.bento-body .title { font-weight: 800; font-size: 18px; color: #0A192F; line-height: 1.2; margin-bottom: 6px; }
.bento a.featured .title { font-size: 24px; }
.bento-flare { position: absolute; top: -16px; left: 18px; background: #10B981; color: #0A192F; }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); } .bento a.featured { grid-column: span 1; grid-row: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0,1fr); } }

/* — steps — */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,190px),1fr)); border-top: 2px solid #0A192F; }
.steps-row .step { padding: 22px 20px 8px 0; position: relative; }
.steps-row .step::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: #10B981; }
.steps-row .step .n { font-size: clamp(44px,5vw,64px); font-weight: 800; color: #00668C; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 10px; }
.steps-row .step .title { font-weight: 800; font-size: 18px; color: #0A192F; margin-bottom: 6px; }

.steps-col .step { display: grid; grid-template-columns: clamp(64px,12vw,130px) 1fr; gap: clamp(14px,3vw,32px); }
.steps-col .step .num-col { border-right: 2px solid #0A192F; position: relative; padding-top: 4px; }
.steps-col .step .num-col .n { font-size: clamp(40px,7vw,80px); font-weight: 800; color: #00668C; letter-spacing: -0.05em; line-height: 1; }
.steps-col .step .num-col::after { content: ""; position: absolute; right: -8px; top: 14px; width: 14px; height: 14px; background: #10B981; }
.steps-col .step .card { padding: clamp(20px,3vw,30px); background: #FFFFFF; margin: 0 0 32px; }
.steps-col .step .card h3 { font-size: clamp(22px,2.6vw,28px); color: #0A192F; margin: 0 0 10px; }
.steps-col .step .get { display: flex; gap: 10px; align-items: baseline; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--color-divider); }
.steps-col .step .get b { font-weight: 800; color: #0A192F; white-space: nowrap; }

/* — aides band (dark) — */
.band-dark { background: #0A192F; color: #F8FAFC; }
.band-dark h2 { color: #F8FAFC; }
.band-dark .kicker { color: #10B981; }
.aides-rows { display: flex; flex-direction: column; }
.aides-rows .row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(248,250,252,0.18); }
.aides-rows .row .n { font-size: 30px; font-weight: 800; color: #10B981; }
.aides-rows .row .title { font-weight: 800; font-size: 19px; }
.aides-rows .row .short { font-size: 14.5px; opacity: 0.85; }
.small-note { font-size: 13px; opacity: 0.75; margin: 18px 0 0; }

/* — aides cards (page) — */
.aides-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); gap: 28px; }
.aide-card { padding: 28px 26px; background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.aide-card .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.aide-card .n { font-size: 44px; font-weight: 800; color: #00668C; line-height: 1; letter-spacing: -0.04em; }
.aide-card .logo { height: 56px; width: auto; }
.montage-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); gap: 0 28px; }
.montage-list .item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(248,250,252,0.18); font-size: 16px; }

/* — rge — */
.rge-row { padding: clamp(48px,6vw,80px) 0 0; }
.rge-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.rge-logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.rge-logos img { height: 58px; width: auto; mix-blend-mode: multiply; }

/* — solutions page — */
.products-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.product-article { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,400px),1fr)); gap: clamp(28px,5vw,64px); align-items: start; scroll-margin-top: 100px; margin-bottom: clamp(56px,7vw,96px); }
.product-article img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; background: #FFFFFF; cursor: pointer; width: 64px; height: 64px; }
.thumbs button.active { border-color: #0A192F; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-caption { font-size: 13px; margin-top: 8px; }
.product-article .kicker2 { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #00668C; margin-bottom: 10px; }
.product-article h2 { font-size: clamp(28px,3.4vw,40px); line-height: 1.1; letter-spacing: -0.025em; color: #0A192F; margin: 0 0 14px; }
.product-article .intro { font-size: 17px; margin: 0 0 24px; }
.forwho-box { padding: 18px 20px; background: #E6F2F7; margin-bottom: 24px; }
.forwho-box .label { font-weight: 800; color: #0A192F; font-size: 15px; margin-bottom: 4px; }
.benefits { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.benefits .item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.benefits svg { margin-top: 2px; }

/* — partenaire / contact — */
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px),1fr)); gap: clamp(40px,6vw,80px); align-items: start; }
.partner-item { padding: 20px 22px; background: #FFFFFF; margin-bottom: 20px; }
.partner-item .title { font-weight: 800; font-size: 19px; color: #0A192F; margin-bottom: 4px; }
.form-card { padding: clamp(22px,3.5vw,36px); background: #FFFFFF; position: sticky; top: 100px; }
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { font-size: 26px; color: #0A192F; margin: 0; }
.form-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); gap: 16px; }
.consent { display: flex; gap: 10px; align-items: start; font-size: 13.5px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: #00668C; width: 18px; height: 18px; flex: none; }
.thanks { padding: 20px 0; }
.thanks h2 { font-size: 26px; color: #0A192F; margin: 12px 0 8px; }
.form-done { display: none; }
.form-done.show { display: block; }
.form-visible.hide { display: none; }
.topics-row { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; cursor: pointer; border: 1px solid var(--color-divider); background: #FFFFFF; color: #0F172A; }
.topic-btn.active { background: #0A192F; color: #F8FAFC; border-color: #0A192F; }
.calendly-card { background: #FFFFFF; }
.calendly-head { padding: 20px 22px; border-bottom: 1px solid var(--color-divider); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.calendly-head .title { font-weight: 800; font-size: 19px; color: #0A192F; }
.calendly-card iframe { width: 100%; height: 680px; border: 0; display: block; }

/* — à propos — */
.apropos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,400px),1fr)); gap: clamp(40px,6vw,80px); align-items: start; }
.apropos-grid figure { max-width: 500px; }
.apropos-grid figure img { width: 100%; aspect-ratio: 779/900; object-fit: cover; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,230px),1fr)); gap: 20px; margin-top: 18px; }
.compare-card { padding: 20px 22px; border: 1px solid var(--color-divider); }
.compare-card.dark { background: #0A192F; color: #F8FAFC; border-color: #0A192F; }
.compare-card .label { font-weight: 800; color: #0F172A; font-size: 16px; margin-bottom: 10px; }
.compare-card.dark .label { color: #10B981; }
.compare-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 15px; list-style: none; margin: 0; padding: 0; }
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); gap: 24px; margin-top: 32px; }
.zone-card { padding: 24px; border: 1px solid var(--color-divider); }
.zone-card .code { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.zone-card .name { font-weight: 800; font-size: 19px; margin-top: 10px; }
.zone-card .note { font-size: 14px; margin-top: 2px; opacity: 0.85; }
.zone-card.primary { background: #0A192F; color: #F8FAFC; border-color: #0A192F; }

/* — cta band — */
.cta-band { background: #E6F2F7; padding: clamp(28px,5vw,56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,360px),1fr)); gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(28px,3.6vw,42px); line-height: 1.1; letter-spacing: -0.025em; color: #0A192F; margin-bottom: 12px; }
.cta-band-right { display: flex; flex-direction: column; gap: 14px; align-items: start; justify-self: end; }

/* — footer — */
footer { border-top: 1px solid var(--color-divider); padding: clamp(40px,5vw,64px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 32px; }
.footer-grid img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-col .head { font-weight: 800; color: #0A192F; margin-bottom: 4px; }
.footer-col a { color: #0F172A; text-decoration: none; }
.footer-col a:hover { color: #00668C; }
.legal-col { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-bottom { max-width: 1240px; margin: 32px auto 0; padding: 18px clamp(18px,4vw,40px) 0; border-top: 1px solid var(--color-divider); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* — mobile sticky cta — */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,250,252,0.96); border-top: 1px solid var(--color-divider); }
.mobile-cta .btn { display: flex; width: 100%; }
@media (max-width: 1080px) { .mobile-cta { display: block; } body { padding-bottom: 76px; } }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* lien vers le simulateur d'économies */
.main-nav .nav-simu b { font-weight: 800; color: var(--color-accent); }
.main-nav .nav-simu:hover b { color: var(--color-accent-900); }
