/* =====================================================================
   FAJR OMRA · Espace client (maquette)
   Réutilise le design system du site vitrine : noir + or sur crème.
   Mobile-first. 100% statique (fausses données).
   ===================================================================== */

:root {
    --cream:     #F6EFE3;
    --cream-2:   #FBF7EE;
    --paper:     #FFFFFF;
    --sand:      #EFE5D3;
    --ink:       #1A130D;
    --ink-soft:  #5A4F44;
    --muted:     #8C8175;
    --gold:      #B0802B;
    --gold-2:    #C99A3E;
    --gold-deep: #946A20;
    --rose:      #D49A7E;
    --green:     #2fa84f;
    --red:       #c0392b;
    --line:      rgba(26, 19, 13, 0.10);
    --line-soft: rgba(26, 19, 13, 0.06);
    --glow:      rgba(201, 154, 62, 0.40);
    --gold-grad: linear-gradient(100deg, #C99A3E 0%, #B0802B 55%, #D49A7E 100%);
    --shadow-sm: 0 10px 28px -16px rgba(60, 40, 12, 0.30);
    --shadow:    0 22px 50px -26px rgba(60, 40, 12, 0.38);
    --r:         18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--cream);
    color: var(--ink-soft);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 200px 200px;
}

h1, h2, h3, h4, .display { font-family: 'Montserrat', system-ui, sans-serif; color: var(--ink); }
.gold { color: var(--gold); }
.grad-text {
    background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hl {
    color: var(--ink);
    background-image: linear-gradient(104deg, rgba(233,163,104,.0) 0.2%, rgba(233,163,104,.55) 1.8%, rgba(242,197,124,.62) 96%, rgba(242,197,124,0) 99%);
    background-repeat: no-repeat; background-position: 0 82%; background-size: 100% 40%;
    padding: 0 .06em; margin: 0 -.02em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ============ SIDEBAR (gauche) ============ */
.sidebar {
    display: none; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; width: 256px; z-index: 950;
    background: var(--cream-2); border-right: 1px solid var(--line);
    padding: 22px 16px; transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 20px 0 60px -30px rgba(60,40,12,.3);
}
body.authed .sidebar { display: flex; }
.sidebar.open { transform: translateX(0); }
.side-logo { display: flex; align-items: center; justify-content: flex-start; text-decoration: none; cursor: pointer; padding: 6px 12px 22px; }
.side-name { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 700; color: var(--ink); letter-spacing: .03em; line-height: 1; }
.side-name b { color: var(--gold); }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-soft); font-size: .94rem; font-weight: 600; cursor: pointer; transition: all .2s; position: relative; }
.side-nav a .ic { width: 20px; text-align: center; font-size: 1.05rem; }
.side-nav a:hover { background: var(--sand); color: var(--ink); }
.side-nav a.active { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-sm); }
.side-nav a.active .ic { filter: none; }
.tagmini { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sand); color: var(--gold-deep); padding: 2px 6px; border-radius: 6px; margin-left: auto; }
.side-nav a.active .tagmini { background: rgba(255,255,255,.18); color: var(--gold-2); }
.side-sep { height: 1px; background: var(--line); margin: 10px 12px; }
.side-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-logout { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--red); font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s; }
.side-logout:hover { background: #fdf3f2; }
.side-cgv { display: block; padding: 10px 14px 2px; font-size: .76rem; color: var(--muted); text-decoration: none; cursor: pointer; }
.side-cgv:hover { color: var(--gold-deep); }

.scrim { position: fixed; inset: 0; background: rgba(26,19,13,.45); backdrop-filter: blur(2px); z-index: 900; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ============ TOPBAR (mobile uniquement) ============ */
.topbar { display: none; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(246,239,227,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 800; }
body.authed .topbar { display: flex; }
.top-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.top-logo img { height: 50px; width: auto; }
.top-logo .side-name { font-size: 1.3rem; }
.burger { display: flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; border-radius: 12px; transition: background .2s; }
.burger:hover { background: var(--sand); }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ LAYOUT ============ */
.main-col { min-height: 100vh; display: flex; flex-direction: column; }
.app-footer { margin-top: auto; }
.page { max-width: 620px; margin: 0 auto; padding: 26px 20px 80px; width: 100%; }
.page-wide { max-width: 1040px; }

/* Desktop : sidebar fixe, pas de topbar */
@media (min-width: 960px) {
    body.authed .sidebar { transform: none; box-shadow: none; }
    body.authed .topbar { display: none; }
    body.authed .main-col { margin-left: 256px; }
    body.authed .scrim { display: none !important; }
    .page { padding: 40px 36px 90px; }
    .page-narrow { max-width: 640px; }
}
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
h1.title { font-size: 1.7rem; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.subtitle { font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }

/* ============ CARD ============ */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-pad-lg { padding: 30px 26px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Inter', sans-serif; font-size: .92rem; font-weight: 600; letter-spacing: .01em;
    color: var(--cream); background: var(--ink); border: 1px solid var(--ink);
    padding: 14px 22px; border-radius: 100px; cursor: pointer; text-decoration: none;
    transition: all .25s ease; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { background: #2a1f15; transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(26,19,13,.55); }
.btn.gold { background: var(--gold-grad); color: #fff; border-color: transparent; box-shadow: 0 16px 34px -14px var(--glow); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.green:hover { background: #279843; }
.btn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--cream-2); border-color: var(--gold); }
.btn.danger-ghost { background: var(--paper); color: var(--red); border: 1px solid rgba(192,57,43,.3); }
.btn.danger-ghost:hover { background: #fdf3f2; }
.btn.full { width: 100%; }
.btn.sm { padding: 10px 16px; font-size: .82rem; }
.btn:disabled, .btn.disabled { background: var(--sand); border-color: var(--sand); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; opacity: .9; }
.btn-link { background: none; border: none; color: var(--gold-deep); font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

.btn-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* ============ FORM FIELDS ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field label .opt { color: var(--gold-deep); text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; font-family: 'Inter', sans-serif; font-size: .95rem; color: var(--ink);
    background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(90,79,68,.42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--red); font-size: .82rem; margin: -6px 0 12px; display: none; }
.form-error.show { display: block; }
/* champ obligatoire manquant */
.field input.input-missing, .field select.input-missing, .field textarea.input-missing, .upload.input-missing,
.phone-wrap input.input-missing { border-color: var(--red) !important; background: #fdf3f2; }
.field-miss { color: var(--red); font-size: .76rem; font-weight: 600; margin-top: 6px; }

/* Phone with country select */
.phone-wrap { display: grid; grid-template-columns: 116px 1fr; gap: 10px; }

/* File upload */
.upload { border: 2px dashed var(--line); border-radius: 14px; padding: 24px 18px; text-align: center; cursor: pointer; background: var(--cream-2); transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--gold); background: var(--paper); }
.upload .ic { font-size: 1.7rem; margin-bottom: 8px; }
.upload .t { font-weight: 600; color: var(--ink); font-size: .9rem; }
.upload .s { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.upload.has-file { border-style: solid; border-color: var(--green); background: #f3faf5; }

/* ============ OTP CODE ============ */
.otp { display: flex; gap: 10px; justify-content: center; margin: 8px 0 4px; }
.otp input { width: 48px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 700; font-family: 'Montserrat', sans-serif; color: var(--ink); background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; }
.otp input:focus { outline: none; border-color: var(--gold); background: var(--paper); }

/* ============ BADGES / STATUS ============ */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 100px; font-size: .76rem; font-weight: 600; font-family: 'Inter', sans-serif; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.st-attente   { background: #fff7e6; color: #9a6b00; } .badge.st-attente .dot { background: #d99a17; }
.badge.st-valide    { background: #eefaf0; color: #1d7a36; } .badge.st-valide .dot { background: var(--green); }
.badge.st-refuse    { background: #fdf0ef; color: #b23022; } .badge.st-refuse .dot { background: var(--red); }
.badge.st-remb-att  { background: #fff3ec; color: #b5621f; } .badge.st-remb-att .dot { background: var(--rose); }
.badge.st-remb-cours{ background: #eef4fb; color: #2563a6; } .badge.st-remb-cours .dot { background: #3b82c4; }

/* ============ BANNERS ============ */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: 14px; font-size: .88rem; line-height: 1.5; margin-bottom: 18px; }
.banner .ic { flex-shrink: 0; font-size: 1.1rem; }
.banner.warn { background: #fdf0ef; border: 1px solid rgba(192,57,43,.22); color: #a3271b; }
.banner.info { background: #eef4fb; border: 1px solid rgba(59,130,196,.2); color: #2563a6; }
.banner.gold { background: #fbf3e2; border: 1px solid rgba(176,128,43,.22); color: var(--gold-deep); }
.banner.ok   { background: #eefaf0; border: 1px solid rgba(47,168,79,.22); color: #1d7a36; }

/* ============ DASHBOARD ============ */
.dash-greet { font-size: 1.55rem; font-weight: 800; margin-bottom: 4px; }
.info-grid { display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 16px; background: var(--paper); }
.info-row .k { font-size: .8rem; color: var(--muted); font-weight: 500; }
.info-row .v { font-size: .92rem; color: var(--ink); font-weight: 600; text-align: right; }
.price-line { display: flex; justify-content: space-between; font-size: .88rem; padding: 5px 0; color: var(--ink-soft); }
.price-line.total { font-size: 1.05rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.price-line .pos { color: var(--gold-deep); }
.price-line .neg { color: var(--green); }

/* ============ STEPPER / PROGRESS ============ */
.step-head { position: sticky; top: 64px; z-index: 100; background: var(--cream); padding: 14px 0 12px; margin-bottom: 6px; }
.step-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.step-meta .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.step-meta .cnt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.progress-track { height: 6px; background: var(--sand); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold-grad); border-radius: 100px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.step-title { font-size: 1.3rem; font-weight: 800; margin: 18px 0 6px; }
.step-desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }

/* ============ COUNTER (+/-) ============ */
.counter-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.counter-row:last-child { border-bottom: none; }
.counter-row .lbl { font-size: .92rem; font-weight: 600; color: var(--ink); }
.counter-row .sub { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.counter { display: flex; align-items: center; gap: 14px; }
.counter button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.counter button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-deep); }
.counter button:disabled { opacity: .35; cursor: not-allowed; }
.counter .val { min-width: 26px; text-align: center; font-size: 1.1rem; font-weight: 800; color: var(--ink); font-family: 'Montserrat', sans-serif; }

/* Room / option cards */
.opt-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--paper); transition: border-color .2s; }
.opt-card.active { border-color: var(--gold); background: var(--cream-2); }
.opt-card .name { font-size: .95rem; font-weight: 700; color: var(--ink); }
.opt-card .supp { font-size: .8rem; color: var(--gold-deep); font-weight: 600; margin-top: 3px; }
.opt-card .supp.inc { color: var(--green); }
.opt-card .opt-note { font-size: .78rem; color: var(--ink-soft); line-height: 1.5; margin-top: 8px; }

/* Radio choices */
.choice { display: block; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 11px; cursor: pointer; transition: all .2s; background: var(--paper); }
.choice:hover { border-color: var(--gold); }
.choice.active { border-color: var(--gold); background: var(--cream-2); box-shadow: 0 0 0 3px rgba(201,154,62,.12); }
.choice input { display: none; }
.choice .ch-t { font-size: .95rem; font-weight: 600; color: var(--ink); }
.choice .ch-s { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* Passport block */
.pp-block { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: var(--cream-2); position: relative; }
.pp-block .pp-head { font-size: .8rem; font-weight: 700; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.pp-remove { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: .8rem; }
.pp-remove:hover { color: var(--red); }

/* Recap (price box, sticky bottom-ish) */
.recap { background: var(--ink); color: var(--cream); border-radius: 16px; padding: 18px 20px; margin-top: 20px; }
.recap h4 { color: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; opacity: .8; }
.recap .price-line { color: rgba(246,239,227,.78); border-color: rgba(246,239,227,.15); }
.recap .price-line.total { color: #fff; border-color: rgba(246,239,227,.25); }
.recap .price-line .pos { color: var(--gold-2); }
.recap .price-line .neg { color: #7fd99a; }
.recap .legal { font-size: .72rem; color: rgba(246,239,227,.5); margin-top: 10px; }

/* ============ CONFIRMATION ============ */
.confirm-hero { text-align: center; padding: 10px 0 8px; }
.confirm-hero .big { font-size: 3rem; }
.confirm-hero h1 { font-size: 1.6rem; font-weight: 800; margin: 10px 0 6px; }
.recap-list { margin: 6px 0; }
.recap-list .ri { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.recap-list .ri:last-child { border-bottom: none; }
.recap-list .ri .k { color: var(--muted); }
.recap-list .ri .v { color: var(--ink); font-weight: 600; text-align: right; }
.check-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .92rem; color: var(--ink); font-weight: 600; }
.check-line .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }

/* ============ TUTORIAL ============ */
.tuto-wrap { text-align: center; padding: 20px 0; }
.video-box { aspect-ratio: 16/9; border-radius: 16px; background: linear-gradient(135deg, #1a130d, #3a2a18); display: grid; place-items: center; margin: 22px 0; cursor: pointer; position: relative; overflow: hidden; border: 1px solid var(--line); }
.video-box .play { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s; }
.video-box:hover .play { transform: scale(1.08); }
.video-box .play::after { content: ''; border-left: 18px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video-box .cap { position: absolute; bottom: 14px; color: rgba(255,255,255,.8); font-size: .82rem; }

/* ============ FAQ ============ */
.faq-search { position: relative; margin-bottom: 22px; }
.faq-search input { width: 100%; padding: 14px 16px 14px 44px; border-radius: 100px; border: 1px solid var(--line); background: var(--paper); font-size: .95rem; color: var(--ink); }
.faq-search input:focus { outline: none; border-color: var(--gold); }
.faq-search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin: 26px 0 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); font-family: 'Inter', sans-serif; font-size: .94rem; font-weight: 600; }
.faq-q .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--gold); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .plus::before { width: 13px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 13px; transition: transform .3s, opacity .3s; }
.faq-item.open .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { font-size: .88rem; line-height: 1.7; color: var(--ink-soft); padding-bottom: 18px; }
.faq-item.open .faq-a { max-height: 600px; }

/* ============ CHATBOT ============ */
.chat-box { display: flex; flex-direction: column; height: 60vh; min-height: 380px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.bubble.bot { align-self: flex-start; background: var(--cream-2); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 100px; padding: 12px 16px; font-size: .9rem; }
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-input button { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--gold-grad); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ============ ADMIN ============ */
.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-pill { padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line); background: var(--paper); font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.filter-pill:hover { border-color: var(--gold); }
.filter-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: .86rem; }
.admin-table th { text-align: left; padding: 13px 14px; background: var(--cream-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.admin-table td { padding: 13px 14px; border-top: 1px solid var(--line-soft); color: var(--ink); vertical-align: middle; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: var(--cream-2); }
.admin-cards { display: grid; gap: 12px; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .2s; }
.admin-card:hover { border-color: var(--gold); }
.admin-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.admin-card .nm { font-weight: 700; color: var(--ink); font-size: .98rem; }
.admin-card .meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.admin-card .meta .flag { background: #fff7e6; color: #9a6b00; font-weight: 700; padding: 2px 9px; border-radius: 100px; font-size: .72rem; }
.admin-card .meta .flag.book { background: #eef4fb; color: #2563a6; }

/* Cartes statistiques admin */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.stat-card.warn { border-color: rgba(217,154,23,.4); background: #fffdf7; }
.stat-card .s-ic { font-size: 1.2rem; margin-bottom: 6px; }
.stat-card .s-val { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1; }
.stat-card .s-lbl { font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .stat-grid { grid-template-columns: repeat(6, 1fr); } }

/* Modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(26,19,13,.5); backdrop-filter: blur(3px); z-index: 1000; display: none; align-items: flex-end; justify-content: center; }
.modal-scrim.open { display: flex; }
.modal { background: var(--cream-2); width: 100%; max-width: 540px; border-radius: 22px 22px 0 0; padding: 26px 22px 30px; max-height: 90vh; overflow-y: auto; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(40px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.modal h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.modal-grab { width: 44px; height: 4px; background: var(--line); border-radius: 100px; margin: 0 auto 18px; }

/* ============ FOOTER ============ */
.app-footer { text-align: center; padding: 26px 20px; border-top: 1px solid var(--line); margin-top: 20px; }
.app-footer a { color: var(--gold-deep); text-decoration: none; font-size: .84rem; font-weight: 600; }
.app-footer a:hover { text-decoration: underline; }
.app-footer .copy { font-size: .72rem; color: var(--muted); margin-top: 8px; }

/* ============ MISC ============ */
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); font-size: .78rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.success-check { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 14px 32px -8px var(--glow); }
.success-check svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 3; fill: none; }
.readonly-note { font-size: .8rem; color: var(--muted); font-style: italic; }
.demo-tag { position: fixed; bottom: 14px; left: 14px; z-index: 9000; background: var(--ink); color: var(--gold-2); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; opacity: .85; box-shadow: var(--shadow-sm); }

.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ ACCUEIL · sections en grille ============ */
.section-h { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-h:first-of-type { margin-top: 4px; }
.grid-2 { display: grid; gap: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h3 { font-size: 1.05rem; font-weight: 800; }
.card-cta { margin-top: 16px; }
/* tuile raccourci */
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); cursor: pointer; text-decoration: none; transition: all .2s; box-shadow: var(--shadow-sm); }
.tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.tile .t-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--cream-2); flex-shrink: 0; }
.tile .t-tx { display: flex; flex-direction: column; }
.tile .t-tx .t-t { display: block; font-size: .96rem; font-weight: 700; color: var(--ink); }
.tile .t-tx .t-s { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tile .t-arrow { margin-left: auto; color: var(--gold); font-size: 1.2rem; }

@media (min-width: 760px) {
    .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
    .grid-2 .span-2 { grid-column: 1 / -1; }
}

/* ============ FORMATION ============ */
.lesson { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-bottom: 12px; cursor: pointer; transition: all .2s; }
.lesson:hover { border-color: var(--gold); transform: translateY(-1px); }
.lesson .thumb { width: 88px; height: 60px; border-radius: 10px; background: linear-gradient(135deg,#1a130d,#3a2a18); flex-shrink: 0; display: grid; place-items: center; position: relative; overflow: hidden; }
.lesson .thumb .pl { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.lesson .thumb .pl::after { content: ''; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.lesson .l-tx { flex: 1; }
.lesson .l-tx .l-t { font-size: .94rem; font-weight: 700; color: var(--ink); }
.lesson .l-tx .l-s { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.lesson .l-dur { font-size: .72rem; color: var(--gold-deep); font-weight: 600; background: var(--cream-2); padding: 3px 8px; border-radius: 100px; }
.guide-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); margin-bottom: 10px; cursor: pointer; transition: all .2s; }
.guide-row:hover { border-color: var(--gold); }
.guide-row .g-ic { font-size: 1.3rem; }
.guide-row .g-tx { flex: 1; font-size: .92rem; font-weight: 600; color: var(--ink); }
.guide-row .g-dl { color: var(--gold-deep); font-size: .8rem; font-weight: 700; }

/* ============ CALENDRIER (vue semaine) ============ */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; color: var(--ink); cursor: pointer; line-height: 1; display: grid; place-items: center; transition: all .2s; }
.cal-nav button:hover { border-color: var(--gold); color: var(--gold-deep); }
.cal-range { font-weight: 700; color: var(--ink); font-size: .92rem; min-width: 190px; text-align: center; text-transform: capitalize; }
.cal-week { border: 1px solid var(--line); border-radius: 14px; overflow: hidden auto; max-height: 70vh; background: var(--paper); }
.cal-inner { min-width: 660px; }
.cal-head { display: grid; grid-template-columns: 54px repeat(7, 1fr); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--cream-2); z-index: 3; }
.cal-gutter-head { border-right: 1px solid var(--line-soft); }
.cal-dayhead { padding: 8px 4px; text-align: center; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; align-items: center; }
.cal-dayhead .dh-wd { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.cal-dayhead .dh-d { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--ink); width: 30px; height: 30px; display: grid; place-items: center; }
.cal-dayhead.me .dh-d { color: #fff; background: var(--gold-grad); border-radius: 50%; }
.cal-body { display: grid; grid-template-columns: 54px repeat(7, 1fr); }
.cal-gutter { display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); }
.cal-hr { position: relative; }
.cal-hr span { position: absolute; top: -7px; right: 6px; font-size: .62rem; color: var(--muted); background: var(--paper); padding: 0 2px; }
.cal-col { position: relative; border-left: 1px solid var(--line-soft); }
.cal-evt { position: absolute; left: 3px; right: 3px; min-height: 56px; border-radius: 9px; padding: 6px 8px; background: var(--ink); color: var(--cream); cursor: pointer; overflow: hidden; box-shadow: var(--shadow-sm); z-index: 1; transition: transform .15s; }
.cal-evt:hover { transform: scale(1.02); z-index: 2; }
.cal-evt.me { background: var(--gold-grad); }
.cal-evt.hot { box-shadow: 0 0 0 2px #b5621f inset; }
.cal-evt .ev-time { font-size: .68rem; opacity: .85; font-weight: 600; }
.cal-evt .ev-city { font-size: .82rem; font-weight: 800; line-height: 1.15; margin-top: 1px; }
.cal-evt .ev-sub { font-size: .66rem; opacity: .8; margin-top: 2px; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .78rem; color: var(--ink-soft); }
.cal-legend i.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: middle; }
.cal-legend i.lg.gold { background: var(--gold); }
.cal-legend i.lg.ink { background: var(--ink); }
.cal-legend i.lg.hot { background: var(--paper); box-shadow: 0 0 0 2px #b5621f inset; }

/* outils calendrier : date picker + vues */
.cal-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-jump { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; background: var(--paper); font-size: .85rem; color: var(--ink); cursor: pointer; }
.cal-jump input { border: none; background: none; font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--ink); cursor: pointer; }
.cal-jump input:focus { outline: none; }
.cal-views { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-views button { border: none; background: var(--paper); padding: 8px 14px; font-family: 'Inter', sans-serif; font-size: .84rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .2s; border-right: 1px solid var(--line); }
.cal-views button:last-child { border-right: none; }
.cal-views button:hover { background: var(--cream-2); }
.cal-views button.active { background: var(--ink); color: var(--cream); }

/* vue mois */
.cal-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-top: none; border-radius: 0 0 14px 14px; overflow: hidden; background: var(--paper); }
.cal-mwd { background: var(--cream-2); border-top: 1px solid var(--line); border-left: 1px solid var(--line-soft); padding: 8px 4px; text-align: center; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cal-mwd:first-child { border-left: none; }
.cal-cell { min-height: 92px; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); padding: 5px 5px 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: background .15s; }
.cal-cell:nth-child(7n+1) { border-left: none; }
.cal-cell:hover { background: var(--cream-2); }
.cal-cell.out { background: #faf8f3; }
.cal-cell.out .cnum { color: var(--muted); opacity: .6; }
.cal-cell .cnum { font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 700; color: var(--ink); width: 24px; height: 24px; display: grid; place-items: center; }
.cal-cell.me .cnum { background: var(--gold-grad); color: #fff; border-radius: 50%; }
.cal-chip2 { font-size: .66rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip2.me { background: var(--gold-grad); }
.cal-chip2.hot { box-shadow: 0 0 0 1.5px #b5621f inset; }
.cal-more { font-size: .64rem; color: var(--gold-deep); font-weight: 700; padding-left: 4px; }
@media (max-width: 620px) { .cal-cell { min-height: 70px; } .cal-chip2 { font-size: .58rem; padding: 1px 4px; } }

/* Bandeau "journée" (all-day : Médine / Mecque) */
.cal-allday { display: grid; border-bottom: 1px solid var(--line); background: var(--cream-2); }
.cal-allday-lbl { font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 6px; display: flex; align-items: center; justify-content: flex-end; border-right: 1px solid var(--line-soft); }
.cal-allday-cell { border-left: 1px solid var(--line-soft); padding: 5px 4px; display: flex; flex-direction: column; gap: 4px; min-height: 32px; }
.ad-chip { font-size: .68rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }

/* Couleurs par type : Médine (vert), Mecque (or), Guide (noir) */
.cal-evt.medine, .ad-chip.medine, .cal-chip2.medine, .dep-chip.medine { background: #1d7a36; }
.cal-evt.mecque, .ad-chip.mecque, .cal-chip2.mecque, .dep-chip.mecque { background: var(--gold-grad); }
.cal-evt.guide,  .ad-chip.guide,  .cal-chip2.guide,  .dep-chip.guide  { background: var(--ink); }
.cal-legend i.lg.medine { background: #1d7a36; }
.cal-legend i.lg.mecque { background: var(--gold); }
.cal-legend i.lg.guide  { background: var(--ink); }

/* sélecteur de couleur des bulles */
.color-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.color-picker .sw { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; transition: transform .15s; }
.color-picker .sw:hover { transform: scale(1.12); }
.color-picker input[type=color] { width: 44px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; padding: 2px; }

/* ============ PAIEMENT ============ */
.pay-amount { font-family: 'Montserrat', sans-serif; font-size: 2.6rem; font-weight: 900; color: var(--ink); line-height: 1; margin: 6px 0; }
.pay-amount .cur { font-size: 1.4rem; font-weight: 700; color: var(--gold-deep); }
.lock-note { display: flex; gap: 10px; align-items: center; background: var(--cream-2); border: 1px solid var(--line); border-radius: 13px; padding: 14px; font-size: .86rem; color: var(--ink-soft); margin-top: 14px; }

/* Bloc coordonnées bancaires */
.bank { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 14px; overflow: hidden; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.bank-row:last-child { border-bottom: none; }
.bank-row .bk { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.bank-row .bv { font-size: .92rem; font-weight: 700; color: var(--ink); font-family: 'Montserrat', sans-serif; word-break: break-word; }
.copy-b { flex-shrink: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; font-size: .72rem; color: var(--gold-deep); cursor: pointer; font-weight: 700; transition: all .2s; }
.copy-b:hover { border-color: var(--gold); background: #fff; }

/* Hôtel enregistré (fiche admin) */
.hotel-saved { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: var(--cream-2); margin-bottom: 10px; }

/* Gestion des départs (admin) */
.dep-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); margin-bottom: 10px; }
.dep-chip { width: 48px; height: 50px; flex-shrink: 0; border-radius: 10px; background: var(--ink); color: var(--cream); display: grid; place-items: center; align-content: center; }
.dep-chip .dc-d { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 900; line-height: 1; }
.dep-chip .dc-m { font-size: .58rem; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.dep-tx { flex: 1; min-width: 0; }
.dep-tx .dep-city { font-size: .92rem; font-weight: 700; color: var(--ink); }
.dep-tx .dep-sub { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.dep-act { display: flex; gap: 6px; flex-shrink: 0; }
.dep-act button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .9rem; transition: all .2s; }
.dep-act button:hover { border-color: var(--gold); background: var(--cream-2); }

/* Desktop niceties */
@media (min-width: 760px) {
    h1.title { font-size: 2rem; }
    .info-grid { border-radius: 16px; }
    .modal { border-radius: 22px; margin-bottom: 5vh; }
    .modal-scrim { align-items: center; }
}
