/* ==================================================================
   MKB Finance – Cabinet d'expertise comptable · Paris 14e
   Feuille de style principale
   ================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #14305a;
  --navy-3: #1d3f73;
  --gold: #c8a24a;
  --gold-2: #e0be6a;
  --gold-soft: #f6efdc;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #e3e7ee;
  --bg: #f6f7f9;
  --white: #ffffff;
  --success: #1f7a4d;
  --error: #b42318;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.16);
  --font-head: "Georgia", "Times New Roman", "DejaVu Serif", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }
ul { padding-left: 1.2rem; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 1rem; background: var(--gold); color: var(--navy);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); z-index: 2000; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.25s ease; line-height: 1.2;
  font-family: var(--font-body);
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200, 162, 74, 0.35); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Bandeau supérieur ---------- */
.topbar {
  background: var(--navy); color: rgba(255, 255, 255, 0.85); font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--gold-2); }
.topbar-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: 0.4rem; }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: var(--white);
  border-bottom: 1px solid var(--line); transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; list-style: none; gap: 1.8rem; margin: 0; padding: 0; }
.nav-list a {
  color: var(--ink); font-weight: 500; position: relative; padding: 0.4rem 0; display: inline-block;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.25s;
}
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--navy); }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--navy); margin: 5px auto; transition: 0.3s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); color: var(--white); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: url("../images/pattern.svg") repeat; opacity: 0.35; pointer-events: none;
}
.hero .container {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 5rem 0 5.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); max-width: 560px; margin-bottom: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); }
.hero-badge svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }

/* ---------- Bande chiffres ---------- */
.stats { background: var(--white); position: relative; z-index: 2; }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius);
  margin-top: -3rem; overflow: hidden;
}
.stat { padding: 1.8rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); line-height: 1; margin-bottom: 0.4rem; }
.stat strong span { color: var(--gold); }
.stat p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections génériques ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }

/* ---------- Cartes services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 1.3rem;
}
.card-icon img { width: 36px; height: 36px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); margin-bottom: 1rem; flex-grow: 1; }
.card-link { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 0.4rem; }
.card-link::after { content: "→"; transition: transform 0.25s; }
.card-link:hover::after { transform: translateX(4px); }

/* ---------- Bloc "Pourquoi nous" ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-figure { position: relative; }
.split-figure img { border-radius: var(--radius); width: 100%; }
.split-figure .floating {
  position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--navy); color: var(--white); padding: 1.2rem 1.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 260px;
}
.split-figure .floating strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-2); line-height: 1.1; }
.split-figure .floating span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c8a24a' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  background-size: 15px; background-repeat: no-repeat; background-position: center; margin-top: 2px;
}
.check-list strong { color: var(--navy); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 1rem; opacity: 0.9;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Engagements ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { padding: 1.8rem; border-left: 3px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.value h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Bande CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(200, 162, 74, 0.15); pointer-events: none;
}
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 4rem 0; position: relative; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 560px; }

/* ---------- En-tête de page intérieure ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../images/pattern.svg") repeat; opacity: 0.3; }
.page-hero .container { position: relative; padding: 4rem 0; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-hero img { width: 280px; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; gap: 0.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.breadcrumb a { color: var(--gold-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }

/* ---------- Page services détaillée ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail:nth-child(even) .service-media { order: 2; }
.service-media {
  background: var(--gold-soft); border-radius: var(--radius); padding: 2.5rem; display: grid; place-items: center; min-height: 280px;
}
.service-media img { width: 160px; height: 160px; }
.service-detail h2 { font-size: 1.8rem; }
.service-detail .tag { display: inline-block; background: var(--gold-soft); color: var(--navy); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem; }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.tick-list li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.5rem; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--navy); }
label .req { color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid #cfd5df; border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(29, 63, 115, 0.12); }
input.is-invalid, textarea.is-invalid { border-color: var(--error); }
textarea { min-height: 150px; resize: vertical; }
.field-error { color: var(--error); font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.field-error.is-visible { display: block; }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.checkbox input { margin-top: 0.3rem; width: 18px; height: 18px; flex-shrink: 0; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 500; }
.form-status.success { display: block; background: #e7f5ec; color: var(--success); border: 1px solid #b9e2c8; }
.form-status.error { display: block; background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.info-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2.2rem; margin-bottom: 1.5rem; }
.info-card h3 { color: var(--gold-2); font-size: 1.2rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; margin-top: 3px; }
.info-list a { color: var(--white); }
.info-list a:hover { color: var(--gold-2); }
.info-list small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--muted); font-weight: 400; }
.hours-card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hours-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.hours-card h3 svg { width: 22px; height: 22px; fill: var(--gold); }

/* Carte d'accès */
.map-wrap { margin-top: 4rem; }
.map-box {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg); min-height: 420px;
}
.map-box iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem;
  background: rgba(246, 247, 249, 0.82);
}
.map-consent img { width: 120px; margin-bottom: 1rem; }
.map-consent p { max-width: 480px; color: var(--muted); font-size: 0.95rem; }
.map-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.access-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.access-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: flex; gap: 0.9rem; align-items: flex-start; }
.access-item svg { width: 26px; height: 26px; fill: var(--navy-3); flex-shrink: 0; }
.access-item strong { display: block; color: var(--navy); }
.access-item span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pages légales ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; padding-top: 0.5rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal p, .legal li { color: #333c48; }
.legal .box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.8rem; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.legal dt { font-weight: 600; color: var(--navy); }
.legal dd { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 0.7rem 0.8rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg); color: var(--navy); }
.legal-updated { color: var(--muted); font-size: 0.9rem; font-style: italic; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 4rem 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand img { height: 56px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-size: 0.85rem; flex-wrap: wrap; color: rgba(255, 255, 255, 0.6); }
.footer-bottom ul { display: flex; gap: 1.5rem; }
.ordre-badge { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding: 0.6rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-sm); font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); }
.ordre-badge svg { width: 20px; height: 20px; fill: var(--gold); }

/* ---------- Bouton retour haut ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy);
  border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 900;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding: 4rem 0 4.5rem; }
  .hero .eyebrow, .hero-actions, .hero-badges { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-figure { max-width: 520px; margin: 0 auto; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-3, .values { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split-figure .floating { left: 1rem; bottom: -1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail:nth-child(even) .service-media { order: 0; }
  .service-media { min-height: 220px; }
  .page-hero img { width: 200px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .topbar { display: none; }
  .brand img { height: 44px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 1.5rem 1.5rem 3rem; gap: 1.5rem; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .nav-list a::after { display: none; }
  .nav .btn { width: 100%; }
  .section { padding: 3.8rem 0; }
  .grid-3, .grid-2, .values, .steps, .access-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 1.6rem; }
  .cta .container { padding: 3rem 0; }
  .page-hero .container { grid-template-columns: 1fr; padding: 3rem 0; }
  .page-hero img { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .legal dt { margin-top: 0.7rem; }
  .map-box iframe, .map-box { height: 340px; min-height: 340px; }
  /* Tableau RGPD : une carte par ligne */
  .legal table, .legal thead, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1rem; overflow: hidden; }
  .legal td { border: 0; border-bottom: 1px solid var(--line); padding: 0.6rem 0.9rem; }
  .legal td:last-child { border-bottom: 0; }
  .legal td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
  .stats .container { margin-top: -2rem; }
  .stat strong { font-size: 1.8rem; }
  .hero-figure { max-width: 380px; }
}

@media (max-width: 480px) {
  .stats .container { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .cta .btn { width: 100%; }
}
