
/* Concept : trois temps seulement. Une ouverture (fenêtre dont les volets s’ouvrent), une présentation courte,
   puis le formulaire de demande. Murs à la chaux, papier blanc, vert volet ; tout est aligné à gauche. */
:root {
  color-scheme: light;
  /* Couleurs : fond blanc et gris très clair, bleu-vert doux */
  --wall: #F4F7F7;
  --paper: #FFFFFF;
  --ink: #1E2B31;
  --ink-soft: #55646B;
  --line: #E1E8EA;
  --line-strong: #C4D0D4;
  --accent: #2C6E7B;
  --accent-hover: #22595F;
  --accent-ink: #FFFFFF;
  --accent-wash: #E2F0F0;
  --focus: #2C6E7B;
  --input-bg: #FFFFFF;
  --danger: #B3261E;
  --danger-wash: #FCEBEA;
  --shadow: rgba(30, 55, 65, 0.14);
  --header-glass: rgba(255, 255, 255, 0.92);

  /* Illustration : fenêtre et volets */
  --shutter: #9BBFB2;
  --shutter-deep: #78A091;
  --slat-light: #E8F2EE;
  --sky-top: #CDE4EE;
  --sky-low: #F4F8F9;
  --sun: rgba(255, 255, 255, 0.95);
  --trees-far: #CFE0D8;
  --trees: #AECBBE;
  --frame: #FFFFFF;
  --frame-edge: #D3DDE0;
  --reveal: #EAF0F1;
  --sill: #EDF2F3;
  --glare: rgba(255, 255, 255, 0.35);
  --glow: rgba(255, 255, 255, 0.6);

  /* Pied de page */
  --band: #24434C;
  --band-ink: #F2F7F8;
  --band-soft: #B8CDD3;

  /* Typographie */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --step-2: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);

  /* Mise en page */
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --r-sm: 8px;
  --r-lg: 18px;
}
@media (min-width: 960px) {
  :root { --step-0: 1.125rem; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
  color: inherit;
}
h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section {
  padding-block: clamp(56px, 8vw, 104px);
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.band-paper { background: var(--paper); }
.icon { flex: none; }

.skip {
  position: absolute; left: 16px; top: -200px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 16px var(--shadow);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-chat { background: var(--accent-wash); color: var(--ink); border-color: var(--accent-wash); }
.btn-chat:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.link-btn {
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.18em;
}

/* En-tête */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-glass);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.04em; }
.brand-tag { font-size: 0.8125rem; color: var(--ink-soft); }
.mark { flex: none; }
.mark-shutter { fill: var(--shutter); }
.mark-slats { fill: none; stroke: var(--shutter-deep); stroke-width: 1; }
.mark-pane { fill: var(--sky-top); }
.mark-bars, .mark-frame { fill: none; stroke: currentColor; }
.mark-bars { stroke-width: 1.1; }
.mark-frame { stroke-width: 1.6; }

/* Ouverture */
.hero {
  padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 96px);
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
}
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.reassure {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  color: var(--ink-soft); font-size: var(--step--1);
}
.reassure li { position: relative; padding-left: 22px; }
.reassure li::before {
  content: ""; position: absolute; left: 4px; top: calc(0.8em - 7px);
  width: 5px; height: 10px;
  border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Illustration : fenêtre à la française, volets persiennés */
.hero-visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.window {
  position: relative;
  width: min(calc(100% - 48px), 300px);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  margin-block: 16px 40px;
  border-radius: 3px;
  box-shadow: 0 0 0 14px var(--reveal), 0 0 0 15px var(--line);
}
@media (max-width: 899.98px) {
  .window { width: min(calc(100% - 48px), 236px); }
}
.window-sky {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  background:
    radial-gradient(circle at 70% 24%, var(--sun) 0 4%, transparent 22%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 80%);
}
.treeline { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: 30%; }
.trees-far { fill: var(--trees-far); }
.trees-near { fill: var(--trees); }
.window-shutters { position: absolute; inset: 0; overflow: hidden; perspective: 640px; }
.shutter {
  position: absolute; top: 0; bottom: 0; width: 50%;
  border: 6px solid var(--shutter-deep);
  background: repeating-linear-gradient(180deg,
    var(--shutter) 0 10px,
    var(--shutter-deep) 10px 11px,
    var(--slat-light) 11px 13px);
}
.shutter-left { left: 0; transform-origin: 0 50%; animation: shutter-left 2.2s cubic-bezier(.3, .75, .25, 1) .5s both; }
.shutter-right { right: 0; transform-origin: 100% 50%; animation: shutter-right 2.2s cubic-bezier(.3, .75, .25, 1) .68s both; }
@keyframes shutter-left {
  from { transform: rotateY(0deg); filter: brightness(1); }
  to { transform: rotateY(74deg); filter: brightness(.86); }
}
@keyframes shutter-right {
  from { transform: rotateY(0deg); filter: brightness(1); }
  to { transform: rotateY(-74deg); filter: brightness(.86); }
}
.window-frame {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 10px solid var(--frame);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--frame-edge);
}
.window-frame::after {
  content: ""; position: absolute; left: 50%; top: 47%;
  width: 4px; height: 26px; margin-left: -2px; border-radius: 2px;
  background: var(--frame-edge);
}
.casement {
  border: 5px solid var(--frame);
  box-shadow: inset 0 0 0 1px var(--frame-edge);
  background:
    linear-gradient(var(--frame), var(--frame)) 0 33.4% / 100% 5px no-repeat,
    linear-gradient(var(--frame), var(--frame)) 0 66.6% / 100% 5px no-repeat,
    linear-gradient(118deg, transparent 0 48%, var(--glare) 48% 56%, transparent 56% 100%);
}
.window-sill {
  position: absolute; left: -24px; right: -24px; bottom: -29px; height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--glow), transparent 85%), var(--sill);
  box-shadow: 0 1px 0 var(--line), 0 12px 18px -12px var(--shadow);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shutter-left { animation: none; transform: rotateY(74deg); filter: brightness(.86); }
  .shutter-right { animation: none; transform: rotateY(-74deg); filter: brightness(.86); }
}

/* Présentation */
.presentation-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .presentation-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
}
.intro { display: grid; gap: 18px; max-width: 60ch; min-width: 0; }
.offer { display: grid; gap: 12px; min-width: 0; }
.offer-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.offer-list li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.offer-list p { color: var(--ink-soft); }
@media (min-width: 640px) {
  .offer-list li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: baseline; }
}

/* Demande */
.contact-head { display: grid; gap: 14px; max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.zone { color: var(--ink); font-weight: 600; max-width: 60ch; }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
}
.form-card {
  position: relative; min-width: 0;
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 24px 48px -36px var(--shadow);
}
.fields { display: grid; gap: 18px 20px; }
@media (min-width: 640px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-size: 0.96875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--input-bg); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px var(--danger-wash); }
.field-error { color: var(--danger); font-size: 0.9rem; line-height: 1.4; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form-note { max-width: 42ch; color: var(--ink-soft); font-size: 0.875rem; }
.form-result { display: grid; gap: 14px; justify-items: start; scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px); }
.form-result:focus { outline: none; }
.form-result p { max-width: 52ch; color: var(--ink-soft); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; }

.contact-aside { display: grid; gap: 32px; min-width: 0; }
.aside-block { display: grid; gap: 12px; justify-items: start; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.aside-block p { color: var(--ink-soft); }
.next-steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.next-steps li { position: relative; min-height: 28px; padding-left: 40px; counter-increment: step; }
.next-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums;
}

/* Pied de page */
.site-footer { background: var(--band); color: var(--band-soft); }
.site-footer :focus-visible { outline-color: var(--band-ink); }
.footer-inner { display: grid; gap: 10px; padding-block: 36px 44px; }
.brand-footer { color: var(--band-ink); }
.footer-small { max-width: 72ch; font-size: 0.875rem; }
/* Bandeau cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: 560px; margin-inline: auto; padding: 18px 20px;
  display: grid; gap: 14px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -18px var(--shadow);
  font-size: 0.9375rem; line-height: 1.5;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer-link {
  justify-self: start; padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--band-ink); font: inherit; font-size: 0.875rem;
  text-decoration: underline; text-underline-offset: 0.18em;
}

/* Navigation */
.header-nav { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.header-nav .btn { white-space: nowrap; }
.site-header .brand-name { white-space: nowrap; }
.header-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.header-link:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) { .header-link { display: none; } }

/* Nos méthodes */
.method-head { max-width: 46rem; margin-bottom: 2rem; }
.method-head h2 { margin-top: 0; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); counter-reset: step; }
.method-steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.375rem; }
.method-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-weight: 700; margin-bottom: 0.75rem; }
.method-steps h3 { font-size: var(--step-1); margin: 0 0 0.4rem; }
.method-steps p { margin: 0; color: var(--ink-soft); }
.commitments { margin-top: 2.5rem; max-width: 46rem; }
.commitments h3 { margin: 0 0 0.75rem; }
.commitments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.commitments li { padding-left: 1.6rem; position: relative; }
.commitments li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Mentions légales */
.legal { padding-top: 0; }
.legal details { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.legal summary { cursor: pointer; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary h2 { display: inline; font-size: var(--step-1); }
.legal summary::after { content: " +"; color: var(--accent); font-weight: 700; }
.legal details[open] summary::after { content: " –"; }
.legal-body { max-width: 46rem; color: var(--ink-soft); font-size: var(--step--1); }
.legal-body h3 { font-size: var(--step-0); color: var(--ink); margin: 1.5rem 0 0.4rem; }
.legal-body a { color: var(--accent); }
.footer-legal { color: var(--band-ink); }
.legal-body p { margin: 0 0 0.75rem; }

/* Pages zones et publics (ajout) */
.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(32px, 5vw, 56px); }
.page-hero .wrap { display: grid; gap: 20px; }
.page-hero h1 { max-width: 22ch; }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.content { display: grid; gap: 18px; max-width: 46rem; }
.content h2 { font-size: var(--step-3); margin-top: 1.2rem; }
.content h2:first-child { margin-top: 0; }
.content p { color: var(--ink); }
.ticks { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.towns { color: var(--ink-soft); }
.zones-grid { display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-top: 1.25rem; }
.zones-grid h3 { grid-column: 1 / -1; font-size: var(--step-1); margin: 1.25rem 0 0.25rem; }
.zones-grid a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.zones-grid a:hover { color: var(--accent); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--accent); }
.faq details[open] summary::after { content: " –"; }
.faq details p { margin-top: 8px; color: var(--ink-soft); }
.cta-band { background: var(--band); color: var(--band-ink); }
.cta-band h2 { color: var(--band-ink); }
.cta-band p { color: var(--band-soft); max-width: 56ch; }
.cta-band .wrap { display: grid; gap: 16px; }
.cta-band .btn-ghost { color: var(--band-ink); border-color: var(--band-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; }
.footer-links a { color: var(--band-ink); }

/* En-tête : nom en grand, mention centrée (ajout) */
.header-inner { display: grid; grid-template-columns: 1fr auto; }
.header-inner .brand { justify-self: start; }
.header-inner .header-nav { justify-self: end; }
.site-header .brand-name { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); letter-spacing: 0.05em; }
.header-center { margin: 0; font-family: var(--font-display); font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); font-weight: 500; color: var(--ink); white-space: nowrap; text-align: center; }
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; row-gap: 0; padding-block: 8px 10px; }
  .header-center { grid-column: 1 / -1; grid-row: 2; font-size: 1.0625rem; color: var(--ink-soft); }
}
@media (max-width: 480px) {
  .site-header .brand-name { font-size: 1.3rem; letter-spacing: 0.03em; }
  .site-header .brand { gap: 8px; }
  .header-nav .btn-sm { padding: 8px 14px; }
}
@media (max-width: 380px) {
  .site-header .brand-name { font-size: 1.12rem; }
  .site-header .mark { width: 26px; height: 26px; }
}


/* Nom : SOS DIOGÈNE, by SOS HELP ME en petit (ajout) */
.brand-text { display: grid; line-height: 1.05; }
.brand-by { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 3px; white-space: nowrap; }
.brand-by b { font-weight: 700; letter-spacing: 0.08em; }
.brand-footer .brand-by { color: var(--band-soft); }
@media (max-width: 480px) { .brand-by { font-size: 0.625rem; } }

/* Avant-devis (ajout) */
.est-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.est-tab { min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.96875rem; font-weight: 600; cursor: pointer; }
.est-tab:hover { border-color: var(--accent); }
.est-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.est-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .est-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; } }
.est-form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.est-form legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 1.0625rem; }
.est-form .hint { margin: -4px 0 10px; color: var(--ink-soft); font-size: 0.9375rem; }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--input-bg); font-weight: 600; line-height: 1.3; transition: border-color .15s ease, background-color .15s ease; }
.opt small { font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }
.opt:hover span { border-color: var(--accent); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.range { display: flex; align-items: center; gap: 16px; }
.range input { flex: 1; accent-color: var(--accent); min-height: 44px; }
.range output { min-width: 4.5em; font-weight: 700; font-size: 1.125rem; text-align: right; }
.est-form .two { display: grid; gap: 16px 20px; margin-bottom: 16px; }
@media (min-width: 640px) { .est-form .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.est-form .field { margin-bottom: 16px; }
.est-form .two .field { margin-bottom: 0; }
.est-form select { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--input-bg); color: var(--ink); font: inherit; font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: 0.9375rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.est-msg { margin-top: 12px; font-weight: 600; }
.est-msg.err { color: var(--danger); }
.est-panel { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 24px 48px -36px var(--shadow); }
.est-panel h2 { font-size: var(--step-2); }
.est-panel .lbl { color: var(--ink-soft); font-size: 0.875rem; }
.est-price { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 600; color: var(--accent); line-height: 1.15; }
.est-detail { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.est-detail li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-soft); }
.est-detail li span:last-child { white-space: nowrap; color: var(--ink); }
.est-note { font-size: 0.875rem; color: var(--ink-soft); }
.est-done { display: grid; gap: 14px; justify-items: start; padding: clamp(20px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.est-done p { color: var(--ink-soft); max-width: 52ch; }
.mbar { display: none; }
@media (max-width: 1023.98px) {
  .est-panel { position: static; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px var(--shadow); }
  .mbar small { display: block; color: var(--ink-soft); font-size: 0.75rem; }
  .mbar b { font-size: 1.0625rem; color: var(--accent); }
  body.has-mbar { padding-bottom: 76px; }
}
.header-link { white-space: nowrap; }
.header-link[aria-current="page"] { color: var(--accent); }

/* Photos jointes à l'avant-devis (ajout) */
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-pick { cursor: pointer; }
.photo-input:focus-visible + .photo-list, .photo-pick:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; width: 88px; height: 88px; }
.photo-list img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }
.photo-rm { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px var(--shadow); }
.photo-msg:empty { display: none; }
.photo-msg { margin-top: 8px; }
.photo-pick[hidden] { display: none; }
