/* ==========================================================================
   Bowling Maroc — feuille de style principale
   Propriétés logiques (inline/block) partout : compatible RTL (arabe).
   ========================================================================== */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0f1b2d;
  --ink-2: #1b2b44;
  --ink-3: #2c3e5c;
  --sand: #f8f4ed;
  --sand-2: #f1ebe0;
  --paper: #ffffff;
  --line: #e7dfd2;
  --line-2: #d8cdbb;
  --text: #1d2533;
  --muted: #5b6474;
  --terra: #c0512b;
  --terra-2: #a3401e;
  --terra-soft: #fbece5;
  --majorelle: #2747c7;
  --majorelle-soft: #eaeefc;
  --saffron: #e2a324;
  --saffron-soft: #fcf3de;
  --mint: #1d7a57;
  --mint-soft: #e3f3ec;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 1px rgba(15, 27, 45, .04);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .18), 0 2px 6px rgba(15, 27, 45, .05);
  --shadow-lg: 0 30px 60px -25px rgba(15, 27, 45, .35);

  --font-head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Motif zellige (étoile à 8 branches) */
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M28 6 34.4 12.6H43.4V21.6L50 28 43.4 34.4V43.4H34.4L28 50 21.6 43.4H12.6V34.4L6 28 12.6 21.6V12.6H21.6Z'/%3E%3Cpath d='M28 17 33 23 39 28 33 33 28 39 23 33 17 28 23 23Z'/%3E%3Cpath d='M0 0 6 6M56 0 50 6M0 56 6 50M56 56 50 50'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--font-body);
  color: var(--text);
  background: var(--sand);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, var(--font-body); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--majorelle); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.i { flex: none; vertical-align: middle; }
.khatam { color: var(--terra); flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 1rem/1 var(--font-head); letter-spacing: .01em;
  padding: .95rem 1.4rem; border-radius: 999px; border: 0;
  background: var(--terra); color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(192, 81, 43, .8);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--terra-2); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: .6rem 1.05rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: none; }
.btn-light:hover { background: var(--saffron-soft); color: var(--ink); }
.btn-blue { background: var(--majorelle); box-shadow: 0 8px 20px -10px rgba(39, 71, 199, .8); }
.btn-blue:hover { background: #1d38a6; }
[dir="rtl"] .btn .i-arrow, [dir="rtl"] .link-arrow .i { transform: scaleX(-1); }

/* ---------- En-tête ---------- */
.zellige-strip {
  height: 5px;
  background: linear-gradient(90deg, var(--terra) 0 25%, var(--saffron) 25% 50%, var(--mint) 50% 75%, var(--majorelle) 75% 100%);
  background-size: 64px 5px;
}
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 1.35rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-text strong span { color: var(--terra); }
.brand-text small { font-size: .74rem; color: var(--muted); margin-top: .2rem; letter-spacing: .01em; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a:not(.btn) {
  display: block; padding: .55rem .8rem; border-radius: 10px;
  font: 600 .98rem/1 var(--font-head); color: var(--ink); text-decoration: none;
}
.site-nav > ul > li > a:not(.btn):hover { background: var(--sand); color: var(--terra); }
.nav-asbm { position: relative; }
.nav-asbm::after { content: ""; position: absolute; inset-block-start: 6px; inset-inline-end: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }
.nav-cta { margin-inline-start: .5rem; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-inline-start: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); opacity: .6; }
.sub {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: -1rem; min-width: 420px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.sub::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub-title { font: 600 .75rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.sub-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .8rem; }
.sub-grid a { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.sub-grid a:hover { background: var(--sand); color: var(--terra); }
.sub-all { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 600; text-decoration: none; }
.lang-switch { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: block; padding: .35rem .5rem; border-radius: 6px; font: 600 .8rem/1 var(--font-head); color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: .5rem; cursor: pointer; border-radius: 10px; }
.nav-toggle .close { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 77px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 1rem var(--gutter) 2rem; overflow-y: auto; display: none;
  }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle .open { display: none; }
  .nav-open .nav-toggle .close { display: inline; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a:not(.btn) { padding: 1rem .5rem; font-size: 1.15rem; border-block-end: 1px solid var(--line); border-radius: 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: .5rem 0 1rem; }
  .has-sub > a::after { display: none; }
  .nav-cta { margin: 1.2rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 1rem; }
  .lang-switch { justify-content: center; margin-top: 1rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand-text small { display: none; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 1.1rem 0 0; font-size: .88rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: .35rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Sections génériques ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-white { background: var(--paper); }
.section-dark { background: var(--ink); color: #dfe5ee; position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .05; pointer-events: none; }
.section-dark > * { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--terra);
  margin-bottom: .9rem;
}
.section-dark .eyebrow { color: var(--saffron); }
.section-dark .eyebrow .khatam { color: var(--saffron); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 60ch; }
.section-dark .section-head p { color: #aab5c6; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font: 600 1rem/1.2 var(--font-head); text-decoration: none; color: var(--ink); }
.link-arrow:hover { color: var(--terra); }
.section-dark .link-arrow { color: #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }

/* ---------- Héros accueil ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .06; }
.hero::after { content: ""; position: absolute; inset-inline-end: -10%; inset-block-start: -30%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(192, 81, 43, .35), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero .lead { color: #c3cddb; max-width: 38rem; }
.hero .eyebrow { color: var(--saffron); }
.hero .eyebrow .khatam { color: var(--saffron); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-actions .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font: 800 2.1rem/1 var(--font-head); color: #fff; }
.hero-stats span { font-size: .88rem; color: #9fabbd; margin-top: .35rem; }
.hero-visual { position: relative; }
.arch {
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, .08);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; inset-block-end: 8%; inset-inline-start: -8%;
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; gap: .8rem; align-items: center; max-width: 270px;
}
.hero-badge img { width: 58px; height: auto; }
.hero-badge strong { display: block; font: 700 .98rem/1.2 var(--font-head); }
.hero-badge span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: block; }
.hero-search { margin-top: 1.8rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-search a { display: inline-block; padding: .45rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e8edf5; text-decoration: none; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .12); }
.hero-search a:hover { background: rgba(255, 255, 255, .16); color: #fff; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-badge { inset-inline-start: 0; }
}

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding-block: 1.6rem 2.6rem; }
.page-hero h1 { max-width: 20ch; margin-bottom: .8rem; }
.page-hero .lead { max-width: 62ch; margin: 0; }
.page-hero-dark { background: var(--ink); color: #dfe5ee; position: relative; overflow: hidden; margin-top: 0; }
.page-hero-dark::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .06; }
.page-hero-dark > * { position: relative; }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .lead { color: #b8c3d3; }
.meta-line { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.meta-line span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { aspect-ratio: 3 / 2; background: var(--sand-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.2rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .88rem; color: var(--muted); margin-top: auto; padding-top: .6rem; }
.card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card-tag { position: absolute; inset-block-start: .9rem; inset-inline-start: .9rem; z-index: 2; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 999px; font: 600 .75rem/1 var(--font-head); letter-spacing: .02em; background: var(--sand); color: var(--ink); }
.badge-open { background: var(--mint-soft); color: var(--mint); }
.badge-closed { background: #f6e3e1; color: #9d2b21; }
.badge-unknown { background: var(--saffron-soft); color: #8a5b00; }
.badge-terra { background: var(--terra); color: #fff; }
.badge-dark { background: rgba(15, 27, 45, .82); color: #fff; backdrop-filter: blur(4px); }

/* Carte ville */
.city-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 220px; display: flex; align-items: end; color: #fff; text-decoration: none; background: var(--ink-2); isolation: isolate; }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.city-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 27, 45, 0) 30%, rgba(15, 27, 45, .88)); z-index: -1; }
.city-card:hover img { transform: scale(1.05); }
.city-card:hover { color: #fff; }
.city-card-body { padding: 1.3rem 1.4rem; width: 100%; }
.city-card h3 { color: #fff; margin: 0 0 .25rem; font-size: 1.4rem; }
.city-card span { color: #d6dde8; font-size: .92rem; }
.city-card.no-img { background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
.city-card.no-img::after { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .08; z-index: -1; }

/* Carte guide (sans image) */
.guide-card { padding: 1.5rem; gap: .6rem; }
.guide-card .gc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra); }
.guide-card h3 { margin: .4rem 0 0; font-size: 1.12rem; }
.guide-card h3 a { color: inherit; text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.guide-card .card-meta { padding-top: .8rem; }

/* ---------- Bloc ASBM mis en avant ---------- */
.asbm-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.asbm-feature .arch { aspect-ratio: 5 / 6; border-color: rgba(255, 255, 255, .1); }
.asbm-points { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .9rem; }
.asbm-points li { display: flex; gap: .8rem; align-items: flex-start; }
.asbm-points .i { color: var(--saffron); margin-top: .25rem; }
.asbm-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.asbm-numbers div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 1rem; }
.asbm-numbers strong { display: block; font: 800 1.9rem/1 var(--font-head); color: var(--saffron); }
.asbm-numbers span { font-size: .85rem; color: #aab5c6; }
@media (max-width: 900px) {
  .asbm-feature { grid-template-columns: 1fr; }
  .asbm-feature .arch { max-width: 380px; }
  .asbm-numbers { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mise en page article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: 1rem 4rem; }
.article-layout.no-aside { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }
.aside-sticky { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.toc p { font: 700 .78rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.toc ol { margin: 0; padding-inline-start: 1.1rem; font-size: .93rem; display: grid; gap: .45rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--terra); }
@media (max-width: 1000px) { .aside-sticky { position: static; } }

.prose { font-size: 1.07rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 .7em; padding-top: .2em; display: flex; align-items: center; gap: .6rem; }
.prose h2::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--terra); clip-path: polygon(50% 0, 63% 15%, 85% 15%, 85% 37%, 100% 50%, 85% 63%, 85% 85%, 63% 85%, 50% 100%, 37% 85%, 15% 85%, 15% 63%, 0 50%, 15% 37%, 15% 15%, 37% 15%); }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--terra); }
.prose blockquote { margin: 1.6em 0; padding: 1.2rem 1.4rem; border-inline-start: 4px solid var(--saffron); background: var(--saffron-soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
[dir="rtl"] .prose blockquote { border-radius: var(--radius) 0 0 var(--radius); }
.prose figure { margin: 2em 0; }
.prose figure img, .prose figure svg { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: .75rem 1rem; text-align: start; border-block-end: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font: 700 .85rem/1.3 var(--font-head); color: var(--ink); letter-spacing: .02em; }
tbody tr:last-child td { border-block-end: 0; }
tbody tr:hover td { background: #fcfaf6; }
td.num, th.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }

.callout { display: flex; gap: .9rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--majorelle-soft); margin: 1.6em 0; font-size: 1rem; }
.callout > .i { color: var(--majorelle); margin-top: .2rem; }
.callout p:last-child { margin: 0; }
.callout-tip { background: var(--mint-soft); }
.callout-tip > .i { color: var(--mint); }
.callout-warn { background: var(--saffron-soft); }
.callout-warn > .i { color: #a06a00; }

.essentiel {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem 1.3rem; margin: 0 0 2.4rem; box-shadow: var(--shadow-sm);
}
.essentiel::before { content: ""; position: absolute; inset-block: 1.2rem; inset-inline-start: 0; width: 4px; border-radius: 4px; background: var(--terra); }
.essentiel p.essentiel-title { display: flex; align-items: center; gap: .5rem; font: 700 .8rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); margin: 0 0 .9rem; }
.essentiel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.essentiel li { display: flex; gap: .6rem; align-items: flex-start; }
.essentiel li .i { color: var(--mint); margin-top: .3rem; }

.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.2rem; }
.sources p { font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.sources ul { padding-inline-start: 1.1rem; margin: 0; }
.sources a { color: var(--muted); word-break: break-word; }

/* FAQ (details/summary) */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font: 600 1.05rem/1.4 var(--font-head); color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--terra); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding-bottom: 1.2rem; color: var(--text); }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- Fiche centre ---------- */
.centre-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: end; padding-block: 1.4rem 1.8rem; }
.centre-head h1 { margin: .5rem 0 .4rem; }
.centre-head .addr { display: flex; gap: .4rem; align-items: center; color: var(--muted); margin: 0; }
.centre-head-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .6rem; height: clamp(280px, 42vw, 480px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--sand-2); }
.gallery a:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 27, 45, .55); color: #fff; font: 700 1.1rem var(--font-head); }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery.n2 a:first-child, .gallery.n1 a:first-child { grid-row: 1 / 3; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 360px; }
  .gallery a:first-child { grid-column: 1 / 3; grid-row: 1; }
  .gallery a:nth-child(n+4) { display: none; }
  .gallery.n1 a:first-child { grid-row: 1 / 3; }
}
.centre-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 4vw, 3rem); padding-block: 2.5rem 4rem; align-items: start; }
@media (max-width: 1000px) { .centre-layout { grid-template-columns: 1fr; } }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .96rem; }
.info-list .i { color: var(--terra); margin-top: .2rem; }
.info-list a { word-break: break-word; }
.info-list small { display: block; color: var(--muted); font-size: .82rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin: 0 0 2rem; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.fact span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.fact strong { font: 700 1.3rem/1.3 var(--font-head); color: var(--ink); }
.hours-table td:first-child { font-weight: 600; color: var(--ink); width: 40%; }
.hours-table tr.today td { background: var(--saffron-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips li { padding: .4rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sand-2) var(--zellige); position: relative; aspect-ratio: 4 / 3; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box .map-load { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #e9e1d3, #f4efe6); }
.note { font-size: .85rem; color: var(--muted); }
.update-box { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--sand-2); font-size: .92rem; }

/* Liste centres (répertoire) */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 600 .92rem/1 var(--font-head); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.centre-row { display: grid; grid-template-columns: 280px 1fr; }
@media (max-width: 700px) { .centre-row { grid-template-columns: 1fr; } }
.centre-row .card-media { aspect-ratio: auto; min-height: 200px; }
.price-from { font: 700 1.05rem var(--font-head); color: var(--ink); }
.price-from small { font: 400 .82rem var(--font-body); color: var(--muted); }

/* ---------- Calculateur ---------- */
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.scoreboard { display: grid; grid-template-columns: repeat(9, 1fr) 1.45fr; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; direction: ltr; }
.frame { border-inline-end: 1px solid var(--line-2); display: flex; flex-direction: column; min-width: 0; }
.frame:last-child { border-inline-end: 0; }
.frame.current { background: var(--saffron-soft); }
.frame-no { font: 600 .72rem/1 var(--font-head); text-align: center; padding: .35rem 0; background: var(--ink); color: #fff; }
.rolls { display: flex; justify-content: flex-end; }
.rolls span { width: 50%; max-width: 34px; height: 30px; display: grid; place-items: center; border-inline-start: 1px solid var(--line-2); border-block-end: 1px solid var(--line-2); font: 700 .95rem var(--font-head); }
.frame:last-child .rolls span { width: 33.33%; }
.ftotal { font: 800 1.2rem/1 var(--font-head); text-align: center; padding: .6rem 0 .7rem; min-height: 2.5rem; color: var(--ink); }
.pins-pad { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: 1.5rem; }
.pins-pad button { font: 700 1.2rem/1 var(--font-head); padding: .95rem 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--sand); color: var(--ink); cursor: pointer; }
.pins-pad button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pins-pad button:disabled { opacity: .3; cursor: not-allowed; }
.pins-pad .strike { background: var(--terra); color: #fff; border-color: var(--terra); }
.pins-pad .spare { background: var(--majorelle); color: #fff; border-color: var(--majorelle); }
.calc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.calc-total { font: 800 2.2rem/1 var(--font-head); color: var(--terra); }
.calc-total small { font: 500 .9rem var(--font-body); color: var(--muted); display: block; }
@media (max-width: 700px) {
  .scoreboard { grid-template-columns: repeat(5, 1fr); }
  .frame:nth-child(5) { border-inline-end: 0; }
  .frame:nth-child(-n+5) { border-block-end: 2px solid var(--ink); }
  .pins-pad { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font: 600 .92rem var(--font-head); margin-bottom: .35rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--majorelle); box-shadow: 0 0 0 4px var(--majorelle-soft); }
.form .err { color: #b3261e; font-size: .88rem; margin-top: .3rem; }
.form .hp { position: absolute; inset-inline-start: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; }
.alert-ok { background: var(--mint-soft); color: #0f5a3e; }
.alert-err { background: #fbe9e7; color: #8c1d18; }

/* ---------- CTA ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--terra), #d7703f); color: #fff; padding: clamp(1.8rem, 4vw, 3rem); overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .12; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: #fde9df; max-width: 52ch; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #aab5c6; margin-top: 0; font-size: .95rem; }
.zellige-band { height: 34px; background: var(--terra) var(--zellige); background-size: 34px 34px; opacity: .95; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { margin: 1.2rem 0; max-width: 40ch; }
.footer-title { font: 700 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #aab5c6; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-asbm { display: inline-flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.footer-asbm img { background: #fff; border-radius: 8px; padding: 4px; }
.footer-asbm span { font-size: .88rem; line-height: 1.4; color: #dfe5ee; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 2rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Divers ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill-list a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .93rem; }
.pill-list a:hover { border-color: var(--terra); color: var(--terra); }
.assoc-logo { width: 100%; max-width: 220px; background: #fff; border-radius: var(--radius); padding: 1rem; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 1.5em 0; padding: 0; border-inline-start: 2px solid var(--line-2); }
.timeline li { position: relative; padding-inline-start: 1.5rem; margin-bottom: 1.3rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; inset-block-start: .45em; width: 14px; height: 14px; background: var(--terra); clip-path: polygon(50% 0, 63% 15%, 85% 15%, 85% 37%, 100% 50%, 85% 63%, 85% 85%, 63% 85%, 50% 100%, 37% 85%, 15% 85%, 15% 63%, 0 50%, 15% 37%, 15% 15%, 37% 15%); }
.timeline strong { font-family: var(--font-head); color: var(--terra); display: block; }
.not-found { text-align: center; padding-block: 5rem 6rem; }
.not-found .big { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--terra); }
.lightbox { position: fixed; inset: 0; background: rgba(8, 14, 24, .94); z-index: 200; display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 10px; }
.lightbox button { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { inset-block-start: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { inset-inline-start: 1rem; inset-inline-end: auto; }
.lightbox .lb-next { inset-inline-end: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .aside-sticky, .crumbs { display: none; }
  body { background: #fff; }
}

/* Menu : jamais de retour à la ligne */
.site-nav > ul > li > a { white-space: nowrap; }
.brand-text small { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 1081px) { .site-nav > ul > li > a:not(.btn) { padding-inline: .6rem; font-size: .94rem; } }
.prose .chips { padding: 0; }
.prose .chips li { margin: 0; }
.fact strong { font-size: 1.15rem; }
.map-box .map-load { background: var(--sand-2); }
.article-layout > *, .centre-layout > * { min-width: 0; }
@media (max-width: 1000px) { .article-layout, .centre-layout { grid-template-columns: minmax(0, 1fr); } }
.prose figure svg { max-width: 640px; display: block; margin-inline: auto; height: auto; }
.prose { overflow-wrap: break-word; }
.centre-head .addr { align-items: flex-start; }
.centre-head .addr .i { margin-top: .3rem; }
@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; background: #fff; }
  .site-nav { inset: 77px 0 0 0; height: calc(100dvh - 77px); }
}
@media (max-width: 1080px) { .nav-asbm::after { position: static; display: inline-block; margin-inline-start: .4rem; vertical-align: super; } }
/* Logo ASBM horizontal */
.hero-badge { max-width: 330px; }
.hero-badge img { width: 110px; height: auto; }
.footer-asbm { flex-direction: column; align-items: flex-start; gap: .7rem; max-width: 320px; }
.footer-asbm img { width: 150px; height: auto; padding: 6px 10px; }

/* ---------- Outils (socle commun) ---------- */
.tool-wrap { padding-bottom: 1.5rem; }
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.tool + .tool { margin-top: 1.4rem; }
.tool h2 { font-size: 1.3rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; }
.tool h2 .step { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; font-size: .95rem; }
.tool h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.tool-section + .tool-section { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px dashed var(--line-2); }
.tool-privacy { display: flex; gap: .45rem; align-items: flex-start; font-size: .88rem; margin: 1rem 0 0; }
.tool-privacy .i { margin-top: .25rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 1rem 1.1rem; align-items: end; }
.field label, .field .label { display: block; font: 600 .9rem/1.3 var(--font-head); margin-bottom: .35rem; color: var(--ink); }
.field small, .hint { display: block; color: var(--muted); font-size: .84rem; margin-top: .3rem; line-height: 1.4; }
.tool input[type="number"], .tool input[type="text"], .tool input[type="date"], .tool select, .tool textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--text);
}
.tool textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--majorelle); box-shadow: 0 0 0 4px var(--majorelle-soft); }
.tool input[type="number"] { font-variant-numeric: tabular-nums; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--terra); flex: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; border-radius: 14px; background: var(--sand); border: 1px solid var(--line); }
.seg button, .seg label { font: 600 .95rem/1.2 var(--font-head); padding: .6rem 1rem; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg-block { display: flex; width: 100%; }
.seg-block > * { flex: 1; justify-content: center; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; align-items: center; }
.tool-actions .spacer { flex: 1; }
.btn.armed { background: #b3261e; color: #fff; box-shadow: none; }
.btn-ghost.armed { box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-xs { padding: .45rem .75rem; font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .8rem; margin: 1.2rem 0 0; }
.stat { background: var(--sand); border-radius: var(--radius); padding: .9rem 1rem; }
.stat span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat strong { display: block; font: 800 1.9rem/1.15 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat small { display: block; color: var(--muted); font-size: .84rem; }
.stat-main { background: var(--terra); }
.stat-main span, .stat-main small { color: #fde9df; }
.stat-main strong { color: #fff; }
.result-box { margin-top: 1.2rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--mint-soft); color: #0f4a34; }
.result-box p:last-child { margin: 0; }
.result-box.warn { background: var(--saffron-soft); color: #6d4700; }
.result-box.err { background: #fbe9e7; color: #8c1d18; }
.tool .table-wrap { margin: 1rem 0 0; }
.tool table { font-size: .95rem; }
.tool td input[type="number"] { padding: .4rem .5rem; min-width: 4.5rem; border-radius: 8px; }
tr.hl td { background: var(--saffron-soft) !important; }
td.best, th.best { background: var(--mint-soft); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--paper); }
.stepper button { width: 2.2rem; height: 2.2rem; border: 0; background: var(--sand); color: var(--ink); font: 700 1.1rem/1 var(--font-head); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.stepper output { min-width: 2.4rem; text-align: center; font: 700 1rem var(--font-head); font-variant-numeric: tabular-nums; }
.tool-toast { position: fixed; inset-inline: 0; inset-block-end: 1.2rem; margin-inline: auto; width: max-content; max-width: calc(100% - 2rem); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-size: .93rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: .2s ease; pointer-events: none; z-index: 300; }
.tool-toast.show { opacity: 1; transform: none; }
.notice { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-radius: var(--radius); background: var(--majorelle-soft); font-size: .93rem; margin-bottom: 1.2rem; }
.notice p { margin: 0; }
.is-fullscreen { position: fixed !important; inset: 0; z-index: 250; overflow: auto; background: var(--paper); padding: 2rem; }
:fullscreen { background: var(--paper); overflow: auto; padding: 2rem; }
.tool-card .gc-icon { background: var(--majorelle-soft); color: var(--majorelle); }
.tool-card .link-arrow { font-size: .95rem; color: var(--terra); }
.num-big { font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--font-head); color: var(--terra); font-variant-numeric: tabular-nums; }
@media print {
  .tool-content, .tool-related, .tool-privacy, .no-print, .tool-toast, .page-hero .lead, .page-hero .eyebrow { display: none !important; }
  .tool { box-shadow: none; border: 0; padding: 0; }
  .tool-section + .tool-section { border: 0; }
  .print-only { display: block !important; }
  a[href]::after { content: none; }
}
.print-only { display: none; }
.pill-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-buttons .btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--majorelle); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.linklike:hover { color: var(--terra); }
