/* Box 63 — feuille de style unique, sans ressource externe (pas de police ni de CDN tiers) */
:root {
  --navy: #0e415a;
  --navy-2: #115171;
  --red: #cd2122;
  --red-dark: #a81a1b;
  --orange: #f08a1c;
  --ink: #1b2a33;
  --muted: #5b6b75;
  --line: #e2e8ec;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 65, 90, .06), 0 8px 24px rgba(14, 65, 90, .08);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px 20px; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.nav a { font-weight: 600; text-decoration: none; color: var(--navy); padding: 8px 4px; white-space: nowrap; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.header-call { padding: 10px 18px; white-space: nowrap; }
.header-call svg { flex: none; }
/* Téléphone et tablette : logo et appel sur une ligne, les liens en dessous, sur une seule ligne */
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-bottom: 0; }
  .header-call { margin-left: auto; padding: 8px 14px; font-size: .9375rem; gap: 6px; }
  .nav { order: 3; flex: 1 0 100%; margin: 0; flex-wrap: nowrap; justify-content: space-between; gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 8px 0 10px; font-size: .9375rem; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--red); transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* Bandeau d'accueil */
.hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 65, 90, .94) 0%, rgba(14, 65, 90, .78) 48%, rgba(14, 65, 90, .28) 100%); }
.hero .wrap { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(56px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); max-width: 52ch; color: #e6eef2; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.hero .eyebrow { color: #ffc27a; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 36px 0 0; font-weight: 600; color: #e6eef2; }
/* puce seule sur sa ligne */
.hero-facts .line { flex-basis: 100%; text-align: center; }
.hero-facts li::before { content: "✓"; color: #ffc27a; margin-right: 8px; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
.soft { background: var(--bg-soft); }
.section-head { max-width: 72ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; gap: 40px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: #fdebd6; color: #b65f06; display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Tarifs */
.boxes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.box .surface { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.box .surface small { font-size: 1rem; font-weight: 700; }
.box .volume { color: var(--muted); font-size: .9375rem; margin: 6px 0 2px; }
.box .dims { color: var(--muted); font-size: .75rem; margin: 0 0 2px; text-wrap: balance; }
.box .door { color: var(--muted); font-size: .75rem; margin: 0 0 14px; text-wrap: balance; }
.box .insul { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 14px; padding: 2px 8px 2px 5px; border-radius: 999px; background: #fff1e0; color: #8a4b00; font-size: .6875rem; font-weight: 700; line-height: 1.3; }
.box .insul svg { width: 14px; height: 14px; flex: none; }
.box .price { font-size: 1.5rem; font-weight: 800; color: var(--red); line-height: 1; }
.box .price small { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.pick-title { margin: 0 0 16px; padding-left: 14px; border-left: 6px solid var(--orange); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 800; line-height: 1.25; color: var(--navy); text-wrap: balance; }
/* Tarifs : le bâtiment en coupe, un bandeau par niveau, monte-charge sur le côté */
.building { display: grid; grid-template-columns: 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.floor { grid-column: 1; display: grid; grid-template-columns: 136px 1fr; }
.floor + .floor { border-top: 6px solid var(--navy); }
.floor-label { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 16px; font-size: .8125rem; line-height: 1.35; }
.floor-label h3 { margin: 0; font-size: 1.375rem; line-height: 1.1; color: inherit; }
.floor-label p { margin: 0; text-wrap: balance; }
.floor.upper .floor-label { background: var(--navy); color: #fff; }
.floor.ground .floor-label { background: var(--orange); color: var(--ink); }
.floor .boxes { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 14px; padding: 16px; background: var(--bg-soft); }
.floor .box { padding: 18px 12px; box-shadow: none; }
.floor .box a { margin: -18px -12px; padding: 18px 12px; }
.floor .box .surface { font-size: 1.5rem; }
.box .num { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.floor.upper .box { border-top-color: var(--navy); }
.lift { grid-column: 2; grid-row: 1 / span 2; width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-left: 1px solid var(--line); background: repeating-linear-gradient(0deg, #fff 0 13px, var(--line) 13px 14px); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lift svg { width: 42px; height: 42px; padding: 3px; background: #fff; border-radius: 6px; box-sizing: content-box; }
.lift span { writing-mode: vertical-rl; transform: rotate(180deg); background: #fff; padding: 6px 2px; }
@media (max-width: 720px) {
  .building { grid-template-columns: 1fr; }
  .floor { grid-template-columns: 1fr; }
  .floor-label { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 12px; padding: 14px 16px; }
  .lift { display: none; }
}

/* Tarifs : vérifier les box libres sur une période (formulaire révélé par main.js) */
.dispo-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.dispo-form[hidden] { display: none; }
.dispo-form label { font-weight: 600; }
.dispo-form label small { font-weight: 400; color: var(--muted); }
.dispo-form input { font: inherit; padding: 10px 12px; border: 1px solid #b9c6ce; border-radius: 8px; background: #fff; color: var(--ink); display: block; margin-top: 6px; }
.dispo-form .note { flex-basis: 100%; margin: 0; }
.clear-date { font: inherit; font-size: .9375rem; padding: 10px 2px; border: 0; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; }
.clear-date[hidden] { display: none; }
.dispo-status { flex-basis: 100%; margin: 0; font-weight: 600; color: var(--navy); }
.dispo-status:empty { display: none; }
.dispo-status.error { color: #8f1616; }
.floor .box.unavailable { border-top-color: #b9c6ce; background: transparent; }
.floor .box.unavailable > a > :not(.box-status) { opacity: .4; filter: grayscale(1); }
.box.unavailable:hover { transform: none; }
/* « Indisponible » : un bandeau en travers de la carte, coupé par ses bords */
.floor .box.unavailable { position: relative; overflow: hidden; }
.box-status { position: absolute; top: 50%; left: -25%; right: -25%; transform: translateY(-50%) rotate(-28deg); padding: 6px 0; background: var(--red); color: #fff; font-size: .9375rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); pointer-events: none; }

.note { color: var(--muted); font-size: .9375rem; margin-top: 20px; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo figcaption, figure figcaption { font-size: .875rem; color: var(--muted); padding: 10px 14px; background: #fff; }
figure { margin: 0; }
/* trois photos par rangée ; une rangée incomplète est centrée */
.photo-single { max-width: 760px; margin: 0 auto; }
.photo-single .facade img { object-position: center 70%; }
.photo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.photo-grid .photo { flex: 0 1 calc((100% - 60px) / 4); }
@media (max-width: 860px) { .photo-grid .photo { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .photo-grid .photo { flex-basis: 100%; } }
.photo-grid .photo img { aspect-ratio: 3 / 4; }
/* photo en paysage dans la grille : cadrée sur la double porte, à droite */
.photo-grid .photo img.etage { object-position: 82% center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800; }

/* Bandeau contact */
.band { background: var(--navy); color: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: #d5e2e9; margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list strong { display: block; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 700; font-size: 1.125rem; }
/* Itinéraire : Waze et Maps ouvrent l'application sur téléphone (voir main.js pour Plans d'Apple) */
.go-links { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; vertical-align: middle; }
.go-link, .contact-list a.go-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .9375rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.go-link:hover { border-color: var(--navy); }
.go-link svg { width: 24px; height: 24px; flex: none; }
.hero-go { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 20px 0 0; font-weight: 600; color: #e6eef2; }
.hero-go .go-links { margin-top: 0; }
.hero .go-link { border-color: transparent; }
address { font-style: normal; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); min-height: 380px; display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.map-consent { padding: 28px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; }
.map-consent p { color: var(--muted); max-width: 44ch; margin: 0; font-size: .9375rem; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }

/* Pages légales */
.page-head { background: var(--bg-soft); padding: clamp(36px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.375rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }
.todo { background: #fff6d6; border-left: 4px solid #e0a800; padding: 2px 6px; }

/* Pied de page */
.site-footer { background: #0a2f42; color: #c5d5dd; padding: 48px 0 24px; font-size: .9375rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.legal-line { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 20px; font-size: .8125rem; color: #9db3be; text-align: center; text-wrap: balance; }
.made-by { display: flex; width: fit-content; align-items: center; gap: 14px; margin: 20px auto 0; font-size: .8125rem; color: #9db3be; text-decoration: none; }
.made-by img { width: 64px; height: 64px; padding: 6px; object-fit: contain; background: #fff; border-radius: 12px; transition: transform .25s; }
.made-by strong { display: block; color: #fff; font-size: 1.25rem; line-height: 1.2; }
.made-by:hover img { transform: rotate(-4deg) scale(1.05); }
.made-by:hover strong { color: #ffc27a; }

@media (max-width: 560px) {
  .logo img { height: 36px; }
  .site-header .wrap { column-gap: 12px; }
  .header-call { padding: 7px 12px; font-size: .875rem; }
  .nav { gap: 8px; }
  .nav a { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .map, .cta-row, .band { display: none; }
}

/* Utilitaires */
.boxes { list-style: none; padding: 0; margin: 0; }
.mt { margin-top: 40px; }
.top { align-items: start; }
.flush { padding-top: 0; }
.cta-row.tight { margin: 0; }

/* Réservation : formulaires, tableaux */
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 24px; scroll-margin-top: 120px; } /* sous l'en-tête fixe */
.flash.ok { background: #e3f4e8; color: #17603a; }
.flash.error { background: #fde8e8; color: #8f1616; }
form.inline { display: inline; }
button.link { font: inherit; font-weight: 600; color: var(--navy); background: none; border: 0; padding: 8px 4px; cursor: pointer; }
button.link:hover { color: var(--red); }
.btn.small { padding: 6px 14px; font-size: .875rem; }
.btn.disabled { opacity: .55; cursor: not-allowed; border-style: dashed; }
.form { display: grid; gap: 16px; max-width: 420px; margin-bottom: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input { font: inherit; padding: 10px 12px; border: 1px solid #b9c6ce; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form .btn { justify-self: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .photo:not(.wide) img { aspect-ratio: 3 / 4; }
.price-line { font-size: 1.125rem; color: var(--muted); }
.price-line strong { font-size: 2rem; color: var(--red); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0 0 32px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
main :not(.eyebrow) + h2 { margin-top: 1.4em; }
table.list, table.avail { border-collapse: collapse; width: 100%; margin: 0 0 24px; font-size: .9375rem; }
table.list th, table.list td, table.avail th, table.avail td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list thead th, table.avail thead th { background: var(--bg-soft); color: var(--navy); }
table.avail td, table.avail thead th { text-align: center; font-size: .8125rem; }
table.avail th[scope="row"] { white-space: nowrap; background: #fff; }
table.avail small { font-weight: 400; color: var(--muted); }
table.avail td.free, .key.free { background: #e3f4e8; color: #17603a; }
table.avail td.reserved, .key.reserved { background: #fde8e8; color: #8f1616; font-weight: 700; }
table.avail td.buffer, .key.buffer { background: #fff3d6; color: #7a5200; }
table.avail td.reserved small { color: inherit; }
table.avail td.periods { text-align: left; min-width: 200px; }
table.avail td.periods ul { margin: 0; padding-left: 1.1em; }
table.avail td.periods li { margin-bottom: 8px; }
.key { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.box a { display: block; color: inherit; text-decoration: none; margin: -20px -16px; padding: 20px 16px; }
.box:hover { transform: translateY(-2px); transition: transform .15s; }
table.avail td, table.avail thead th { padding: 8px 5px; }
table.avail td.periods { min-width: 150px; padding: 8px 10px; }

/* Carte schématique de situation (SVG en ligne, aucune ressource externe) */
.locmap-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.locmap { display: block; width: 100%; height: auto; font-family: var(--font); }
.locmap .route { stroke: #9fb4c0; stroke-width: 2; stroke-dasharray: 5 6; }
.locmap .city { fill: var(--navy-2); }
.locmap .halo { fill: var(--red); opacity: .18; }
.locmap .here { fill: var(--red); stroke: #fff; stroke-width: 3; }
.locmap .name { font-size: 15px; font-weight: 700; fill: var(--navy); }
.locmap .here-name { font-size: 19px; font-weight: 800; fill: var(--red); }
.locmap .dist { font-size: 12.5px; fill: var(--muted); }
.mt-section { padding-top: clamp(48px, 7vw, 88px); }

/* Pré-réservation : coordonnées du client, contrat affiché, dépôt du contrat signé */
.form fieldset { border: 1px solid #b9c6ce; border-radius: 8px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; padding: 0 6px; }
.form label.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form label.choice input { width: auto; }
.form [aria-invalid="true"] { border-color: #c62828; }
.field-hint { color: var(--muted); font-size: .875rem; font-weight: 400; }
.field-error, .form label .field-error { color: #c62828; font-weight: 600; }
.contract-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(16px, 4vw, 48px); margin: 24px 0; font-size: .9375rem; overflow-x: auto; }
.contract h1 { font-size: 1.5rem; text-align: center; margin-bottom: .3em; }
.contract h2 { font-size: 1rem; margin: 1.4em 0 .4em; }
.contract h3 { font-size: .9375rem; margin: 1.2em 0 .3em; }
.contract .subtitle { text-align: center; font-weight: 700; }
.contract .center { text-align: center; }
.contract table { width: 100%; border-collapse: collapse; }
.contract .terms { margin: 12px 0 16px; min-width: 560px; }
.contract .terms th, .contract .terms td { border: 1px solid var(--ink); padding: 6px 8px; text-align: left; vertical-align: top; font-weight: 400; }
.contract .signing { margin-top: 24px; }
.contract .annex { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.contract .effect { border: 2px solid var(--ink); padding: 10px 14px; font-size: 1.0625rem; }
.contract .signatures td { width: 50%; vertical-align: top; height: 120px; }
form.upload { display: grid; gap: 6px; margin-top: 8px; font-size: .875rem; }
form.upload label { display: grid; gap: 4px; }
form.upload input { font: inherit; max-width: 220px; }
form.upload .btn { justify-self: start; }
@media print {
  .contract-sheet { border: 0; box-shadow: none; padding: 0; }
}

/* Administration : avancement de chaque demande (une colonne par étape) */
table.steps td { vertical-align: top; line-height: 1.5; }
table.steps td.done { background: #e3f4e8; color: #17603a; }
table.steps td.todo { background: #fff3d6; color: #7a5200; }
table.steps td.none { color: var(--muted); }
table.steps td small { color: inherit; overflow-wrap: anywhere; }
/* réglage discret dans une cellule : facturation par un autre outil */
button.link.setting { padding: 0; font-size: .8125rem; font-weight: 500; text-align: left;
                      text-decoration: underline; text-underline-offset: 2px; color: inherit; }

/* Administration : tableau des factures (une colonne par mois) */
table.invoices td { min-width: 150px; padding: 10px 8px; line-height: 1.5; vertical-align: top; }
table.invoices td.paid { background: #e3f4e8; color: #17603a; }
table.invoices td.unpaid { background: #fff3d6; color: #7a5200; }
table.invoices td.none { color: var(--muted); vertical-align: middle; }
table.invoices td small { color: inherit; }
table.invoices td form.inline { display: block; }
table.invoices th[scope="row"] { vertical-align: top; font-weight: 700; }
table.invoices .mail-pending { font-weight: 700; text-decoration: underline dotted; }
button.check { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 2px; cursor: pointer; }
button.check .box { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 4px; background: #fff; font-size: .8125rem; line-height: 1; padding: 0; box-shadow: none; }

/* Bandeau « administrateur connecté », en haut de toutes les pages */
.admin-bar { background: var(--navy); color: #fff; font-size: .875rem; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.admin-bar span { margin-right: auto; }
.admin-bar a, .admin-bar button.link { color: #fff; font-weight: 600; padding: 0; }
.admin-bar button.link { text-decoration: underline; text-underline-offset: 3px; }
.admin-bar a:hover, .admin-bar button.link:hover { color: #ffc27a; }

/* Rappel de procédure dépliable (admin) */
.procedure { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 10px 14px; }
.procedure summary { cursor: pointer; font-weight: 600; }
.procedure ol { margin: 10px 0 4px; padding-left: 1.4em; }
.procedure li { margin-bottom: 6px; }

/* Prendre une option : tous les box à cocher, seuls ou par paquets (options.js) */
.form.options-form { max-width: none; grid-template-columns: minmax(0, 1fr); }
.options-form h2 { margin: 16px 0 0; }
.options-form .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; max-width: 880px; }
.pick-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pick-groups[hidden] { display: none; }
.pick-groups .btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pick-count { margin: 0; font-weight: 600; color: var(--navy); }
.pick-count:empty { display: none; }
.building.picker { grid-template-columns: 1fr; }
.floor .box.pick { position: relative; }
.floor .box.pick label { display: block; margin: -18px -12px; padding: 18px 12px; cursor: pointer; font-weight: inherit; gap: 0; }
.floor .box.pick input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; padding: 0; accent-color: var(--navy); }
.floor .box.pick:has(input:checked) { outline: 3px solid var(--navy); outline-offset: -1px; background: #eef5f8; }
.box .pick-state { margin-top: 10px; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #17603a; }
.box.rented .pick-state { color: var(--red); }
.option-hint { margin-top: 20px; font-size: .9375rem; }
.option-hint.strong { padding: 12px 14px; border-radius: 8px; background: #fff3d6; color: #7a5200; font-weight: 600; }
.free-now { color: #17603a; }
.free-soon { color: #8a5a00; }
ol.to-call { margin: 0; padding-left: 1.3em; }
ol.to-call li + li { margin-top: .5em; }
.options-note a { font-weight: 700; }
