/* KiyamFit — thème nuit et or */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
}
:root {
  --bg: #070D1A;
  --bg2: #0B1426;
  --card: rgba(17, 26, 46, .82);
  --card-solid: #111A2E;
  --card2: #18233B;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --text: #F1F4F9;
  --muted: #8F9BB3;
  --faint: #5F6B83;
  --gold: #E8B54D;
  --gold2: #F6D688;
  --gold-deep: #C98E22;
  --gold-soft: rgba(232, 181, 77, .13);
  --teal: #4FD1A5;
  --teal-soft: rgba(79, 209, 165, .13);
  --red: #F08A8A;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 16px/1.5 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 560px at 50% -220px, rgba(232, 181, 77, .11), transparent 62%),
    radial-gradient(800px 480px at 110% 10%, rgba(79, 209, 165, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(7, 13, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.2px; }
.brand b { background: linear-gradient(120deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { width: 26px; height: 26px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(232, 181, 77, .45)); }
.city-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 999px;
  padding: 6px 12px 6px 9px; font-size: 13.5px; font-weight: 600; color: var(--text); max-width: 58%; cursor: pointer;
}
.city-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-chip svg.i { width: 16px; height: 16px; color: var(--gold); }

main { max-width: 560px; margin: 0 auto; padding: 14px 16px 24px; }

/* ---------- Barre d'onglets ---------- */
.tabs {
  position: fixed; z-index: 6; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 536px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
  background: rgba(14, 21, 38, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line2); border-radius: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.tabs button {
  background: none; border: 0; border-radius: 18px; padding: 7px 4px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s;
}
.tabs button svg.i { width: 22px; height: 22px; }
.tabs button.on { color: var(--gold); background: var(--gold-soft); }

/* ---------- Cartes ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; margin: 14px 0; box-shadow: var(--shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h2 { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 800; }
.card-h .pill { margin-left: auto; }
.bubble { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.bubble.teal { background: var(--teal-soft); color: var(--teal); }
.bubble svg.i { width: 19px; height: 19px; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: var(--gold-soft); color: var(--gold); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.teal { background: var(--teal-soft); color: var(--teal); }
.pill.ghost { background: rgba(255, 255, 255, .06); color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.warn { font-size: 14px; background: rgba(240, 138, 138, .1); color: #F5C1C1; border: 1px solid rgba(240, 138, 138, .25); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.slim { padding: 12px 16px; }
.slim p { margin: 0; }

/* ---------- Navigation des jours ---------- */
.daynav { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.daynav .d { flex: 1; text-align: center; }
.daynav .d strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.daynav .d span { font-size: 13px; color: var(--muted); }
.iconbtn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); cursor: pointer; color: var(--text); }
.linkbtn { background: none; border: 0; color: var(--gold); padding: 0; cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- Héros « prochaine prière » ---------- */
.hero-card {
  position: relative; overflow: hidden; margin: 12px 0 14px; padding: 20px 18px 16px;
  border-radius: 26px; border: 1px solid rgba(232, 181, 77, .32);
  background: linear-gradient(155deg, #1B2544 0%, #131D36 48%, #2B2312 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero-card::before {
  content: ""; position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 50%;
  box-shadow: -26px 18px 0 0 rgba(232, 181, 77, .16); pointer-events: none;
}
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; position: relative; }
.hero-name { font-size: 30px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.hero-in { font-size: 15px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.hero-time { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #E9D9B4); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Frise de la journée */
.tl { position: relative; height: 62px; margin: 18px 6px 0; }
.tl-bar { position: absolute; top: 10px; left: 0; right: 0; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .09); }
.tl-f { position: absolute; top: 10px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(79, 209, 165, .25), rgba(79, 209, 165, .55)); }
.tl-s { position: absolute; top: 5px; height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold2)); box-shadow: 0 0 18px rgba(232, 181, 77, .55); }
.tl-p { position: absolute; top: 6px; transform: translateX(-50%); text-align: center; }
.tl-p i { display: block; width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; background: var(--bg2); border: 2px solid #8792AA; }
.tl-p span { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.25; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-p span b { display: block; color: var(--text); font-weight: 700; font-size: 11px; }
.tl-p.next i { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 181, 77, .22); }
.tl-p.past i { border-color: #4C5770; }
.tl-p.past span b { color: var(--muted); }
.tl-p.up span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin: 0 0 5px; }
.tl.has-up { margin-top: 46px; }
.tl-now { position: absolute; top: 1px; width: 2px; height: 24px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tl-legend i { display: inline-block; width: 18px; height: 6px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }

/* ---------- Jeûne ---------- */
.fast-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fast-times div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.fast-times span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fast-times strong { font-size: 28px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--teal), #8BE7C8); }

/* ---------- Séance ---------- */
.slot-time { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.steps li { display: grid; grid-template-columns: 54px 14px 1fr; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.steps .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.steps .dot { width: 10px; height: 10px; border-radius: 50%; background: #3A4560; justify-self: center; position: relative; }
.steps li:not(:last-child) .dot::after { content: ""; position: absolute; left: 4px; top: 12px; width: 2px; height: 22px; background: #2A3550; }
.steps li.hl .t, .steps li.hl .w { color: var(--text); font-weight: 700; }
.steps li.hl .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 181, 77, .2); }
.steps li.pr .dot { background: var(--teal); }
.intensity { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 10px 12px; margin-top: 12px; font-size: 13.5px; color: #C9D1E0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.wo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wo-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ex { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: ex; }
.ex li { counter-increment: ex; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ex li:first-child { border-top: 0; }
.ex li::before { content: counter(ex); width: 26px; height: 26px; border-radius: 9px; background: var(--card2); color: var(--gold); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.ex .n { font-weight: 700; font-size: 15px; }
.ex .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 700; color: #C9D1E0; background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 2px 8px; font-variant-numeric: tabular-nums; }

/* ---------- Repas ---------- */
.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macros div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 9px 4px; text-align: center; }
.macros div:first-child { background: var(--gold-soft); border-color: rgba(232, 181, 77, .3); }
.macros strong { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.macros span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.meal { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.meal-h { display: flex; align-items: center; gap: 8px; }
.meal-h strong { font-size: 16px; }
.meal-h .t { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.meal-h .pill { margin-left: auto; }
.opt { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.opt-t { font-size: 13px; color: var(--muted); font-weight: 600; }
.opt-t b { color: var(--text); }
.items { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.items li { padding: 3px 0 3px 16px; position: relative; }
.items li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .7; }
.supp { display: grid; gap: 8px; margin-top: 8px; }
.supp div { font-size: 13.5px; background: rgba(255, 255, 255, .035); border-radius: 12px; padding: 9px 12px; color: #C9D1E0; }
.supp b { color: var(--text); }

/* Eau */
.water { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.water div { text-align: center; background: var(--teal-soft); border-radius: 14px; padding: 10px 4px; }
.water strong { display: block; font-size: 17px; color: var(--teal); font-variant-numeric: tabular-nums; }
.water span { font-size: 11.5px; color: var(--muted); line-height: 1.25; display: block; }

/* Prières */
.prayers { list-style: none; margin: 0; padding: 0; }
.prayers li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prayers li:first-child { border-top: 0; }
.prayers .nm { font-weight: 700; flex: 1; }
.prayers .ex2 { font-size: 12.5px; color: var(--muted); }
.prayers .tm { font-weight: 800; font-size: 17px; min-width: 52px; text-align: right; }
.prayers li.sun .nm, .prayers li.sun .tm { color: var(--muted); font-weight: 600; font-size: 15px; }
.prayers li.next { background: var(--gold-soft); border-radius: 12px; border-top-color: transparent; padding-left: 10px; padding-right: 10px; }
.prayers li.next .nm, .prayers li.next .tm { color: var(--gold); }
.prayers li.next + li { border-top-color: transparent; }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: linear-gradient(180deg, var(--gold2), var(--gold) 55%, var(--gold-deep)); color: #1C1405;
  border: 0; border-radius: 16px; padding: 14px 16px; font-weight: 800; font-size: 15.5px; cursor: pointer; margin-top: 10px;
  box-shadow: 0 8px 22px rgba(232, 181, 77, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.ghost { background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line2); box-shadow: none; font-weight: 700; }
.btn svg.i { width: 19px; height: 19px; }

/* ---------- Formulaires ---------- */
.field { margin: 12px 0; }
.field > label, .field > .lab { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=number], input[type=time], input[type=date], input[type=search], select {
  width: 100%; min-height: 46px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 13px; padding: 11px 12px;
  color-scheme: dark;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin: 6px 0; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.grid5 label { display: block; font-size: 11.5px; color: var(--muted); text-align: center; font-weight: 600; margin-bottom: 4px; }
.grid5 input { text-align: center; padding: 10px 2px; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days label { position: relative; }
.days input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: grid; place-items: center; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-weight: 800; cursor: pointer; }
.days input:checked + span { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1C1405; border-color: var(--gold); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg label { position: relative; }
.seg label span { display: grid; place-items: center; min-height: 46px; padding: 6px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.seg label input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); font-weight: 800; }
.days input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--gold); }
.calrow { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 10px; padding: 4px 0; }
.calrow span { font-weight: 700; }

details.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 16px; margin: 12px 0; }
details.sec > summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 10px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary .sm { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 13px; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.sec > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: 6px; transition: transform .2s; flex: none; }
details.sec > summary:not(:has(.sm))::after { margin-left: auto; }
details.sec[open] > summary::after { transform: rotate(-135deg); }
details.sec[open] { padding-bottom: 12px; }
details.sec details.sec { background: rgba(255, 255, 255, .03); box-shadow: none; }

.results { list-style: none; margin: 6px 0 0; padding: 0; }
.results li { padding: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 13px; margin-top: 6px; cursor: pointer; font-weight: 600; }
.results li:hover { border-color: var(--gold); }

/* ---------- Accueil ---------- */
.hero { text-align: center; padding: 22px 4px 4px; }
.hero-art { width: 136px; height: 136px; margin: 0 auto; display: block; filter: drop-shadow(0 0 30px rgba(232, 181, 77, .35)); }
.hero h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.8px; margin: 14px 0 10px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 420px; font-size: 15.5px; }
.stepdots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.stepdots i { width: 22px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.stepdots i.on { background: var(--gold); }
.choice { display: grid; gap: 10px; }
.choice button {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 18px; padding: 16px;
}
.choice button:hover { border-color: var(--gold); }
.choice b { display: block; font-size: 17px; font-weight: 800; }
.choice small { color: var(--muted); font-size: 13.5px; }
.choice .bubble { width: 44px; height: 44px; border-radius: 14px; }
.features { display: grid; gap: 12px; margin: 4px 0 0; }
.features div { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: #D3DAE6; }

/* ---------- Semaine / Ramadan ---------- */
.week { list-style: none; margin: 0; padding: 0; }
.week li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.week li:first-child { border-top: 0; }
.week .wd { width: 48px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .05); display: grid; place-content: center; text-align: center; line-height: 1.1; flex: none; }
.week .wd b { font-size: 18px; display: block; }
.week .wd span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.week li.today .wd { background: var(--gold-soft); color: var(--gold); }
.week li.today .wd span { color: var(--gold); }
.week .wi { flex: 1; min-width: 0; }
.week .wi strong { display: block; font-size: 15px; }
.week .wi span { font-size: 13px; color: var(--muted); }
table.ram { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.ram th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 0 4px 8px; }
table.ram td { padding: 9px 4px; border-top: 1px solid var(--line); }
table.ram tr[data-act] { cursor: pointer; }
table.ram tr.today td { color: var(--gold); font-weight: 800; }
table.ram td:first-child { color: var(--muted); font-weight: 700; }
.countdown { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.countdown strong { font-size: 60px; font-weight: 800; letter-spacing: -2px; line-height: 1; background: linear-gradient(180deg, #fff, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown span { font-size: 16px; font-weight: 700; color: var(--muted); }

footer.legal { font-size: 12px; color: var(--faint); text-align: center; margin: 22px 6px 8px; line-height: 1.55; }
footer.legal a { color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  background: #18233B; border: 1px solid var(--gold); padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); max-width: calc(100% - 32px);
}
@media (prefers-reduced-motion: no-preference) {
  .card, .hero-card { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Pages de contenu (horaires du Ramadan, guides) ---------- */
body.page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
a.brand { color: inherit; text-decoration: none; }
a.city-chip { text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
main.doc { max-width: 720px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.crumbs a { color: var(--muted); }
.doc h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.12; letter-spacing: -.8px; margin: 4px 0 14px; text-wrap: balance; }
.doc h1 em { font-style: normal; background: linear-gradient(120deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.3px; margin: 34px 0 8px; text-wrap: balance; }
.doc h3 { font-size: 16px; margin: 0 0 6px; }
.doc p, .doc li { color: #C9D1E0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc .lead { font-size: 17.5px; line-height: 1.55; color: var(--text); }
.doc .muted { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 8px; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.5px; color: var(--gold2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table.tt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.tt th { text-align: left; color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 8px 9px; white-space: nowrap; }
table.tt tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
table.tt td { padding: 9px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
table.tt tbody th { border-top: 1px solid var(--line); }
table.tt td:first-child { color: var(--muted); font-weight: 700; }
table.tt td.k { color: var(--gold); font-weight: 800; }
table.tt tr.maybe td { color: var(--faint); }
table.tt.wrap td, table.tt.wrap th { white-space: normal; vertical-align: top; }
table.tt.wrap td:first-child { color: #C9D1E0; font-weight: 500; }
table.tt.slots td:first-child { color: var(--text); white-space: normal; }
.btn.cta { text-decoration: none; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chips a { text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 8px 0; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 11px; font-size: 22px; color: var(--gold); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 16px 14px; font-size: 15px; }
.menus { gap: 10px; }
.menus .card { margin: 0; }
footer.site { max-width: 720px; margin: 36px auto 0; padding: 18px 16px 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
footer.site a { color: var(--muted); padding: 6px 0; }
footer.legal .more { display: block; margin-bottom: 6px; }
.menus { grid-template-columns: 1fr; }
@media (min-width: 520px) { .menus { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) {
  table.tt { font-size: 13px; }
  table.tt th, table.tt td { padding-left: 5px; padding-right: 5px; }
  table.tt th { font-size: 10.5px; letter-spacing: .03em; }
}
