/* House of Reinigung — styles (site + réservation). Mobile d'abord. */
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

/* ==== COULEURS ET RÉGLAGES GÉNÉRAUX : modifier ici, tout le site suit (voir docs/GUIDE-MODIFICATIONS.md) ==== */
:root {
  --green: #274A3D;      /* vert foncé : boutons, titres */
  --green-ink: #1b352b;
  --leaf: #63A46C; /* vert feuille : accents, coches, jauge */
  --ok: #3E7A48;
  --grey: #5C5F62; /* textes secondaires */
  --ink: #1E2B25; /* texte principal */
  --ink-2: #3B4A43;
  --line: #E3E9E5;
  --line-2: #CBD7D0;
  --tint: #EAF2EC;
  --surface: #F4F7F5; /* fonds gris très clair */
  --warn: #FFF4E5;
  --warn-line: #E8C98F;
  --error: #A3382C;
  --radius: 14px; /* arrondi des cartes */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-ink); }
h1, h2, h3 { color: var(--green); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--grey); }
.small { font-size: 13px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* ==== BOUTONS ==== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--green-ink); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: #DDE4E0; color: #7D8782; cursor: default; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--tint); color: var(--green); }
.btn-outline { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--tint); color: var(--green); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; background: var(--green); color: #fff; border-radius: 6px; padding: 1px 7px; vertical-align: 2px; }

/* ==== EN-TÊTE ==== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo img { height: 52px; width: auto; }
.nav-main { display: none; gap: 22px; margin-left: 12px; }
.nav-main a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-main a:hover { color: var(--green); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 500; text-decoration: none; }
.lang span { padding: 6px 8px; border-radius: 8px; color: var(--grey); }
.lang span.on { background: var(--tint); color: var(--green); }
@media (min-width: 860px) { .nav-main { display: flex; } }

/* ==== BARRE « TERMIN BUCHEN » (téléphone) ==== */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.on { transform: none; }
@media (min-width: 860px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ==== CARROUSEL DE PHOTOS (src/client/gallery.ts) ==== */
.gallery .g-frame { position: relative; }
.g-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.g-slide > img, .ba { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--tint); }
.g-slide figcaption { font-size: 14px; color: var(--grey); padding: 8px 2px 0; }
.g-nav { position: absolute; top: 50%; transform: translateY(-70%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--green); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(39,74,61,.18); }
.g-prev { left: 10px; } .g-next { right: 10px; }
.g-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.g-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; }
.g-dots button[aria-current="true"] { background: var(--green); width: 22px; border-radius: 6px; }
.ba { position: relative; overflow: hidden; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.3); pointer-events: none; }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--green); font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ba-tag { position: absolute; top: 12px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: rgba(30,43,37,.65); color: #fff; pointer-events: none; }
.ba-tag-before { left: 12px; } .ba-tag-after { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
@media (min-width: 860px) { .g-slide { flex-basis: calc(50% - 7px); } }

/* ==== ACCUEIL ==== */
/* Illustration d'accueil (src/site/hero-art.ts) : la buse traverse le canapé une fois, les taches s'effacent,
   puis brillance et vapeur. Pour changer la durée : modifier les secondes ci-dessous. */
.hero-stage { position: relative; }
.hero-art { width: 100%; height: auto; display: block; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.ha-wand { animation: ha-sweep 3.2s .4s ease-in-out both; }
.ha-dirt { transform-box: fill-box; transform-origin: center; animation: ha-clean .35s ease-out both; }
.ha-spark { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ha-pop .5s ease-out both; }
.ha-steam { opacity: 0; stroke-dasharray: 100; animation: ha-steam 2.4s ease-in-out 3 both; }
.ha-leaf { transform-box: fill-box; transform-origin: 0% 100%; animation: ha-sway 1.2s 3.2s ease-in-out both; }
@keyframes ha-sweep { 0% { transform: translateX(-40px); } 80% { transform: translateX(212px); opacity: 1; } 100% { transform: translate(270px, -70px); opacity: 0; } }
@keyframes ha-clean { to { opacity: 0; transform: scale(.6); } }
@keyframes ha-pop { 0% { opacity: 0; transform: scale(.2) rotate(-30deg); } 70% { opacity: 1; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ha-steam { 0% { opacity: 0; stroke-dashoffset: 100; transform: translateY(14px); } 40% { opacity: .9; } 100% { opacity: 0; stroke-dashoffset: 0; transform: translateY(-10px); } }
@keyframes ha-sway { 50% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) {
  .ha-wand, .ha-dirt { display: none; }
  .ha-spark, .ha-steam { animation: none; opacity: 1; }
  .ha-steam { stroke-dasharray: none; opacity: .8; }
  .ha-leaf { animation: none; }
}

.hero { padding: 28px 0 36px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.hero-grid { display: grid; gap: 20px; align-items: center; }
.hero-stage { max-width: 440px; width: 100%; margin: 0 auto; }
.hero-text .plz-card { margin-top: 18px; }
.hero h1 { font-size: 28px; }
.lead { font-size: 16px; color: var(--grey); }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 12px; }
.trust .i { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--tint); color: var(--ok); stroke-width: 2.8; }
.plz-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 28px rgba(39,74,61,.08); }
.plz-card label { font-weight: 500; color: var(--green); }
.plz-card input, .field input, .field select, .field textarea, .form-card input, .form-card select, .form-card textarea {
  height: 52px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: #fff; width: 100%; min-width: 0;
}
.field textarea, .form-card textarea { height: auto; padding: 10px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(99,164,108,.25); }
@media (min-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-stage { order: 2; max-width: none; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 18px; }
}
.section { padding: 40px 0; }
.section.alt { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .num { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; flex-shrink: 0; }
.steps p { margin: 0; color: var(--grey); font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); text-align: center; }
.cat-card:hover { border-color: var(--leaf); color: var(--ink); }
.cat-card img { width: 96px; height: 96px; }
.cat-name { font-weight: 500; }
.cat-price { color: var(--green); font-size: 14px; font-weight: 500; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } .cat-grid { grid-template-columns: repeat(4, 1fr); } .section { padding: 64px 0; } }
.method-grid, .formula-grid { display: grid; gap: 14px; }
.formula-grid { margin-top: 14px; }
.method, .formula { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.method img { width: 72px; height: 72px; flex-shrink: 0; }
.formula img { width: 56px; height: 56px; flex-shrink: 0; }
.method p, .formula p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (min-width: 860px) { .method-grid { grid-template-columns: 1fr 1fr; } .formula-grid { grid-template-columns: repeat(3, 1fr); } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.cta-band { background: var(--green); color: #fff; padding: 40px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .special { display: block; margin-top: 18px; color: #d6e6dc; font-size: 14px; text-decoration: none; }
.cta-band .special b { color: #fff; font-weight: 500; }
.page-head { padding: 28px 0 0; }
.page-head + .section { padding-top: 16px; }
.page-head h1 { margin-bottom: 8px; }

/* ==== ACCUEIL : « Warum », zone, liens vers les prestations ==== */
.section-lead { max-width: 720px; margin-bottom: 24px; }
.usp-grid { display: grid; gap: 14px; }
.usp { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface); }
.section.alt .usp { background: #fff; border: 1.5px solid var(--line); }
.usp > img { width: 72px; height: 72px; flex-shrink: 0; }
.usp h3 { margin-bottom: 4px; }
.usp p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.service-links { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; margin: 4px 0 14px; }
.service-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #fff; text-decoration: none; font-weight: 500; font-size: 14px; }
.service-links a:hover { border-color: var(--leaf); }
.page-head .service-links { justify-content: flex-start; }
.area { display: grid; gap: 24px; align-items: start; }
.about { display: grid; gap: 20px; align-items: center; background: var(--surface); border-radius: 24px; padding: 24px; }
.about-photo { display: flex; justify-content: center; }
.about-photo img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.about-photo img.about-art { width: 160px; max-width: 160px; background: #fff; padding: 24px; box-sizing: content-box; border-radius: 50%; object-fit: contain; }
.about .trust { margin-top: 12px; }
.area-card { background: var(--surface); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.area-card img { width: 140px; height: 140px; }
.districts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.districts li { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); font-weight: 500; font-size: 14px; color: var(--green); }
@media (min-width: 860px) { .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .area { grid-template-columns: 1.2fr 1fr; gap: 56px; } .about { grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 40px; } }
@media (min-width: 1100px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } .usp { flex-direction: column; } .section.alt .usp-grid .usp, .landing .usp { flex-direction: column; } }

/* ==== PAGES PAR PRESTATION (Sofareinigung, Matratzenreinigung, Teppichreinigung) ==== */
.crumbs { font-size: 13px; color: var(--grey); margin-bottom: 14px; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.landing-head { padding: 24px 0 8px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.landing-intro { padding-bottom: 0 !important; }
.landing-grid { display: grid; gap: 22px; align-items: center; padding-bottom: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.check-card { list-style: none; margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(39,74,61,.08); display: flex; flex-direction: column; gap: 12px; }
.check-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.check-card .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--ok); stroke-width: 3; }
.more-links { display: grid; gap: 12px; }
.more-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.more-link:hover { border-color: var(--leaf); color: var(--ink); }
.more-link b { color: var(--green); font-weight: 600; }
.more-link span { grid-column: 1; font-size: 14px; color: var(--grey); }
.more-link .i { grid-column: 2; grid-row: 1 / span 2; color: var(--green); }
@media (min-width: 860px) {
  .landing-head { padding: 32px 0 16px; }
  .landing-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 40px; }
  .landing-head h1 { font-size: 40px; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .more-links { grid-template-columns: repeat(3, 1fr); }
}

/* ==== PAGE TARIFS (Leistungen) ==== */
.table-scroll { overflow-x: auto; margin: 0 0 10px; }
.prices { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.prices th, .prices td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.prices thead th { font-size: 11.5px; font-weight: 500; color: var(--grey); line-height: 1.25; vertical-align: bottom; hyphens: auto; -webkit-hyphens: auto; }
.prices tbody th span { hyphens: auto; -webkit-hyphens: auto; }
.prices tbody th { text-align: left; font-weight: 500; }
.prices tbody th { display: flex; align-items: center; gap: 10px; }
.prices tbody th img { width: 40px; height: 40px; display: none; }
@media (min-width: 560px) { .prices { font-size: 14px; } .prices th, .prices td { padding: 10px 8px; } .prices tbody th img { display: block; } }
.prices small { display: block; font-size: 12px; color: var(--grey); font-weight: 400; }
.prices td { white-space: nowrap; }
.opt-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.opt-list li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.opt-list img { width: 40px; height: 40px; }
.opt-list small { display: block; color: var(--grey); }
.price-section + .price-section { padding-top: 8px; }
.note { background: var(--tint); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--ink-2); }
.form-card { display: flex; flex-direction: column; gap: 14px; }
.form-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--grey); }
.prose { font-size: 15px; }
.placeholder { background: var(--warn); border-radius: 10px; padding: 12px; }

/* ==== PAGES LÉGALES ==== */
.legal h2 { font-size: 18px; margin: 1.6em 0 .4em; }
.legal p { color: var(--ink-2); }
mark.todo { background: var(--warn); border: 1px dashed var(--warn-line); border-radius: 6px; padding: 0 6px; color: #8A5A00; }
.form-sample { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px 16px; }
.form-sample p { margin: 0 0 10px; }
.form-card small { font-size: 12.5px; }

/* ==== PIED DE PAGE ==== */
.site-footer { background: var(--green); color: #d6e6dc; padding: 36px 0 20px; font-size: 14px; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .withdraw-link { align-self: flex-start; margin-top: 6px; padding: 6px 12px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; font-weight: 500; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.pay-badges { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.pay-title { margin-right: 4px; opacity: .85; }
.pay-badge { border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 3px 9px; }
.pay-logo { height: 24px; width: auto; background: #fff; border-radius: 4px; padding: 2px 4px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ==== ORDINATEUR : texte un peu plus grand, plus d'espace ==== */
@media (min-width: 1000px) {
  body { font-size: 16px; }
  h2 { font-size: 30px; margin-bottom: .6em; }
  h3 { font-size: 18px; }
  .section { padding: 80px 0; }
  .wrap { max-width: 1180px; padding: 0 32px; }
  .wrap.narrow { max-width: 820px; }
  .page-head { padding: 48px 0 0; }
  .page-head h1 { font-size: 40px; }
  .steps p, .method p, .formula p, .opt-list li, .faq details > div { font-size: 15px; }
  .prices { font-size: 15px; }
  .hero h1 { font-size: 44px; }
  .cat-card { padding: 22px 12px; }
}

/* ==== PARCOURS DE RÉSERVATION (configurateur) ==== */
body.is-app { background: var(--surface); }
body.is-app .site-header { position: static; }
.app { max-width: 520px; margin: 0 auto; background: #fff; min-height: calc(100dvh - 69px); display: flex; flex-direction: column; position: relative; }
@media (min-width: 560px) { .app { margin: 20px auto; min-height: auto; border-radius: 20px; box-shadow: 0 8px 28px rgba(39,74,61,.08); overflow: hidden; } }
/* Ordinateur : parcours plus large, 3 articles par ligne, panneau article centré. */
@media (min-width: 1000px) {
  .app { max-width: 760px; margin: 32px auto; }
  .app .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app .screen { padding: 20px 32px 32px; }
  .app .screen.flush { padding-left: 0; padding-right: 0; }
  .app .tabs, .app .grid2, .app .days, .app .times, .app .screen.flush > .pad { padding-left: 32px; padding-right: 32px; }
  .app .wishes { margin: 0 32px; }
  .app .times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .sheet-wrap { justify-content: center; padding: 32px; }
  body .sheet-backdrop { position: absolute; inset: 0; }
  body .sheet { position: relative; border-radius: 22px; max-height: 86vh; max-width: 560px; }
}
.app-top { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.back { width: 44px; height: 44px; border: 0; background: transparent; color: var(--green); display: flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; }
.stepper { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 8px 6px; }
.stepper div { display: flex; flex-direction: column; gap: 5px; }
.stepper i { height: 4px; border-radius: 2px; background: var(--line); }
.stepper .on i { background: var(--green); }
.stepper span { font-size: 11.5px; color: #8A938E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .on span { color: var(--green); }
.stepper .cur span { font-weight: 600; }
.screen { padding: 14px 20px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.screen.flush { padding-left: 0; padding-right: 0; }
.screen.flush > .pad { padding: 0 20px; }
.screen h1 { font-size: 22px; margin: 0; }
.sub { font-size: 14px; color: var(--grey); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #fff; color: var(--green); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 20px; }
.art { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; color: var(--ink); }
.art:hover { border-color: var(--leaf); }
.art img { width: 86px; height: 86px; }
.art b { font-weight: 500; font-size: 14px; line-height: 1.25; }
.art small { font-size: 12px; color: var(--grey); min-height: 17px; }
.art .p { font-size: 14px; font-weight: 500; color: var(--green); }
.art .count { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.dashed { border: 1.5px dashed var(--line-2); background: #fff; border-radius: 14px; padding: 12px 14px; text-align: left; font-size: 14px; color: var(--grey); cursor: pointer; }
.dashed b { color: var(--green); font-weight: 500; }
.banner { background: var(--warn); border-radius: 12px; padding: 12px; font-size: 13.5px; }
.banner b { font-weight: 600; }
.info { background: var(--tint); border-radius: 12px; padding: 12px; font-size: 13.5px; color: var(--ink-2); }
.info b { font-weight: 500; }
.line-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; }
.line-card img { width: 56px; height: 56px; flex-shrink: 0; }
.line-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line-card .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
.line-card .price { color: var(--green); white-space: nowrap; }
.line-card .desc { font-size: 13px; color: var(--grey); }
.line-card .actions { display: flex; gap: 16px; margin-top: 2px; }
.linkbtn { border: 0; background: transparent; padding: 8px 0; font-size: 14px; cursor: pointer; color: var(--grey); }
.linkbtn.strong { color: var(--green); font-weight: 500; text-decoration: underline; }
.surcharge { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border: 1.5px dashed var(--warn-line); border-radius: 14px; padding: 12px; background: #FFFBF3; }
.label-up { font-size: 13px; font-weight: 500; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
.suggest { display: flex; gap: 12px; align-items: center; border: 0; background: var(--surface); border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; width: 100%; color: var(--ink); }
.suggest img { width: 44px; height: 44px; }
.suggest span { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--grey); }
.suggest b { font-weight: 500; font-size: 14px; color: var(--ink); }
.suggest .i { color: var(--green); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex-shrink: 0; width: 60px; height: 74px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.day small { font-size: 12px; } .day b { font-size: 17px; font-weight: 600; } .day i { font-size: 11px; font-style: normal; }
.day[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.day:disabled { border-color: #EEF1EF; background: #F7F8F7; color: #A9B1AD; cursor: default; }
.day.has-wish:not([aria-pressed="true"]) { border-color: var(--leaf); }
.times { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.time { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; font-size: 13px; }
.time b { font-size: 17px; font-weight: 600; }
.time[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.time:disabled { border-color: #EEF1EF; background: #F7F8F7; color: #A9B1AD; cursor: default; }
.wishes { margin: 0 20px; background: var(--surface); border-radius: 12px; padding: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.wishes b { font-weight: 500; color: var(--green); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--grey); }
.field input[readonly] { background: var(--surface); color: var(--grey); border-color: var(--line); }
.field.invalid input { border-color: var(--error); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.req { color: var(--error); font-weight: 500; }
.contact-direct { background: var(--tint); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.contact-direct a { font-weight: 500; }
.contact-hours { font-weight: 500; color: var(--green); }
.footer-hours { font-size: 13px; color: #d6e6dc; }
.field-error { color: var(--error); font-size: 13px; margin-top: 4px; display: block; }
.addr-wrap { position: relative; }
.phone-row { display: flex; gap: 8px; }
img.photo { object-fit: cover; border-radius: 12px; }
.art.more-art { justify-content: center; border-style: dashed; color: var(--green); }
.art.more-art .plus { font-size: 34px; line-height: 1; font-weight: 300; }
.captcha { display: flex; justify-content: center; margin: 0 0 12px; }
.captcha.ask { margin-bottom: 110px; }
.captcha:empty { display: none; }
.phone-row select { flex: 0 0 auto; width: 7.4em; padding-right: 26px; }
.phone-row input { flex: 1; min-width: 0; }
.addr-list { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(39,74,61,.14); position: absolute; left: 0; right: 0; z-index: 20; background: #fff; margin-top: 4px; }
.addr-list:empty { display: none; }
.addr-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 14px; cursor: pointer; font-size: 15px; }
.addr-opt span { font-size: 12px; color: var(--grey); }
.addr-opt:hover, .addr-opt:focus-visible { background: var(--tint); }
.photo-box { display: flex; flex-direction: column; gap: 6px; background: var(--tint); border-radius: 14px; padding: 14px; }
.photo-box b { color: var(--green); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.more-toggle { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 0; color: var(--green); font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; }
.more-toggle span span { font-weight: 400; color: var(--grey); font-size: 13px; }
.upload { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 12px; color: var(--green); font-weight: 500; cursor: pointer; position: relative; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload small { display: block; font-weight: 400; font-size: 13px; color: var(--grey); }
.upload em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--grey); }
.recap { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.recap div { display: flex; gap: 10px; align-items: flex-start; }
.recap .i { color: var(--green); margin-top: 1px; }
.sumline { display: flex; justify-content: space-between; gap: 12px; }
.sumline small { display: block; font-size: 13px; color: var(--grey); }
.promo-line { color: var(--ok); }
.promo-line .linkbtn { padding: 2px 0; font-size: 13px; text-decoration: underline; }
.promo-box .field { margin: 0; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.sumtotal { display: flex; justify-content: space-between; border-top: 1.5px solid var(--ink); padding-top: 10px; font-size: 18px; font-weight: 600; }
.error-msg { background: #FBEAE8; color: var(--error); border-radius: 12px; padding: 12px; font-size: 14px; }
.done { padding: 40px 24px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.done .big { width: 76px; height: 76px; border-radius: 50%; background: var(--tint); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.done .big .i { width: 38px; height: 38px; stroke-width: 2.4; }
.done .num { background: var(--surface); border-radius: 14px; padding: 12px 18px; }
.done .num b { display: block; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
/* Barre fixe */
.bar { position: sticky; bottom: 0; z-index: 10; border-top: 1px solid var(--line); background: #fff; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -4px 16px rgba(20,40,30,.06); }
.gauge { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 3px; background: var(--green); transition: width .25s; }
.gauge.ok i { background: var(--leaf); }
.gauge-text { font-size: 12.5px; font-weight: 500; color: var(--grey); }
.gauge-text.ok { color: var(--ok); }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-total { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar-total b { font-size: 20px; font-weight: 600; line-height: 1.2; }
.bar-total span { font-size: 12px; color: var(--grey); }
.bar .btn { padding: 0 20px; font-size: 15px; }
.bar.stack .bar-row { flex-wrap: wrap; }
.bar.stack .btn { width: 100%; }
/* Panneau article */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(20,35,28,.45); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sheet-backdrop { flex: 1; width: 100%; border: 0; background: transparent; min-height: 40px; cursor: pointer; }
.sheet { background: #fff; border-radius: 22px 22px 0 0; max-height: 90dvh; width: 100%; max-width: 520px; display: flex; flex-direction: column; }
.sheet.opening { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet.opening { animation: none; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head img { width: 52px; height: 52px; }
.sheet-head div { flex: 1; display: flex; flex-direction: column; }
.sheet-head h2 { font-size: 18px; margin: 0; }
.sheet-head span { font-size: 13px; color: var(--grey); }
.round { width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--surface); color: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.sheet-body section { display: flex; flex-direction: column; gap: 8px; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; text-align: center; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.choice img { width: 40px; height: 40px; }
.choice b { font-weight: 500; font-size: 14px; line-height: 1.2; }
.choice small { font-size: 12px; color: var(--grey); }
.choice[aria-pressed="true"], .formula-opt[aria-pressed="true"] { border: 2px solid var(--green); background: var(--surface); }
.method-text { font-size: 13px; color: var(--ink-2); margin: 0; }
.formula-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; color: var(--ink); width: 100%; }
.formula-opt img { width: 44px; height: 44px; flex-shrink: 0; }
.formula-opt > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.formula-opt small { font-size: 12.5px; color: var(--grey); line-height: 1.4; }
.formula-opt em { font-style: normal; font-weight: 600; color: var(--green); white-space: nowrap; }
.opt-row { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.opt-row img { width: 42px; height: 42px; flex-shrink: 0; }
.opt-row > span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.opt-row > span em { font-style: normal; color: var(--green); }
.opt-row small { font-size: 12.5px; color: var(--grey); }
.switch { flex-shrink: 0; width: 50px; height: 30px; border-radius: 15px; border: 0; padding: 3px; display: flex; background: var(--line-2); justify-content: flex-start; cursor: pointer; }
.switch::after { content: ""; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--green); justify-content: flex-end; }
.counter { display: flex; align-items: center; gap: 4px; }
.counter button { width: 42px; height: 42px; border-radius: 21px; border: 1.5px solid var(--line-2); background: #fff; font-size: 20px; color: var(--green); cursor: pointer; line-height: 1; }
.counter button:disabled { color: var(--line-2); cursor: default; }
.counter output { min-width: 26px; text-align: center; font-size: 17px; font-weight: 600; }
.qty-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px; }
.qty-box > span { display: flex; flex-direction: column; font-weight: 500; }
.qty-box small { font-weight: 400; font-size: 12.5px; color: var(--grey); }
.sheet-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.sheet-foot div { flex: 1; display: flex; flex-direction: column; }
.sheet-foot b { font-size: 20px; font-weight: 600; }
.sheet-foot span { font-size: 12px; color: var(--grey); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==== DYNAMISME : survol, appui, sélection (désactivé si l'appareil demande moins d'animations) ==== */
@media (prefers-reduced-motion: no-preference) {
  .btn, .art, .cat-card, .choice, .formula-opt, .time, .day, .tab, .opt-row, .suggest, .dashed, .switch, .counter button,
  .round, .back, .more-link, .service-links a, .usp, .method, .formula, .lang span, .link-arrow .i, .faq summary::after {
    transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  }
  /* Survol (souris) */
  @media (hover: hover) {
    .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(39,74,61,.20); }
    .art:hover, .cat-card:hover, .more-link:hover, .choice:hover, .formula-opt:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(39,74,61,.10); }
    .usp:hover, .method:hover, .formula:hover { transform: translateY(-2px); }
    .link-arrow:hover .i { transform: translateX(4px); }
    .time:hover:not(:disabled):not([aria-pressed="true"]), .day:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--leaf); }
  }
  /* Appui (doigt ou clic) : le bouton s'enfonce légèrement */
  .btn:active:not(:disabled), .art:active, .cat-card:active, .choice:active, .formula-opt:active, .time:active:not(:disabled),
  .day:active:not(:disabled), .tab:active, .suggest:active, .dashed:active, .counter button:active:not(:disabled), .round:active,
  .back:active, .more-link:active, .service-links a:active { transform: scale(.96); box-shadow: none; }
  /* Élément qui vient d'être choisi : petit rebond */
  .tap { animation: tap .34s cubic-bezier(.3, 1.6, .55, 1); }
  @keyframes tap { 0% { transform: scale(.93); } 100% { transform: scale(1); } }
  .choice[aria-pressed="true"].tap img, .formula-opt[aria-pressed="true"].tap img { animation: wiggle .45s ease; }
  @keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg); } }
  /* Interrupteur : le rond glisse */
  .switch[aria-checked="true"].tap::after { animation: knob-on .22s ease; }
  .switch[aria-checked="false"].tap::after { animation: knob-off .22s ease; }
  @keyframes knob-on { from { transform: translateX(-20px); } }
  @keyframes knob-off { from { transform: translateX(20px); } }
  /* Total qui change, article ajouté, minimum atteint */
  .bump { display: inline-block; transform-origin: left center; animation: bump .42s ease; }
  @keyframes bump { 40% { transform: scale(1.14); color: var(--leaf); } }
  .count.pop { animation: pop .5s cubic-bezier(.3, 1.7, .5, 1); }
  @keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
  .gauge-text.celebrate { display: inline-block; transform-origin: left center; animation: bump .5s ease; }
  .gauge i { transition: width .45s cubic-bezier(.3, 1.2, .5, 1), background-color .3s; }
  /* Changement d'étape : l'écran glisse doucement */
  .screen.enter { animation: enter .28s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(10px); } }
  /* FAQ : la réponse apparaît en douceur */
  .faq details[open] > div { animation: enter .25s ease-out; }
  .faq details[open] summary::after { transform: rotate(180deg); }
  /* Pages : les sections apparaissent au premier affichage */
  .hero-text > * { animation: enter .5s ease-out both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; } .hero-text > :nth-child(3) { animation-delay: .12s; } .hero-text > :nth-child(4) { animation-delay: .18s; }
}

/* Avant/après en une image, photo du haut des pages */
.g-slide.g-ba { position: relative; }
.g-slide.g-ba .ba-tag { position: absolute; top: 12px; z-index: 1; }
.g-slide.g-ba .ba-tag-before { left: 12px; }
.g-slide.g-ba .ba-tag-after { right: 12px; }
.landing-photo { margin: 0 0 24px; }
.landing-photo img, .page-photo img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 20px; display: block; }
.cat-photo { width: 100%; max-height: 260px; object-fit: cover; margin: 0 0 16px; }

/* Pages créées dans l'admin, blog */
.page-photo { margin: 0 0 24px; }
.page-img { width: 100%; height: auto; border-radius: 16px; margin: 8px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.blog-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line, #e3e8e5); border-radius: 18px; text-decoration: none; color: inherit; background: #fff; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.blog-card b { font-weight: 500; font-size: 18px; color: var(--green); }

.addr-hint { font-style: normal; font-weight: 400; color: var(--green); font-size: 13px; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
