/* =========================================================================
   WhoDay — feuille de style de l'application
   Palette : sable, terracotta, brun profond. Titres à empattements.
   Mobile d'abord ; la vue ordinateur s'ajoute à partir de 900px.
   ========================================================================= */

:root {
  --sand-50: #FBF7F1;
  --sand-100: #F6EEE3;
  --sand-200: #EADCC9;
  --sand-300: #DCC6AB;
  --terra: #B4552F;
  --terra-dark: #8E3E1F;
  --terra-soft: #F0DACD;
  --ink: #2A211B;
  --muted: #7A6A5D;
  --line: #E6D9C9;
  --white: #FFFFFF;
  --green: #2F6B4F;
  --amber: #A9761B;
  --red: #A2352B;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 4px 16px rgba(42, 33, 27, 0.07);
  --shadow-lg: 0 12px 34px rgba(42, 33, 27, 0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --tabbar-h: 66px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

img { width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
h1 { font-size: 34px; line-height: 1.06; }
h2 { font-size: 25px; line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 0 0 12px; }
small, .small { font-size: 13px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* --------------------------------------------------------------- splash */
#app-splash {
  display: none; position: fixed; inset: 0; z-index: 99999; pointer-events: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: var(--sand-50); font-family: var(--font-title);
  font-size: 22px; color: var(--ink);
}
#app-splash img { width: 96px; height: 96px; border-radius: 22px; }
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* --------------------------------------------------------- structure page */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 18px 8px;
}

.menu-btn {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 12px;
  z-index: 60;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 14px;
  background: rgba(251, 247, 241, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.menu-btn:active { transform: scale(.94); }

/* ------------------------------------------------------------- drawer */
.drawer-veil {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(42, 33, 27, .38);
  display: block;
}
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 95;
  width: 82%; max-width: 320px;
  background: var(--white);
  border-radius: 0 24px 24px 0;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.645,.045,.355,1), visibility .28s;
}
.drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 6px 4px 18px; border-bottom: 1px solid var(--line); }
.drawer-head img { width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto; }
.drawer-head strong { display: block; font-family: var(--font-title); font-size: 20px; }
.drawer-head span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.drawer-close {
  margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: var(--sand-100); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.drawer-nav { padding: 14px 0; overflow-y: auto; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-radius: 12px;
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.drawer-nav a:hover { background: var(--sand-100); text-decoration: none; }
.drawer-ico { color: var(--terra); display: inline-flex; }
.drawer-foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.drawer-user { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }

.desknav { display: none; }

/* -------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sand-300); }
.btn-ghost:hover { background: var(--sand-100); text-decoration: none; }
.btn-soft { background: var(--terra-soft); color: var(--terra-dark); border-color: transparent; }
.btn-soft:hover { background: #E7C9B6; text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------- entêtes */
.page-head { margin: 4px 0 20px; }
.page-head .eyebrow {
  display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra); font-weight: 600; margin-bottom: 6px;
}
.page-head p { color: var(--muted); margin: 6px 0 0; }
.brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand-line img { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; }
.brand-line .brand-name { font-family: var(--font-title); font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

/* --------------------------------------------------------------- héros */
.hero { margin: 0 0 26px; }
.hero-gallery { position: relative; }
.hero-track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--radius-lg); scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 4 / 5; max-height: min(66vh, 520px); overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 18, 14, .82) 6%, rgba(24, 18, 14, .28) 46%, rgba(24, 18, 14, .12) 100%);
}
.hero-slide .hero-text {
  position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 2;
  color: #fff; pointer-events: none;
}
.hero-slide .hero-text .kicker {
  display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .85; margin-bottom: 8px; font-weight: 600;
}
.hero-slide .hero-text h1 { color: #fff; font-size: 34px; margin: 0; }
.hero-slide .hero-text p { margin: 8px 0 0; font-size: 14px; opacity: .92; }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.hero-dots i {
  width: 6px; height: 6px; border-radius: 99px; background: var(--sand-300);
  transition: width .25s ease, background .25s ease;
}
.hero-dots i.on { width: 20px; background: var(--terra); }
.hero-actions { margin-top: 14px; display: grid; gap: 10px; }

/* ---------------------------------------------------------- recherche */
.searchbox {
  background: var(--white); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.searchbox .row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.3;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A6A5D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terra-soft); border-color: var(--terra); }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); }
.checkline input { width: 20px; height: 20px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: var(--terra); }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

/* ------------------------------------------------------- sections & cartes */
.section { margin: 0 0 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 13px; color: var(--muted); }

.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 78%; scroll-snap-align: start; }

.offer-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.offer-card .thumb { position: relative; }
.offer-card .thumb img { width: 100%; height: 180px; object-fit: cover; }
.offer-card .body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.offer-card h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; margin: 0; line-height: 1.3; }
.offer-card .meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.offer-card .price { font-weight: 700; font-size: 15px; }
.offer-card .price s { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.offer-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
/* Aperçu pour un visiteur sans compte : carte visible, action remplacée. */
.offer-card.is-locked { opacity: .96; }
.offer-card.is-locked .thumb { cursor: default; }
.offer-card.is-locked h3 { color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--sand-100); color: var(--muted); white-space: nowrap;
}
.tag-sponsor { background: #F4E7D6; color: #8A5B1E; }
.tag-golden { background: linear-gradient(135deg, #F6E3C2, #E8C489); color: #6F4413; }
.tag-promo { background: var(--terra-soft); color: var(--terra-dark); }
.tag-ok { background: #E4EFE7; color: var(--green); }
.tag-warn { background: #F7EBD3; color: var(--amber); }
.tag-off { background: #F1E4E1; color: var(--red); }
.tag-soft { background: var(--sand-100); color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.grid-cards .offer-card .thumb img { height: auto; aspect-ratio: 1 / 1; }
.grid-cards .offer-card h3 { font-size: 14.5px; }
.grid-cards .offer-card .body { padding: 10px 12px 12px; }

.pro-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: grid; gap: 10px;
}
.pro-card .top { display: flex; gap: 12px; align-items: center; }
.pro-card .logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.pro-card h3 { margin: 0; font-family: var(--font-body); font-size: 16px; font-weight: 700; }
.pro-card .sub { font-size: 12.5px; color: var(--muted); }
.pro-card .actions { display: flex; gap: 8px; }
.pro-card .actions .btn { flex: 1; }

/* chiffres */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat strong { display: block; font-family: var(--font-title); font-size: 28px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------- bandeau pub */
.slot-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.slot {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--sand-100);
}
.slot img { width: 100%; height: 130px; object-fit: cover; }
.slot .slot-body {
  position: absolute; inset: auto 0 0 0; padding: 12px 14px;
  background: linear-gradient(to top, rgba(24, 18, 14, .88), rgba(24, 18, 14, 0));
  color: #fff;
}
.slot .slot-body strong { display: block; font-size: 14.5px; }
.slot .slot-body span { font-size: 12px; opacity: .9; }
.slot .sponsor-flag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.92); color: var(--muted);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; font-weight: 700;
}

/* ------------------------------------------------------------ alerts */
.alert {
  border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-success { background: #E7F1EA; color: #24513B; border-color: #CAE0D3; }
.alert-error { background: #F6E6E3; color: #7F2B22; border-color: #EAC9C4; }
.alert-info { background: var(--sand-100); color: var(--ink); border-color: var(--line); }

.toast-wrap { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom)); z-index: 120; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toastIn .22s ease;
}
.toast.err { background: #7F2B22; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ liste/table */
.list { display: grid; gap: 12px; }
.list-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: grid; gap: 8px;
}
.list-item .line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.list-item .line strong { font-size: 15px; }
.list-item .muted { color: var(--muted); font-size: 12.5px; }
.list-item .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--white); color: var(--muted); border: 1px solid var(--line);
}
.tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 20px; text-align: center; color: var(--muted);
}
.empty-state svg { color: var(--sand-300); margin-bottom: 8px; }
.empty-state h3 { font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.empty-state p { font-size: 13.5px; }

/* -------------------------------------------------------------- barre bas */
.tabbar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex; align-items: center; justify-content: space-around;
  height: var(--tabbar-h);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(42, 33, 27, .14);
  border: 1px solid rgba(255, 255, 255, .7);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; color: var(--muted); font-size: 10.5px; font-weight: 600;
  padding: 6px 0; transition: transform .12s ease, color .2s ease;
}
.tab:active { transform: scale(.95); }
.tab.is-active { color: var(--terra); }
.tab.is-active svg { stroke: var(--terra); }
.tab-badge {
  position: absolute; top: 0; right: 50%; transform: translateX(22px);
  background: var(--terra); color: #fff; font-style: normal;
  font-size: 9.5px; font-weight: 700; min-width: 17px; height: 17px;
  border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------------------------------------------------------------- footer */
.app-footer {
  margin: 34px 0 0; padding: 28px 20px calc(20px);
  background: var(--sand-100);
  border-radius: 24px 24px 0 0;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.footer-brand strong { display: block; font-family: var(--font-title); font-size: 20px; }
.footer-brand span { font-size: 12.5px; color: var(--muted); }
.footer-info { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.footer-info li { display: flex; gap: 8px; align-items: center; }
.footer-info a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-links a { color: var(--muted); }
.footer-admin { color: var(--sand-300) !important; }
.footer-copy { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

/* -------------------------------------------------------------- install */
.install-block {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px;
}
.install-block svg.apple, .install-block svg.droid { color: var(--ink); }
.install-block .txt { flex: 1; font-size: 13px; }
.install-block .txt strong { display: block; font-size: 14px; }

/* ------------------------------------------------------------- fiche pro */
.cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.cover img { width: 100%; height: 220px; object-fit: cover; }
.pro-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pro-head img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
.pro-head h1 { font-size: 27px; margin: 0; }
.pro-head .sub { font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: #C98A2E; vertical-align: -2px; }

.detail-actions { display: grid; gap: 10px; margin: 16px 0; }
.info-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.info-block h2 { font-size: 20px; }
.plain-list { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 11px; }
.plain-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: #3B312A; }
.plain-list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }

/* galerie */
.gallery-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip img { width: 140px; height: 100px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; }

/* ------------------------------------------------------------- panier */
.cart-line {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; display: flex; gap: 12px; align-items: center;
}
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info strong { display: block; font-size: 14px; }
.cart-line .qty { display: flex; align-items: center; gap: 6px; }
.cart-line .qty button {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); font-size: 16px; line-height: 1; cursor: pointer;
}
.cart-line .qty span { min-width: 18px; text-align: center; font-weight: 600; }
.total-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-lg);
}
.total-bar strong { font-size: 18px; }

/* --------------------------------------------------------- étapes radio */
.choice-grid { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
  cursor: pointer;
}
.choice input { margin-top: 3px; accent-color: var(--terra); width: 18px; height: 18px; }
.choice strong { display: block; font-size: 14px; }
.choice span { font-size: 12.5px; color: var(--muted); }
.choice.is-on { border-color: var(--terra); background: #FDF6F1; }

/* ------------------------------------------------------------- avis */
.review {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: grid; gap: 4px;
}
.review .who { font-size: 13px; font-weight: 600; }
.review .when { font-size: 11.5px; color: var(--muted); }
.review p { margin: 4px 0 0; font-size: 13.5px; }

/* moyenne + répartition des étoiles (mobile d'abord : une seule colonne) */
.rating-summary { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 10px 0 4px; }
.rating-score { display: grid; gap: 2px; justify-items: start; }
.rating-score strong { font-family: var(--font-title); font-size: 38px; line-height: 1; }
.rating-bars { display: grid; gap: 7px; }
.rating-bar { display: grid; grid-template-columns: 72px 1fr 26px; gap: 8px; align-items: center; }
.rating-bar-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.rating-bar-track { display: block; height: 8px; background: var(--sand-100); border-radius: 99px; overflow: hidden; }
.rating-bar-fill { display: block; height: 100%; background: #C98A2E; border-radius: 99px; }
.rating-bar-count { font-size: 12px; color: var(--muted); text-align: right; }

@media (min-width: 600px) {
  .rating-summary { grid-template-columns: 140px 1fr; align-items: center; gap: 20px; }
}

/* --------------------------------------------------------- formulaires auth */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 18px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.auth-logo img { width: 56px; height: 56px; border-radius: 16px; }
.auth-logo strong { font-family: var(--font-title); font-size: 26px; }

/* ------------------------------------------------------- tableau admin-lite */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--white); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sand-100); }
table.data td.num, table.data th.num { text-align: right; }
table.data tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ pages légales */
.legal h2 { font-size: 21px; margin-top: 26px; }
.legal h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin-top: 18px; }
.legal p, .legal li { font-size: 14px; color: #3B312A; }
.legal ul { padding-left: 20px; }
.legal .todo { background: #FBF0DA; border-left: 3px solid #C99A3D; padding: 10px 12px; border-radius: 8px; font-size: 13px; }

/* =========================================================================
   Vue ordinateur — l'application seulement (jamais l'administration)
   ========================================================================= */
@media (min-width: 600px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --tabbar-h: 0px; }

  body { padding-bottom: 0; padding-left: 260px; }

  .menu-btn, .drawer, .drawer-veil, .tabbar { display: none !important; }

  .desknav {
    display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
    flex-direction: column; gap: 4px; padding: 26px 18px;
    background: var(--white); box-shadow: 0 0 40px rgba(42, 33, 27, .06); z-index: 40;
    overflow-y: auto;
  }
  .desknav .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
  .desknav .brand img { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; }
  .desknav .brand strong { font-family: var(--font-title); font-size: 22px; }
  .desknav a.nav-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
    color: var(--ink); font-size: 14px; font-weight: 500;
  }
  .desknav a.nav-link:hover { background: var(--sand-100); text-decoration: none; }
  .desknav a.nav-link.is-active { background: var(--sand-100); color: var(--terra-dark); }
  .desknav .spacer { flex: 1; }

  .page { max-width: 1100px; padding: 34px 40px 60px; }

  .brand-line .brand-name { font-size: 44px; }
  .hero-slide { aspect-ratio: 21 / 9; max-height: 460px; }
  .hero-slide .hero-text h1 { font-size: 44px; }
  .hero-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 20px; align-items: start; }

  .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .rail > * { flex: none; }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .searchbox .row.two { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; }
  .searchbox .btn { min-height: 48px; }
  .app-footer { max-width: 1100px; border-radius: 24px 24px 0 0; padding: 34px 40px; }
  .detail-actions { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .form-grid.two { gap: 16px; }
}

@media (min-width: 1400px) {
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 420px) {
  h1 { font-size: 30px; }
  .brand-line .brand-name { font-size: 34px; }
  .hero-slide .hero-text h1 { font-size: 28px; }
}

/* ------------------------------------------------- espace professionnel */
.pro-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(251, 247, 241, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.pro-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink); }
.pro-brand img { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
.pro-brand strong { display: block; font-family: var(--font-title); font-size: 17px; line-height: 1.1; }
.pro-brand em { font-style: normal; font-size: 11px; color: var(--muted); }
.pro-logout { width: 38px; height: 38px; border-radius: 12px; background: var(--sand-100); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pro-nav {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px;
  scrollbar-width: none; max-width: 720px; margin: 0 auto;
}
.pro-nav::-webkit-scrollbar { display: none; }
.pro-nav a {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--white); border: 1px solid var(--line);
}
.pro-nav a.is-active { background: var(--terra); color: #fff; border-color: var(--terra); }
.pro-nav a:hover { text-decoration: none; }
.pro-pass-badge {
  flex: 0 0 auto; padding: 6px 11px; border-radius: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.pro-pass-badge:hover { text-decoration: none; }
.pro-pass-silver { background: #EAE7E3; color: #4E4B48; }
.pro-pass-golden { background: #F4E7D6; color: #8A5B1E; }
.pro-pass-none { background: #F6E6E3; color: #7F2B22; }

@media (min-width: 900px) {
  body { padding-left: 0; }
  .pro-nav { max-width: 1100px; }
  .page { max-width: 1100px; }
}
