:root {
  --cream: #faf6ef;
  --cream-2: #f2ebdf;
  --navy: #1f2a37;
  --navy-2: #2b3746;
  --orange: #e8792b;
  --orange-dark: #b9540f;
  --text: #2a2f36;
  --muted: #5a636e;
  --line: rgba(31, 42, 55, .12);
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 16px; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 239, .96); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; text-decoration: none; color: var(--navy); }
.logo span { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy-2); }
.nav a:hover { color: var(--orange-dark); }
.header .btn { color: #fff; padding: 9px 18px; font-size: .92rem; }
.nav .btn:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--orange-dark); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s; border: 2px solid transparent; }
.btn:hover { background: #9c4409; }
.btn.ghost { background: transparent; border-color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 24, 33, .85) 0%, rgba(17, 24, 33, .5) 55%, rgba(17, 24, 33, .05) 100%); }
.hero .container { position: relative; z-index: 1; padding: 64px 0; }
section.hero { padding: 0; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; max-width: 15ch; letter-spacing: -.015em; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; margin-bottom: 32px; color: #eef1f4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.alt { background: var(--cream-2); }
.dark { background: var(--navy); color: #d6dde5; }
.dark h2, .dark h3 { color: #fff; }
.intro { max-width: 62ch; font-size: 1.1rem; color: var(--muted); }
.dark .intro { color: #c3ccd6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rounded { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(17, 24, 33, .16); }
.split img { width: 100%; }
.split .small { display: block; width: 100%; max-width: 420px; justify-self: center; }

/* Risque */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.stats li { border-top: 3px solid var(--orange); padding-top: 18px; }
.stats strong { display: block; font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; line-height: 1; margin-bottom: 10px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.accent { color: var(--orange-dark); }
.compare img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(17, 24, 33, .16); }

/* Système */
.wide { width: 100%; margin-top: 40px; aspect-ratio: 1200 / 449; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { background: #fff; border-radius: var(--radius); padding: 20px 22px; color: var(--muted); }
.facts strong { display: block; color: var(--navy); font-size: 1.35rem; }

/* Étapes */
.flow { max-width: 760px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.flow li { counter-increment: step; position: relative; padding: 18px 22px 18px 70px; background: #fff; border-radius: var(--radius); font-size: 1.05rem; }
.flow li::before { content: "0" counter(step); position: absolute; left: 22px; top: 18px; font-weight: 800; color: var(--orange-dark); }

/* Service */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 10px; border-left: 3px solid var(--orange-dark); border-bottom: 3px solid var(--orange-dark); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 760px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 32px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--orange-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Contact */
.contact { text-align: center; }
.contact .intro { margin-inline: auto; }
.mails { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.mail { background: #fff; border-radius: var(--radius); padding: 22px 28px; text-decoration: none; box-shadow: 0 8px 24px rgba(17, 24, 33, .08); min-width: 280px; transition: transform .2s; }
.mail:hover { transform: translateY(-3px); }
.mail small { display: block; color: var(--muted); font-size: .9rem; }
.mail strong { color: var(--navy); font-size: 1.1rem; }

/* Footer */
.footer { background: var(--navy); color: #c3ccd6; padding: 36px 0; font-size: .92rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: #fff; }

/* Pages simples (légal, 404) */
.page { padding: 64px 0 96px; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page h2 { font-size: 1.25rem; margin-top: 40px; }
.todo { background: #fff3cd; padding: 0 6px; border-radius: 4px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound p { color: var(--muted); }

/* Bannière cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(17, 24, 33, .25); padding: 20px; font-size: .95rem; }
.consent p { margin-bottom: 14px; }
.consent .actions button { font: inherit; cursor: pointer; }
.consent .refuse { background: transparent; color: var(--navy); border-color: var(--navy); }
.consent .refuse:hover { background: var(--cream-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; text-align: center; border: 0; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { display: block; min-height: 0; padding: 0; }
  .hero::after { display: none; }
  .hero picture { position: relative; display: block; height: 52vw; min-height: 220px; }
  .hero picture img { object-position: 62% 60%; }
  .hero .container { padding: 32px 0 44px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .stats, .facts { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .wide { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  #option .wide { aspect-ratio: auto; }
  .mail { min-width: 0; width: 100%; }
  .footer .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
