/* Police Outfit hébergée (RGPD : aucune requête vers Google) */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/outfit-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/outfit-400-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: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/outfit-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/outfit-500-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: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/outfit-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/outfit-600-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: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/outfit-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/outfit-700-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; }

:root {
  --teal: #1b566a;
  --teal-dark: #123f50;
  --header: #015260; /* = fond du logo */
  --ink: #17475a;
  --ink-soft: #4d6f80;
  --gold: #c9973f;
  --gold-light: #e3b966;
  --cream: #f8f7f2;
  --card: #fdfcf9;
  --line: #e4e1d6;
  --radius: 10px;
  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* L'attribut hidden doit toujours l'emporter sur un display défini ailleurs */
[hidden] { display: none !important; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.5rem; border-radius: 6px; border: 0;
  font-family: inherit; font-weight: 500; font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(23 71 90 / .22); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-outline:hover { border-color: var(--ink); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--teal-dark); font-weight: 600;
}

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Fenêtre modale à cadre intégré (rendez-vous, CGV) ───────────── */
.pop { width: min(860px, calc(100vw - 2rem)); height: min(780px, calc(100dvh - 2rem)); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.pop[open] { display: flex; flex-direction: column; animation: rdv-in .22s ease; }
.pop::backdrop { background: rgb(1 40 48 / .6); backdrop-filter: blur(3px); animation: rdv-fade .22s ease; }
.pop .top { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem 1.5rem; background: var(--header); color: #fff; }
.pop h2 { margin: 0 auto 0 0; font-size: 1.15rem; font-weight: 600; }
.pop .alt { font-size: .85rem; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.pop .alt:hover { opacity: 1; }
.pop .close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; transition: background .15s; }
.pop .close:hover { background: rgb(255 255 255 / .25); }
.pop .close svg { width: 20px; height: 20px; }
.pop iframe { flex: 1; width: 100%; border: 0; background: #fff; }
body:has(.pop[open]) { overflow: hidden; }
@keyframes rdv-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes rdv-fade { from { opacity: 0; } }
@media (max-width: 600px) {
  .pop { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .pop .alt { display: none; }
}

/* ── Pages d'authentification (connexion, activation, mot de passe) ─── */
.page-main { min-height: 60vh; }
.auth { display: grid; place-items: start center; padding-block: clamp(2rem, 6vw, 4.5rem); }
.auth-card { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: 0 14px 34px rgb(23 71 90 / .09); }
.auth-card h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.auth-card .lead { margin: 0 0 1.4rem; color: var(--ink-soft); }
.auth-card form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.field input { font: inherit; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field input[aria-invalid=true] { border-color: #b3261e; }
.field .hint { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.pw { position: relative; }
.pw input { padding-right: 3.2rem; }
.pw button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: .8rem; padding: .4rem .5rem; cursor: pointer; border-radius: 4px; }
.pw button:hover { color: var(--ink); }
.code-input { text-transform: uppercase; letter-spacing: .25em; font-size: 1.2rem !important; text-align: center; font-weight: 600; }
.form-err { margin: 0; color: #b3261e; font-size: .88rem; } .form-err:empty { display: none; }
.form-ok { margin: 0; padding: .8rem 1rem; border-radius: 6px; background: #e8f5ee; color: #1f6b43; font-size: .92rem; }
.auth-card .btn { justify-content: center; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.alt-links { margin: 1rem 0 0; text-align: center; font-size: .92rem; }
.alt-links a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.auth-sep { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 1rem; color: var(--ink-soft); font-size: .85rem; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.who { margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 6px; background: #fffaf0; border: 1px solid var(--gold-light); font-size: .92rem; }
.who strong { color: var(--ink); }
.account-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 1.2rem 0 1.6rem; }
.account-dl dt { color: var(--ink-soft); } .account-dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.soon { margin: 1.4rem 0 0; color: var(--ink-soft); font-size: .92rem; }

/* ── Espace client (réparations, devis, factures) ─────────────────── */
.acc { padding-block: clamp(1.4rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.5rem); max-width: 980px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.acc-hello { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.acc-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.acc-logout, .acc-rdv { width: auto; padding: .6rem 1rem; font-size: .9rem; }
.acc-nav { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; scrollbar-width: none; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav a { padding: .7rem 1rem; white-space: nowrap; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 500; }
.acc-nav a:hover { color: var(--ink); }
.acc-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.acc-title { margin: 0 0 1rem; font-size: 1.35rem; }
.acc-empty { padding: 2.2rem 1rem; text-align: center; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.acc-loading { color: var(--ink-soft); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.tile-link { display: grid; gap: .25rem; padding: 1.2rem 1.3rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s, box-shadow .18s, border-color .18s; }
.tile-link:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 26px rgb(23 71 90 / .12); }
.tile-link .n { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--ink); }
.tile-link .t { font-weight: 600; } .tile-link .s { color: var(--ink-soft); font-size: .88rem; }

.rows { display: grid; gap: .8rem; }
.row-card { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
a.row-card:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgb(23 71 90 / .1); }
.row-card .ttl { font-weight: 600; } .row-card .sub { color: var(--ink-soft); font-size: .9rem; grid-column: 1; }
.row-card .aside { grid-column: 2; grid-row: 1 / span 2; text-align: right; display: grid; gap: .35rem; justify-items: end; align-content: center; }
.row-card .amt { font-weight: 700; }
.row-card .act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.btn-sm { width: auto; padding: .5rem .9rem; font-size: .88rem; }

.pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill.neutral { background: #ece9df; color: #5b6a72; } .pill.info { background: #dcecf3; color: #14566e; }
.pill.warn { background: #fbefd2; color: #8a5a00; } .pill.ok { background: #dff2e6; color: #1f6b43; } .pill.bad { background: #f8dcd9; color: #9a2a20; }

.tracker { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; margin: 1.2rem 0 1.6rem; counter-reset: s; }
.tracker li { list-style: none; text-align: center; font-size: .78rem; color: var(--ink-soft); position: relative; padding-top: 1.7rem; }
.tracker li::before { content: ''; position: absolute; left: 50%; top: .3rem; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.tracker li::after { content: ''; position: absolute; left: -50%; top: calc(.3rem + 6px); width: 100%; height: 2px; background: var(--line); }
.tracker li:first-child::after { display: none; }
.tracker li.done::before, .tracker li.done::after { background: var(--teal); }
.tracker li.now::before { background: var(--gold); box-shadow: 0 0 0 4px rgb(201 151 63 / .25); }
.tracker li.now { color: var(--ink); font-weight: 600; }
.tracker.cancelled li::before, .tracker.cancelled li::after { background: #e3b3ae; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.panel h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.panel p { margin: 0 0 .5rem; white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0; }
.kv dt { color: var(--ink-soft); } .kv dd { margin: 0; font-weight: 500; }
.thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.thumb { width: 92px; height: 92px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: #eee; cursor: pointer; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .kind { position: absolute; inset: auto 4px 4px auto; background: rgb(0 0 0 / .6); color: #fff; border-radius: 4px; font-size: .7rem; padding: .1rem .35rem; }
.timeline { display: grid; gap: 1rem; }
.timeline .ev { padding-left: 1rem; border-left: 3px solid var(--gold-light); }
.timeline .ev h3 { margin: 0; font-size: .98rem; } .timeline .ev time { color: var(--ink-soft); font-size: .82rem; }
.back-link { display: inline-block; margin-bottom: .8rem; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .acc-head { align-items: flex-start; flex-direction: column; } .acc-actions { justify-content: flex-start; } .acc-nav a { padding: .7rem .75rem; } .row-card { grid-template-columns: 1fr; } .row-card .aside { grid-column: 1; grid-row: auto; text-align: left; justify-items: start; } .tracker li { font-size: .68rem; } }

.pickup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-bottom: 1.2rem; }
.pickup .btn { flex: none; }

/* ── Parc d'appareils, déclarations, boîtes de dialogue ─────────────── */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1rem; margin-bottom: 1rem; }
.page-head .acc-title { margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sect { margin: 1.6rem 0 .6rem; font-size: 1.05rem; color: var(--ink-soft); font-weight: 600; }
.notice { padding: .8rem 1rem; border-radius: 8px; background: #fffaf0; border: 1px solid var(--gold-light); margin-bottom: 1rem; font-size: .92rem; }
.notice a, .linklike { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hint-text { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.dim { opacity: .72; }

dialog.dlg { width: min(520px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); overflow: auto; }
dialog.dlg[open] { animation: rdv-in .22s ease; }
dialog.dlg::backdrop { background: rgb(1 40 48 / .6); backdrop-filter: blur(3px); animation: rdv-fade .22s ease; }
.dlg form { padding: 1.3rem 1.5rem 1.5rem; display: grid; gap: .9rem; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dlg-head h2 { margin: 0; font-size: 1.3rem; }
.dlg-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.dlg-close:hover { background: rgb(23 71 90 / .08); } .dlg-close svg { width: 18px; height: 18px; }
.dlg-actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; } .dlg-actions .btn { width: auto; }
body:has(dialog.dlg[open]) { overflow: hidden; }
.field textarea, .field select { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } dialog.dlg { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; } }

.pick-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.pick-grid legend { font-size: .92rem; font-weight: 600; padding: 0; margin-bottom: .4rem; }
.pick { position: relative; display: grid; place-items: center; text-align: center; padding: .85rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; transition: border-color .15s, box-shadow .15s; min-height: 3.2rem; }
.pick:hover { border-color: var(--gold); }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; background: #fffaf0; }
.pick:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.pick small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; margin-top: .15rem; }
.dev-pick { display: grid; gap: .5rem; }
.dev-pick .pick { place-items: start; text-align: left; padding: .8rem 1rem; }
.done-panel { text-align: center; padding: 1.6rem 1rem; }
.done-panel svg { width: 3.2rem; height: 3.2rem; color: #2f8f5b; margin: 0 auto .5rem; display: block; }
.done-panel .act { justify-content: center; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.row-card .sub { white-space: pre-line; }

/* ── Attestation (écran + papier) ─────────────────────────────────── */
.attest-wrap { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1.2rem; align-items: start; }
.attest-form { display: grid; gap: .8rem; position: sticky; top: 88px; }
.attest-form h2 { margin: 0; }
.attest-form [hidden] { display: none !important; }
.attest-sheet { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 30px rgb(23 71 90 / .1); padding: clamp(1.4rem, 5vw, 3rem); font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; line-height: 1.6; color: #111; min-height: 420px; }
.attest-sheet h1 { font-size: 1.45rem; text-align: center; margin: 0 0 1.6rem; letter-spacing: .01em; }
.attest-sheet h2 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.attest-sheet p { margin: 0 0 .9rem; }
.attest-sheet table { border-collapse: collapse; margin-bottom: 1rem; min-width: 60%; }
.attest-sheet th, .attest-sheet td { text-align: left; padding: .25rem 1.4rem .25rem 0; border-bottom: 1px solid #ddd; vertical-align: top; }
.attest-sheet th { font-weight: 600; color: #444; }
.attest-sheet .sign { margin-top: 2rem; }
.attest-sheet .sig-box { margin-top: .4rem; min-height: 90px; border: 1px solid #999; padding: .5rem .7rem; width: 280px; font-size: .9rem; color: #555; }
.attest-sheet .fine { margin-top: 2rem; font-size: .8rem; color: #666; }
@media (max-width: 860px) { .attest-wrap { grid-template-columns: 1fr; } .attest-form { position: static; } }
@media print {
  .site-header, .foot, .acc-head, .acc-nav, .no-print, #doc-dialog, #rdv-dialog, #cgv-dialog, dialog.dlg { display: none !important; }
  body { background: #fff !important; }
  .acc, .acc-body { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .attest-wrap { display: block; }
  .attest-sheet { border: 0; box-shadow: none; padding: 0; font-size: 12pt; min-height: 0; }
  .attest-sheet .sig-box { border-color: #000; }
  @page { margin: 18mm; }
}

.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .85rem 1.1rem; margin-bottom: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* Pages du menu : Nos services / À propos / Contact */
.pg { padding-block: 2.2rem 2.5rem; }
.pg h1 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.01em; }
.pg .lead { margin: 0 0 1.8rem; color: var(--ink-soft); font-size: 1.1rem; max-width: 46rem; }
.pg h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.pre { white-space: pre-line; }
.hours { white-space: normal; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.svc h2 { margin: .25rem 0 0; font-size: 1.35rem; }
.svc ul { margin: 0 0 .75rem; padding-left: 1.1rem; color: var(--ink-soft); flex: 1; }
.svc-img { height: 120px; display: grid; place-items: center; }
.svc-note { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.svc-ico { width: 4.2rem; height: 4.2rem; color: var(--teal); }
.svc-img img { max-height: 110px; width: auto; mix-blend-mode: multiply; }
.offers { margin-bottom: 2rem; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.offer-list li { display: flex; justify-content: space-between; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.offer-list p { margin: .2rem 0 0; color: var(--ink-soft); }
.offer-price { font-weight: 700; white-space: nowrap; color: var(--teal); }
.pg-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.pg-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.pg-card p { margin: .35rem 0; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.pg-text { margin-bottom: 2rem; max-width: 50rem; }
.md h2, .md h3, .md h4 { margin: 1.4rem 0 .5rem; }
.md p { margin: 0 0 .9rem; line-height: 1.65; }
.md ul, .md ol { margin: 0 0 1rem; padding-left: 1.3rem; line-height: 1.65; }
.pg-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--header); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.pg-cta h2 { color: #fff; margin: 0 0 .25rem; }
.pg-cta p { margin: 0; opacity: .85; }
.pg-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 760px) { .pg-cols { grid-template-columns: 1fr; } }

/* Liste des rendez-vous (widget Taketoki) */
.rdv-list { display: block; width: 100%; height: 300px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: #fff; margin-top: 1rem; }

/* Informations légales (À propos) */
.legal-list { margin: 1rem 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.legal-list h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--ink); }
.legal-list p { margin: .15rem 0; }


/* ── En-tête ── */
  .site-header { background: var(--header); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgb(0 0 0 / .12); }
  .bar { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
  .logo { margin-right: auto; display: block; }
  .logo img { height: 56px; width: auto; }
  .nav { display: flex; align-items: center; gap: 2rem; }
  .nav > a:not(.btn) { position: relative; padding: .4rem 0; opacity: .9; }
  .nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .nav > a:not(.btn):hover::after, .nav > a[aria-current]::after { transform: scaleX(1); }
  .espace { padding: .65rem 1.1rem; font-size: .95rem; }
  .nav-toggle, .burger { display: none; }

  @media (max-width: 860px) {
    .bar { gap: 1rem; }
    .burger { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
    .burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .2s; }
    .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
    .burger span::before { top: -7px; } .burger span::after { top: 7px; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--header); flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem var(--gutter) 1.5rem; display: none; border-top: 1px solid rgb(255 255 255 / .12); }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav-toggle:checked ~ .burger span { background: transparent; }
    .nav-toggle:checked ~ .burger span::before { top: 0; transform: rotate(45deg); }
    .nav-toggle:checked ~ .burger span::after { top: 0; transform: rotate(-45deg); }
  }


/* ── Accueil : bandeau ── */
  .hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem); }
  .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 0 0 1.25rem; }
  .hero .sub { font-size: 1.3rem; font-weight: 500; color: var(--ink-soft); margin: 0 0 2rem; }
  .hero .photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px rgb(23 71 90 / .18); }
  .hero .photo img { width: 100%; height: 100%; object-fit: cover; }
  @media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero .photo { order: -1; } }


/* ── Accueil : activités ── */
  .cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding-block: 1rem 2rem; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgb(23 71 90 / .14); border-color: var(--gold); }
  .card .ico { width: 2.4rem; height: 2.4rem; color: var(--teal); }
  .card h2 { display: flex; align-items: center; justify-content: space-between; margin: .35rem 0 .5rem; font-size: 1.25rem; font-weight: 600; gap: .4rem; letter-spacing: -.01em; }
  .card .arrow { flex-shrink: 0; width: 1.3rem; height: 1.3rem; transition: transform .2s ease; }
  .card:hover .arrow { transform: translateX(5px); }
  .card .rule { display: block; width: 3rem; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 1rem; }
  .card .visual { flex: 1; min-height: 140px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; }
  .card .visual img { max-height: 150px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
  .card:hover .visual img { transform: scale(1.05); }
  @media (max-width: 1100px) { .cats { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 760px) { .cats { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .cats { grid-template-columns: 1fr; } }


/* ── Pied de page ── */
  .foot { background: var(--header); color: #fff; padding-block: 2.5rem 1.5rem; margin-top: 2rem; }
  .foot .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
  .foot h3 { margin: 0 0 .75rem; color: var(--gold-light); font-weight: 600; }
  .foot p { margin: .25rem 0; }
  .foot .hours { white-space: pre-line; }
  .foot .legal { margin-top: 1.5rem; }
  .foot .legal p { font-size: .88rem; opacity: .75; margin: .1rem 0; }
  .foot .copy { margin: 1rem auto 0; opacity: .6; font-size: .9rem; }

/* ── QuoteDialog ── */
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  #quote-dialog { width: min(520px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); overflow: auto; }
  #quote-dialog[open] { animation: rdv-in .22s ease; }
  #quote-dialog::backdrop { background: rgb(1 40 48 / .6); backdrop-filter: blur(3px); animation: rdv-fade .22s ease; }
  #q-form { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 1rem; }
  .q-head { display: flex; align-items: flex-start; gap: .9rem; }
  .q-ico { width: 2.6rem; height: 2.6rem; flex: none; color: var(--gold); padding-right: .9rem; box-sizing: content-box; border-right: 1px solid var(--line); }
  .q-titles { flex: 1; }
  .q-titles h2 { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.15; }
  .q-titles p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .98rem; }
  .q-close { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
  .q-close:hover { background: rgb(23 71 90 / .08); } .q-close svg { width: 18px; height: 18px; }
  .q-progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .q-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
  .q-step { margin: -.4rem 0 0; font-size: .82rem; color: var(--ink-soft); }
  #q-form section { display: grid; gap: .85rem; }
  #q-form section[hidden] { display: none; }
  .q-tiles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tile { position: relative; display: grid; justify-items: center; gap: .35rem; padding: .9rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; transition: border-color .15s, box-shadow .15s, transform .15s; }
  .tile:hover { border-color: var(--gold); transform: translateY(-1px); }
  .tile svg { width: 1.7rem; height: 1.7rem; color: var(--teal); }
  .tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .tile:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; background: #fffaf0; }
  .tile:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
  .q-wide { width: 100%; justify-content: center; }
  .q-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  .q-outline:hover { border-color: var(--ink); }
  .q-actions { display: flex; gap: .7rem; justify-content: space-between; }
  .q-actions .btn { flex: 1; justify-content: center; }
  .q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  #q-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 500; }
  #q-form input:not([type=radio]):not([type=checkbox]), #q-form textarea { font: inherit; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
  #q-form input:focus-visible, #q-form textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
  #q-form [aria-invalid=true] { border-color: #b3261e !important; }
  .opt { font-weight: 400; color: var(--ink-soft); }
  .q-consent { grid-template-columns: auto 1fr !important; align-items: start; gap: .6rem !important; font-weight: 400 !important; font-size: .82rem !important; color: var(--ink-soft); }
  .q-consent input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }
  .q-err { margin: 0; min-height: 0; color: #b3261e; font-size: .85rem; } .q-err:empty { display: none; }
  .q-hint { margin: 0; font-size: .8rem; color: var(--ink-soft); text-align: center; } .q-hint:empty { display: none; }
  .q-done { justify-items: center; text-align: center; padding: 1rem 0 .3rem; }
  .q-done svg { width: 3.4rem; height: 3.4rem; color: #2f8f5b; }
  .q-done h3 { margin: 0; font-size: 1.4rem; } .q-done p { margin: 0 0 .6rem; color: var(--ink-soft); }
  body:has(#quote-dialog[open]) { overflow: hidden; }
  @media (max-width: 520px) { .q-grid { grid-template-columns: 1fr; } #quote-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; } }

/* ── CgvDialog ── */
  #cgv-dialog { height: min(860px, calc(100dvh - 2rem)); }
  #cgv-dialog .alt { display: inline; }

/* ── DocViewer ── */
  #doc-dialog { height: min(860px, calc(100dvh - 2rem)); }
  #doc-dialog .alt { display: inline; }
  #doc-dialog .doc-body { flex: 1; min-height: 0; display: grid; background: #f1efe8; }
  #doc-dialog iframe, #doc-dialog .doc-body > div { width: 100%; height: 100%; border: 0; }
  #doc-dialog img, #doc-dialog video { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
  #doc-dialog .doc-fallback { display: grid; grid-template-rows: auto 1fr; min-height: 0; }
  #doc-dialog .doc-note { margin: 0; padding: .7rem 1rem; background: #fbefd2; color: #7a5200; font-size: .92rem; }
  #doc-dialog .doc-msg { display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--ink-soft); }
