/* RVD Menuiseries : feuille de style unique.
   Réglages de base dans :root. Les couleurs de texte respectent un contraste d'au moins 7:1
   (niveau AAA) sur leur fond ; les bordures de champs de formulaire atteignent 3:1. */

@font-face { font-family: "Saira Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/saira-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/saira-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Palette : graphite du logo, ardoise des volets, papier chaud */
  --ink: #12161a;
  --ink-soft: #38424a;
  --paper: #f4f5f6;
  --card: #ffffff;
  --band: #e5e7e9;
  --line: #c9ced2;
  --control: #5f6a72;
  --night: #161a1e;
  --night-text: #e9edf0;
  --night-soft: #c3cbd2;
  --accent: #14171a;
  --accent-on-night: #d3d9de;
  --focus: #005fcc;
  --focus-on-night: #ffd166;
  --danger: #8f1d1d;
  --ok: #1d5a38;
  --todo-bg: #f2e2a6;
  --todo-ink: #4a3b00;

  --font-display: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;   /* 19 px */
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.02em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-night); }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--card); color: var(--ink); padding: 12px 18px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--white { background: var(--card); border-block: 1px solid var(--line); }
.section--band { background: var(--band); border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.lead { font-size: 1.3rem; max-width: 36em; }
.measure { max-width: 40em; }
.muted { color: var(--ink-soft); }
.eyebrow { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.on-night .eyebrow { color: var(--accent-on-night); }

/* Marqueur de contenu à compléter : à retirer avant la mise en ligne */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 1px 8px; border-radius: 4px; font-size: 0.9em; font-weight: 600; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: #ffffff; font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.btn:hover { background: #32383d; border-color: #32383d; }
.btn--light { background: var(--night-text); border-color: var(--night-text); color: var(--night); }
.btn--light:hover { background: #ffffff; border-color: #ffffff; }
.btn--outline { background: transparent; color: var(--accent); }
.site-header { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #6d757c, #e8ecef 30%, #8b939a 55%, #f1f4f6 80%, #6d757c) 1; }
.btn--outline:hover { background: var(--accent); color: #ffffff; }
.btn--outline-night { background: transparent; border-color: var(--night-text); color: var(--night-text); }
.btn--outline-night:hover { background: var(--night-text); color: var(--night); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* En-tête */
.site-header { background: var(--night); color: var(--night-text); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }
.nav-toggle { display: none; min-height: 48px; padding: 8px 18px; background: transparent; border: 2px solid var(--night-text); color: var(--night-text); border-radius: var(--radius); font: 700 1.125rem var(--font-body); cursor: pointer; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; }
.nav-list a, .nav-list .nav-call { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); }
.nav-list a:hover { background: #262d33; }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--accent-on-night); }
.nav-list .nav-call { margin-left: 8px; background: transparent; color: var(--night-text); letter-spacing: 0.04em; box-shadow: inset 0 0 0 2px #5b646b; user-select: text; }
@media (max-width: 920px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { width: 100%; }
  .js .nav-list { display: none; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a { justify-content: flex-start; font-size: 1.4rem; border-top: 1px solid #2c343b; border-radius: 0; }
  .js .nav-list .nav-call { margin: 10px 0 0; justify-content: center; border-radius: var(--radius); border: 0; }
}

/* Accroche */
.hero { background: var(--night); color: var(--night-text); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: stretch; padding-block: clamp(32px, 6vw, 72px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero-text .lead { color: var(--night-soft); margin: 0; }
.hero-photo { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: #2a3138; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-photo { min-height: 0; aspect-ratio: 16 / 9; } }

.page-title { background: var(--night); color: var(--night-text); }
.page-title .wrap { padding-block: clamp(32px, 6vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.page-title .lead { color: var(--night-soft); margin: 0; }

/* Cartes et listes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.card .actions { margin-top: auto; padding-top: 6px; }
.rows { list-style: none; border-bottom: 1px solid var(--line); }
.rows li { padding: 14px 0; border-top: 1px solid var(--line); }
.rows strong { display: block; }
.rows span { color: var(--ink-soft); }

/* Étapes */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 4px solid var(--accent); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 1.6rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--accent); background: transparent; color: var(--accent); font: 700 1.05rem var(--font-body); cursor: pointer; }
.chip:hover { background: #e6e8ea; }
.chip[aria-pressed="true"] { background: var(--accent); color: #ffffff; }
.gallery { list-style: none; columns: 3 280px; column-gap: 20px; }
.gallery li { break-inside: avoid; margin-bottom: 24px; }
.gallery li[hidden] { display: none; }
.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; }
.tile { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.tile--link { cursor: pointer; text-decoration: none; }
.tile img { width: 100%; border-radius: var(--radius); background: var(--band); }
.tile .cap { display: block; padding-top: 10px; font-weight: 600; }
.tile:hover img { filter: brightness(0.93); }
.gallery-count { margin: 0; color: var(--ink-soft); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: var(--night-text); }
dialog.lightbox::backdrop { background: rgba(10, 12, 14, 0.94); }
.lb { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px var(--gutter) 16px; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-count { font-weight: 600; }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 0; }
.lb-stage figure { margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-cap { margin: 0; text-align: center; font-size: 1.15rem; font-weight: 600; }
.lb-btn { min-width: 52px; min-height: 52px; padding: 8px 14px; border-radius: var(--radius); border: 2px solid var(--night-text); background: #1f252a; color: var(--night-text); font: 700 1.15rem var(--font-body); cursor: pointer; }
.lb-btn:hover { background: #2f373e; }
@media (max-width: 640px) {
  .lb-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage .lb-prev, .lb-stage .lb-next { grid-row: 2; }
  .lb-stage .lb-prev { justify-self: start; } .lb-stage .lb-next { justify-self: end; margin-top: -52px; }
  .lb-stage figure { grid-row: 1; }
  .lb-stage img { max-height: calc(100vh - 250px); }
}

/* À propos */
.about { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-photo { flex: 0 1 340px; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.about-photo p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text p { margin: 0; max-width: 40em; }
.timeline { list-style: none; display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline .when { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }

/* Contact et formulaire */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 2px 0 0; }
.contact-list .phone { font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: 0.03em; text-decoration: none; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .hint { color: var(--ink-soft); font-size: 1rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--control); border-radius: var(--radius); background: #ffffff; color: var(--ink); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.error { margin: 0; color: var(--danger); font-weight: 600; font-size: 1rem; }
.error:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 56px; padding: 10px 16px; border: 2px solid var(--control); border-radius: var(--radius); background: #ffffff; font-weight: 600; line-height: 1.25; }
.choice input:checked + span { border-color: var(--accent); background: #e6e8ea; box-shadow: inset 0 0 0 2px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.check input { width: 26px; height: 26px; margin: 0; accent-color: var(--accent); }
.urgent-note { margin: 0; padding: 14px 16px; border-radius: var(--radius); background: #f9e9d3; color: #4a2a05; font-weight: 600; }
.urgent-note[hidden] { display: none; }
.previews { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.previews:empty { display: none; }
.previews li { position: relative; }
.previews img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.previews button { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ffffff; background: var(--ink); color: #ffffff; font: 700 1rem/1 var(--font-body); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.status:empty { display: none; }
.status--info { background: #e6e8ea; color: var(--accent); }
.status--ok { background: #dcefe4; color: var(--ok); }
.status--error { background: #f6dcdc; color: var(--danger); }
.legal-note { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* Textes juridiques */
.prose { max-width: 44em; }
.prose h2 { font-size: 2rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }

/* Bandeau d'appel */
.cta-band { background: var(--night); color: var(--night-text); }
.cta-band .wrap { padding-block: clamp(36px, 6vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { max-width: 16em; }
.cta-band p { margin: 8px 0 0; color: var(--night-soft); max-width: 34em; }

/* Pied de page */
.site-footer { background: var(--night); color: var(--night-soft); border-top: 1px solid #2c343b; }
.site-footer .wrap { padding-block: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer img { height: 60px; width: auto; }
.site-footer h2 { font-size: 1.4rem; color: var(--night-text); margin-bottom: 8px; letter-spacing: 0.04em; }
.site-footer p, .site-footer li { margin: 0 0 4px; font-size: 1.05rem; }
.site-footer ul { list-style: none; }
.site-footer a { color: var(--night-text); }

/* Barre d'action fixe sur téléphone */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid #2c343b; }
  .mobile-bar .btn { width: 100%; padding-inline: 10px; }
}

@media print { .site-header, .mobile-bar, .cta-band, .site-footer { display: none; } body { background: #ffffff; } }

a[href^="tel:"] { white-space: nowrap; }
