/* La Parenthèse Attendue : feuille de style unique.
   Tokens, mise en page, composants. Aucune dépendance externe. */

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --ivory:      #fbf7f2;
  --sand:       #f3ece3;
  --shell:      #ffffff;
  --line:       #e6dbcf;
  --line-soft:  #efe6da;

  --ink:        #2b2226;
  --ink-soft:   #5d5157;
  --ink-faint:  #8b7f85;

  --plum:       #5b3a4a;
  --plum-deep:  #402834;
  --plum-soft:  #f0e4ea;
  --rose:       #c1808c;
  --rose-soft:  #f7ebeb;
  --sage:       #7f9a80;
  --sage-soft:  #eaf0e8;
  --gold:       #b8912f;
  --gold-soft:  #f7f0dd;

  --ok:         #4f8a5b;
  --ok-bg:      #e9f2ea;
  --warn:       #b6822c;
  --warn-bg:    #f8f0dd;
  --danger:     #ab4a45;
  --danger-bg:  #f8e8e6;
  --info:       #4d7c92;
  --info-bg:    #e6eff3;

  --bg:         var(--ivory);
  --surface:    var(--shell);
  --surface-2:  var(--sand);
  --text:       var(--ink);
  --text-soft:  var(--ink-soft);
  --text-faint: var(--ink-faint);
  --border:     var(--line);
  --accent:     var(--plum);
  --accent-soft:var(--plum-soft);
  --on-accent:  #ffffff;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;

  --shadow-sm: 0 1px 2px rgba(64,40,52,.06), 0 1px 3px rgba(64,40,52,.05);
  --shadow-md: 0 4px 16px rgba(64,40,52,.07), 0 1px 3px rgba(64,40,52,.05);
  --shadow-lg: 0 18px 48px rgba(64,40,52,.12), 0 2px 8px rgba(64,40,52,.06);

  --font-display: 'Nunito', 'Arial Rounded MT Bold', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-sans: 'Nunito', 'Arial Rounded MT Bold', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --maxw: 1180px;
}

/* ------------------------------------------------------------------ base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { color: var(--text-soft); }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.muted { color: var(--text-faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ marque */
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; color: inherit; }
.brand-mark {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--rose); line-height: 1;
  transform: translateY(.06em);
}
.brand-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--accent); }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.15rem; border-radius: var(--r-full);
  border: 1px solid transparent; background: var(--accent); color: var(--on-accent);
  font-weight: 500; font-size: .94rem; text-decoration: none; line-height: 1.3;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .38rem .8rem; font-size: .84rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn-soft:hover { box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-icon { padding: .5rem; border-radius: var(--r-full); width: 2.35rem; height: 2.35rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ cartes */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.card-flat { box-shadow: none; }
.card-pad-sm { padding: var(--sp-4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.card-head h3, .card-head h2 { margin: 0; }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; justify-content: space-between; }
.spacer { flex: 1; }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem; border-radius: var(--r-full);
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  background: var(--surface-2); color: var(--text-soft); white-space: nowrap;
}
.badge-ok      { background: var(--ok-bg);     color: var(--ok); }
.badge-warn    { background: var(--warn-bg);   color: var(--warn); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-info    { background: var(--info-bg);   color: var(--info); }
.badge-accent  { background: var(--accent-soft); color: var(--accent); }
.badge-dot::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--text-soft); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 500; }
.chip-static { cursor: default; }
.chip-static:hover { border-color: var(--border); color: var(--text-soft); }
.chip-remove { border: 0; background: none; padding: 0 0 0 .15rem; color: inherit; opacity: .6; font-size: 1rem; line-height: 1; }
.chip-remove:hover { opacity: 1; }

/* ------------------------------------------------------------------ verdicts */
.verdict { --v: var(--ok); border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--v) 30%, transparent); background: color-mix(in srgb, var(--v) 8%, var(--surface)); padding: var(--sp-5); }
.verdict-synergie { --v: #4f8a5b; }
.verdict-ok       { --v: #5d8f6a; }
.verdict-separer  { --v: #c58a2e; }
.verdict-alterner { --v: #c9702f; }
.verdict-eviter   { --v: #b04a45; }
.verdict .notice { border-color: var(--v); background: color-mix(in srgb, var(--v) 10%, var(--surface)); }
.verdict-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--v); color: #fff; font-size: 1.15rem; flex: none; }
.verdict-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--v); font-weight: 800; }
.verdict-sub { color: var(--text-soft); font-size: .95rem; }

/* ------------------------------------------------------------------ formulaires */
.field { display: block; margin-bottom: var(--sp-4); }
.field > label, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--text-soft); margin-bottom: .3rem; letter-spacing: .01em; }
.hint { font-size: .8rem; color: var(--text-faint); margin-top: .3rem; }
input[type="text"], input[type="number"], input[type="date"], input[type="time"],
input[type="search"], input[type="email"], select, textarea {
  width: 100%; padding: .62rem .85rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .93rem; color: var(--text-soft); }
.check input { margin-top: .28rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex: none; }
fieldset { border: 0; padding: 0; }
legend { font-size: .84rem; font-weight: 600; color: var(--text-soft); margin-bottom: .4rem; }

/* ------------------------------------------------------------------ tableaux */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
table th, table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
table th { background: var(--surface-2); font-weight: 600; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
table tr:last-child td { border-bottom: 0; }
table td.num, table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ listes de soin */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 600; display: grid; place-items: center;
  margin-top: .1rem;
}
.steps .step-name { font-weight: 500; color: var(--text); }
.steps .step-meta { font-size: .8rem; color: var(--text-faint); }

/* ------------------------------------------------------------------ notices */
.notice { display: flex; gap: .75rem; padding: var(--sp-4); border-radius: var(--r-md); border-left: 3px solid var(--info); background: var(--info-bg); color: var(--text); }
.notice h4 { margin-bottom: .15rem; font-size: .95rem; }
.notice p { font-size: .9rem; color: var(--text-soft); }
.notice-ok     { border-color: var(--ok);     background: var(--ok-bg); }
.notice-warn   { border-color: var(--warn);   background: var(--warn-bg); }
.notice-danger { border-color: var(--danger); background: var(--danger-bg); }
.notice-icon { font-size: 1.15rem; line-height: 1.4; flex: none; }

.empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--text-faint); }
.empty-mark { font-family: var(--font-display); font-size: 3rem; color: var(--accent); opacity: .5; line-height: 1; margin-bottom: var(--sp-3); }

/* ------------------------------------------------------------------ jauges */
.meter { height: .45rem; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s ease; }
.stat { text-align: left; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--text); font-weight: 800; }
.stat-label { font-size: .8rem; color: var(--text-faint); letter-spacing: .03em; text-transform: uppercase; }

/* ------------------------------------------------------------------ header app */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-header-inner { display: flex; align-items: center; gap: var(--sp-4); padding: .7rem 0; }
.app-nav { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a {
  padding: .42rem .8rem; border-radius: var(--r-full); text-decoration: none;
  color: var(--text-soft); font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.app-nav a:hover { background: var(--surface-2); color: var(--text); }
.app-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------------ calendrier */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: var(--sp-3); }
.day-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.day-head { padding: .55rem .7rem; background: var(--surface-2); border-bottom: 1px solid var(--border); font-weight: 600; font-size: .84rem; display: flex; justify-content: space-between; align-items: center; }
.day-head.is-today { background: var(--accent-soft); color: var(--accent); }
.slot-block { padding: .6rem .7rem; border-bottom: 1px dashed var(--line-soft); }
.slot-block:last-child { border-bottom: 0; }
.slot-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); display: flex; align-items: center; gap: .3rem; margin-bottom: .35rem; }
.slot-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .22rem; }
.slot-list li { font-size: .82rem; color: var(--text-soft); display: flex; gap: .35rem; align-items: flex-start; line-height: 1.35; }
.slot-list .dot { width: .4rem; height: .4rem; border-radius: 50%; margin-top: .48rem; flex: none; background: var(--accent); opacity: .6; }
.slot-rest { font-size: .78rem; color: var(--sage); font-style: italic; }

/* ------------------------------------------------------------------ modale */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30,20,26,.55);
  backdrop-filter: blur(3px); z-index: 100;
  display: grid; place-items: center; padding: var(--sp-4);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); width: min(100%, 640px);
  max-height: min(88vh, 900px); overflow: auto; padding: var(--sp-6);
}
.modal-wide { width: min(100%, 900px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.modal-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--text-faint); padding: .1rem .35rem; border-radius: var(--r-sm); }
.modal-close:hover { color: var(--text); background: var(--surface-2); }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.toast {
  background: var(--plum-deep); color: #fff; padding: .7rem 1rem; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; gap: .6rem; align-items: center;
  animation: rise .22s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.toast-ok { background: #3f6f4b; }
.toast-err { background: #8f3d39; }

/* ------------------------------------------------------------------ produits */
.product-card { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-sm); }
.product-card.is-off { opacity: .55; }
.product-thumb { width: 3rem; height: 3rem; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; color: var(--accent); flex: none; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-main { flex: 1; min-width: 0; }
.product-name { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.product-brand { font-size: .82rem; color: var(--text-faint); }
.product-actives { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }

/* ------------------------------------------------------------------ pages éditoriales */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--text-soft); }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; font-size: 1.05rem; color: var(--text-soft); font-style: italic; }

.lede { font-size: 1.12rem; color: var(--text-soft); line-height: 1.7; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.breadcrumb { font-size: .82rem; color: var(--text-faint); display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

.faq-item { border-bottom: 1px solid var(--line-soft); padding: var(--sp-4) 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.faq-item p { font-size: .93rem; }

/* ------------------------------------------------------------------ site public */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) 0; }
.site-nav { display: flex; gap: var(--sp-4); align-items: center; }
.site-nav a:not(.btn) { font-size: .92rem; color: var(--text-soft); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 720px) { .site-nav .nav-hide { display: none; } }

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); background: linear-gradient(180deg, var(--plum-soft), transparent 65%); }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 54ch; margin-top: var(--sp-4); }

.site-footer { border-top: 1px solid var(--border); margin-top: var(--sp-8); padding: var(--sp-6) 0; background: var(--surface); }
.footer-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: .6rem; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.footer-grid a { font-size: .88rem; color: var(--text-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }

.link-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.link-grid a {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); text-decoration: none; color: var(--text-soft);
  font-size: .88rem; transition: border-color .15s ease, color .15s ease, transform .12s ease;
}
.link-grid a:hover { border-color: var(--accent); color: var(--accent); transform: translateX(2px); }
.link-grid .lvl { width: .5rem; height: .5rem; border-radius: 50%; flex: none; }

/* ------------------------------------------------------------------ graphiques */
.chart { width: 100%; height: auto; overflow: visible; }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-label { font-size: 10px; fill: var(--text-faint); font-family: var(--font-sans); }
.legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .82rem; color: var(--text-soft); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: .7rem; height: .7rem; border-radius: 3px; display: inline-block; }

/* ------------------------------------------------------------------ comparateur photo */
.compare { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); touch-action: none; }
.compare img { width: 100%; display: block; }
.compare .after { position: absolute; inset: 0; overflow: hidden; }
.compare .after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.compare .handle::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2rem; height: 2rem; border-radius: 50%; background: #fff; color: #333; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); font-size: .9rem; }

/* ------------------------------------------------------------------ divers */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: .55rem .85rem; color: var(--text-soft); font-size: .9rem; font-weight: 500; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

.divider { height: 1px; background: var(--border); border: 0; margin: var(--sp-5) 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }

details.acc { border: 1px solid var(--border); border-radius: var(--r-md); padding: 0; background: var(--surface); overflow: hidden; }
details.acc + details.acc { margin-top: .5rem; }
details.acc > summary { padding: .8rem 1rem; cursor: pointer; font-weight: 500; font-size: .95rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '+'; color: var(--text-faint); font-size: 1.2rem; line-height: 1; }
details.acc[open] > summary::after { content: '−'; }
details.acc > div { padding: 0 1rem 1rem; }

.print-only { display: none; }
@media print {
  .app-header, .site-header, .site-footer, .no-print, .btn { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { border-color: #ccc; box-shadow: none; break-inside: avoid; }
  .week-grid { grid-template-columns: repeat(7, 1fr); gap: 4pt; }
  a { text-decoration: none; color: #000; }
}

@media (max-width: 900px) {
  .week-grid { grid-template-columns: 1fr; }
  .day-col { flex-direction: row; }
  .day-head { writing-mode: horizontal-tb; min-width: 6.5rem; border-bottom: 0; border-right: 1px solid var(--border); align-items: flex-start; }
  .day-col > .slot-wrap { flex: 1; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { width: calc(100% - 1.6rem); }
  .card { padding: var(--sp-4); }
  .modal { padding: var(--sp-4); border-radius: var(--r-lg); }
  h1 { font-size: 2rem; }
}
