/* ============================================================================
   DA « Le constat » — etat-des-lieux-pdf.fr
   Famille « formulaire officiel » du parc (papier, encre, filets, aucun dégradé),
   accent LAITON : la couleur des clés qu'on remet le jour de l'état des lieux.
   Contrastes mesurés AA : accent #9A4A1C sur papier 6,1:1, blanc sur accent 6,9:1.
   ========================================================================== */
:root {
  --papier: #F2F1EC;
  --feuille: #FFFFFF;
  --champ: #E9E8E2;
  --encre: #16191C;
  --encre-2: #454B50;
  --encre-3: #5E656B;
  --trait: #C9C6BE;
  --trait-clair: #DEDBD3;
  --accent: #9A4A1C;
  --accent-fonce: #7A3A15;
  --accent-voile: #F4E7DE;
  --neuf: #17603C;
  --bon: #2F6B3A;
  --usage: #7A5200;
  --mauvais: #96261D;
  --ok-voile: #E4EDE8;
  --alerte-voile: #F2E3E1;
  --info-voile: #EFE9D9;
  --titre: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 4px;
  --ombre: 0 1px 0 var(--trait-clair), 0 8px 24px -16px rgba(22, 25, 28, .25);
  --largeur: 1140px;

  /* Jetons de l'ancien socle, lus par vetuste.css : rebasculés sur la DA. */
  --color-primary: var(--accent); --color-primary-dark: var(--accent-fonce); --color-primary-light: var(--accent);
  --color-primary-bg: var(--accent-voile); --color-accent-dark: var(--accent-fonce);
  --color-bg: var(--papier); --color-surface: var(--feuille); --color-text: var(--encre);
  --color-text-light: var(--encre-2); --color-text-muted: var(--encre-3); --color-border: var(--trait);
  --color-error: var(--mauvais); --color-info-bg: var(--info-voile);
  --font-family: var(--texte); --font-size-xs: .75rem; --font-size-sm: .875rem;
  --radius-sm: 3px; --radius-md: var(--r); --radius-lg: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 16px/1.6 var(--texte); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-fonce); }
h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--encre); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .conteneur { padding: 0 24px; } }
.etroit { max-width: 780px; }
.mono { font-family: var(--mono); }
.discret { color: var(--encre-3); font-size: .9rem; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.25em;
  border: 1.5px solid var(--encre); border-radius: var(--r); background: var(--feuille); color: var(--encre);
  font: 600 1rem/1.2 var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--champ); color: var(--encre); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.btn--encre { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn--encre:hover { background: #2B3036; color: #fff; }
.btn--lien { border-color: transparent; background: transparent; color: var(--accent); padding-left: .2em; padding-right: .2em; }
.btn--lien:hover { background: transparent; text-decoration: underline; color: var(--accent-fonce); }
.btn--petit { min-height: 36px; padding: .45em .9em; font-size: .92rem; }
.btn--large { min-height: 54px; padding: .85em 1.6em; font-size: 1.08rem; }
.btn--bloc { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.entete { position: sticky; top: 0; z-index: 40; background: rgba(242, 241, 236, .96); border-bottom: 1px solid var(--trait-clair);
  backdrop-filter: saturate(1.2) blur(6px); }
.entete__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font: 700 1.05rem/1 var(--titre); }
.marque svg { flex: none; }
.marque span b { color: var(--accent); font-weight: 700; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--encre-2); text-decoration: none; padding: .5em .7em; border-radius: var(--r); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--encre); background: var(--champ); }
.nav .btn { margin-left: 6px; color: #fff; }
.nav .btn:hover { background: var(--accent-fonce); color: #fff; }
.nav-bascule { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--trait); border-radius: var(--r); background: var(--feuille); cursor: pointer; }
.nav-bascule span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--encre); }
@media (max-width: 900px) {
  .nav-bascule { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--feuille); border-bottom: 1px solid var(--trait); padding: 8px 16px 16px; box-shadow: var(--ombre); }
  .nav.ouvert { display: flex; }
  .nav a { padding: .8em .4em; border-bottom: 1px solid var(--trait-clair); border-radius: 0; }
  .nav .btn { margin: 12px 0 0; border-bottom: 0; }
}

/* ── Messages ────────────────────────────────────────────────────────────── */
.flashs { position: fixed; top: 76px; right: 16px; left: 16px; z-index: 60; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.flash { pointer-events: auto; max-width: 460px; padding: .8em 1em; border-radius: var(--r); background: var(--feuille); border: 1px solid var(--trait);
  border-left: 4px solid var(--encre-2); box-shadow: var(--ombre); font-size: .95rem; }
.flash--success { border-left-color: var(--neuf); }
.flash--error { border-left-color: var(--mauvais); }
.encart { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--trait); background: var(--feuille); }
.encart--ok { background: var(--ok-voile); border-color: #B9D2C4; }
.encart--alerte { background: var(--alerte-voile); border-color: #E0B8B3; }
.encart--info { background: var(--info-voile); border-color: #DCCFA8; }
.encart--accent { background: var(--accent-voile); border-color: #E3C7B3; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section--feuille { background: var(--feuille); border-top: 1px solid var(--trait-clair); border-bottom: 1px solid var(--trait-clair); }
.section--encre { background: var(--encre); color: #E9E8E2; }
.section--encre h2, .section--encre h3 { color: #fff; }
.section--encre a { color: #F0C9AE; }
.surtitre { display: inline-block; font: 600 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section--encre .surtitre { color: #F0C9AE; }
.intro { font-size: 1.12rem; color: var(--encre-2); max-width: 680px; }
.grille-2 { display: grid; gap: 24px; }
.grille-3 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grille-2 { grid-template-columns: 1fr 1fr; } .grille-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Héros ───────────────────────────────────────────────────────────────── */
.heros { padding: 40px 0 48px; }
.heros__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .heros__in { grid-template-columns: 1.02fr 1fr; gap: 48px; } .heros { padding: 64px 0 72px; } }
.heros h1 { margin-bottom: .35em; }
.heros h1 em { font-style: normal; color: var(--accent); }
.heros .intro { margin-bottom: 24px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.preuves { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--encre-2); font-size: .92rem; }
.preuves li::before { content: "✓"; color: var(--neuf); font-weight: 700; margin-right: 6px; }

/* La feuille : le document, montré tel qu'il sera livré */
.feuille-doc { position: relative; background: var(--feuille); border: 1px solid var(--trait); border-radius: 2px; box-shadow: 0 1px 0 var(--trait-clair), 0 24px 48px -28px rgba(22,25,28,.45);
  padding: 22px 22px 18px; font-size: .78rem; line-height: 1.45; transform: rotate(-.6deg); }
.feuille-doc::before { content: ""; position: absolute; inset: 6px -8px -8px 6px; border: 1px solid var(--trait-clair); background: #FBFAF7; z-index: -1; transform: rotate(1.4deg); }
.feuille-doc h3 { font-size: 1.05rem; margin: 0 0 2px; }
.feuille-doc .fd-sous { color: var(--encre-3); margin: 0 0 12px; }
.feuille-doc .fd-bande { background: var(--encre); color: #fff; font: 700 .7rem/1 var(--texte); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; margin: 12px 0 6px; }
.feuille-doc table { width: 100%; border-collapse: collapse; }
.feuille-doc th, .feuille-doc td { border: 1px solid var(--trait); padding: 4px 6px; text-align: left; }
.feuille-doc th { background: var(--papier); color: var(--encre-2); font-weight: 600; }
.feuille-doc .pire td { background: var(--alerte-voile); }
.feuille-doc .ref { position: absolute; top: 18px; right: 20px; font: 500 .68rem/1 var(--mono); color: var(--encre-3); }
.e-neuf { color: var(--neuf); font-weight: 700; } .e-bon { color: var(--bon); font-weight: 700; }
.e-usage { color: var(--usage); font-weight: 700; } .e-mauvais { color: var(--mauvais); font-weight: 700; }
.fd-photo { display: inline-block; font: 600 .66rem/1 var(--mono); color: var(--accent); }
.fd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fd-sign div { border: 1px solid var(--trait); height: 56px; padding: 5px 7px; color: var(--encre-3); font-size: .68rem; position: relative; }
.fd-sign svg { position: absolute; left: 10px; bottom: 6px; }

/* ── Cartes, listes ──────────────────────────────────────────────────────── */
.carte { background: var(--feuille); border: 1px solid var(--trait); border-radius: var(--r); padding: 22px; }
.carte h3 { margin-top: 0; }
.liste-coches { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-coches li { position: relative; padding-left: 26px; margin: 0 0 .55em; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border: 1.5px solid var(--encre); border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent)) center/8px 8px no-repeat; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--encre); border-radius: 50%; font: 700 .9rem/1 var(--mono); margin-bottom: 10px; }

/* ── Tarifs ──────────────────────────────────────────────────────────────── */
.tarifs { display: grid; gap: 20px; }
@media (min-width: 820px) { .tarifs { grid-template-columns: 1fr 1fr; } }
.tarif { position: relative; background: var(--feuille); border: 1.5px solid var(--trait); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; }
.tarif--mis-en-avant { border-color: var(--encre); }
.tarif__etiquette { position: absolute; top: -12px; left: 20px; background: var(--encre); color: #fff; font: 600 .74rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; }
.tarif h3 { margin: 0 0 4px; }
.tarif__pour { color: var(--encre-3); font-size: .93rem; margin-bottom: 14px; }
.tarif__prix { font: 700 2.4rem/1 var(--titre); margin: 6px 0 4px; }
.tarif__prix small { font: 500 1rem var(--texte); color: var(--encre-3); }
.tarif__note { color: var(--encre-3); font-size: .88rem; margin-bottom: 16px; }
.tarif .liste-coches { flex: 1; font-size: .96rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--trait); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 1.5rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 14px; color: var(--encre-2); }

/* ── Bandeau application ─────────────────────────────────────────────────── */
.bandeau-app { display: grid; gap: 16px; align-items: center; background: var(--feuille); border: 1px solid var(--trait); border-left: 4px solid var(--accent);
  border-radius: var(--r); padding: 18px 20px; }
@media (min-width: 760px) { .bandeau-app { grid-template-columns: auto 1fr auto; } }
.bandeau-app p { margin: 0; color: var(--encre-2); }
.bandeau-app strong { color: var(--encre); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 8px; background: var(--encre); color: #fff; text-decoration: none; font-size: .78rem; line-height: 1.15; }
.store b { display: block; font-size: 1rem; }
.store--bientot { background: var(--champ); color: var(--encre-2); border: 1px dashed var(--trait); cursor: default; }

/* ── Formulaires ─────────────────────────────────────────────────────────── */
.champ { display: grid; gap: 6px; margin-bottom: 14px; }
.champ label, .etiquette { font-weight: 600; font-size: .93rem; }
.champ small { color: var(--encre-3); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .75em; border: 1.5px solid var(--trait); border-radius: var(--r); background: var(--feuille);
  color: var(--encre); font: 16px/1.4 var(--texte); }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px var(--accent-voile); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.45; cursor: pointer; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.form-ligne input { flex: 1 1 220px; }
.form-erreur { color: var(--mauvais); font-size: .9rem; margin: 6px 0 0; }
.form-ok { color: var(--neuf); font-size: .95rem; margin: 8px 0 0; }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.pied { background: var(--encre); color: #BFC3C7; padding: 48px 0 24px; margin-top: 0; font-size: .92rem; }
.pied a { color: #E9E8E2; text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied__grille { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pied h4 { color: #fff; font-size: .8rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.pied__bas { border-top: 1px solid #33383E; margin-top: 32px; padding-top: 18px; color: #8C9196; font-size: .84rem; }
.pied .reseau { border-top-color: #33383E !important; }
.pied .reseau a { background: #1F2328 !important; border-color: #33383E !important; }
.pied .reseau a span span:first-child { color: #fff !important; }
.pied .reseau a span span:last-child { color: #9AA0A6 !important; }

/* ── Trio du bailleur ────────────────────────────────────────────────────── */
.trio { display: grid; gap: 12px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio a { display: block; background: var(--feuille); border: 1px solid var(--trait); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--encre); }
.trio a:hover { border-color: var(--encre); }
.trio a b { display: block; font-family: var(--titre); font-size: 1.05rem; margin-bottom: 2px; }
.trio a span { color: var(--encre-3); font-size: .9rem; }
.trio a.ici { border-style: dashed; cursor: default; }

/* ── Contenu éditorial (pages SEO) ───────────────────────────────────────── */
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; background: var(--feuille); }
.prose th, .prose td { border: 1px solid var(--trait); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--champ); }
.prose caption { caption-side: top; text-align: left; color: var(--encre-3); font-size: .88rem; padding-bottom: 6px; }
.prose .seo-table-wrap, .prose .tableau { overflow-x: auto; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--feuille); }
.fil { font-size: .88rem; color: var(--encre-3); margin-bottom: 14px; }
.fil a { color: var(--encre-3); }
.encadre-cta { margin: 36px 0; padding: 24px; background: var(--feuille); border: 1.5px solid var(--encre); border-radius: var(--r); }
.encadre-cta h2 { margin-top: 0; font-size: 1.4rem; }

@media print { .entete, .pied, .bandeau-app, .flashs { display: none !important; } body { background: #fff; } }

/* Alias de l'ancien socle (page /calcul-vetuste) : mêmes composants, nouvelle DA. */
.container { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; }
.btn-outline { background: var(--feuille); }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.08rem; }

/* Téléphone : aucune barre de défilement horizontale, et un accueil court. */
html, body { overflow-x: clip; }
.heros__in > *, .grille-2 > *, .grille-3 > *, .tarifs > * { min-width: 0; }
@media (max-width: 719px) {
  .feuille-doc { transform: none; padding: 16px 14px 12px; }
  .feuille-doc::before { display: none; }
  .feuille-doc .fd-mobile-cache { display: none; }
  .section { padding: 40px 0; }
  .grille-3 .liste-coches li:nth-child(n+4) { display: none; }
  .tarif { padding: 22px 18px; }
  .tarif .liste-coches li:nth-child(n+4) { display: none; }
  .heros__actions .btn--large { width: 100%; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .pied__grille > div:first-child { grid-column: 1 / -1; }
  .pied { font-size: .86rem; padding-top: 36px; }
}
.btn-sm { min-height: 36px; padding: .45em .9em; font-size: .92rem; }
