/* ==========================================================================
   Jones Elec — feuille de style unique
   Sommaire : 1. Police & variables  2. Base  3. Utilitaires  4. Boutons
   5. Header  6. Hero  7. Sections  8. Prestations  9. Immobilier
   10. Réalisations  11. Lightbox  12. À propos  13. Contact  14. Footer
   15. Barre mobile  16. Pages légales
   ========================================================================== */

/* 1. Police & variables ---------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #16181b;
  --ink-2: #3b3f45;
  --muted: #5d626a;
  --line: #e2ded4;
  --line-strong: #cfcabd;
  --accent: #f5c400;          /* jaune du logo : toujours avec texte foncé */
  --accent-hover: #e3b500;
  --accent-soft: #fbf0c2;
  --accent-text: #7a5d00;     /* jaune foncé lisible sur fond clair */
  --dark: #17181a;
  --dark-2: #222427;
  --dark-line: #34373c;
  --dark-muted: #a9adb3;
  --success: #1f6f43;
  --success-bg: #e6f3eb;
  --error: #a3261b;
  --error-bg: #fbe9e7;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 24, 27, .04), 0 4px 16px rgba(22, 24, 27, .05);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 112px);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-stretch: 92%;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--ink); }

/* 3. Utilitaires ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; 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; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--ink-2); }

/* 4. Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2f33; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* 5. Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; font-stretch: 88%; font-style: italic; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { text-decoration: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .9688rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.main-nav li a:hover { color: var(--ink); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 600; font-size: .9688rem; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav-cta { display: none; }

@media (max-width: 1040px) {
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: grid; }
  .header-actions { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 24px rgba(22, 24, 27, .06);
  }
  .main-nav:not(.is-open) { display: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav li a:hover { background: transparent; }
  .mobile-nav-cta { display: grid; gap: 10px; margin-top: 16px; }
}

/* 6. Hero ------------------------------------------------------------------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 20px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--muted); }

.hero-media { position: relative; margin: 0; }
.hero-media picture, .hero-media img { border-radius: var(--radius-lg); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; background: var(--surface-2); }
.hero-media--luminaires img { object-position: center 20%; }
.hero-media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(22, 24, 27, .82); color: #fff;
  font-size: .8125rem; font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .hero-media img { aspect-ratio: 16 / 10; object-position: center 40%; }
}
@media (max-width: 560px) {
  .hero-media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Bande de réassurance */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  list-style: none; margin: 0; padding: 18px 0;
}
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9688rem; color: var(--ink-2); }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
@media (max-width: 860px) {
  .trust ul { display: grid; grid-template-columns: 1fr 1fr; justify-content: start; }
}
@media (max-width: 400px) {
  .trust ul { grid-template-columns: 1fr; }
}

/* 7. Sections --------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 14px; }

/* 8. Prestations ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.service { background: var(--surface); padding: 26px 24px 28px; }
.service h3 { display: flex; align-items: baseline; gap: 10px; }
.service h3::before { content: ""; width: 14px; height: 3px; background: var(--accent); border-radius: 2px; flex: none; transform: translateY(-4px); }
.service p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { padding: 20px 18px 22px; } }

.services-note {
  margin-top: 24px; padding: 18px 20px;
  border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2); font-size: 1rem; max-width: 52rem;
}

/* 9. Immobilier ------------------------------------------------------------- */
.pro { background: var(--dark); color: #fff; }
.pro .eyebrow { color: var(--accent); }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pro p { color: #d8dbdf; }
.pro p + p { margin-top: 16px; }
.pro h2 + p { margin-top: 20px; }
.pro .btn { margin-top: 32px; }
.pro-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); }
.pro-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--dark-line); color: #eef0f2; }
.pro-list li::before { content: ""; width: 8px; height: 8px; margin-top: .6em; background: var(--accent); border-radius: 2px; flex: none; }
@media (max-width: 860px) { .pro-grid { grid-template-columns: 1fr; } }

/* 10. Réalisations ---------------------------------------------------------- */
.work-subtitle { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.work-subtitle h3 { font-size: 1.25rem; }
.work-subtitle p { color: var(--muted); font-size: .9375rem; }
.work-block + .work-block { margin-top: clamp(48px, 6vw, 72px); }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; gap: 20px; }
.work-grid.pairs { grid-template-columns: repeat(2, 1fr); }

.work-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; }
.work-card.span-2 { grid-column: span 2; }
.work-card figcaption { padding: 12px 6px 4px; font-weight: 600; font-size: .9688rem; line-height: 1.35; }
.work-card figcaption span { display: block; margin-top: 2px; font-weight: 400; font-size: .875rem; color: var(--muted); }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.shot {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); cursor: zoom-in;
}
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.025); }
.shot.wide { flex: 1; min-height: 220px; }
.shot.wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.shot-label {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px; border-radius: 4px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .94); color: var(--ink);
}
.shot-label.after { background: var(--accent); }
.shot-zoom {
  position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(22, 24, 27, .7); color: #fff; opacity: 0; transition: opacity .2s;
}
.shot-zoom svg { width: 16px; height: 16px; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; }

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .shot.wide { flex: none; min-height: 0; }
  .shot.wide img { position: static; aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .work-grid.pairs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .work-grid { gap: 12px; }
  .work-card { padding: 8px; }
  .work-card figcaption { padding: 10px 4px 2px; font-size: .9375rem; }
  .work-subtitle { flex-direction: column; gap: 4px; }
  .shot-zoom { opacity: 1; width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.span-2 { grid-column: auto; }
}

/* 11. Lightbox -------------------------------------------------------------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 13, 15, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(12, 13, 15, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; }
.lb-count { font-size: .9375rem; color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 64px; }
.lb-stage picture { display: contents; }
.lb-stage img {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  object-fit: contain; border-radius: 4px;
}
.lb-caption { padding: 14px 16px 20px; text-align: center; font-weight: 500; }
.lb-caption .lb-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.lb-caption .lb-tag.before { background: #fff; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 600px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; background: rgba(22, 24, 27, .7); }
}
body.lb-open { overflow: hidden; }

/* 12. À propos -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p { color: var(--ink-2); }
.about-text p + p { margin-top: 16px; }
.about-text h2 { margin-bottom: 24px; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.about-card img { width: 96px; height: auto; margin-bottom: 20px; }
.about-card h3 { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.about-card ul { list-style: none; margin: 0; padding: 0; }
.about-card li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.about-card li:last-child { border-bottom: 0; }
.about-card ul + h3 { margin-top: 20px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* 13. Contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }

.contact-card { background: var(--dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.contact-card .c-name { font-size: 1.375rem; font-weight: 800; font-style: italic; font-stretch: 88%; }
.contact-card .c-zone { color: var(--dark-muted); margin-top: 2px; }
.contact-lines { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--dark-line); }
.contact-lines li { padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.contact-lines .label { display: block; font-size: .8125rem; color: var(--dark-muted); }
.contact-lines a { font-weight: 600; font-size: 1.125rem; text-decoration: none; word-break: break-word; }
.contact-lines a:hover { text-decoration: underline; }
.contact-buttons { display: grid; gap: 10px; margin-top: 24px; }
.contact-card .btn-outline { color: #fff; border-color: #50545a; }
.contact-card .btn-outline:hover { border-color: #fff; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); }
.form-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.form-card > p { color: var(--muted); font-size: .9375rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field label .req { color: var(--error); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9a498; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--error); background: #fff; }
.field-error { color: var(--error); font-size: .875rem; min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-footer .privacy { font-size: .875rem; color: var(--muted); max-width: 30rem; }
.form-footer .privacy a { color: var(--ink-2); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(22, 24, 27, .25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.success { background: var(--success-bg); color: var(--success); }
.form-status.error { background: var(--error-bg); color: var(--error); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
}

/* 14. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 48px 0 32px; font-size: .9375rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { color: #fff; font-weight: 800; font-style: italic; font-stretch: 88%; font-size: 1.25rem; }
.site-footer a { color: #e7e9ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; }

/* 15. Barre mobile ---------------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 240, .96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding-inline: 10px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* 16. Pages légales --------------------------------------------------------- */
.legal { padding-block: clamp(40px, 7vw, 80px); }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 20px; margin: 12px 0 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.back-link { display: inline-flex; margin-bottom: 28px; font-weight: 600; }

/* Emplacement à compléter avant publication (bien visible volontairement) */
.todo { background: #ffe8a3; color: #6b4a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; outline: 1px dashed #c99700; }

.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.thanks .container { max-width: 640px; }
.thanks p { margin-top: 12px; color: var(--ink-2); }
.thanks .btn { margin-top: 28px; }
