/* Layout concept: une façade gardoise. Bandeaux pleine largeur, un volet à lames qui se lève sur le hero, formulaire de devis toujours à portée de main. */
:root {
  --stone: #f1f2ee;      /* fond : calcaire clair */
  --paper: #ffffff;      /* cartes, formulaire */
  --ink: #17232a;        /* texte */
  --muted: #55636b;      /* texte secondaire */
  --line: #d8ddd7;       /* filets */
  --volet: #23597a;      /* accent : bleu volet */
  --volet-soft: #e3edf3;
  --sun: #f3b733;        /* bouton d'action : soleil du Gard */
  --sun-ink: #1d1a10;
  --ok: #2e7d4f;
  --shadow: 0 18px 40px -18px rgba(23, 35, 42, .35);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: #10171b; --paper: #172228; --ink: #e7ece9; --muted: #9eb0b8; --line: #2a373d;
    --volet: #74b3d8; --volet-soft: #1b2e39; --sun: #f3b733; --sun-ink: #1d1a10; --ok: #5cc28a;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stone: #10171b; --paper: #172228; --ink: #e7ece9; --muted: #9eb0b8; --line: #2a373d;
  --volet: #74b3d8; --volet-soft: #1b2e39; --sun: #f3b733; --sun-ink: #1d1a10; --ok: #5cc28a;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--volet); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 96px); }
.band--paper { background: var(--paper); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--volet);
}
.lead { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 16px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 0 -2px rgba(0,0,0,.18); }
.btn--sun:hover { transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--small { padding: 11px 16px; font-size: .95rem; white-space: nowrap; }

/* En-tête */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: repeating-linear-gradient(180deg, var(--volet) 0 5px, color-mix(in srgb, var(--volet) 70%, var(--paper)) 5px 7px);
}
.brand-name { font: 750 1.12rem/1.05 var(--display); }
.brand-name small { display: block; font: 600 .74rem/1.2 var(--body); color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--volet); }
.nav { gap: 18px; }
.nav a { font-size: .95rem; white-space: nowrap; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; z-index: 70; }
.menu nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.menu nav a:hover { background: var(--volet-soft); }
@media (max-width: 1120px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 420px) { .brand-name small { display: none; } .site-header .wrap { gap: 10px; } }

/* Hero avec volet */
.hero { position: relative; color: #fff; background: #1d2b33; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,22,27,.88) 0%, rgba(14,22,27,.62) 48%, rgba(14,22,27,.25) 100%); }
.shutter {
  position: absolute; inset: 0 0 auto 0; height: 26px; z-index: 2;
  background: repeating-linear-gradient(180deg, #2c6a8f 0 11px, #1f5070 11px 13px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  animation: shutter-up 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.shutter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; background: #163d56; border-radius: 0 0 3px 3px; }
@keyframes shutter-up { from { height: 62%; } to { height: 26px; } }
@media (prefers-reduced-motion: reduce) { .shutter { animation: none; } }
.hero .wrap {
  position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 470px);
  gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 80px);
}
.hero-text { display: grid; gap: 20px; min-width: 0; }
.hero .eyebrow { color: #f6d27c; }
.hero p.lead { color: rgba(255,255,255,.86); }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d1a10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Formulaire de devis */
.quote {
  background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; min-width: 0; border: 1px solid var(--line);
}
.quote-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.quote-title { font: 700 1.15rem/1.2 var(--display); }
.quote-step { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { height: 6px; border-radius: 99px; background: var(--volet-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 14%; background: var(--volet); border-radius: 99px; transition: width .3s ease; }
.q-label { font: 650 1.12rem/1.3 var(--display); }
.q-help { font-size: .92rem; color: var(--muted); margin-top: -10px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 14px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--stone); color: var(--ink);
  font: 600 .98rem/1.25 var(--body); cursor: pointer; transition: border-color .12s, background .12s;
}
.choice:hover { border-color: var(--volet); }
.choice[aria-pressed="true"] { border-color: var(--volet); background: var(--volet-soft); }
.choice .ico { width: 30px; height: 30px; flex: none; color: var(--volet); }
.fields { display: grid; gap: 12px; }
.fields .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .fields .row { grid-template-columns: 1fr; } .choice { min-height: 64px; padding: 10px; font-size: .94rem; } }
@media (max-width: 340px) { .choices { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 650; font-size: .93rem; }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--stone);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
.field input:focus, .field textarea:focus { border-color: var(--volet); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.field .err { color: #c0392b; font-size: .86rem; min-height: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--volet); }
.quote-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.linkbtn { background: none; border: 0; color: var(--muted); font: 600 .95rem var(--body); cursor: pointer; padding: 8px 0; }
.linkbtn:hover { color: var(--ink); }
.quote-foot { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.quote-foot svg { width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; }
.done { display: grid; gap: 12px; text-align: center; padding: 18px 4px; }
.done .badge { width: 58px; height: 58px; border-radius: 50%; background: var(--ok); margin: 0 auto; display: grid; place-items: center; }
.done .badge svg { width: 30px; height: 30px; }
.note { font-size: .85rem; color: var(--muted); background: var(--volet-soft); border-radius: 10px; padding: 10px 12px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--volet); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--volet-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; display: grid; gap: 6px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: " →"; color: var(--volet); }
.card-body p { color: var(--muted); font-size: .96rem; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } .card-img { aspect-ratio: 16 / 9; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 26px 26px 6px 0; display: grid; gap: 8px; counter-increment: s; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step::before { content: counter(s); font: 750 2.6rem/1 var(--display); color: var(--volet); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Prix */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--stone); }
tr:last-child td { border-bottom: 0; }
td.price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.src { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.facts { display: grid; gap: 14px; }
.fact { background: var(--volet-soft); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.fact strong { font: 700 1.05rem var(--display); }
.fact p { color: var(--muted); font-size: .96rem; }

/* Zone */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.zone-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--volet-soft); }
.zone-photo img { width: 100%; height: 100%; object-fit: cover; }
.towns { display: grid; gap: 18px; margin-top: 22px; }
.towns h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: .93rem; font-weight: 600; }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 650 1.05rem/1.4 var(--display); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--volet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; max-width: 68ch; }

/* Contenu d'une page service */
.prose { display: grid; gap: 16px; max-width: 70ch; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.cards-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.mini p { color: var(--muted); font-size: .98rem; }
@media (max-width: 700px) { .cards-4 { grid-template-columns: 1fr; } }
.warn { border-left: 4px solid var(--sun); background: var(--paper); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--ink); }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; }

/* Bandeau final + pied */
.cta-band { background: var(--volet); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 5px, transparent 5px 7px); }
.spr-band { background: var(--volet-soft); }
.spr-band .wrap { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .spr-band .wrap { grid-template-columns: 1fr; } }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 56px; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; }
:root[data-theme="dark"] .cta-band, .cta-band { background: #1f4f6c; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.site-footer h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-family: var(--body); font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
}
.mobile-cta .btn { width: 100%; }
@media (max-width: 760px) { .mobile-cta { display: block; } .site-footer .wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } }

/* v2026-10-24 */

/* Schémas explicatifs dans les cartes */
.schema { width: 100%; height: 180px; display: block; margin-bottom: 6px; background: var(--stone); border-radius: 10px; }
.schema .fr { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.schema .thin { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.schema .box { fill: var(--volet); }
.schema .mesh { fill: var(--volet); fill-opacity: .14; stroke: var(--volet); stroke-width: 1.5; }
.schema .grid { stroke: var(--volet); stroke-width: .8; stroke-opacity: .55; }
.schema .arrow { fill: none; stroke: var(--sun); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.schema .panel { stroke: var(--volet); stroke-width: 9; stroke-linecap: round; }
.schema .inv { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.schema .sun { fill: var(--sun); }
.schema .pv { fill: var(--ink); }
.schema.wide { height: auto; }
.schema .bg { fill: var(--stone); }
.schema .lbl { font: 600 11px var(--body); fill: var(--muted); }
.choose td:first-child { font-weight: 600; color: var(--ink); }

/* Photos dans le corps des pages */
.photo { margin: 24px 0 0; }
.photo img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: var(--r); display: block; }
.photo figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
