/* Structure commune à tous les thèmes.
   Couleurs, polices et formes sont des variables : chaque thème les redéfinit dans css/themes/.
   Les valeurs ci-dessous sont celles du thème Pro clair, utilisées tant qu'aucun thème n'est appliqué. */
:root {
  --bg: #F5F6F4;
  --surface: #FFFFFF;
  --fg: #18202B;
  --muted: #566170;
  --line: #D9DEE3;
  --field-line: #7D8896;
  --accent: #2B4C73;
  --accent-fg: #FFFFFF;
  --accent-soft: #E3E9F0;
  --ink: #18202B;

  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 800;
  --display-track: -0.02em;
  --h1-size: clamp(28px, 6vw, 44px);
  --h2-size: clamp(24px, 4.2vw, 32px);
  --t: 0.65s;
  --ease: cubic-bezier(0.45, 0, 0.2, 1);

  --radius: 10px;
  --radius-btn: 10px;
  --img-radius: 14px;
  --bw: 1px;
  --bc: var(--line);
  --shadow: none;
  --btn-w: 1.5px;
  --btn-line: var(--fg);
  --btn-shadow: none;
  --ico-shadow: none;
  --room: 6px;
  --section-line: var(--line);

  --hero-align: left;
  --hero-ratio: 4 / 3;
  --hero-maxh: 300px;
  --hero-w: 100%;
  --head-align: left;
  --head-margin: 0 0 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }

/* Ligne du haut fixe en défilement */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }

.wrap {
  max-width: 980px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Bandeau d'annonce et mode complet */
.annonce {
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--accent);
  color: var(--accent-fg);
  text-align: center;
  font-weight: 600;
}

/* En-tête : GÎTE à gauche, titre sur deux lignes centré (étoiles en diagonale, placées par le script), puis deux boutons */
.hdr { --fs: clamp(15px, 4.7vw, 28px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-block: 12px; }
.brand-g { font: var(--display-weight) calc(var(--fs) * 1.05) / 1 var(--font-display); letter-spacing: 0.1em; white-space: nowrap; }
.brand {
  justify-self: center; min-width: 0; color: inherit; text-decoration: none; line-height: 1;
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: var(--fs);
}
.brand-t { position: relative; display: grid; justify-items: center; gap: 0.66em; padding-inline: 0.8em; white-space: nowrap; }
.b-l1 { font-size: 0.6em; letter-spacing: 0.03em; }
.star { position: absolute; left: 0; top: 0; width: 0.46em; height: 0.46em; flex: none; color: var(--accent); fill: currentColor; visibility: hidden; }
.brand-t[data-ok] .star { visibility: visible; }
.acts { display: flex; flex: none; gap: 6px; }
.btn-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; min-height: 44px; padding: 0;
  border: var(--btn-w) solid var(--btn-line); border-radius: var(--radius-btn);
  box-shadow: var(--ico-shadow); background: transparent; color: var(--fg); cursor: pointer;
}
@media (max-width: 639px) { .btn-ico { width: 40px; min-height: 40px; height: 40px; } }
.btn-ico.accent { background: var(--accent); color: var(--accent-fg); border-color: var(--btn-main-line, var(--accent)); }

/* Bulle d'aide : souris seulement, un seul élément, rangé dans la fenêtre ouverte (jamais coupé, jamais figé) */
.bulle { position: fixed; z-index: 2000; padding: 4px 10px; border-radius: 6px; background: var(--fg); color: var(--bg); font: 600 13px/1.3 var(--font-body); white-space: nowrap; pointer-events: none; }

/* Accueil compact */
.hero { padding-block: 6px 18px; text-align: center; }
.hero-img {
  width: var(--hero-w); max-width: 100%; margin: 0 auto 18px;
  aspect-ratio: var(--hero-ratio); max-height: var(--hero-maxh);
  border-radius: var(--hero-img-radius, var(--img-radius));
  overflow: hidden;
}
@media (min-width: 760px) { :root { --hero-ratio: 16 / 7; --hero-maxh: 320px; } }
.hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tagline { margin: 10px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); }
.is-ph {
  display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px;
  background: var(--accent-soft); color: var(--muted);
  font-size: 15px;
}
.is-ph code, .is-ph .petit { font-size: 13px; }

/* Points forts : pastilles qui ouvrent les tiroirs concernés */
.atouts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; }
@media (min-width: 760px) { .atouts { grid-template-columns: repeat(4, 1fr); } }
.atouts li { margin: 0; }
.pastille { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 48px; padding: 6px 12px; text-align: center; border: var(--btn-w) solid var(--btn-line); border-radius: 999px; background: var(--surface); box-shadow: var(--ico-shadow); color: var(--fg); font: 700 15px/1.3 var(--font-body); cursor: pointer; }
.pastille:hover { background: var(--accent-soft); }
.pastille[aria-pressed="true"] { background: var(--accent); border-color: var(--btn-main-line, var(--accent)); color: var(--accent-fg); }

/* Barre d'action fixe : Demander un devis et WhatsApp */
.cta-bar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; max-width: 980px; margin-inline: auto;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg); border-top: 1px solid var(--line); }
.cta-bar .btn { flex: 1 1 0; padding-inline: 12px; gap: 8px; white-space: nowrap; }
.cta-bar .btn-main { flex: 2 1 0; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.field label small { font-weight: 400; color: var(--muted); }

/* Boutons-tiroirs */
.stack { display: block; padding-block: 4px 28px; }
.stack > .dbtn, .stack > .duo { margin-top: 12px; }
.stack > :first-child { margin-top: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dbtn, .qbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; border: var(--bw) solid var(--bc); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow);
  text-align: left; cursor: pointer;
}
.dbtn { min-height: 58px; padding: 12px 18px; font: 700 18px/1.2 var(--font-body); }
.dbtn.two { min-height: 68px; }
.dbtn span.tx { flex: 1; }
.dtx { display: grid; gap: 2px; }
.dt { font: var(--display-weight) 21px/1.1 var(--font-display); letter-spacing: var(--display-track); }
.ds { font-size: 14px; font-weight: 500; opacity: 0.85; }
.dbtn::after, .qbtn::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg); transition: transform var(--t) var(--ease);
}
.dbtn.go::after { display: none; }
.dbtn[aria-expanded="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--btn-main-line, var(--accent)); }
.dbtn[aria-expanded="true"]::after, .qbtn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.dbtn.main { background: var(--accent); color: var(--accent-fg); border-color: var(--btn-main-line, var(--accent)); }
.dbtn .ic { margin-right: 2px; }
.dbtn.go { justify-content: flex-start; gap: 12px; }

.qbtn { min-height: 52px; padding: 10px 16px; font: 600 17px/1.3 var(--font-body); box-shadow: none; border-color: var(--line); }
.qbtn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); }

/* Tiroirs */
.stack { overflow-anchor: none; }
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.drawer[data-open] { grid-template-rows: 1fr; }
.drawer > .inner { min-height: 0; overflow: hidden; margin-inline: calc(-1 * var(--room)); visibility: hidden; transition: visibility 0s linear var(--t); }
.drawer[data-open] > .inner { visibility: visible; transition-delay: 0s; }
.in { padding: 12px var(--room) var(--room); }
@media (prefers-reduced-motion: reduce) { .drawer, .dbtn::after, .qbtn::after { transition: none; } }
/* Logements : les colonnes se partagent la largeur en animation.
   Là-Haut seul : 1fr 0fr. Les deux : 1fr 1fr. En-Bas seul : 0fr 1fr.
   Sur téléphone, quand les deux sont ouverts, ils se placent côte à côte et se font glisser du doigt. */
.panels { margin-right: -16px; container-type: inline-size; }
.pgrid { display: grid; grid-template-columns: 1fr 0fr; width: 100%; transition: grid-template-columns var(--t) var(--ease), width var(--t) var(--ease); }
.panels[data-cols="h"] .pgrid { grid-template-columns: 1fr 0fr; }
.panels[data-cols="hb"] .pgrid { grid-template-columns: 1fr 1fr; }
.panels[data-cols="b"] .pgrid { grid-template-columns: 0fr 1fr; }
.col { min-width: 0; overflow: hidden; }
.pc-in { min-width: 88cqw; padding: 2px 16px 10px 0; }
@media (max-width: 899px) {
  .panels { overflow-x: hidden; }
  .panels[data-cols="hb"] { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .panels[data-cols="hb"]::-webkit-scrollbar { display: none; }
  .panels[data-cols="hb"] .pgrid { width: 176%; }
  .panels[data-cols="hb"] .col { scroll-snap-align: start; }
}
@media (min-width: 900px) { .pc-in { min-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .pgrid { transition: none; } }

.pcard {
  padding: 20px; min-width: 0;
  border: var(--bw) solid var(--bc); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.log-sub { margin: 4px 0 14px; color: var(--muted); }
.rooms, .details { list-style: none; margin: 0; padding: 0; }
.room { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.room .pers { font-variant-numeric: tabular-nums; color: var(--muted); }
.room .couch { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.details { margin-top: 12px; }
.details li { position: relative; padding: 7px 0 7px 18px; font-size: 16px; }
.details li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.eqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.eq { display: flex; align-items: center; gap: 12px; padding: 8px 4px; min-width: 0; font-weight: 600; font-size: 16px; line-height: 1.3; cursor: default; }
.eq svg { flex: none; color: var(--accent); }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(84px, 130px) 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.note { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); }

.qs { display: grid; gap: 8px; }
.q .in { padding-top: 8px; }
.q .in p { margin: 0; padding: 2px 4px 6px; max-width: 60ch; }

/* Fenêtres */
.dlg {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto; padding: 20px; overflow: auto;
  border: var(--bw) solid var(--bc); border-radius: calc(var(--radius) + 6px);
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow); font: inherit;
}
.dlg-l { width: min(940px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(10, 15, 25, 0.55); }
.dlg-head { position: sticky; top: -20px; z-index: 20; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -20px -20px 8px; padding: 20px 20px 8px; background: var(--bg); }
.dlg::after { content: ""; display: block; height: var(--kb, 0px); }
.dlg-head h2:focus { outline: none; }
.dlg-head h2 { flex: 1; min-width: 0; padding-top: 6px; text-align: var(--head-align); }
.dlg-btns { display: flex; flex: none; gap: 2px; }
.x {
  position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
}
.x:hover, .x:focus-visible { background: var(--accent-soft); }
#plus .v { transform-box: fill-box; transform-origin: center; transition: transform var(--t) var(--ease); }
#plus[aria-pressed="true"] .v { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) { #plus .v { transition: none; } }
.intro { max-width: 60ch; margin: var(--head-margin); color: var(--muted); text-align: var(--head-align); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 24px;
  border: var(--btn-w) solid var(--btn-line); border-radius: var(--radius-btn);
  box-shadow: var(--btn-shadow);
  background: transparent; color: var(--fg);
  font: 700 16px var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--accent); color: var(--accent-fg); border-color: var(--btn-main-line, var(--accent)); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { flex: 1 1 220px; }

/* Choix du thème */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px; min-width: 0;
  border: var(--bw) solid var(--bc); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.card[data-on] { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-main { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: var(--display-weight) 26px/1.1 var(--font-display); letter-spacing: var(--display-track); }
.card-sub { color: var(--muted); font-size: 16px; }
.dots { display: flex; gap: 6px; }
.dots i { display: block; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--field-line); }
.tag { display: none; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font: 700 13px var(--font-body); letter-spacing: 0; }
.card[data-on] .tag { display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 36px; padding: 4px 14px;
  border: 1.5px solid var(--field-line); border-radius: 999px;
  background: transparent; color: var(--fg); font: 600 14px var(--font-body); cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* Formulaire */
.grid2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .field .lab { padding: 0; font-weight: 700; font-size: 15px; }
.dlg-head h2 { font-size: clamp(21px, 5.4vw, 30px); }

/* Dates : toute la case ouvre le calendrier */
input[type="date"] { position: relative; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }

/* Nombre de personnes : liste qui s'ouvre sur 10 */
.sel {
  position: relative; display: block; flex: 1; min-width: 0; width: 100%; min-height: 50px; padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--field-line); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer;
}
.sel::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.4s var(--ease), margin-top 0.4s var(--ease);
}
.sel[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.lb {
  position: relative; list-style: none; margin: 0; padding: 0; max-height: 216px; overflow-y: auto; overscroll-behavior: contain;
  border: 1.5px solid var(--field-line); border-radius: var(--radius); background: var(--surface);
}
.lb li { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.lb li:first-child { border-top: 0; }
.lb li[aria-selected="true"] { background: var(--accent-soft); font-weight: 700; }
.lb li:focus-visible { outline-offset: -3px; }
.count { margin: 0; text-align: right; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--field-line); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.row { display: flex; align-items: center; gap: 10px; }
.smiley { font-size: 30px; line-height: 1; }
.nuits { margin: -6px 0 16px; font-weight: 700; color: var(--accent); }
.lchoix { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.lchoix .opt:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.opt input { width: 20px; min-height: 0; height: 20px; flex: none; accent-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.otx { display: grid; gap: 1px; line-height: 1.2; min-width: 0; }
.otx small { color: var(--muted); font-size: 13px; }
.err { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius); background: #FBE4E2; color: #8A1C14; font-weight: 600; }
.resultat { margin-top: 22px; padding: 18px; border: var(--bw) solid var(--bc); border-radius: var(--radius); background: var(--surface); }
.msg { margin: 12px 0 16px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); white-space: pre-line; overflow-wrap: anywhere; }
.copied { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* Plan */
.carte { position: relative; display: grid; place-items: center; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); }
.carte a { display: block; width: 100%; height: 100%; }
.carte img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carte.is-ph { padding: 16px; text-align: center; color: var(--muted); }
.dlg-carte[open] { display: flex; flex-direction: column; overflow: hidden; }
.dlg-carte > * { flex: none; }
.dlg-carte .intro { margin-bottom: 10px; }
.dlg-carte .cvue { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.cvue .carte { flex: 1 1 auto; min-height: 120px; }
.cbas { flex: none; }
.cbas .sel3 { margin-bottom: 10px; }
.sel3.vue-sel { display: none; margin-bottom: 10px; }
.sel3.deux { grid-template-columns: repeat(2, 1fr); }
.sel3.deux .sel3-t { width: calc((100% - 6px) / 2); }
@media (max-height: 799px) {
  .sel3.vue-sel { display: grid; }
  .cvue[data-vue="plan"] .cbas { display: none; }
  .cvue[data-vue="qr"] .carte { display: none; }
  .cvue[data-vue="qr"] .cbas { flex: 1 1 auto; }
  .cvue[data-vue="qr"] .nav-res { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-height: 520px) { .dlg-carte[open] { overflow: auto; } }

/* Pied de page */
.foot { padding-block: 24px 44px; text-align: center; color: var(--muted); font-size: 15px; border-top: 1px solid var(--section-line); }
.foot p { margin: 0 0 6px; }
.foot-adresse { font-size: 15px; }
.num { color: var(--fg); font-weight: 700; font-size: 19px; text-decoration: none; }
.lien { padding: 8px; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.todo { display: inline-block; padding: 1px 8px; border: 1.5px dashed var(--field-line); border-radius: 6px; }

/* Calendrier de disponibilités. Couleurs modifiables par thème : --cal-libre, --cal-pris, --cal-proche, --cal-sel, --cal-ink */
:root { --cal-passe: #DADDE1; --cal-passe-ink: #7B8490; --cal-libre: #BFE3C4; --cal-pris: #F4B6B6; --cal-proche: #F7D98B; --cal-sel: rgba(126, 64, 196, 0.5); --cal-ink: #1B2430; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.cal-b { flex: none; width: 44px; height: 48px; border-radius: var(--radius-btn, 999px); border: var(--btn-w, 1px) solid var(--btn-line, var(--line)); background: var(--surface); color: var(--fg); font: 700 22px/1 var(--font-body); cursor: pointer; }
.cal-b2 { flex: none; display: grid; place-items: center; width: 44px; height: 48px; padding: 0; border-radius: var(--radius); border: var(--btn-w, 1px) solid var(--btn-line, var(--line)); background: var(--surface); color: var(--fg); cursor: pointer; }
.cal-b2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-b:disabled, .cal-b2:disabled { opacity: 0.35; cursor: default; }
.cal-tuile { flex: 1; min-width: 0; position: relative; height: 48px; padding: 0 20px 0 2px; border-radius: var(--radius); border: var(--btn-w, 1px) solid var(--btn-line, var(--line)); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.cal-tuile::after { content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.45s var(--ease); }
.cal-tuile[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.cal-tz { position: relative; display: block; overflow: hidden; height: 100%; }
.cal-tl { display: grid; place-content: center; height: 100%; line-height: 1.1; text-transform: capitalize; }
.cal-tl b { font-size: 14px; }
.cal-tl small { font-size: 12px; color: var(--muted); }
.cal-pan { padding-bottom: 6px; }
.cal-an { font-size: 17px; }
.cal-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cal-mb { min-height: 44px; border-radius: var(--radius); border: var(--btn-w, 1px) solid var(--btn-line, var(--line)); background: var(--surface); color: var(--fg); font: 600 15px var(--font-body); text-transform: capitalize; cursor: pointer; }
.cal-mb[aria-current] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.cal-j { border: 0; padding: 0; font: inherit; cursor: pointer; }
button.cal-j:disabled { opacity: 0.4; cursor: default; }
.dbox { position: relative; }
.dover { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.cal-zone { position: relative; overflow: hidden; touch-action: pan-y; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-h { text-align: center; font-weight: 700; color: var(--muted); font-size: 13px; padding-bottom: 4px; }
.cal-j { position: relative; display: grid; place-items: center; height: 46px; border-radius: 6px; color: var(--cal-ink); overflow: hidden;
  background:
    linear-gradient(to right, var(--ct-g) 50%, var(--ct-d) 50%) center / 100% 10% no-repeat,
    linear-gradient(to right, var(--ch-g) 50%, var(--ch-d) 50%) top / 100% 50% no-repeat,
    linear-gradient(to right, var(--cb-g) 50%, var(--cb-d) 50%) bottom / 100% 50% no-repeat; }
.cal-j b { position: relative; z-index: 1; font-weight: 700; font-size: 14px; line-height: 1; }
.cal-sel { position: absolute; background: linear-gradient(var(--cal-sel), var(--cal-sel)), var(--surface); z-index: 0; }
.cal-pass { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cal-passe); z-index: 0; }
.cal-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.cal-leg strong { color: var(--fg); }
.cal-k { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.sw.passe { background: var(--cal-passe); } .sw.libre { background: var(--cal-libre); } .sw.proche { background: var(--cal-proche); } .sw.pris { background: var(--cal-pris); } .sw.demande { background: linear-gradient(var(--cal-sel), var(--cal-sel)), var(--surface); }
.cal-tip { position: absolute; z-index: 5; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 600 13px/1.35 var(--font-body); white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.cal-tip span { display: block; }
.cal-j[tabindex]:focus-visible { outline-offset: -3px; }
.warn { color: var(--fg); background: var(--accent-soft); padding: 10px 12px; border-radius: var(--radius); margin-top: 0; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.chk input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
#f-animaux-zone { margin-top: 6px; }
#cal-page, #cal-form { position: relative; container-type: inline-size; }
@container (max-width: 300px) {
  .cal-b2 span { display: none; }
  .cal-b2 { width: 40px; }
  .cal-b { width: 38px; }
  .cal-nav { gap: 4px; }
}

/* Pastilles devant chaque sujet : rouge « ! » = obligatoire à remplir, vert = rempli, bleu = facultatif ;
   orange « ? » = encore à compléter après un message refusé */
:root { --dot-req: #D63B2F; --dot-ok: #2E9E57; --dot-opt: #2F7DD1; --dot-ask: #E8890C; --alerte: #D9730D; --alerte-bg: #FFE9CC; --alerte-fg: #3A1F00; }
.field > label::before, .field > legend::before, .field > .lab::before, .an-row > label::before, .chk::before {
  content: ""; display: inline-block; flex: none; width: 15px; height: 15px; margin-right: 8px; border-radius: 50%;
  background: var(--dot-opt) center / 82% no-repeat; vertical-align: -0.12em;
}
.chk::before { align-self: center; margin-right: 0; }
.req > label::before, .req > legend::before, .req > .lab::before { background-color: var(--dot-req); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2.1v3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='7.8' r='1' fill='white'/%3E%3C/svg%3E"); }
#form.refus .req:not(.ok):not(.alt) > label::before, #form.refus .req:not(.ok):not(.alt) > legend::before, #form.refus .req:not(.ok):not(.alt) > .lab::before { background-color: var(--dot-ask); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 3.7c0-1 .7-1.6 1.6-1.6s1.4.6 1.4 1.3c0 1.2-1.4 1.2-1.4 2.4' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='5.1' cy='8' r='.9' fill='white'/%3E%3C/svg%3E"); }
.req.alt > label::before, .req.alt > legend::before, .req.alt > .lab::before { background-color: var(--dot-opt); background-image: none; }
.req.ok > label::before, .req.ok > legend::before, .req.ok > .lab::before {
  background-color: var(--dot-ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field label small { font-weight: 400; color: var(--muted); }

/* Bouton Simple / Détaillé */
.mini { display: grid; gap: 4px; align-content: end; font-weight: 600; font-size: 14px; }
.mini small { font-weight: 400; color: var(--muted); }

/* Nombre de personnes : une case qui se divise en trois (Adultes / Enfants / Bébés) */
.ngrid { display: grid; grid-template-columns: 1fr 0fr 0fr; column-gap: 0; transition: grid-template-columns var(--t) var(--ease), column-gap var(--t) var(--ease); }
.ngrid[data-detail] { grid-template-columns: 1fr 1fr 1fr; column-gap: 8px; }
.ncol { min-width: 0; }
.ncol:not(:first-child) { overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--t); }
.ngrid[data-detail] .ncol:not(:first-child) { visibility: visible; transition-delay: 0s; }
.ndr { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.ndr > .nin { min-height: 0; overflow: hidden; }
.ngrid[data-detail] .nlabrow { grid-template-rows: 1fr; }
.ngrid[data-detail] .nsub { grid-template-rows: 1fr; transition-delay: var(--t); }
.nlab { display: block; padding-bottom: 6px; text-align: center; white-space: nowrap; font-weight: 700; font-size: 14px; }
.nsub small { display: block; padding-top: 4px; text-align: center; white-space: nowrap; color: var(--muted); font-size: 13px; }
.ngrid .sel { transition: padding var(--t) var(--ease); }
.ngrid .sel .smiley { margin-left: 10px; font-size: 24px; vertical-align: middle; }
.ngrid[data-detail] .sel { padding: 12px 22px 12px 6px; text-align: center; }
.ngrid[data-detail] .sel::after { right: 9px; width: 8px; height: 8px; }
@media (prefers-reduced-motion: reduce) { .ngrid, .ndr, .ngrid .sel { transition: none; } }

/* Couchages et options : deux colonnes sur grand écran */
.chk2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; margin: 0 0 12px; }
@media (min-width: 640px) { .chk2 { grid-template-columns: 1fr 1fr; } }
.sel3.sh button { min-height: 48px; padding: 4px 6px; font-size: 13px; line-height: 1.15; }
#d-fete-zone { margin-top: 8px; gap: 8px; }
.cal-pan .cal-mb:disabled { opacity: 0.35; cursor: default; }

/* Réglage des couleurs (ouvert par #couleurs) */
.reglage { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 1000; max-width: 420px; margin-inline: auto; max-height: 52vh; overflow: auto; padding: 10px 12px; border: 2px solid #1B2430; border-radius: 12px; background: #fff; color: #1B2430; font: 14px/1.3 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.rg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reglage button { min-height: 36px; padding: 0 12px; border: 1px solid #1B2430; border-radius: 8px; background: #fff; color: #1B2430; font: inherit; }
.rg-ligne { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; margin-top: 8px; }
.rg-ligne input[type="color"] { width: 44px; height: 36px; padding: 0; border: 1px solid #1B2430; border-radius: 6px; }
.rg-ligne input[type="range"] { grid-column: 1 / -1; min-height: 0; }
.reglage textarea { width: 100%; margin-top: 10px; font: 12px/1.35 ui-monospace, monospace; }
.rg-act { display: flex; gap: 8px; margin-top: 6px; }

/* Sélecteur à 3 positions (application de navigation) */
.sel3 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 14px; padding: 3px; border: var(--btn-w, 1px) solid var(--btn-line, var(--line)); border-radius: 999px; background: var(--surface); }
.sel3-t { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--accent); transition: transform 0.4s var(--ease); }
.sel3[data-pos="1"] .sel3-t { transform: translateX(100%); }
.sel3[data-pos="2"] .sel3-t { transform: translateX(200%); }
.sel3 button { position: relative; z-index: 1; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--fg); font: 700 14px var(--font-body); cursor: pointer; transition: color 0.4s var(--ease); }
.sel3 button[aria-checked="true"] { color: var(--accent-fg); }
@media (prefers-reduced-motion: reduce) { .sel3-t, .sel3 button { transition: none; } }
.nav-res { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.nav-res .btn { width: 100%; }
.qr { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.qr #nav-svg { width: min(150px, 22dvh); height: min(150px, 22dvh); padding: 8px; border-radius: 12px; background: #fff; }
.vue-sel + .cvue[data-vue="qr"] .qr #nav-svg { width: min(210px, 34dvh); height: min(210px, 34dvh); }
.qr #nav-svg svg { display: block; width: 100%; height: 100%; }
.legal p { margin: 0 0 10px; }
.legal .art { margin: 0 0 12px; }
.legal .art strong { display: block; }
.legal .art p { margin: 2px 0 0; }
.effacer { margin: 10px 0 0; text-align: center; }
.petit { font-size: 14px; color: var(--muted); }

.cal-j.passe { background: var(--cal-passe); color: var(--cal-passe-ink); }


/* Dates : les deux champs fusionnent en une tuile qui s'agrandit en calendrier */
.dates { margin: 0 0 16px; padding: 0; border: 1.5px solid transparent; border-radius: calc(var(--radius) + 4px); background: transparent; transition: padding var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.dates > .grid2 { grid-template-columns: 1fr 1fr; column-gap: 16px; transition: column-gap var(--t) var(--ease); }
.dates .field { margin: 0; }
.dates[data-open] { padding: 12px 12px 4px; border-color: var(--field-line); background: var(--surface); }
.dates[data-open] > .grid2 { column-gap: 0; }
.dates[data-open] .field:first-child input { border-right-width: 0; border-radius: var(--radius) 0 0 var(--radius); }
.dates[data-open] .field:last-child input { border-radius: 0 var(--radius) var(--radius) 0; }
.dates .drawer > .inner { margin-inline: 0; }
.dates .in { padding-inline: 0; }
@media (prefers-reduced-motion: reduce) { .dates, .dates > .grid2 { transition: none; } }

/* Animal de compagnie : la case reste en place, le texte libre prend la place du libellé */
.an-row { display: flex; align-items: center; gap: 10px; height: 50px; }
.an-row > input[type="checkbox"] { flex: none; margin: 0; width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent); }
.an-row > label { flex: 1; min-width: 0; font-weight: 600; cursor: pointer; }
.an-in { position: relative; flex: 1; min-width: 0; }
.an-in input { padding-right: 98px; }
.an-plus { position: absolute; top: 3px; right: 47px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); font: 700 26px/1 var(--font-body); cursor: pointer; }
.an-moins { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--accent); font: 700 26px/1 var(--font-body); cursor: pointer; }
.an-plus:hover:not(:disabled), .an-moins:hover { background: var(--accent-soft); }
.an-plus:disabled { opacity: 0.3; cursor: default; }
.an-extra { display: grid; gap: 8px; }
.an-extra:has(input:not([hidden])) { margin: 8px 0 0 30px; }

/* Plus de 14 personnes dans un seul logement : tuiles orange */
.sel.alerte, input.alerte, label.opt.alerte, label.opt.alerte:has(input:checked) { border-color: var(--alerte); background: var(--alerte-bg); color: var(--alerte-fg); }
.nuits.alerte-msg { margin: -6px 0 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--alerte-bg); color: var(--alerte-fg); border: 1.5px solid var(--alerte); }

/* Boutons du bas du formulaire : même ligne, même taille */
.btns2 { display: flex; gap: 10px; }
.btns2 .btn { flex: 1 1 0; min-width: 0; gap: 8px; padding-inline: 10px; font-size: 15px; line-height: 1.2; }

/* Fenêtre d'accueil : une tuile par évènement */
.tuiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
@media (min-width: 640px) { .tuiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tuile { display: grid; gap: 8px; align-content: start; padding: 10px; border: var(--bw) solid var(--bc); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--fg); font: inherit; text-align: center; cursor: pointer; }
.tuile:hover { background: var(--accent-soft); }
.tuile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius) - 4px); }
.tuile-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tuile-img.is-ph { display: grid; place-items: center; padding: 0; }
.tuile-img .emo { font-size: 44px; line-height: 1; }
.tuile-t { font: 700 16px/1.25 var(--font-body); }
.autres { margin: 6px 0 0; }
.autres summary { padding: 10px 4px; color: var(--muted); font-weight: 700; cursor: pointer; }
.autres .cards { margin-top: 10px; }
.passer { margin: 8px 0 0; text-align: center; }

/* Pourquoi nous choisir */
.pq { list-style: none; margin: 0 0 18px; padding: 0; }
.pq li { padding: 12px 0; border-top: 1px solid var(--line); }
.pq li:first-child { border-top: 0; padding-top: 0; }
.pq strong { display: block; font-size: 17px; }
.pq span { color: var(--muted); }
