/* ==========================================================================
   Lémo — feuille de style
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #10302A;
  --ink-2: #0B231E;
  --ink-soft: #183F36;
  --text: #3E524B;
  --muted: #4A5B55;
  --leaf: #1F7A4D;
  --lemon: #FFD02F;
  --lemon-soft: #FFF8D6;
  --mist: #F5F8F4;
  --line: #E6EBE6;
  --on-dark: #E4ECE8;
  --on-dark-2: #C9D6D0;
  --radius: 28px;
  --max: 1200px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section--lemon { background: var(--lemon-soft); }
.section--dark { background: var(--ink); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section-head { max-width: 760px; margin-bottom: 40px; }

.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--leaf); }
.section--dark .eyebrow { color: var(--lemon); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
h2 { font-weight: 800; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; }
h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text); }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 12px 16px; border-radius: 8px; }

/* Boutons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px; font: 700 17px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--lemon { background: var(--lemon); color: var(--ink); box-shadow: 0 4px 0 #D9A800; }
.btn--lemon:hover { color: var(--ink); box-shadow: 0 6px 0 #D9A800; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { color: #fff; background: var(--ink-soft); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* En-tête ---------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--leaf); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 8px; }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; }
}

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--lemon-soft); overflow: hidden; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; position: relative; }
.hero__art::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: #FFE989; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero__art img { position: relative; width: min(440px, 100%); height: auto; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--text); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { flex: none; }

/* Aperçu des étapes ------------------------------------------------------ */
.overview { background: var(--ink); color: #fff; }
.overview__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 32px 0; }
.overview__list li { flex: 1 1 220px; min-width: 0; }
.overview__list a { display: flex; gap: 14px; align-items: center; padding: 12px; color: #fff; text-decoration: none; border-radius: 16px; }
.overview__list a:hover { background: var(--ink-soft); color: #fff; }
.overview__list strong { display: block; font-size: 17px; }
.overview__list small { display: block; font-size: 14px; color: var(--on-dark-2); }
.num { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--lemon); color: var(--ink); font: 800 20px/1 var(--display); display: flex; align-items: center; justify-content: center; }
.num--lg { width: 52px; height: 52px; font-size: 24px; }

/* Simulateur ------------------------------------------------------------- */
.sim { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.sim__form { flex: 1 1 520px; min-width: 0; background: var(--mist); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__head label { font-weight: 600; }
.field__head output { font: 800 24px/1 var(--display); white-space: nowrap; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--leaf) var(--p, 50%), #D7E0DA var(--p, 50%)); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lemon); border: 4px solid var(--ink); box-shadow: 0 2px 6px rgba(16,48,42,.25); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--lemon); border: 4px solid var(--ink); }
.switch { display: inline-flex; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; border: 2px solid var(--line); align-self: flex-start; }
.switch label { position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.switch input:checked + span { background: var(--ink); color: #fff; }
.switch input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.note { font-size: 14px; color: var(--muted); }

.sim__result { flex: 1 1 380px; min-width: 0; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.sim__result > * { position: relative; }
.sim__big { font: 800 clamp(52px, 7vw, 76px)/1 var(--display); letter-spacing: -0.04em; color: var(--lemon); }
.sim__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sim__row span { color: var(--on-dark-2); }
.sim__sep { height: 1px; background: #2C4C43; }
.sim__ok { background: var(--leaf); border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.sim__ok[hidden] { display: none; }
.sim__info { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.45; color: var(--on-dark-2); }
.sim__info[hidden] { display: none; }
.sim__legal { font-size: 13px; color: var(--on-dark-2); line-height: 1.5; }
.sim__result .btn { margin-top: auto; }

/* Étapes ----------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; }
.step__main { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step__top { display: flex; align-items: center; gap: 12px; }
.chip { font-size: 14px; font-weight: 600; background: var(--mist); padding: 6px 12px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip--outline { background: transparent; border: 2px solid var(--ink); padding: 7px 14px; }
.step__who { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.who { flex: 1 1 220px; min-width: 0; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); }
.who--lemo { background: var(--lemon-soft); border-color: var(--lemon-soft); }
.who strong { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.who--lemo strong { color: var(--leaf); }
.step p { line-height: 1.6; color: var(--text); }
.who p { color: var(--ink); }

/* Loi -------------------------------------------------------------------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.law { flex: 1 1 300px; min-width: 0; border: 2px solid var(--ink); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.law b { font: 800 clamp(30px, 3.4vw, 40px)/1.05 var(--display); color: var(--leaf); }
.law p { color: var(--text); line-height: 1.6; }

/* Frise ------------------------------------------------------------------ */
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px; }
.timeline li { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before { content: ""; height: 6px; border-radius: 3px; background: var(--ink); }
.timeline li:last-child::before { background: var(--lemon); box-shadow: inset 0 0 0 2px var(--ink); }
.timeline strong { font-size: 15px; color: var(--leaf); }

/* Pourquoi --------------------------------------------------------------- */
.why { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.why__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.why__copy .lead { color: var(--on-dark); }
.why__grid { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.why__item { flex: 1 1 240px; min-width: 0; background: var(--ink-soft); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.why__item strong { font-size: 18px; }
.why__item p { font-size: 15px; line-height: 1.55; color: #D3DED9; }

/* Dépôt du dossier ------------------------------------------------------- */
.start { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.start__intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.start__intro img { width: 200px; height: auto; margin-top: 8px; }
.start__form { flex: 1 1 560px; min-width: 0; background: #fff; border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.start__form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .start__form { grid-template-columns: minmax(0, 1fr); padding: 24px; } .sim__form, .sim__result, .step { padding: 24px; } }
.input { display: flex; flex-direction: column; gap: 8px; }
.input label { font-weight: 600; font-size: 15px; }
.input label small { font-weight: 400; color: var(--muted); }
.input input[type=text], .input input[type=email], .input input[type=tel], .input input[type=number] { min-height: 52px; padding: 12px 16px; border: 2px solid #CBD5CF; border-radius: 14px; font: 400 16px var(--body); color: var(--ink); background: #fff; }
.input input:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(31,122,77,.2); }
.drop { position: relative; border: 2px dashed #B9C6BF; border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 14px; background: var(--mist); min-height: 76px; }
.drop:hover, .drop.is-over { border-color: var(--leaf); background: #EEF5EF; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.drop__txt { font-size: 15px; line-height: 1.4; font-weight: 400; }
.input label.drop { font-weight: 400; }
.drop__txt b { display: block; }
.drop.has-file { border-style: solid; border-color: var(--leaf); background: #EEF5EF; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.form-msg[hidden] { display: none; }
.form-msg--ok { background: #E3F3E9; color: #134D30; }
.form-msg--err { background: #FDE8E6; color: #8A1F14; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 2px solid var(--line); border-radius: 20px; background: #fff; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 28px/1 var(--display); color: var(--leaf); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; line-height: 1.65; color: var(--text); }

/* CTA final -------------------------------------------------------------- */
.cta { background: var(--lemon); border-radius: 36px; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta img { width: 140px; height: auto; flex: none; }
@media (max-width: 640px) { .cta { padding: 36px 24px; } .cta img { display: none; } }

/* Pied de page ----------------------------------------------------------- */
.footer { background: var(--ink-2); color: #D3DED9; padding: 56px 0; font-size: 15px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__brand span { font: 800 28px/1 var(--display); color: #fff; }
.footer__col { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col strong { color: #fff; }
.footer a { color: #D3DED9; }
.footer a:hover { color: var(--lemon); }
.footer__legal { border-top: 1px solid #24423B; margin-top: 32px; padding-top: 24px; font-size: 13px; line-height: 1.6; color: #B7C6C0; }

/* Pages simples (mentions légales…) -------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 16px; line-height: 1.7; color: var(--text); }
.prose h1 { color: var(--ink); margin-bottom: 8px; }
.prose h2 { font-size: 26px; color: var(--ink); margin-top: 16px; }
