/* Mon Annexe — styles partagés des pages légales (aligné sur la LP « Sérieux & bois ») */

:root {
  --canopy: #343434;
  --canopy-deep: #1A1A1A;
  --paper: #FFFFFF;
  --paper-warm: #F8F4EC;
  --line: #ECECEA;
  --cedar: #96601F; /* assombri (ex-#B5702C) : contraste AA 4.96:1 sur fond papier pour les liens */
  --cedar-soft: #BE823F;
  --sage: #6F6F6F;
  --ink: #343434;
  --ink-soft: #6F6F6F;

  --r-sm: 5px;
  --r-md: 10px;

  --maxw: 1180px;
  --readw: 760px;
  --pad: clamp(20px, 5vw, 56px);

  --f-display: "Jost", "Jost Fallback", system-ui, sans-serif;
  --f-body: "Jost", "Jost Fallback", system-ui, sans-serif;
  --f-mono: "Jost", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* Police auto-hébergée : Jost (doublure libre d'Europa). Europa volontairement ABSENTE des piles tant qu'on n'a pas ses fichiers licenciés : sinon toute police locale nommée Europa hijacke le rendu. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Jost Fallback'; src: local('Arial'); size-adjust: 98%; ascent-override: 100%; descent-override: 28%; line-gap-override: 0%; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* footer collé en bas même sur les pages courtes */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.doc { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

a { color: var(--cedar); text-underline-offset: 3px; }
a:hover { color: #8f5620; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--cedar); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2.5px solid var(--cedar-soft); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 24px; width: auto; display: block; }
.back-link { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--canopy); display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); padding: 9px 18px; border-radius: 5px; transition: border-color .18s, background-color .18s; }
.back-link:hover { color: var(--canopy); border-color: var(--canopy); background: var(--paper-warm); }

/* ---------- doc ---------- */
.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc-inner { max-width: var(--readw); margin-inline: auto; }
.doc img { max-width: 100%; height: auto; }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cedar); margin: 0 0 16px; display: inline-flex; align-items: center; }

.doc h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--canopy); margin: 0 0 12px; }
.doc .updated { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 8px; }
.doc .lead { font-size: 1.1rem; color: var(--ink-soft); margin: 18px 0 0; }

.doc h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.015em; color: var(--canopy); margin: 48px 0 14px; padding-top: 28px; display: flex; align-items: baseline; gap: 12px; }
.doc h2 .n { font-family: var(--f-display); font-size: 0.85rem; font-weight: 800; color: var(--cedar); }
.doc h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--canopy); margin: 28px 0 8px; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

.fill { background: rgba(211,139,60,0.14); color: #8f5620; font-family: var(--f-mono); font-size: 0.85em; padding: 1px 7px; border-radius: 5px; border: 1px dashed rgba(211,139,60,0.5); }

.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; color: #fff; background: var(--cedar-soft); padding: 0 25px; border: 0; border-radius: 5px; -webkit-appearance: none; appearance: none; cursor: pointer; text-decoration: none; transition: background .15s; }
.cta-btn:hover { background: #A86E32; color: #fff; }
.cta-btn[disabled] { opacity: .6; cursor: default; }

/* Header sur mobile : logo plus compact + CTA qui tient sur une ligne */
@media (max-width: 560px) {
  .header-row { gap: 12px; padding-block: 16px; }
  .brand img { height: 20px; }
  .site-header .cta-btn { height: 42px; padding: 0 16px; font-size: 11px; white-space: nowrap; }
}

/* ---------- formulaires (contact + partenaire) ---------- */
.form { max-width: 540px; margin: 8px 0 0; }
.form .row { margin-bottom: 16px; }
.form label { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); }
.form input, .form textarea { width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: var(--paper-warm); border: 0; border-radius: 5px; padding: 15px 16px; }
.form input:focus, .form textarea:focus { outline: none; background: #F0E7D6; }
.form textarea { min-height: 130px; resize: vertical; }
.form .opt-label { font-weight: 600; color: var(--ink-soft); font-size: 0.82rem; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45; cursor: pointer; }
.form .consent input { width: auto; flex: 0 0 auto; margin-top: 3px; accent-color: var(--cedar-soft); }
.form .legal-note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; margin: 4px 0 0; }
.form .legal-note a { color: var(--cedar); }
.form .err { color: #b4452f; font-size: 0.85rem; margin: 10px 0 0; display: none; }
.form .form-actions { margin-top: 18px; }
.form .ok { display: none; background: var(--paper-warm); border-left: 3px solid var(--cedar-soft); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 20px; }
.form .ok strong { color: var(--canopy); }
.form.sent .form-body { display: none; }
.form.sent .ok { display: block; }

/* grille d'arguments (page partenaire) */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0; }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--paper-warm); border-radius: var(--r-md); padding: 20px 22px; }
.feat h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feat p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.callout { background: var(--paper-warm); border-left: 3px solid var(--cedar-soft); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 22px; margin: 22px 0; }
.callout p { margin: 0; font-size: 0.98rem; }
.callout strong { color: var(--canopy); }

.info-card { background: var(--paper-warm); border-radius: var(--r-md); padding: 22px 24px; margin: 16px 0; }
.info-card p { margin: 0 0 6px; }
.info-card p:last-child { margin-bottom: 0; }

/* table cookies */
.tbl-scroll { overflow-x: auto; margin: 16px 0 22px; border-radius: var(--r-md); border: 1px solid var(--line); }
table.cookies { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 540px; }
table.cookies th, table.cookies td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cookies thead th { font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-warm); }
table.cookies tr:last-child td { border-bottom: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--canopy-deep); color: #fff; padding-block: 44px 30px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { height: 20px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-size: 15px; line-height: 24px; color: #fff; }
.footer-links a:hover { color: var(--cedar-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 14px; color: #fff; }
.footer-bottom .domain { letter-spacing: 0.04em; }

/* Footer riche (aligné sur la page d'accueil) : 3 colonnes Le service / Constructeurs / Légal */
.site-footer .foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.site-footer .foot-brand { max-width: 30em; }
.site-footer .foot-brand .brand { display: inline-flex; margin-bottom: 12px; }
.site-footer .foot-brand .brand img { height: 22px; width: auto; display: block; filter: brightness(0) invert(1); }
.site-footer .foot-brand p { font-size: 15px; color: #fff; margin: 0; line-height: 1.6; }
.site-footer .foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
/* h3 (et non h4) : hiérarchie de titres sans saut ; rendu identique à l'ancien h4 */
.site-footer .foot-col h3 { font-size: 16px; color: #fff; margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; }
.site-footer .foot-col a { display: block; font-size: 15px; line-height: 24px; color: #fff; margin-bottom: 8px; text-decoration: none; }
.site-footer .foot-col a:hover { color: var(--cedar-soft); }
.site-footer .foot-bottom { font-size: 14px; color: #fff; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .disclaimer { font-size: 14px; color: #fff; margin-top: 14px; line-height: 1.6; max-width: 62em; }
@media (max-width: 560px) {
  .site-footer .foot-grid { gap: 24px; }
  .site-footer .foot-links { gap: 24px 40px; }
}

/* Lecture mobile (palier 2, 15/08/2026) : corps de texte 15px -> 17px sur mobile.
   Les encarts .callout suivent le corps ; le reste des tailles en rem ne bouge pas. */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .callout p { font-size: inherit; }
}
