/* Habillage montagne : neige, sapin, eau du gave, soleil sur les crêtes.
   Formes rondes, ombres légères. Les deux couleurs --accent et --soleil
   sont réglables par conciergerie. */
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --neige: #f2f7f6;
  --blanc: #ffffff;
  --brume: #e2eeec;
  --roche: #1c302e;
  --roche2: #5b706d;
  --trait: #d5e3e0;
  --accent: #1f5a52;
  --soleil: #f2b84b;
  --nuit: #153c37;
  --gave: #3f8f9c;
  --pre: #4c8a4a;
  --braise: #d2553d;
  --miel: #a86d08;
  --bois: #a66b3d;
  --bois-fonce: #6b4226;
  --bois-clair: #f3e6d6;
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --r: 20px;
  --r-s: 12px;
  --ombre: 0 1px 2px rgba(21, 60, 55, .06), 0 10px 28px rgba(21, 60, 55, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--neige); color: var(--roche); font: 400 1rem/1.5 var(--sans); }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
small { font-size: .85rem; color: var(--roche2); }
b { font-weight: 700; }
mark { background: color-mix(in srgb, var(--braise) 12%, #fff); color: var(--braise); font-weight: 600; padding: .05em .45em; border-radius: 99px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gave) 60%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--roche2); font-weight: 400; }
.small { font-size: .9rem; color: var(--roche2); }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.over { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--bois-fonce); background: var(--bois-clair); padding: .3em .85em; border-radius: 99px; }
.hp { position: absolute; left: -9999px; }
.bande { display: none; }

/* La scène : crêtes, neige, sapins. Posée au bas des en-têtes. */
.scene { display: block; width: 100%; height: auto; }
.scene .loin { fill: #a9cfd2; }
.scene .cime, .scene .neige, .scene .flocons { fill: #fff; }
.scene .milieu { fill: #6aa5a8; }
.scene .pres { fill: color-mix(in srgb, var(--accent) 70%, #fff); }
.scene .sapin { fill: var(--nuit); }
.scene .astre { fill: var(--soleil); }
.scene .bois { fill: var(--bois); }
.scene .toit, .scene .porte, .scene .tronc { fill: var(--bois-fonce); }
.scene .planche { stroke: var(--bois-fonce); stroke-width: 1.5; opacity: .45; fill: none; }
.scene .vitre { fill: var(--soleil); }

/* Marque */
.brand { display: block; text-decoration: none; line-height: 1.15; }
.brand-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-place { display: block; font-size: .8rem; opacity: .75; margin-top: .2rem; }
.brand:hover { color: inherit; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 .95rem/1.2 var(--sans); padding: .78em 1.4em; border: 2px solid var(--accent); border-radius: 99px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: var(--blanc); color: var(--accent); border-color: var(--trait); }
.btn-ghost:hover { background: var(--brume); border-color: var(--brume); color: var(--nuit); }
.btn-s { padding: .5em .95em; font-size: .86rem; }
.btn-xl { width: 100%; padding: 1.1em; font-size: 1.08rem; border-radius: var(--r); }
.linkish { font: inherit; font-size: .9rem; font-weight: 600; color: var(--roche2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--trait); cursor: pointer; }
.linkish:hover { color: var(--braise); }

/* États : petites pastilles douces */
.etat { display: inline-flex; align-items: center; gap: .45em; font-size: .8rem; font-weight: 700; white-space: nowrap; padding: .28em .8em; border-radius: 99px; color: var(--roche2); background: var(--brume); }
.etat::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.etat-fait, .etat-confirme, .etat-confirmee, .etat-resolu, .etat-signe { color: #2f6b2d; background: #e2f1df; }
.etat-en_cours, .etat-contacte, .etat-visite { color: #1f6975; background: #dceff2; }
.etat-demande, .etat-option, .etat-nouveau { color: var(--miel); background: #fcefd0; }
.etat-urgent, .etat-ouvert, .etat-refuse { color: #b03f29; background: #fbe3dc; }
.etat-annulee, .etat-perdu { color: #7d8b89; background: #e9eeed; }

/* Formulaires */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: start; }
.form-1 { grid-template-columns: 1fr; }
.form > .btn, .form > button { justify-self: start; grid-column: 1 / -1; }
.form > .btn-xl { justify-self: stretch; }
.form h3 { font: 700 1.05rem/1.2 var(--display); color: var(--accent); padding-top: 1.25rem; border-top: 2px dashed var(--trait); }
.form h3:first-child { border: 0; padding-top: 0; }
.f { display: grid; gap: .4rem; }
.f-wide, .form > p, .form > .flash { grid-column: 1 / -1; }
.f > span { font-size: .88rem; font-weight: 700; }
.f > span i { font-style: normal; font-weight: 400; color: var(--roche2); }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: .7em .95em; background: var(--blanc); border: 2px solid var(--trait); border-radius: var(--r-s); transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #b9cfcb; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gave); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gave) 18%, transparent); }
textarea { resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { width: 1.25rem; height: 1.25rem; padding: 0; accent-color: var(--accent); flex: none; box-shadow: none; }
input[type=color] { width: 4.5rem; height: 2.9rem; padding: .25rem; }
.check { display: flex; gap: .6rem; align-items: center; font-size: .95rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.inline-form label { font-weight: 700; font-size: .95rem; flex-basis: 100%; }
.inline-form input { flex: 1 1 10rem; width: auto; }
.mini { display: flex; gap: .6rem .9rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mini select, .mini input { width: auto; padding: .4em .7em; font-size: .88rem; border-radius: 99px; }
.mini select.todo { border-color: var(--braise); color: var(--braise); font-weight: 600; }

.flash { margin: 0 0 1.25rem; padding: .8rem 1.1rem; border-radius: var(--r-s); background: #e2f1df; color: #2f6b2d; font-weight: 700; }
.flash-bad { background: #fbe3dc; color: #b03f29; }
.notice { margin-bottom: 1.5rem; padding: .85rem 1.2rem; border-radius: var(--r-s); background: #fcefd0; color: #7a4f04; font-weight: 600; }
.notice a { text-decoration-color: currentColor; }
.empty { color: var(--roche2); padding: .4rem 0; }

/* ------------------------------------------------------------ Espaces connectés */
.frame { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; }
.side { margin: .75rem 0 .75rem .75rem; border-radius: 26px; color: #e9f3f1; padding: 1.75rem .9rem 1.25rem; display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: .75rem; height: calc(100vh - 1.5rem); overflow: hidden;
  background: var(--nuit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150' preserveAspectRatio='none'%3E%3Cpath d='M0 95 45 50 78 78 128 22 172 70 214 40 262 88 300 60V150H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 125 60 85 110 115 170 75 230 118 300 90V150H0Z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E") no-repeat bottom / 100% 11rem; }
.side .brand { padding: 0 .8rem; }
.side .brand-name { color: #fff; }
.nav { display: flex; flex-direction: column; gap: .15rem; }
.nav a { padding: .6rem .95rem; text-decoration: none; border-radius: 99px; color: #c5dbd7; font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a[aria-current] { color: var(--nuit); background: var(--soleil); font-weight: 700; }
.nav .nav-alt { margin-top: .9rem; font-size: .9rem; }
.who { margin-top: auto; padding: 0 .9rem; font-size: .92rem; display: grid; gap: .3rem; position: relative; }
.who span { font-weight: 600; color: #fff; }
.who small { display: block; color: #a7c4bf; font-weight: 400; }
.who .linkish { color: #a7c4bf; text-decoration-color: rgba(255, 255, 255, .25); }
.who .linkish:hover { color: #fff; }

.main { padding: 2.25rem clamp(1rem, 3.2vw, 2.75rem) 4rem; max-width: 80rem; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.head h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.lead { color: var(--roche2); margin-top: .4rem; font-size: 1.05rem; }
.lead::first-letter { text-transform: uppercase; }
.head-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 1rem; font-size: .92rem; font-weight: 600; color: var(--roche2); text-decoration: none; }
.back::before { content: "← "; }

.panel { background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); padding: 1.5rem 1.6rem; margin-bottom: 1.5rem; }
.panel-flush { padding: 0; overflow: hidden; }
.panel h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.panel h2 small { font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-left: .5rem; background: var(--brume); padding: .2em .7em; border-radius: 99px; }
.panel * + h2 { margin-top: 1.75rem; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.panel-h a { font-size: .9rem; font-weight: 600; color: var(--roche2); }
.panel > .small { margin: -.5rem 0 1rem; }
.panel > .form { margin-top: .25rem; }
.rows + .form, .thread + .form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px dashed var(--trait); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; align-items: start; }

/* Chiffres clés */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.figures > div { padding: 1.2rem 1.4rem 1.3rem; border-radius: var(--r); display: grid; gap: .1rem; align-content: start; background: var(--brume); }
.figures > div:nth-child(4n+2) { background: #dceff2; }
.figures > div:nth-child(4n+3) { background: color-mix(in srgb, var(--soleil) 28%, #fff); }
.figures > div:nth-child(4n+4) { background: var(--nuit); color: #fff; }
.figures > div:nth-child(4n+4) :is(dt, small) { color: #b9d3cf; }
.figures dt { font-size: .9rem; font-weight: 600; color: var(--roche2); }
.figures dd { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figures small { color: var(--roche2); }

.rows li { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; padding: .8rem 0; border-top: 1px solid var(--trait); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.rows li > a, .rows li > span:first-child { min-width: 0; text-decoration: none; font-weight: 700; }
.rows small { display: block; font-weight: 400; margin-top: .1rem; }
.rows-panel { background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); padding: 1.1rem 1.4rem; }
.off, tr.off td { color: #8d9b99; }

.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th { text-align: left; font-size: .85rem; color: var(--roche2); font-weight: 600; padding: 0 .9rem .7rem 0; white-space: nowrap; }
.table th.n { text-align: right; }
.table td { padding: .8rem .9rem .8rem 0; border-top: 1px solid var(--trait); vertical-align: top; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table td small { display: block; }
.table td a { font-weight: 700; }
.table .group th { padding-top: 1.3rem; font: 700 1.1rem var(--display); color: var(--roche); }
.table .group small { font-family: var(--sans); font-weight: 400; margin-left: .5rem; }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--roche); padding-top: .9rem; font-size: 1.02rem; }
.table tfoot th { color: var(--roche); font-weight: 700; }

.tabs, .pager { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: .5rem 1.1rem; border-radius: 99px; color: var(--roche2); font-weight: 600; background: var(--blanc); }
.tabs a[aria-current] { color: #fff; background: var(--accent); }
.pager { justify-content: space-between; }
.pager b { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; text-transform: capitalize; }
.pager a { font-size: .9rem; font-weight: 600; color: var(--roche2); text-decoration: none; padding: .45rem 1rem; border-radius: 99px; background: var(--blanc); box-shadow: var(--ombre); }
.pager a:hover { color: var(--accent); }
.pager-s { margin: 0; gap: .5rem; }
.panel .pager-s a { background: var(--neige); box-shadow: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.25rem; }
.card { display: grid; gap: .35rem; align-content: start; justify-items: start; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); padding: 1.3rem 1.4rem 1.3rem; text-decoration: none; transition: transform .15s; position: relative; overflow: hidden; padding-top: 2.2rem; }
/* Linteau de bois en tête de chaque fiche logement */
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: repeating-linear-gradient(90deg, var(--bois) 0 58px, var(--bois-fonce) 58px 60px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.card:hover { color: inherit; transform: translateY(-3px); }
.card h2 { font-size: 1.45rem; margin-top: .4rem; }
.card-foot { margin-top: .9rem; padding-top: .9rem; border-top: 2px dashed var(--trait); display: flex; gap: .4rem .8rem; flex-wrap: wrap; align-items: center; font-size: .88rem; color: var(--roche2); width: 100%; }

.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .25rem 1rem; padding: .8rem 0; border-top: 1px solid var(--trait); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: .88rem; font-weight: 700; color: var(--roche2); }
.code { display: inline-block; font: 700 1.2rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; background: color-mix(in srgb, var(--soleil) 30%, #fff); padding: .2em .7em; border-radius: 10px; }
.copy { display: flex; gap: .6rem; flex-wrap: wrap; }
.copy input { flex: 1 1 16rem; width: auto; font-family: ui-monospace, Menlo, monospace; font-size: .88rem; background: var(--neige); }

/* Échanges */
.thread { display: grid; gap: .7rem; }
.thread li { max-width: 88%; padding: .75rem 1rem; border-radius: 18px 18px 18px 6px; background: var(--brume); justify-self: start; }
.thread li.me { background: var(--accent); color: #fff; border-radius: 18px 18px 6px 18px; justify-self: end; }
.thread small { display: block; margin-top: .25rem; font-size: .78rem; }
.thread li.me small { color: rgba(255, 255, 255, .75); }

.incident.resolu { opacity: .7; }
.incident .panel-h h2 { margin-bottom: .3rem; }
.incident > .small { margin: 0 0 .8rem; }
.incident > p + .form { margin-top: 1rem; }

/* ---------------------------------------------------------------------- Planning */
.plan-scroll { overflow-x: auto; }
.plan { min-width: calc(11.5rem + var(--days) * 2.15rem); }
.plan-row { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); border-top: 1px solid var(--trait); }
.plan-head { border-top: 0; }
.plan-label { padding: .8rem 1.2rem; display: grid; align-content: center; position: sticky; left: 0; z-index: 2; background: var(--blanc); }
.plan-label b { font-size: .95rem; line-height: 1.2; }
.plan-track { position: relative; display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); min-height: 3.6rem; }
.plan-head .plan-track { min-height: 0; padding-top: 1rem; }
.plan-day { text-align: center; padding: .5rem 0 .6rem; display: grid; gap: .1rem; position: relative; justify-items: center; }
.plan-day small { font-size: .7rem; text-transform: uppercase; font-weight: 600; }
.plan-day b { font-size: .9rem; font-variant-numeric: tabular-nums; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; }
.plan-day em { position: absolute; top: -.75rem; left: .15rem; font: 700 .7rem var(--sans); color: var(--accent); white-space: nowrap; text-transform: capitalize; }
.plan-cell { border-left: 1px solid #edf3f2; }
.we { background: #f3f8f7; }
.plan-day.now b { background: var(--soleil); color: var(--nuit); }
.plan-cell.now { background: color-mix(in srgb, var(--soleil) 16%, #fff); }
.bar { position: absolute; top: .7rem; bottom: .7rem; display: flex; align-items: center; padding: 0 .9rem; overflow: hidden; font-size: .82rem; font-weight: 700; text-decoration: none; color: #fff; background: var(--accent); border-radius: 99px; box-shadow: 0 2px 6px rgba(21, 60, 55, .18); transition: transform .12s; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.bar:hover { color: #fff; transform: scale(1.03); z-index: 1; }
.bar-ota { background: var(--gave); }
.bar-option { background: #fff; color: var(--miel); box-shadow: inset 0 0 0 2px var(--soleil); border: 0; background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--soleil) 22%, #fff) 6px 12px); }
a.bar-option:hover { color: var(--miel); }
.bar-bloc { background: var(--soleil); color: var(--nuit); }
a.bar-bloc:hover { color: var(--nuit); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; font-size: .85rem; color: var(--roche2); padding: 1rem 1.2rem; border-top: 1px solid var(--trait); }
.panel:not(.panel-flush) .legend { padding-inline: 0; padding-bottom: 0; }
.key { display: inline-block; width: 1.5rem; height: .75rem; border-radius: 99px; margin-right: .45rem; vertical-align: -1px; }
.key-direct { background: var(--accent); }
.key-ota { background: var(--gave); }
.key-option { background: #fff; box-shadow: inset 0 0 0 2px var(--soleil); }
.key-bloc { background: var(--soleil); }

/* ----------------------------------------------------------------------- Terrain */
.day { margin-bottom: 1.75rem; }
.day > h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.day > h2::first-letter { text-transform: uppercase; }
.day > h2.late { color: var(--braise); }
.tasks { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.task { display: grid; gap: .55rem; justify-items: start; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); padding: 1.15rem 1.3rem; text-decoration: none; border-left: 8px solid var(--trait); transition: transform .15s; }
.task:hover { color: inherit; transform: translateY(-2px); }
.task.en_cours { border-left-color: var(--gave); }
.task.fait { border-left-color: var(--pre); opacity: .7; }
.task.a_faire { border-left-color: var(--soleil); }
.task-main b { display: block; font-family: var(--display); font-size: 1.3rem; line-height: 1.15; letter-spacing: -.02em; }
.task-main span, .task-note { font-size: .92rem; color: var(--roche2); }
.task-alert { font-size: .9rem; font-weight: 700; color: #b03f29; background: #fbe3dc; padding: .3em .8em; border-radius: 99px; }
.checks li { border-top: 1px solid var(--trait); }
.checks li:first-child { border-top: 0; }
.checks label { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; cursor: pointer; }
.checks input { width: 1.6rem; height: 1.6rem; }
.checks input:checked + span { color: var(--roche2); text-decoration: line-through; }
.sticky-act { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------- Pages publiques */
.pub-top, .c-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); }
.hero { position: relative; overflow: hidden; margin: 0 clamp(.75rem, 2vw, 1.5rem); border-radius: 32px; background: linear-gradient(180deg, #cfe9ec 0%, #e6f2ec 55%, #fdeccd 100%); }
.pub-hero { padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) 0; }
.pub-hero h1 { font-size: clamp(3.2rem, 11vw, 7.5rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin: 1rem 0 1.2rem; color: var(--nuit); }
.pub-intro { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 36rem; line-height: 1.45; color: #2b4643; }
.hero .scene { margin-top: clamp(1rem, 3vw, 2rem); width: calc(100% + 2 * clamp(1.25rem, 5vw, 4rem)); margin-inline: calc(-1 * clamp(1.25rem, 5vw, 4rem)); }
.pub-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 1.5rem clamp(.75rem, 2vw, 1.5rem) 0; }
.pub-doors article { padding: 1.75rem 1.75rem 2rem; display: grid; gap: .8rem; align-content: start; justify-items: start; background: var(--blanc); border-radius: 26px; box-shadow: var(--ombre); }
.pub-doors h2 { font-size: 1.5rem; }
.pub-doors p { color: var(--roche2); }
.pub-doors .inline-form { margin-top: .2rem; width: 100%; }
.pub-doors input { text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.pub-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem 4rem; margin: 1.25rem clamp(.75rem, 2vw, 1.5rem) 0; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem); border-radius: 32px; background: var(--nuit); color: #e9f3f1; }
.pub-lead h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; color: #fff; }
.pub-lead p + p { margin-top: .8rem; }
.pub-lead a:hover { color: var(--soleil); }
.pub-lead .f > span i { color: #a7c4bf; }
.pub-lead input { border-color: transparent; }
.pub-lead .btn { background: var(--soleil); border-color: var(--soleil); color: var(--nuit); }
.pub-lead .btn:hover { background: #fff; border-color: #fff; color: var(--nuit); }
.pub-foot { padding: 1.75rem clamp(1rem, 4vw, 3rem) 2.5rem; font-size: .9rem; color: var(--roche2); text-align: center; }

.login { display: grid; place-items: start center; padding: clamp(2rem, 9vh, 6rem) 1rem; background: linear-gradient(180deg, #cfe9ec 0%, #e6f2ec 60%, var(--neige) 100%) no-repeat top / 100% 26rem, var(--neige); }
.login-box { width: 100%; max-width: 26rem; display: grid; gap: 1.1rem; background: var(--blanc); border-radius: 28px; box-shadow: var(--ombre); padding: 2rem 2rem 2.25rem; }
.login-box h1 { font-size: 2.3rem; margin-top: .4rem; }
.login-box .lead { margin: 0; font-size: 1rem; }
.login-box .btn { justify-self: start; }

/* --------------------------------------------------------------- Carnet de séjour */
.carnet { max-width: 42rem; margin: 0 auto; }
.c-top { padding-inline: 1rem; }
.c-hero { margin: 0 .75rem; padding: 1.6rem 1.25rem 0; }
.c-hero h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin: .9rem 0 1rem; color: var(--nuit); }
.c-place { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.c-place span { display: block; font: 400 1rem var(--sans); color: #40605c; margin-top: .2rem; }
.c-hero .scene { width: calc(100% + 2.5rem); margin: .5rem -1.25rem 0; }
.c-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .75rem .75rem 0; }
.c-dates > div { padding: .9rem 1rem 1rem; background: var(--blanc); border-radius: 18px; box-shadow: var(--ombre); }
.c-dates dt { font-size: .8rem; color: var(--roche2); font-weight: 600; }
.c-dates dd { font-weight: 700; line-height: 1.25; margin-top: .2rem; }
.c-dates dd::first-letter { text-transform: uppercase; }
.c-dates small { display: block; font-weight: 400; margin-top: .15rem; }
.c-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; overflow-x: auto; padding: .75rem; background: color-mix(in srgb, var(--neige) 92%, transparent); backdrop-filter: blur(8px); font-size: .92rem; font-weight: 700; white-space: nowrap; scrollbar-width: none; margin-top: .5rem; }
.c-nav a { text-decoration: none; padding: .5rem 1rem; border-radius: 99px; background: var(--blanc); box-shadow: var(--ombre); }
.carnet > .flash { margin: .75rem .75rem 0; }
.c-sec { margin: 1rem .75rem 0; padding: 1.6rem 1.25rem 1.5rem; background: var(--blanc); border-radius: 26px; box-shadow: var(--ombre); }
.c-sec > h2 { font-size: 1.9rem; margin-bottom: 1.1rem; }
.c-sec h3 { display: inline-block; font: 700 .85rem/1 var(--sans); color: var(--bois-fonce); background: var(--bois-clair); padding: .45em .9em; border-radius: 99px; margin: 1.5rem 0 .3rem; }
.c-sec > h2 + h3 { margin-top: 0; }
.c-sec .facts > div { grid-template-columns: 1fr; }
.c-sec .small { margin-top: .9rem; }
.guide li { padding: .9rem 0; border-top: 1px solid var(--trait); }
.guide li:first-child { border-top: 0; }
.guide li > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.guide b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.01em; }
.guide span { font-size: .82rem; font-weight: 600; color: var(--roche2); white-space: nowrap; }
.guide p { color: var(--roche2); font-size: .96rem; margin-top: .2rem; }
.fold { margin-top: 1.25rem; background: var(--neige); border-radius: 18px; }
.fold summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; }
.fold form { padding: .25rem 1.2rem 1.25rem; }
.choices { display: grid; gap: .5rem; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .9rem 1rem; border: 2px solid var(--trait); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice small { display: block; }
.choice em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.choice em small { font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.c-sec .rows { margin-bottom: 1.25rem; }
.c-foot { margin: 1rem .75rem 2rem; padding: 1.5rem 1.25rem; border-radius: 26px; background: var(--nuit); color: #e9f3f1; display: grid; gap: .8rem; }
.c-foot .small { color: #a7c4bf; }

/* ------------------------------------------------------------------------ Mobile */
@media (max-width: 60rem) {
  .cols { grid-template-columns: 1fr; }
  .pub-doors, .pub-lead { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .frame { display: block; }
  .side { position: static; height: auto; margin: .5rem; border-radius: 22px; padding: 1rem .5rem .5rem; gap: .75rem; display: grid; grid-template-columns: 1fr auto; align-items: center; background-image: none; }
  .side .brand { padding: 0 .7rem; }
  .who { margin: 0; padding: 0 .7rem; text-align: right; grid-column: 2; grid-row: 1; }
  .who > span { display: none; }
  .nav { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: .25rem; }
  .nav a { padding: .55rem .95rem; white-space: nowrap; }
  .nav .nav-alt { margin: 0; font-size: inherit; }
  .main { padding: 1.25rem .75rem 3rem; }
  .form { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; }
  .panel { padding: 1.2rem 1.1rem; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .figures > div { padding: 1rem 1.1rem; }
  .figures dd { font-size: 2rem; }
  .plan-row { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .plan { min-width: calc(7.5rem + var(--days) * 2.15rem); }
  .plan-label { padding: .6rem .8rem; }
  .mini { justify-content: flex-start; }
  .rows li { flex-wrap: wrap; }
  .login-box { padding: 1.5rem 1.25rem 1.75rem; }
}

@media print {
  .side, .head-actions, .pager a, .back, .flash { display: none !important; }
  .frame { display: block; }
  body { background: #fff; }
  .panel { box-shadow: none; padding: 0; }
  .main { padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
