/* OCD Live — charte OCD : orange #F86000, encre #040C14, ardoise, Montserrat. Design sobre, à plat. */
:root {
  /* Orange ambré du logo, noir studio, blanc cassé, doré des LED de la carte d'Afrique */
  --orange: #D4700A; --orange-dark: #B85F06; --orange-text: #A35400; --orange-soft: #FFF5EA; --glow: #FFB347;
  --encre: #1A1A1A;
  --a50: #F9F9F9; --a100: #F1F1EF; --a200: #E4E4E1; --a300: #CFCFCB; --a400: #A3A39F; --a500: #6B6B67;
  --a700: #3A3A37; --a800: #262626; --a900: #1F1F1F; --a950: #141414;

  --bg: #fff; --bg-alt: var(--a50); --fg: var(--a800); --fg-strong: var(--encre); --muted: var(--a500);
  --card: #fff; --border: var(--a200); --soft: var(--a100);
  --primary: var(--orange); --primary-text: var(--orange-text); --primary-soft: var(--orange-soft);
  --success: #15803D; --success-soft: #E8F6EC; --danger: #B91C1C; --danger-soft: #FDECEC; --warn: #A16207; --warn-soft: #FEF9C3;
  --radius: 8px;
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--fg-strong); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }

/* ------------------------------------------------ Logo officiel (version claire / sombre) */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.logo .on-dark { display: none; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #E11D48; display: inline-block; }

/* ------------------------------------------------ Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link { text-decoration: none; font-weight: 600; font-size: .92rem; padding: .5em .8em; color: var(--fg); }
.nav a.link:hover { color: var(--primary-text); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--a400); }
@media (max-width: 640px) { .nav a.link.hide-sm { display: none; } .logo img { height: 28px; } }

/* ------------------------------------------------ Boutons */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--h); padding: 0 1.3em; border-radius: var(--radius); border: 1px solid transparent; font: 700 .94rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--encre); color: #fff; }
.btn-dark:hover { background: var(--a800); }

.btn-ghost { background: transparent; border-color: var(--a300); color: var(--fg-strong); }
.btn-ghost:hover { border-color: var(--fg-strong); }
.btn-sm { --h: 38px; padding: 0 1em; font-size: .88rem; }
.btn-lg { --h: 52px; padding: 0 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ------------------------------------------------ Accueil : le mur du studio */
.hero { position: relative; overflow: hidden; background: var(--a50); border-bottom: 1px solid var(--border); padding-block: 56px 64px; }
.hero-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; text-transform: none; margin-bottom: .4em; }
.hero h1 span { color: var(--primary); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 32em; margin-bottom: 0; }
.start { display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-strong); margin-bottom: 18px; }
.start .dot { background: #E11D48; }
.studio-wall { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.studio-wall svg { display: block; width: 100%; height: auto; overflow: visible; }
.studio-wall .africa { fill: #fff; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgb(255 179 71 / .9)) drop-shadow(0 0 7px rgb(255 179 71 / .45)); }
.studio-wall figcaption { text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 18px; }

@media (max-width: 860px) { .hero-top { grid-template-columns: 1fr; } .studio-wall { max-width: 150px; order: -1; justify-self: start; } .studio-wall figcaption { display: none; } .hero { padding-block: 36px 48px; } }

.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
@media (max-width: 700px) { .formats { grid-template-columns: 1fr; } }
.format-card { display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--fg); background: var(--card); border-top: 4px solid var(--primary); transition: border-color .15s, background .15s; }
.format-card:hover { background: var(--bg-alt); }
.format-card .kicker { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: .5em; }
.format-card h3 { font-size: 1.35rem; margin: .4em 0 .35em; }
.format-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.format-card .go { font-weight: 700; font-size: .95rem; color: var(--primary-text); display: inline-flex; align-items: center; gap: .4em; }

.section { padding-block: 80px; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .section { padding-block: 56px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { border-top: 2px solid var(--fg-strong); padding-top: 16px; }
.steps li::before { counter-increment: s; content: counter(s); display: block; font-size: .9rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.steps h3 { font-size: 1.05rem; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.pkg-group { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .packages { grid-template-columns: 1fr; } }
.pkg { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.pkg.popular { border-color: var(--primary); box-shadow: inset 0 3px 0 var(--primary); }
.pkg .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pkg h3 { font-size: 1.2rem; margin: 0; }
.pkg .tag { font-size: .75rem; font-weight: 700; color: var(--primary-text); white-space: nowrap; }
.pkg .price { font-size: 1.8rem; font-weight: 800; color: var(--fg-strong); margin: 12px 0 2px; line-height: 1.1; }
.pkg .price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pkg .meta { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.pkg ul { list-style: none; padding: 16px 0 0; margin: 0 0 20px; display: grid; gap: .45em; flex: 1; border-top: 1px solid var(--border); }
.pkg li { display: flex; gap: .55em; font-size: .92rem; }
.pkg li .i { color: var(--primary); margin-top: .2em; width: 1em; height: 1em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.split > div > p { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 26px 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.timeline h3 { font-size: 1rem; margin-bottom: 1em; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--primary); }
.timeline b { color: var(--fg-strong); display: block; font-size: .95rem; }
.timeline span { color: var(--muted); font-size: .9rem; }

.quote { border-left: 4px solid var(--primary); padding: 4px 0 4px 28px; max-width: 820px; }
.quote p { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700; line-height: 1.4; color: var(--fg-strong); margin: 0 0 .6em; }
.quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }

.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 700; color: var(--fg-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 680px; }

.cta { position: relative; overflow: hidden; background: var(--encre); color: #fff; padding-block: 64px; }
.cta .africa-mark { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 165px; opacity: .9; pointer-events: none; }
.cta .africa-mark path { fill: none; stroke: var(--glow); stroke-width: .5; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgb(212 112 10 / .6)); }
.cta .wrap { position: relative; }
@media (max-width: 760px) { .cta .africa-mark { width: 160px; right: -30px; opacity: .35; } }
.community { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; color: var(--fg-strong); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .2em; }
.cta p { margin: 0; color: var(--a300); }

/* ------------------------------------------------ Footer */
.footer { border-top: 1px solid var(--border); padding-block: 44px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .85rem; color: var(--fg-strong); margin-bottom: .8em; }
.footer a { text-decoration: none; display: block; padding: .15em 0; }
.footer a:hover { color: var(--primary-text); }
.footer .footer-copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .82rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }

/* ================================================= Réservation */
body.page-book { background: var(--bg-alt); }
.book-head { padding-block: 32px 4px; }
.book-head h1 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 800; margin-bottom: .2em; }
.progress { display: flex; gap: 4px; margin: 18px 0 6px; }
.progress span { flex: 1; height: 4px; background: var(--border); }
.progress span.is-done, .progress span.is-cur { background: var(--primary); }
.progress-label { font-size: .85rem; color: var(--muted); font-weight: 600; }

.book { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; padding-bottom: 120px; margin-top: 18px; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } .summary { display: none; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
@media (max-width: 600px) { .panel { padding: 22px 16px; } }
.panel h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: .25em; }
.panel > p.muted { margin-bottom: 22px; }

.choices { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.choices.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .choices.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .choices, .choices.three { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px; border-radius: var(--radius); border: 1px solid var(--a300); background: var(--card); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }

.choice:hover:not([disabled]) { border-color: var(--fg-strong); }
.choice[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice[aria-pressed="true"]::after { content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.choice[disabled] { opacity: .45; cursor: not-allowed; }
.choice .ico { color: var(--primary); font-size: 1.4rem; margin-bottom: 4px; }
.choice strong { color: var(--fg-strong); font-size: 1.02rem; }
.choice .small { font-size: .87rem; color: var(--muted); }
.choice .price { font-weight: 800; font-size: 1.15rem; color: var(--fg-strong); }
.choice .flag { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--primary-text); }
.choice .why { font-size: .78rem; color: var(--danger); font-weight: 600; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 1.1rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.day { height: 62px; border-radius: 6px; border: 1px solid var(--border); background: var(--card); font: 700 1rem var(--font); color: var(--fg-strong); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; }
.day small { font-size: .64rem; font-weight: 600; color: var(--success); }
.day:hover:not([disabled]) { border-color: var(--fg-strong); }
.day[disabled] { background: transparent; border-color: transparent; color: var(--a400); cursor: default; font-weight: 500; }
.day.full small { color: var(--danger); }
.day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.day[aria-pressed="true"] small { color: #fff; }
.day.empty { visibility: hidden; }
@media (max-width: 480px) { .day { height: 46px; font-size: .9rem; } .day small { display: none; } }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 12px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { min-height: 48px; border-radius: 6px; border: 1px solid var(--a300); background: var(--card); font: 700 .98rem var(--font); color: var(--fg-strong); cursor: pointer; }

.time:hover:not([disabled]) { border-color: var(--fg-strong); }
.time[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.time[disabled] { color: var(--a400); text-decoration: line-through; cursor: not-allowed; background: var(--soft); border-color: transparent; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 800; color: var(--fg-strong); font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; width: 100%; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .5em; }
legend .i { color: var(--primary); }
label.f { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--fg-strong); }
label.f .opt { color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--a300); background: var(--card); color: var(--fg-strong); font: 500 1rem var(--font); }

textarea.input { min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(212 112 10 / .2); }
.input.err { border-color: var(--danger); }
.err-msg { color: var(--danger); font-size: .8rem; font-weight: 600; }
.err-msg:empty { display: none; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 500; }
.toggle { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--a300); cursor: pointer; }
.toggle:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.toggle input { width: 20px; height: 20px; accent-color: var(--orange); margin-top: 2px; flex: none; }
.toggle strong { color: var(--fg-strong); display: block; }
.toggle span { font-size: .88rem; color: var(--muted); }

.pay-box { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); font-size: .93rem; }
.pay-box b { color: var(--fg-strong); }
.total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border); margin-top: 18px; }
.total-line strong { font-size: 1.5rem; color: var(--fg-strong); font-weight: 800; }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.alert { padding: 12px 14px; border-radius: 6px; font-size: .92rem; font-weight: 600; margin-bottom: 16px; }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--primary-soft); color: var(--primary-text); }

.summary { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.summary h3 { font-size: .95rem; margin-bottom: 14px; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; color: var(--fg-strong); font-size: .95rem; }
.summary dd.empty { color: var(--a400); font-weight: 500; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 16px; }
.summary .total b { font-size: 1.3rem; color: var(--fg-strong); }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: none; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-bar .lbl { font-size: .75rem; color: var(--muted); display: block; }
.mobile-bar b { color: var(--fg-strong); font-size: 1.05rem; }
@media (max-width: 960px) { .mobile-bar { display: flex; } }

.done { text-align: center; padding-block: 16px; }
.done .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-size: 1.8rem; }
.code { display: inline-block; font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; padding: .35em .8em; border-radius: 6px; background: var(--soft); color: var(--fg-strong); margin: .2em 0 1em; }
.done .recap { text-align: left; max-width: 440px; margin: 0 auto 24px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 8px; font-size: .95rem; }
.done .recap div { display: flex; justify-content: space-between; gap: 16px; }
.done .recap span { color: var(--muted); }
.done .recap b { color: var(--fg-strong); text-align: right; }
.btn-wa { background: #16A34A; color: #fff; }
.btn-wa:hover { background: #15803D; }

/* ================================================= Admin */
.admin-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 32px 0 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.kpi span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 1.6rem; color: var(--fg-strong); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters .input { width: auto; min-height: 40px; padding: 8px 12px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .75rem; color: var(--muted); background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--soft); }
td b { color: var(--fg-strong); }
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 4px; white-space: nowrap; }
.st-en_attente { background: var(--warn-soft); color: var(--warn); }
.st-confirme { background: var(--success-soft); color: var(--success); }
.st-termine { background: var(--soft); color: var(--muted); }
.st-annule { background: var(--danger-soft); color: var(--danger); }
dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; width: min(640px, calc(100% - 32px)); background: var(--card); color: var(--fg); }
dialog::backdrop { background: rgb(26 26 26 / .55); }
.dlg-body { padding: 26px; max-height: 80vh; overflow-y: auto; }
.dlg-body dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .92rem; margin: 0 0 20px; }
.dlg-body dt { color: var(--muted); }
.dlg-body dd { margin: 0; color: var(--fg-strong); font-weight: 600; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 520px) { .dlg-body dl { grid-template-columns: 1fr; gap: 2px; } .dlg-body dd { margin-bottom: 8px; } }
.login { max-width: 400px; margin: 80px auto; }

/* Téléphone : indicatif du pays + numéro local */
.phone-group { display: flex; gap: 8px; }
.phone-group select { flex: 0 0 104px; min-width: 0; padding-right: 6px; text-overflow: ellipsis; }
.phone-group input { flex: 1; min-width: 0; }
select.input { height: 46px; min-height: 46px; padding-block: 0; }

/* Créneaux fixes de 1 h 30, sélection de plusieurs créneaux successifs */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; min-height: 64px; border-radius: 6px; border: 1px solid var(--a300); background: var(--card); color: var(--fg-strong); font: inherit; text-align: left; cursor: pointer; }

.slot b { font-size: .98rem; }
.slot small { font-size: .78rem; font-weight: 600; color: var(--success); }
.slot:hover:not([disabled]) { border-color: var(--fg-strong); }
.slot.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot.sel small { color: rgb(255 255 255 / .85); }
.slot.addable { border-style: dashed; border-color: var(--primary); }
.slot.addable small { color: var(--primary-text); }
.slot[disabled] { background: var(--soft); border-color: transparent; color: var(--a400); cursor: not-allowed; }
.slot[disabled] b { text-decoration: line-through; }
.slot[disabled] small { color: var(--a400); }
.slot-info { margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--soft); font-size: .9rem; color: var(--muted); }
.slot-info b { color: var(--fg-strong); }

/* Paiement : groupes Togo / Afrique / International */
.pay-group { margin-bottom: 22px; }
.pay-group h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; font-size: .95rem; margin: 0 0 10px; }
.pay-group h3 .i { color: var(--primary); }
.pay-tag { font-size: .72rem; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); padding: .2em .6em; border-radius: 4px; }
.pay-box { line-height: 1.7; }
.choice.strategic:not([disabled]) { border-color: var(--primary); border-style: dashed; }
.choice.strategic[aria-pressed="true"] { border-style: solid; }
.lang-btn { width: auto; padding: 0 10px; font: 700 .8rem var(--font); letter-spacing: .04em; }

/* Packs : étape « Placez vos lives » */
.lv-head { margin: 4px 0 10px; color: var(--fg-strong); }
.lv-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.lv-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); font-size: .95rem; }
.lv-list li span { display: flex; align-items: center; gap: 10px; color: var(--fg-strong); }
.lv-list li span .i { color: var(--primary); }
.lv-list li.muted { color: var(--muted); }
.lv-all li { padding: 8px 14px; }
.lv-all li.ok span .i { color: var(--success); }
.lv-all li.ko { background: var(--danger-soft); border-color: transparent; }
.lv-all li.ko, .lv-all li.ko span, .lv-all li.ko span .i { color: var(--danger); }
.lv-all li.ko span .i { transform: rotate(45deg); }
.lv-picker h3, .lv-plan h3 { font-size: 1rem; margin: 6px 0 12px; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* Paiement : rappel, liste des moyens, étapes */
.pay-recap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; margin: 14px 0 22px; border-radius: var(--radius); background: var(--soft); }
.pay-recap b { display: block; color: var(--fg-strong); }
.pay-recap span { font-size: .88rem; color: var(--muted); }
.pay-recap-r { text-align: right; flex: none; }
.pay-recap-r strong { display: block; font-size: 1.25rem; color: var(--fg-strong); }
.link-btn { background: none; border: 0; padding: 0; font: 600 .85rem var(--font); color: var(--primary-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pay-q { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-size: 1.05rem; margin: 0 0 12px; }
.pm-list { display: grid; gap: 8px; }
.pm { border: 1px solid var(--a300); border-radius: var(--radius); background: var(--card); transition: border-color .15s, box-shadow .15s; }

.pm.open { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.pm-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pm-badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); font: 800 .82rem var(--font); letter-spacing: -.02em; }
.pm.open .pm-badge { background: var(--primary); color: #fff; }
.pm-txt { flex: 1; min-width: 0; }
.pm-txt strong { display: block; color: var(--fg-strong); font-size: 1rem; }
.pm-txt small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.pm-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--a300); }
.pm.open .pm-radio { border: 7px solid var(--primary); }
.pm-body { padding: 0 16px 16px 72px; }
@media (max-width: 560px) { .pm-body { padding-left: 16px; } }
.pm-steps { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 8px; font-size: .95rem; }
.pm-steps li::marker { color: var(--primary); font-weight: 800; }
.pm-steps b { color: var(--fg-strong); }
.copy { display: inline-flex; align-items: center; gap: .35em; margin-left: .4em; padding: .2em .65em; border-radius: 999px; border: 1px solid var(--a300); background: var(--card); font: 600 .78rem var(--font); color: var(--fg); cursor: pointer; vertical-align: 1px; }
.copy:hover { border-color: var(--fg-strong); }
.copy .i { width: 1em; height: 1em; }
.pay-more { margin: 18px 0 0; border-top: 1px solid var(--border); padding-top: 14px; }
.pay-more summary { cursor: pointer; font-weight: 700; color: var(--primary-text); display: flex; align-items: center; gap: .5em; list-style: none; }
.pay-more summary::-webkit-details-marker { display: none; }
.pay-more summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--muted); }
.pay-more[open] summary::after { content: "–"; }
.pay-more .pay-group { margin: 16px 0 0; }
.pay-more h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.pay-trust { list-style: none; padding: 0; margin: 22px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--fg); }
.pay-trust li { display: flex; align-items: center; gap: .45em; }
.pay-trust .i { color: var(--success); }
@media (max-width: 960px) { .mobile-bar .btn { white-space: normal; text-align: center; line-height: 1.2; max-width: 62%; } }
.nav-row .btn { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 560px) { .nav-row .btn-primary { flex: 1; } .nav-row .btn-lg { --h: 50px; padding: 0 1em; font-size: .95rem; } }
.pay-recap > div:first-child { min-width: 0; }
.pm-body .form-grid { grid-template-columns: 1fr; max-width: 460px; gap: 12px; }

/* ================================================= Accueil — mobile */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.swipe-hint { display: none; }
.m-cta { display: none; }

@media (max-width: 700px) {
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 24px; }

  /* Haut de page : la carte d'Afrique passe en fond, derrière le titre */
  .hero { padding-block: 28px 36px; }
  .hero-top { position: relative; display: block; }
  .studio-wall { position: absolute; top: -6px; right: -34px; width: 190px; max-width: none; z-index: 0; opacity: .55; pointer-events: none; }
  .hero-top > div:first-child { position: relative; z-index: 1; }
  .hero h1 { font-size: 2.05rem; margin-top: 4px; }
  .hero .lead { font-size: 1rem; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .start { margin-bottom: 12px; }

  /* Les 2 formats : cartes compactes */
  .formats { margin-top: 26px; gap: 10px; }
  .format-card { padding: 16px 16px 14px; border-top-width: 3px; }
  .format-card h3 { font-size: 1.12rem; margin: .25em 0 .25em; }
  .format-card p { font-size: .9rem; margin-bottom: .5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Étapes : frise verticale numérotée */
  .steps { gap: 0; }
  .steps li { position: relative; border-top: 0; border-left: 2px solid var(--border); padding: 0 0 20px 26px; margin-left: 12px; }
  .steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .steps li::before { position: absolute; left: -13px; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .78rem; margin: 0; }
  .steps h3 { font-size: 1rem; }

  /* Packages : carrousel horizontal */
  .swipe-hint { display: block; font-size: .82rem; color: var(--muted); margin: -8px 0 12px; }
  .packages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding: 14px 20px 6px; scrollbar-width: none; margin-bottom: 22px; }
  .packages::-webkit-scrollbar { display: none; }
  .pkg { flex: 0 0 82%; scroll-snap-align: start; padding: 20px; }
  .pkg .price { font-size: 1.6rem; }
  .pkg ul { padding-top: 12px; margin-bottom: 16px; }
  .pkg li { font-size: .88rem; }
  .pkg-group { margin-bottom: 4px; }

  /* À distance */
  .split h2 { font-size: 1.5rem; }
  .split .btn { width: 100%; }
  .timeline { padding: 20px; }

  /* Citation */
  .quote { padding-left: 18px; }
  .quote p { font-size: 1.12rem; line-height: 1.45; }

  /* FAQ */
  .faq summary { padding: 16px 0; font-size: .95rem; }

  /* Bandeau final */
  .cta { padding-block: 44px; }
  .cta .africa-mark { display: none; }
  .cta .btn { width: 100%; }

  /* Bouton « Réserver » fixe en bas */
  .m-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .m-cta[hidden] { display: none !important; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
.pkg ul { align-content: start; }
@media (max-width: 700px) {
  .packages { scroll-padding-inline: 20px; }
  .studio-wall { top: 34px; right: -40px; width: 200px; opacity: .45; }
  .pkg-group { margin-bottom: 2px; }
  .swipe-hint { margin: 0 0 4px; }
}
/* Mobile : la carte d'Afrique passe sous la phrase d'accroche et les boutons, jamais derrière le texte */
@media (max-width: 700px) {
  .hero-top { display: flex; flex-direction: column; }
  .studio-wall { position: static; order: 2; width: 210px; max-width: 60%; margin: 30px auto 0; opacity: 1; justify-self: auto; }
  .studio-wall figcaption { display: block; margin-top: 12px; font-size: .75rem; }
}

/* Le calendrier réserve sa hauteur (6 semaines) : la page ne se raccourcit pas pendant le chargement */
.cal-grid { min-height: 420px; align-content: start; }
@media (max-width: 480px) { .cal-grid { min-height: 324px; } }

/* La colonne principale ne peut pas être élargie par son contenu (sinon la page déborde sur mobile) */
.book { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 960px) { .book { grid-template-columns: minmax(0, 1fr); } }
.done .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 560px) {
  .done > div[style*="flex"] { flex-direction: column; }
  .done > div[style*="flex"] .btn { width: 100%; }
  .done .recap div { flex-wrap: wrap; }
  .code { font-size: 1.3rem; }
}
@media (max-width: 560px) { .done .btn-lg { --h: 50px; padding: 0 1em; font-size: .93rem; } }

/* Mobile : un seul bouton « Continuer », celui de la barre fixe en bas. « Retour » reste dans la page. */
@media (max-width: 960px) {
  .nav-row [data-next] { display: none; }
  .nav-row { justify-content: flex-start; }
  .nav-row:not(:has([data-back])) { display: none; }
}
/* Mobile : récapitulatif de la confirmation, libellé au-dessus de la valeur */
@media (max-width: 560px) {
  .done .recap div { display: block; }
  .done .recap span { display: block; font-size: .78rem; }
  .done .recap b { display: block; text-align: left; }
  .done .recap div + div { border-top: 1px solid var(--border); padding-top: 8px; }
}

/* Paiement en ligne : moyens acceptés, page de résultat */
.pm-channels { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.pm.off { opacity: .55; }
.pm.off .pm-head { cursor: not-allowed; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }
@media (max-width: 560px) { .done-actions { flex-direction: column; } .done-actions .btn { width: 100%; } }
.check.fail { background: var(--danger-soft); color: var(--danger); }
.check.fail .i { transform: rotate(45deg); }
.spinner { width: 54px; height: 54px; margin: 6px auto 18px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Étape Package : ce qui est inclus */
.pk-incl { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: .85rem; color: var(--fg); }
.pk-incl li { display: flex; gap: .45em; align-items: flex-start; }
.pk-incl .i { color: var(--primary); width: 1em; height: 1em; margin-top: .2em; flex: none; }

/* ================================================= Admin (version pro) */
body.page-admin { background: var(--bg-alt); }
.admin-header .logo { gap: 10px; }
.admin-tag { font: 700 .72rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--encre); padding: .3em .6em; border-radius: 4px; }
.admin-badge { display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); padding: .3em .7em; border-radius: 4px; }
.admin-top h1 { margin: 0; font-size: 1.7rem; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.kpi b.ok { color: var(--success); }
.kpi b.warn { color: var(--warn); }
.filters .input[type="search"] { flex: 1 1 260px; }
.admin-table tbody tr:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.admin-table tr.empty td { text-align: center; padding: 40px; color: var(--muted); cursor: default; }
.admin-legal { display: flex; align-items: center; gap: .5em; font-size: .78rem; color: var(--muted); margin: 14px 0 40px; }
.dlg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.dlg-top h2 { margin: 10px 0 2px; font-size: 1.35rem; }
.dlg-top p { margin: 0; }
.dlg-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.dlg-body dl { margin-bottom: 0; }
.history { margin: 0; white-space: pre-wrap; font: 500 .85rem var(--font); color: var(--fg); background: var(--soft); padding: 10px 12px; border-radius: 6px; }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.dlg-btns { display: flex; gap: 10px; }
.rot45 { transform: rotate(45deg); }
@media (max-width: 700px) {
  .admin-top { align-items: flex-start; }
  .admin-actions .btn { flex: 1; }
  /* Tableau → cartes sur mobile */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  .admin-table tr { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 8px 14px; }
  .admin-table td { border: 0; padding: 6px 0; display: grid; grid-template-columns: 88px 1fr; gap: 8px; }
  .admin-table td::before { content: attr(data-label); font-size: .75rem; color: var(--muted); font-weight: 600; padding-top: 2px; }
  .admin-table tr.empty td { display: block; }
  .admin-table tr.empty td::before { content: none; }
  .dlg-actions, .dlg-btns { width: 100%; }
  .dlg-actions .btn, .dlg-btns .btn { flex: 1; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 700px) {
  .admin-header .logo img { height: 26px; width: auto; }
  .admin-tag { font-size: .62rem; }
  .kpi b { font-size: 1.3rem; }
}
