/* Mise en page : une colonne de 1120px ; bandeau d'accueil en deux temps (promesse à gauche, formes du logo à droite), puis sections alternées surface / surface-sand. */
@font-face { font-family: Luciole; src: url("../fonts/Luciole-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Luciole; src: url("../fonts/Luciole-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --surface: #fbf7f2; --surface-raised: #ffffff; --surface-sand: #f4eadf; --surface-ink: #1e3238;
  --line: #e6ddd2; --line-strong: #77878b;
  --ink: #1e3238; --ink-muted: #55666b; --on-ink: #f3eee8; --on-ink-muted: #a9b7bb;
  --orange: #da591f; --orange-deep: #b4471a; --on-orange: #ffffff; --orange-soft: #fcece3; --orange-on-ink: #f27d47;
  --teal: #218199; --teal-deep: #196a7e; --on-teal: #ffffff; --teal-soft: #e4f1f4;
  --focus: #196a7e; --error: #b42318; --success: #2b7a4b;
  --todo-bg: #fff3b0; --todo-fg: #5c4a00;
  --shadow-card: 0 2px 4px rgba(30,50,56,.06), 0 8px 24px rgba(30,50,56,.08);
  --font: Luciole, Verdana, "Trebuchet MS", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 24px; --radius-pill: 999px;
  --container: 1120px; --measure: 70ch; --target: 48px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --surface: #121c1f; --surface-raised: #1b282c; --surface-sand: #232f33; --surface-ink: #0b1214;
  --line: #2d3d42; --line-strong: #6a7d83;
  --ink: #f3eee8; --ink-muted: #a9b7bb;
  --orange: #f27d47; --orange-deep: #f59a6e; --on-orange: #121c1f; --orange-soft: #3a2116;
  --teal: #4db3c8; --teal-deep: #7cc9d9; --on-teal: #121c1f; --teal-soft: #12313a;
  --focus: #7cc9d9; --error: #f4877c; --success: #6bc492; --todo-bg: #4a3d00; --todo-fg: #ffe98a;
  --shadow-card: 0 2px 4px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --surface: #121c1f; --surface-raised: #1b282c; --surface-sand: #232f33; --surface-ink: #0b1214;
  --line: #2d3d42; --line-strong: #6a7d83;
  --ink: #f3eee8; --ink-muted: #a9b7bb;
  --orange: #f27d47; --orange-deep: #f59a6e; --on-orange: #121c1f; --orange-soft: #3a2116;
  --teal: #4db3c8; --teal-deep: #7cc9d9; --on-teal: #121c1f; --teal-soft: #12313a;
  --focus: #7cc9d9; --error: #f4877c; --success: #6bc492; --todo-bg: #4a3d00; --todo-fg: #ffe98a;
  --shadow-card: 0 2px 4px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--orange-deep); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--space-6); }
@media (max-width: 600px) { .wrap { padding-inline: var(--space-4); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 10; background: var(--surface-raised); padding: var(--space-3); }

/* À compléter */
.todo { background: var(--todo-bg); color: var(--todo-fg); border-radius: 4px; padding: 0 4px; font-weight: 700; }

/* Boutons */
.btn { font: inherit; font-weight: 700; font-size: 18px; line-height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--target); padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange-deep); color: var(--on-orange); }
.btn-primary:hover { background: var(--ink); color: var(--surface); }
.btn-secondary { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn-secondary:hover { background: var(--teal-deep); color: var(--on-teal); }

/* En-tête */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); }
.logo { display: inline-flex; padding: var(--space-1); border-radius: var(--radius-md); background: #ffffff; flex: none; }
.logo img { height: 60px; width: auto; display: block; }
.nav { display: flex; gap: var(--space-1); }
.nav a { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 var(--space-3); color: var(--ink); font-weight: 700; text-decoration: none; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--orange-deep); }
.nav a[aria-current="page"] { color: var(--orange-deep); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--orange); text-underline-offset: 8px; }
.header-end { display: flex; align-items: center; gap: var(--space-3); }
.tel { color: var(--teal-deep); font-weight: 700; text-decoration: none; white-space: nowrap; }
.client { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); padding: 0 var(--space-4); border: 2px solid var(--teal-deep); border-radius: var(--radius-md); color: var(--teal-deep); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.client:hover { background: var(--teal-deep); color: var(--on-teal); }
.menu-btn { display: none; font: inherit; font-weight: 700; min-height: var(--target); padding: 0 var(--space-4); border-radius: var(--radius-md); border: 2px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 1000px) {
  .header .wrap { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { order: 3; width: 100%; flex-direction: column; padding-bottom: var(--space-3); }
  .nav[data-open="false"] { display: none; }
  .tel { display: none; }
}
@media (max-width: 560px) {
  .logo img { height: 48px; }
  .client span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .client { padding: 0 var(--space-3); }
}

/* Bandeau d'accueil */
.hero { padding-block: var(--space-16) var(--space-12); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-12); align-items: center; }
.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); }
.hero h1 { margin-top: var(--space-3); font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero .lead { margin-top: var(--space-6); font-size: 21px; line-height: 1.55; max-width: 34em; }
.hero .actions { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.badges { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge { display: inline-flex; align-items: center; font-size: 16px; line-height: 24px; font-weight: 700; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--surface-sand); color: var(--ink); }
.shapes { width: 100%; max-width: 440px; justify-self: end; aspect-ratio: 440 / 460; }
.shapes svg { width: 100%; height: 100%; display: block; }
.s-orange { fill: var(--orange); } .s-teal { fill: var(--teal); } .s-ink { fill: var(--ink); } .s-tint { fill: var(--orange-soft); }
.s-wave { fill: none; stroke: var(--surface); stroke-width: 10; stroke-linecap: round; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .shapes { justify-self: start; max-width: 320px; order: -1; } .hero { padding-block: var(--space-8) var(--space-12); } }

/* Sections */
.section { padding-block: var(--space-16); }
.section.sand { background: var(--surface-sand); }
@media (max-width: 600px) { .section { padding-block: var(--space-12); } }
.h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.2; }
.h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: var(--space-3); border-radius: var(--radius-pill); background: var(--orange); }
.h2.teal::after { background: var(--teal); }
.intro { margin-top: var(--space-4); font-size: 21px; line-height: 1.55; max-width: var(--measure); }
.section-body { margin-top: var(--space-8); }

/* Deux pôles */
.poles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 760px) { .poles { grid-template-columns: 1fr; } }
.card { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-8); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); min-width: 0; }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: grid; place-items: center; }
.card.orange .card-icon { background: var(--orange-soft); color: var(--orange); }
.card.teal .card-icon { background: var(--teal-soft); color: var(--teal); }
.card h3 { font-size: 26px; line-height: 1.25; }
.card ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.card.orange li::marker { color: var(--orange); }
.card.teal li::marker { color: var(--teal); }
.card .more { font-weight: 700; }
.card.teal .more { color: var(--teal-deep); }

/* Pour qui */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } }
.who-item { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 4px solid var(--orange); min-width: 0; }
.who-item.water { border-top-color: var(--teal); }
.who-item h3 { font-size: 21px; line-height: 1.3; }
.who-item p { color: var(--ink-muted); }

/* Déroulé */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; min-width: 0; }
.steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--orange-deep); color: var(--on-orange); font-weight: 700; font-size: 21px; }
.steps h3 { font-size: 21px; line-height: 1.3; }
.steps p { margin-top: var(--space-1); }

/* Crédit d'impôt + zone */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: stretch; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); padding: var(--space-8); border-radius: var(--radius-lg); background: var(--orange-soft); }
.callout .figure { font-size: 56px; line-height: 1; font-weight: 700; color: var(--orange-deep); white-space: nowrap; }
.callout .note { margin-top: var(--space-3); font-size: 16px; color: var(--ink-muted); }
.zone { padding: var(--space-8); border-radius: var(--radius-lg); background: var(--teal-soft); display: grid; gap: var(--space-3); align-content: start; }
.zone h3 { font-size: 24px; line-height: 1.3; color: var(--ink); }
@media (max-width: 480px) { .callout { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Intervenant */
.about { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: var(--space-8); } }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius-lg); background: var(--surface-raised); border: 2px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: var(--space-6); color: var(--ink-muted); font-size: 16px; }
.portrait img { width: 96px; opacity: .9; margin-bottom: var(--space-3); }
.about-text { display: grid; gap: var(--space-4); max-width: var(--measure); }
.facts { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); }
.facts svg { color: var(--orange); margin-top: 4px; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }
.post { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); min-width: 0; }
.post time { font-size: 16px; color: var(--ink-muted); }
.post h3 { font-size: 21px; line-height: 1.3; }
.news-all { margin-top: var(--space-6); font-weight: 700; display: inline-block; }

/* Devis */
.quote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-12); align-items: start; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; gap: var(--space-8); } }
.contact-lines { margin-top: var(--space-6); display: grid; gap: var(--space-2); font-weight: 700; }
.contact-lines a { color: var(--teal-deep); text-decoration: none; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); padding: var(--space-8); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow-card); }
@media (max-width: 560px) { form { grid-template-columns: 1fr; padding: var(--space-6); } }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; line-height: 24px; }
.field .help { font-size: 16px; color: var(--ink-muted); line-height: 1.4; }
.field input, .field select, .field textarea { font: inherit; width: 100%; min-height: var(--target); padding: var(--space-3) var(--space-4); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field.is-error input { border-color: var(--error); }
.field .err { font-size: 16px; font-weight: 700; color: var(--error); }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-end small { font-size: 16px; color: var(--ink-muted); }
.sent { grid-column: 1 / -1; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-sand); color: var(--success); font-weight: 700; }

/* Pied de page */
.footer { background: var(--surface-ink); color: var(--on-ink); padding-block: var(--space-12) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer img { width: 150px; }
.footer h3 { font-size: 18px; color: var(--orange-on-ink); margin-bottom: var(--space-3); }
.footer a { color: var(--on-ink); }
.footer address { font-style: normal; }
.footer p + p { margin-top: var(--space-2); }
.legal { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--on-ink-muted); font-size: 14px; line-height: 1.5; color: var(--on-ink-muted); }
.legal a { color: var(--on-ink-muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .client { transition: none; } }

/* Pages intérieures */
.page-hero { padding-block: var(--space-12); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero.orange { background: var(--orange-soft); }
.page-hero.teal { background: var(--teal-soft); }
.page-hero h1 { margin-top: var(--space-3); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; letter-spacing: -.01em; }
.page-hero .lead { margin-top: var(--space-4); font-size: 21px; line-height: 1.55; max-width: var(--measure); }
.page-hero .actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); }
.crumbs { font-size: 16px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.prose { max-width: var(--measure); display: grid; gap: var(--space-4); }
.prose h3 { font-size: 24px; line-height: 1.3; margin-top: var(--space-4); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.prose li::marker { color: var(--orange); }
.teal-list li::marker { color: var(--teal); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.tile { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); min-width: 0; }
.tile h3 { font-size: 21px; line-height: 1.3; }
.tile .kicker { font-size: 16px; font-weight: 700; color: var(--orange-deep); }
.tile.water .kicker { color: var(--teal-deep); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-12) var(--space-8); border-radius: var(--radius-lg); background: var(--surface-ink); color: var(--on-ink); }
.cta-band h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; color: var(--on-ink); }
.cta-band p { margin-top: var(--space-2); color: var(--on-ink-muted); }
.cta-band .btn-primary { background: var(--orange-on-ink); color: #121c1f; }
.cta-band .btn-primary:hover { background: var(--on-ink); color: #121c1f; }
.cta-band :focus-visible { outline-color: var(--on-ink); }
.article { max-width: var(--measure); display: grid; gap: var(--space-4); padding-block: var(--space-8); border-bottom: 1px solid var(--line); }
.article:first-child { padding-top: 0; }
.article .tag { justify-self: start; }
.article h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.25; }
.article time { color: var(--ink-muted); font-size: 16px; }
.legal-doc { max-width: var(--measure); display: grid; gap: var(--space-4); }
.legal-doc h2 { font-size: 24px; line-height: 1.3; margin-top: var(--space-6); }
.legal-doc dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-6); }
.legal-doc dt { font-weight: 700; }
.legal-doc dd { margin: 0; }
@media (max-width: 560px) { .legal-doc dl { grid-template-columns: 1fr; gap: 0; } .legal-doc dd { margin-bottom: var(--space-3); } }
.soon { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.soon .lock { width: 96px; height: 96px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); }
.soon ul { text-align: left; margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.soon li::marker { color: var(--teal); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-6); }
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Galaxie Synaxis : un seul lien, en pied de page */
.galaxie { margin-top: var(--space-6); font-weight: 700; color: var(--on-ink); }
.galaxie a { color: var(--orange-on-ink); text-underline-offset: 4px; }
.galaxie a:focus-visible { outline-color: var(--on-ink); }

/* Formulaire : piège à robots et message d'erreur */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent.is-error { color: var(--error); }
