/* Pension du Grand Pré : une maison de campagne en Touraine.
   Matières du lieu : pierre de tuffeau (fond), ardoise des toits (texte), vert sauge des volets (actions).
   Libre Caslon Display pour les titres, Figtree pour le texte. Beaucoup d'air, des photos de vie, des filets fins. */
:root {
  --tuffeau: #F3EEE4;
  --lin: #FBF9F4;
  --ardoise: #2E3842;      /* texte : 11.2:1 sur tuffeau */
  --ardoise-2: #59636E;    /* texte secondaire : 5.4:1 sur tuffeau */
  --sauge: #56684B;        /* actions, texte blanc dessus : 6.3:1 */
  --sauge-pale: #DFE5D6;
  --line: #D9D0BF;

  --bg: var(--tuffeau);
  --bg2: var(--lin);
  --label: var(--ardoise);
  --label2: var(--ardoise-2);
  --sep: var(--line);
  --fill: #EAE3D6;
  --accent: var(--sauge);
  --accent-ink: #FFFFFF;
  --link: var(--sauge);
  --ok: #3F6B3A;
  --warn: #8A5A12;
  --danger: #A3342B;
  --band: var(--ardoise);
  --on-band: #F3EEE4;
  --signal: var(--sauge-pale);
  --enamel: var(--ardoise);
  --marker: var(--ardoise);
  --glass: rgba(243,238,228,.94);
  --glass-line: var(--line);
  --shadow: 0 24px 48px -28px rgba(46,56,66,.45);
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-text: var(--font);
  --f-display: "Libre Caslon Display", "Georgia", serif;
  --r-lg: 4px; --r-md: 3px; --r-sm: 2px;
  --ground: transparent; --road: #E7E0D2; --path: #E4D8C0; --meadow: #DDE3D3; --meadow-line: #BCC8AE; --fence: #93A285;
  --water: #D5DFE2; --water-line: #7E959E; --tree: #A2B48F; --wall: #FBF9F4;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --tuffeau: #1E2328; --lin: #262C33; --ardoise: #EEE9DF; --ardoise-2: #B6B2A8; --sauge: #A9BC98; --sauge-pale: #33402F; --line: #3A424B;
  --fill: #2D343C; --accent-ink: #1E2328; --ok: #9FCB97; --warn: #E3B66B; --danger: #F08C82; --band: #14181C; --on-band: #EEE9DF;
  --glass: rgba(30,35,40,.94); --road: #2B3138; --path: #4A4436; --meadow: #2C3829; --meadow-line: #3E4D39; --fence: #8EA27F;
  --water: #283740; --water-line: #8FA9B3; --tree: #5E7351; --wall: #262C33; color-scheme: dark; } }
:root[data-theme="dark"] {
  --tuffeau: #1E2328; --lin: #262C33; --ardoise: #EEE9DF; --ardoise-2: #B6B2A8; --sauge: #A9BC98; --sauge-pale: #33402F; --line: #3A424B;
  --fill: #2D343C; --accent-ink: #1E2328; --ok: #9FCB97; --warn: #E3B66B; --danger: #F08C82; --band: #14181C; --on-band: #EEE9DF;
  --glass: rgba(30,35,40,.94); --road: #2B3138; --path: #4A4436; --meadow: #2C3829; --meadow-line: #3E4D39; --fence: #8EA27F;
  --water: #283740; --water-line: #8FA9B3; --tree: #5E7351; --wall: #262C33; color-scheme: dark; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--label); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--sauge); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ardoise); color: var(--tuffeau); padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.num { font-variant-numeric: tabular-nums; }
.l2 { color: var(--label2); }

/* Échelle typographique (rapport 1.333) */
.display, .t-plan, .t-section, .t-title { font-family: var(--f-display); font-weight: 400; }
.display { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -.01em; }
.t-section { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; }
.t-plan { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.t-title { font-size: 28px; }
.t-headline { font-weight: 600; font-size: 17px; line-height: 1.4; }
.t-lead { font-size: 19px; line-height: 1.65; color: var(--label2); }
.t-sub { font-size: 15px; }
.t-foot { font-size: 14px; }
.sub { font-size: 15px; color: var(--label2); }
.hint { font-size: 14px; color: var(--label2); }
.err { color: var(--danger); font-size: 15px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; font-family: var(--font); font-weight: 500; font-size: 16px; letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; touch-action: manipulation; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-prominent { background: var(--sauge); color: var(--accent-ink); }
.btn-prominent:hover:not(:disabled) { background: color-mix(in srgb, var(--sauge) 86%, #000); }
.btn-gray, .btn-ink { background: transparent; color: var(--label); border-color: var(--label); }
.btn-gray:hover:not(:disabled), .btn-ink:hover { background: var(--label); color: var(--bg); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-more { color: var(--label); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--label); position: relative; border-radius: 50%; }
.icon-btn:hover { background: var(--fill); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sauge); color: var(--accent-ink); font: 600 11px/18px var(--font); text-align: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- En-tête de maison : nom centré ---------- */
.demo { background: var(--ardoise); color: var(--tuffeau); font-size: 13px; text-align: center; padding-block: 6px; }
.house-head { position: sticky; top: 0; z-index: 40; background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.house-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 16px; }
.house-head .left { display: flex; gap: 28px; }
.house-head .right { display: flex; justify-content: flex-end; gap: 4px; align-items: center; }
.house-head nav a, .house-head .right a.txt { color: var(--label); text-decoration: none; font-size: 15px; padding-block: 6px; border-bottom: 1px solid transparent; }
.house-head nav a:hover, .house-head .right a.txt:hover { border-bottom-color: var(--label2); }
.house-head nav a[aria-current="page"], .house-head .right a.txt[aria-current="page"] { border-bottom-color: var(--label); }
.house-head .right a.txt { margin-right: 14px; }
.brand { text-decoration: none; color: var(--label); text-align: center; display: grid; line-height: 1; }
.logo { font-family: var(--f-display); font-size: 30px; }
.logo-sub { font-size: 12px; color: var(--label2); margin-top: 5px; letter-spacing: .04em; }
nav.tabbar { display: none; }
@media (max-width: 860px) {
  .house-head .wrap { grid-template-columns: 1fr auto; min-height: 60px; }
  .house-head .left { display: none; }
  .brand { text-align: left; }
  .logo { font-size: 24px; }
  .logo-sub { display: none; }
  .house-head .right a.txt { display: none; }
  nav.tabbar { display: flex; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: var(--glass); border-top: 1px solid var(--line); padding: 4px max(8px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  nav.tabbar a { flex: 1; display: grid; place-items: center; min-height: 52px; color: var(--label2); font-size: 13px; text-decoration: none; }
  nav.tabbar a[aria-current="page"] { color: var(--label); font-weight: 600; }
  main { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Accueil ---------- */
.cover img { width: 100%; height: min(78vh, 760px); object-fit: cover; object-position: 50% 45%; }
.intro { text-align: center; padding-block: 80px 96px; display: grid; justify-items: center; gap: 24px; }
.intro .display { max-width: 20ch; }
.intro .t-lead { max-width: 52ch; }
.intro .ctas { display: flex; gap: 14px 28px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 8px; }

.stays { display: grid; gap: 120px; padding-block: 24px 120px; }
.stay { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.stay:nth-child(even) { grid-template-columns: .85fr 1.15fr; }
.stay:nth-child(even) .stay-photo { order: 2; }
.stay-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.stay:nth-child(even) .stay-photo img { aspect-ratio: 4 / 5; }
.stay-text { display: grid; gap: 18px; align-content: center; max-width: 440px; }
.stay-text h3 { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 42px); }
.stay-text p { color: var(--label2); }
.stay-text .facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stay-text .facts li { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.stay-text .from { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stay-text .from b { font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.stay-text .from span { color: var(--label2); font-size: 15px; }
@media (max-width: 860px) {
  .stays { gap: 72px; padding-bottom: 72px; }
  .stay, .stay:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .stay:nth-child(even) .stay-photo { order: 0; }
  .stay-photo img, .stay:nth-child(even) .stay-photo img { aspect-ratio: 4 / 3; }
}

.section-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 48px; }
.section-head p { max-width: 54ch; color: var(--label2); }
section.domain { background: var(--lin); padding-block: 96px; border-block: 1px solid var(--line); }

/* Le domaine : plan dessiné, doux */
.site-plan { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 48px; align-items: start; }
.legend-panel { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }
.lede { margin-top: 12px; color: var(--label2); }
.tonight-list { margin: 20px 0 24px; display: grid; border-top: 1px solid var(--line); }
.tonight-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.tonight-list dt { font-size: 15px; color: var(--label2); }
.tonight-list dd { margin: 0; font-family: var(--f-display); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.tonight-list dd.full { color: var(--danger); font-family: var(--font); font-size: 15px; font-weight: 600; }
#zoneDetail { display: grid; gap: 14px; }
#zoneDetail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
#zoneDetail h2 { font-family: var(--f-display); font-size: 34px; }
#zoneDetail p { color: var(--label2); }
#zoneDetail ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
#zoneDetail li { padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
#zoneDetail .price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#zoneDetail .price-line b { font-family: var(--f-display); font-weight: 400; font-size: 30px; }
#zoneDetail .back { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--label); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; font-size: 15px; }
.zone-list p { font-size: 14px; color: var(--label2); margin-bottom: 10px; }
#zoneButtons { display: flex; flex-wrap: wrap; gap: 8px; }
#zoneButtons button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px; color: var(--label); }
#zoneButtons button:hover { border-color: var(--label2); }
#zoneButtons button[aria-pressed="true"] { background: var(--sauge); border-color: var(--sauge); color: var(--accent-ink); }
.plan-wrap { position: relative; }
#plan { width: 100%; height: auto; display: block; }
#plan > rect:first-of-type { fill: transparent; }
#plan .bldg { fill: var(--wall); stroke: var(--ardoise); stroke-width: 1.5; }
#plan .roof { fill: none; stroke: var(--ardoise); stroke-width: 1.5; }
#plan .box { fill: var(--wall); stroke: var(--ardoise-2); stroke-width: 1.2; transition: fill .3s; }
#plan .box.taken { fill: var(--sauge); stroke: var(--sauge); }
#plan .zone path { stroke-width: 1.5; stroke-dasharray: 4 4; }
#plan .zone { cursor: pointer; transition: opacity .2s; }
#plan.has-active .zone:not(.active) { opacity: .5; }
#plan .map-note { font: 400 14px var(--font); fill: var(--label2); letter-spacing: .05em; }
#plan .map-river { font: italic 400 24px var(--f-display); fill: var(--water-line); }
#plan .pin { cursor: pointer; }
#plan .pin rect.outer { fill: var(--wall); stroke: var(--line); stroke-width: 1; }
#plan .pin rect.inner { display: none; }
#plan .pin text { font: 500 15px var(--font); fill: var(--ardoise); }
#plan .pin:hover rect.outer, #plan .pin.active rect.outer { fill: var(--sauge); stroke: var(--sauge); }
#plan .pin:hover text, #plan .pin.active text { fill: var(--accent-ink); }
#plan .pin:focus { outline: none; }
#plan .pin:focus-visible rect.outer { stroke: var(--ardoise); stroke-width: 2.5; }
.plan-key { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--label2); margin-top: 10px; }
.plan-key .key { width: 14px; height: 14px; border: 1.2px solid var(--ardoise-2); display: inline-block; background: var(--wall); }
.plan-key .key.taken { background: var(--sauge); border-color: var(--sauge); margin-left: 12px; }
@media (max-width: 900px) {
  .site-plan { grid-template-columns: 1fr; gap: 28px; }
  .plan-wrap { order: -1; }
  .legend-panel { position: static; }
  #plan .pin text { font-size: 22px; }
}

/* Une journée, une citation, les infos pratiques */
.day-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.day-list li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.day-list li:first-child { border-top: 1px solid var(--line); }
.day-list time { font-family: var(--f-display); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day-list h3 { font-size: 17px; font-weight: 600; }
.day-list p { color: var(--label2); font-size: 16px; }
section.quiet { padding-block: 112px; }
.big-quote { margin: 0 auto; max-width: 30ch; text-align: center; display: grid; gap: 24px; }
.big-quote p { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; }
.big-quote footer { color: var(--label2); font-size: 15px; }

.practical-band { background: var(--band); color: var(--on-band); }
.practical { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-block: 72px; }
.practical h2 { font-family: var(--f-display); font-size: 26px; margin-bottom: 16px; }
.practical .day, .practical .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; opacity: .9; }
.practical .day b { display: inline-block; width: 52px; font-weight: 600; }
.practical .prices { width: 100%; border-collapse: collapse; font-size: 15px; }
.practical .prices th { text-align: left; font-weight: 400; padding: 6px 0; border-bottom: 1px solid rgba(243,238,228,.18); }
.practical .prices td { text-align: right; padding: 6px 0; border-bottom: 1px solid rgba(243,238,228,.18); font-variant-numeric: tabular-nums; }
.practical .note { font-size: 14px; opacity: .75; margin-top: 12px; }
@media (max-width: 860px) { .practical { grid-template-columns: 1fr; gap: 36px; } }

footer.site { background: var(--band); color: var(--on-band); padding-block: 0 40px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding-top: 32px; border-top: 1px solid rgba(243,238,228,.18); margin-bottom: 20px; }
footer.site strong { display: block; font-weight: 600; margin-bottom: 4px; }
footer.site .plaque { display: block; font-family: var(--f-display); font-size: 24px; margin-bottom: 6px; }
footer.site a { color: var(--on-band); }
footer.site .cols > div, footer.site p { opacity: .85; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ---------- Boutique : épicerie fine ---------- */
.shop-hero { padding-block: 72px 8px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.shop-hero .t-lead { max-width: 52ch; }
.cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-block: 32px 8px; }
.cat { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 15px; color: var(--label); }
.cat:hover { border-color: var(--label2); }
.cat[aria-pressed="true"] { background: var(--ardoise); border-color: var(--ardoise); color: var(--tuffeau); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; margin-top: 32px; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .products { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; } }
.product { display: grid; gap: 4px; align-content: start; text-align: center; }
.product .art { aspect-ratio: 4 / 5; background: var(--lin); display: grid; place-items: center; margin-bottom: 14px; max-width: 100%; }
.product .art svg { width: 58%; height: auto; }
.product .new { font-size: 13px; color: var(--sauge); font-weight: 600; min-height: 18px; }
.product h3 { font-family: var(--f-display); font-size: 22px; }
.product .desc { font-size: 14px; color: var(--label2); }
.product .buy { display: grid; justify-items: center; gap: 12px; margin-top: 10px; }
.product .price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { grid-column: 1 / -1; text-align: center; padding-block: 48px; display: grid; gap: 14px; justify-items: center; color: var(--label2); }

/* Panneaux latéraux */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(30,35,40,.4); }
.sheet { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--lin); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); }
.sheet .grabber { display: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.sheet-head .t-headline { flex: 1; text-align: center; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.sheet-body { overflow: auto; padding: 8px 28px; }
.sheet-foot { padding: 18px 28px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .sheet { top: auto; left: 0; width: 100%; max-height: 88dvh; border-radius: 16px 16px 0 0; } }
#petSheet { grid-template-rows: auto 1fr; }
#petForm { grid-auto-rows: max-content; }
@media (min-width: 761px) { #petSheet { top: 50%; bottom: auto; right: 50%; transform: translate(50%, -50%); max-height: 90vh; width: min(520px, calc(100% - 24px)); } }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 60px; height: 72px; background: var(--tuffeau); display: grid; place-items: center; }
.cart-line .thumb svg { width: 42px; height: 42px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-size: 18px; }
.stepper button:hover { background: var(--fill); }
.stepper span { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.sum { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum.total { font-family: var(--f-display); font-size: 26px; }

/* ---------- Réservation ---------- */
.fiche { max-width: 880px; margin: 56px auto 150px; background: var(--lin); padding: 0 56px 32px; border: 1px solid var(--line); }
.fiche-head { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 48px 36px; border-bottom: 1px solid var(--line); }
.fiche-head .plaque { font-size: 14px; color: var(--label2); letter-spacing: .04em; }
.fiche-head h1 { font-family: var(--f-display); font-size: clamp(34px, 4vw, 48px); }
.fiche-head p { color: var(--label2); max-width: 46ch; }
.group { display: grid; gap: 16px; padding-block: 36px; border-top: 1px solid var(--line); }
.fiche .buygrid-pad > .group:first-child { border-top: 0; }
.group h3 { font-family: var(--f-display); font-size: 28px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.group h3 .l2 { font-family: var(--font); font-size: 16px; }
.step-n { font-family: var(--f-display); font-size: 20px; color: var(--label2); width: 28px; flex: none; }
.choices { display: grid; gap: 0; border-top: 1px solid var(--line); }
.choices.two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 560px) { .choices.two { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 16px 4px; min-height: 68px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color .15s; }
.choice::before { content: ""; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--label2); border-radius: 50%; transition: box-shadow .15s, border-color .15s; }
.choice[aria-pressed="true"]::before { border-color: var(--sauge); box-shadow: inset 0 0 0 4px var(--lin), inset 0 0 0 10px var(--sauge); }
.choice:hover { background: color-mix(in srgb, var(--fill) 60%, transparent); }
.choice .grow { flex: 1; min-width: 0; }
.choice strong { display: block; font-weight: 600; font-size: 17px; }
.choice small { display: block; font-size: 14px; color: var(--label2); margin-top: 2px; }
.choice .price { font-family: var(--f-display); font-size: 24px; text-align: right; white-space: nowrap; line-height: 1.1; }
.choice .price small { font-family: var(--font); font-size: 13px; }
.choice.add { color: var(--link); }
.choice.add::before { content: "+"; display: grid; place-items: center; border-style: dashed; font-size: 14px; }
.choice .pet-av { display: none; }
.cal-box { border: 1px solid var(--line); padding: 16px 16px 20px; background: var(--bg); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 12px 8px; }
.cal-head strong { font-family: var(--f-display); font-weight: 400; font-size: 24px; text-transform: capitalize; }
.cal-head .arrows { display: flex; gap: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal .dow { font-size: 13px; color: var(--label2); padding-block: 6px; }
.cal button { height: 46px; border: 0; background: transparent; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums; position: relative; padding: 0; }
.cal button span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.cal button:not(:disabled):hover span { background: var(--fill); }
.cal button:disabled { opacity: .35; cursor: default; }
.cal button.today span { box-shadow: inset 0 0 0 1px var(--label); }
.cal button.in { background: var(--sauge-pale); }
.cal button.start { background: linear-gradient(90deg, transparent 50%, var(--sauge-pale) 50%); }
.cal button.end { background: linear-gradient(90deg, var(--sauge-pale) 50%, transparent 50%); }
.cal button.start.end { background: transparent; }
.cal button.start span, .cal button.end span { background: var(--sauge) !important; color: var(--accent-ink); font-weight: 600; }
.cal button.few::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--warn); }
.cal button.complet span { text-decoration: line-through; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; padding-left: 8px; }
.legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); margin-right: 8px; vertical-align: middle; }
.buybar { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; background: var(--ardoise); color: var(--tuffeau); padding-bottom: env(safe-area-inset-bottom, 0px); }
.buybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding-block: 12px; }
.buybar .tot { font-family: var(--f-display); font-size: 28px; }
.buybar .dep { font-size: 14px; opacity: .8; }
.buybar .btn-prominent { background: var(--tuffeau); color: var(--ardoise); }
@media (max-width: 860px) {
  .fiche { margin-top: 0; padding: 0 20px 24px; border-inline: 0; }
  .buybar { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .buybar .wrap { min-height: 70px; padding-block: 8px; }
  .buybar .tot { font-size: 22px; }
  .buybar .dep { font-size: 12px; }
  .buygrid-pad { padding-bottom: 80px; }
}

/* ---------- Listes, champs ---------- */
.inset { background: var(--lin); border: 1px solid var(--line); }
.fiche .inset { background: var(--bg); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 56px; position: relative; }
.row + .row::before, .row + div > .row::before, div + .row::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--line); }
.row .grow { flex: 1; min-width: 0; }
a.row, button.row { color: inherit; width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; text-decoration: none; }
a.row:hover, button.row:hover { background: var(--fill); }
.chev { color: var(--label2); flex: none; }
.group-title { font-family: var(--f-display); font-size: 26px; padding: 0 2px 12px; }
.form { display: grid; }
.form-box { background: var(--lin); border: 1px solid var(--line); }
.form-box:focus-within { border-color: var(--label2); }
.field { display: grid; gap: 2px; padding: 12px 16px; position: relative; }
.field + .field::before, .field-row + .field::before, .field + .field-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.field-row .field + .field::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 1px; height: auto; }
.field label { font-size: 13px; color: var(--label2); }
.field input, .field select, .field textarea { border: 0; background: transparent; outline: none; font-size: 17px; padding: 2px 0; min-height: 30px; width: 100%; color: var(--label); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 15px; color: var(--label2); }
.seg button[aria-pressed="true"] { background: var(--ardoise); color: var(--tuffeau); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s ease-out; }
.switch input:checked + span { background: var(--sauge); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--sauge); outline-offset: 3px; }
#recap .row { min-height: 44px; padding-block: 10px; }
.recap-line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
#recap .row.total { font-family: var(--f-display); font-size: 22px; }
.lock { display: flex; gap: 10px; align-items: flex-start; }
.lock svg { flex: none; margin-top: 4px; }

/* ---------- Compte client ---------- */
.acc { padding-block: 56px 96px; display: grid; gap: 40px; }
.profile { display: flex; align-items: center; gap: 18px; padding: 20px; }
.profile .av, .pet-av { display: grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--f-display); }
.profile .av { width: 64px; height: 64px; font-size: 26px; background: var(--sauge); color: var(--accent-ink); }
.pet-av { width: 46px; height: 46px; font-size: 20px; background: var(--sauge-pale); color: var(--label); }
.pet-av.chat { background: var(--fill); }
.status { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.date-chip { width: 52px; text-align: center; flex: none; line-height: 1.05; }
.date-chip b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 28px; font-variant-numeric: tabular-nums; }
.date-chip span { font-size: 12px; color: var(--label2); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 18px 18px 84px; }
@media (max-width: 520px) { .row-actions { padding-left: 18px; } }
.empty-state { padding: 28px 18px; text-align: center; color: var(--label2); display: grid; gap: 14px; justify-items: center; }
.danger-row { color: var(--danger) !important; justify-content: center; }
.confirm { display: grid; gap: 8px; padding: 18px; text-align: center; }
.confirm .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

.live { background: var(--ardoise); color: var(--tuffeau); padding: 24px; display: grid; gap: 12px; }
.live-top { display: flex; align-items: center; gap: 12px; }
.live-top .who { min-width: 0; flex: 1; line-height: 1.35; }
.live-top .who strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.live-top .who span { font-size: 14px; opacity: .8; }
.live .pet-av { background: var(--tuffeau); color: var(--ardoise); }
.live-pill { font-size: 13px; opacity: .85; white-space: nowrap; }
.live-now { font-family: var(--f-display); font-size: 28px; line-height: 1.15; }
.live-track { position: relative; height: 2px; background: rgba(243,238,228,.25); }
.live-track span { position: absolute; inset: 0 auto 0 0; background: var(--tuffeau); }
.live-track i { display: none; }
.live-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; opacity: .8; }

/* ---------- Retour d'action ---------- */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 14px 22px; background: var(--ardoise); color: var(--tuffeau); font-size: 15px; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; display: flex; align-items: center; gap: 10px; border-radius: 999px; }
.toast svg { color: var(--sauge-pale); flex: none; }
.toast.error { background: var(--danger); color: #fff; }
.toast.error svg { color: #fff; }
@media (max-width: 860px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: rise .25s ease-out; } @keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
