/* QUALITE24 — thème commun du site (issu de l'accueil immersif). Polices : SIL OFL 1.1. */
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
:root {
  --ivory: #f7f5f0;
  --paper: #fffdf9;
  --ink: #23262b;
  --ink-soft: #5a5e66;
  --line: #e3ddd2;
  --red: #9e1022;
  --red-dark: #7e0c1b;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: inherit; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── En-tête permanent ─────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(255, 253, 249, 0.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(35, 38, 43, 0.07);
}
.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { font: 600 17px/1 var(--sans); letter-spacing: 0.08em; color: var(--ink); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 14px; color: var(--ink); padding: 12px 0; }
.main-nav a:hover { color: var(--red); }
.menu-toggle { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px;
  border-radius: 4px; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-arrow::after { content: '→'; }
.link-arrow { color: var(--ink); font-size: 15px; text-underline-offset: 4px; }
.link-arrow::after { content: ' →'; }

/* ── Contenus ───────────────────────────────────────────────────────── */
.block { padding: clamp(64px, 10vw, 120px) 0; background: var(--ivory); position: relative; z-index: 2; }
.block.alt { background: #efebe3; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.wrap.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--red); margin: 0 0 10px; }
.block h2 { font: 400 clamp(32px, 4vw, 52px)/1.08 var(--serif); margin: 0 0 22px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 10px 0 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; font-size: 14px; }
.card h3 { font: 400 26px/1.15 var(--serif); margin: 0 0 10px; }
.card p { color: var(--ink-soft); margin: 0 0 14px; font-size: 15px; }
.card a { color: var(--ink); }
.values { font: 400 22px var(--serif); color: var(--red); }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promises li { background: var(--paper); border-left: 3px solid var(--red); padding: 18px 20px; border-radius: 0 6px 6px 0; }
.towns a { white-space: nowrap; }
address { font-style: normal; margin-bottom: 14px; }
.contact-lines a { font-size: 20px; font-weight: 500; text-decoration: none; line-height: 1.8; }
.form-box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 34px); }
.form-box h3 { font: 400 26px var(--serif); margin: 0 0 14px; }

/* Formulaire */
.lead-form { display: grid; gap: 12px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { display: grid; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid #cfc8bc; border-radius: 4px; padding: 11px 12px; min-height: 46px;
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.lead-form .opt { font-style: italic; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-form .consent { font-size: 12px; color: var(--ink-soft); margin: 0; }
.lead-form .status { font-size: 14px; margin: 0; min-height: 1em; }
.lead-form .status.ok { color: #1f6b3a; }
.lead-form .status.err { color: var(--red); }
.lead-form button[disabled] { opacity: 0.6; cursor: progress; }

.site-footer { background: #1f2226; color: #d9d5cd; padding: 36px 0 calc(36px + var(--safe-b)); position: relative; z-index: 2; }
.site-footer a { color: #d9d5cd; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot .credits { flex-basis: 100%; font-size: 12px; opacity: 0.7; margin: 0; }
.fab-call { position: fixed; right: 18px; bottom: calc(68px + var(--safe-b)); width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; z-index: 40; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }

/* ── Tablette et téléphone ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .wrap.two { grid-template-columns: 1fr; }
  .main-nav ul { gap: 18px; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .site-header { gap: 10px; padding: 0 12px; }
  .brand-logo { height: 32px; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid rgba(35, 38, 43, 0.18); border-radius: 4px; background: transparent; font: 500 14px var(--sans); color: var(--ink); }
  .main-nav ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 12px 12px; }
  .main-nav ul.open { display: flex; }
  .main-nav ul a { display: block; padding: 14px 8px; font-size: 17px; border-bottom: 1px solid #f0ebe2; }
  .site-header > .btn { padding: 0 14px; font-size: 14px; }
  .cards { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .fab-call { bottom: calc(80px + var(--safe-b)); right: 14px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ── Pages intérieures ─────────────────────────────────────────────── */
body { padding-top: var(--header-h); }
.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 5vw, 56px); background: var(--ivory); }
.page-hero h1 { font: 400 clamp(40px, 6vw, 76px)/1.04 var(--serif); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.page-hero .rule { display: block; width: 56px; height: 2px; background: var(--red); margin: 24px 0 18px; }
.page-hero p { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin: 0 0 18px; }
.breadcrumb a { text-decoration: none; }
.prose { max-width: 68ch; }
.prose h2 { font: 400 clamp(28px, 3.2vw, 40px)/1.12 var(--serif); margin: 1.6em 0 0.5em; text-wrap: balance; }
.prose h3 { font: 500 18px/1.3 var(--sans); margin: 1.4em 0 0.4em; }
.prose p, .prose li { color: #3a3e45; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px 20px 64px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font: 400 26px/1 var(--serif); color: var(--red); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font: 400 22px/1.3 var(--serif); cursor: pointer; list-style: none; }
.faq summary::after { content: '+'; float: right; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.cta-band { background: #1f2226; color: #f3efe8; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { font: 400 clamp(30px, 4vw, 48px)/1.1 var(--serif); margin: 0 0 18px; color: #fff; }
.cta-band .btn-outline { border-color: #f3efe8; color: #f3efe8; }
.illus { position: relative; }
.illus figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
/* Contenu des pages existantes (balises simples sous <main>) */
.prose-page { display: block; }
.prose-page > section, .prose-page > article { padding: clamp(40px, 6vw, 72px) max(20px, calc((100% - 1160px) / 2)); }
.prose-page > section:nth-of-type(even) { background: #efebe3; }
.prose-page h1 { font: 400 clamp(40px, 6vw, 72px)/1.04 var(--serif); margin: 0 0 18px; text-wrap: balance; }
.prose-page h2 { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); margin: 0 0 16px; text-wrap: balance; }
.prose-page h3 { font: 400 24px/1.2 var(--serif); }
.prose-page p, .prose-page li { max-width: 68ch; }
