/* ===== Senebus : design system (clair / sombre) ===== */
:root {
  --green: #0b8a3e; --green-d: #076b2f; --green-l: #e4f5ea;
  --yellow: #f5c400; --red: #e1251b;
  --bg: #f4f6f4; --card: #ffffff; --ink: #14221a; --muted: #5d6b63; --line: #dde4df;
  --ok: #0b8a3e; --warn: #b36b00; --bad: #c4231a;
  --seat-free: #ffffff; --seat-busy: #d9dfdb; --seat-mine: #0b8a3e;
  --input: #eef2ef;
  --shadow: 0 6px 24px rgba(10, 40, 20, .08);
  --radius: 14px;
}
:root[data-theme="dark"] {
  --green: #2fc96a; --green-d: #25a757; --green-l: #12301f;
  --bg: #0f1612; --card: #17211b; --ink: #e8f0ea; --muted: #97a79d; --line: #28372e;
  --ok: #2fc96a; --warn: #f0b04a; --bad: #ff7168;
  --seat-free: #1f2c24; --seat-busy: #2a362f; --seat-mine: #2fc96a;
  --input: #101a14;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ===== Vitrine : barre de contact, menu, tiroir mobile ===== */
.infobar { background: #0d2418; color: #cfe3d6; font-size: .82rem; }
.infobar-in { max-width: 1180px; margin: 0 auto; padding: 9px 16px; display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; }
.infobar .it { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.infobar .it i { color: var(--yellow); font-size: 1.15rem; }
.infobar .wa { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }
.infobar .wa:hover { background: #25d366; }
.navbar { position: sticky; top: 0; z-index: 30; background: #fff; color: #14221a; border-bottom: 1px solid #e3e9e5; }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 4px 16px; display: flex; align-items: center; gap: 24px; }
.brand img { display: block; height: 58px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-right: auto; align-self: stretch; }
.nav-links a { display: inline-flex; align-items: center; padding: 0 14px; color: #4a5a51; font-weight: 500; font-size: .95rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav-links a:hover { color: #076b2f; }
.nav-links a.on { color: #076b2f; border-bottom-color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.nav-actions .btn-ghost { background: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid #e3e9e5; background: #fff; color: #14221a; cursor: pointer; font-size: 1.25rem; font-family: inherit; }
.icon-btn:hover { background: #eef5f0; }
.burger { display: none; }
.userchip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: #14221a; }
.userchip .av { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.scrim { position: fixed; inset: 0; background: rgba(8, 20, 13, .5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 380px); background: #fff; color: #14221a; z-index: 60; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; box-shadow: -12px 0 40px rgba(0,0,0,.18); }
body.menu-open { overflow: hidden; }
body.menu-open .scrim { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid #e3e9e5; }
.drawer-head img { height: 52px; display: block; }
.drawer-links { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; overflow-y: auto; }
.drawer-links a { padding: 16px 14px; font-size: 1.1rem; font-weight: 500; color: #14221a; border-radius: 12px; }
.drawer-links a.on { background: #e4f5ea; color: #076b2f; }
.drawer-foot { padding: 16px; border-top: 1px solid #e3e9e5; display: grid; gap: 10px; }
.drawer-foot .btn { width: 100%; }

main { min-height: 60vh; }
.footer { background: #0d2418; color: #cfe3d6; margin-top: 48px; font-size: .9rem; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 36px 16px 16px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 10px; }
.footer a { color: #cfe3d6; } .footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer .li { display: flex; gap: 8px; align-items: flex-start; } .footer .li i { color: var(--yellow); margin-top: 3px; }
.foot-bottom { max-width: 1180px; margin: 0 auto; padding: 14px 16px 28px; border-top: 1px solid rgba(255,255,255,.12); color: #97b3a2; font-size: .82rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.flash { max-width: 1040px; margin: 12px auto 0; padding: 12px 16px; border-radius: 12px; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.flash-error { background: #fde8e6; color: #9c1b13; } .flash-ok { background: var(--green-l); color: var(--green-d); }
:root[data-theme="dark"] .flash-error { background: #3a1c19; color: #ffb3ad; }

/* Héros + recherche */
.hero {
  background: #0a5a2c url("../img/hero.jpg") center top / 100% auto no-repeat;
  color: #fff; position: relative; overflow: hidden; padding: calc(33.4vw - 70px) 0 110px; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: calc(33.4vw - 150px); height: 150px; background: linear-gradient(180deg, rgba(10,90,44,0), #0a5a2c); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-txt { padding: 0; }
@media (min-width: 1700px) { .hero { padding-top: 520px; } .hero::before { top: 450px; } }
@media (max-width: 860px) { .hero { background-size: auto 230px; background-position: 30% top; padding: 190px 0 90px; } .hero::before { top: 90px; } }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -40px; width: 320px; height: 120px; background: linear-gradient(90deg, transparent, var(--yellow) 40%, var(--red)); opacity: .9; transform: skewX(-25deg); border-radius: 8px; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 800; max-width: 760px; margin: 0 0 6px; position: relative; z-index: 1; }
.hero p { margin: 0; max-width: 520px; opacity: .92; position: relative; z-index: 1; }
.search { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: -62px auto 0; max-width: 1040px; position: relative; z-index: 2; }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg label { cursor: pointer; padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--green); color: #fff; }
.grid-search { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr) minmax(0,1fr) minmax(0,.7fr) max-content; gap: 10px; align-items: end; }
.grid-search .btn { white-space: nowrap; }
.field label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 0 4px 2px; text-transform: uppercase; letter-spacing: .04em; }
.field select, .field input[type=text], .field input[type=date], .field input[type=email], .field input[type=tel], .field input[type=number] {
  width: 100%; padding: 12px; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; min-height: 46px; }
.field select:focus, .field input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.swap { height: 46px; border: 1.5px solid var(--line); border-radius: 50%; width: 44px; background: var(--card); color: var(--green); cursor: pointer; font-size: 1.3rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font: inherit; font-weight: 600; border: 0; border-radius: 10px; background: var(--green); color: #fff; cursor: pointer; min-height: 46px; }
.btn:hover { background: var(--green-d); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-l); }
.btn-danger { background: var(--bad); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.section { padding: 36px 16px 8px; max-width: 1040px; margin: 0 auto; }
.section h2 { font-size: 1.3rem; }
.lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.line-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.line-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.line-card b { font-size: 1rem; } .line-card .price { color: var(--green); font-weight: 700; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.perk { background: var(--card); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.perk i { font-size: 1.8rem; color: var(--green); }

/* Résultats */
.crumb { background: var(--green); color: #fff; padding: 14px 16px; }
.crumb .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.crumb h1 { font-size: 1.2rem; margin: 0; }
.crumb a { color: #fff; opacity: .9; text-decoration: underline; font-size: .9rem; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; max-width: 1040px; margin: 0 auto; scrollbar-width: none; }
.day { flex: 1 0 100px; text-align: center; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 500; }
.day.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.results { max-width: 1040px; margin: 0 auto; padding: 4px 16px 40px; display: grid; gap: 12px; }
.trip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.trip.full { opacity: .6; }
.leg { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.leg + .leg { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.time { font-size: 1.3rem; font-weight: 700; } .place { font-size: .85rem; color: var(--muted); }
.track { display: flex; flex-direction: column; align-items: center; font-size: .78rem; color: var(--muted); min-width: 110px; }
.track .bar { width: 100%; height: 2px; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); border-radius: 2px; margin: 4px 0; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-l); color: var(--green-d); }
.badge-warn { background: #fff1d6; color: #8a5200; } .badge-bad { background: #fde8e6; color: #9c1b13; } .badge-info { background: #e3efff; color: #1a4d9c; }
:root[data-theme="dark"] .badge-warn { background: #3b2d12; color: #f0b04a; } :root[data-theme="dark"] .badge-bad { background: #3a1c19; color: #ffb3ad; } :root[data-theme="dark"] .badge-info { background: #172a45; color: #9cc2ff; }
.buy { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.buy .amount { font-size: 1.5rem; font-weight: 800; color: var(--green); white-space: nowrap; }
.price-box { text-align: inherit; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty i { font-size: 3rem; color: var(--line); }

/* Réservation : sièges, passagers */
.layout2 { max-width: 1040px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.1rem; }
.timer { display: flex; align-items: center; gap: 8px; background: #fff1d6; color: #8a5200; border-radius: 12px; padding: 10px 14px; font-weight: 600; margin-bottom: 14px; }
.timer b { font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.tab.on { background: var(--green); border-color: var(--green); color: #fff; }
.paxrow { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 10px; }
.paxrow .chip { width: 44px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink); font-family: inherit; }
.paxrow .chip.on { border-color: var(--green); background: var(--green-l); color: var(--green-d); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .92rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; }
.sum-trip { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.pay-methods { display: grid; gap: 10px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; background: var(--card); }
.pay:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.pay input { accent-color: var(--green); width: 18px; height: 18px; }
.pay .logo { width: 44px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; }
.sim-note { background: #e3efff; color: #1a4d9c; border-radius: 12px; padding: 10px 14px; font-size: .85rem; margin-bottom: 14px; display: flex; gap: 8px; }
:root[data-theme="dark"] .sim-note { background: #172a45; color: #9cc2ff; }

/* Billet */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; display: grid; grid-template-columns: 1fr 190px; }
.ticket .main { padding: 18px 20px; border-right: 2px dashed var(--line); }
.ticket .stub { padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.ticket .strip { grid-column: 1 / -1; height: 6px; background: linear-gradient(90deg, var(--green) 60%, var(--yellow) 60% 80%, var(--red) 80%); }
.ticket h3 { font-size: 1.15rem; } .ticket .row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.ticket .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } .ticket .v { font-weight: 700; }
.qr { background: #fff; padding: 8px; border-radius: 10px; line-height: 0; }
.center { text-align: center; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn, .nav-actions .userchip { display: none; }
  .burger { display: inline-grid; }
  .nav-in { gap: 12px; } .nav-actions { margin-left: auto; }
  .infobar .it.opt { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .grid-search { grid-template-columns: 1fr 1fr; }
  .grid-search .swap { display: none; }
  .grid-search .full-col, .grid-search .btn { grid-column: 1 / -1; }
  .layout2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand img { height: 50px; }
  .trip { grid-template-columns: 1fr; }
  .buy { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .buy .amount { font-size: 1.3rem; }
  .price-box { text-align: left; }
  .leg { grid-template-columns: auto 1fr auto; gap: 8px; } .time { font-size: 1.1rem; } .track { min-width: 70px; }
  .ticket { grid-template-columns: 1fr; } .ticket .main { border-right: 0; border-bottom: 2px dashed var(--line); }
  .paxrow { grid-template-columns: auto 1fr; } .paxrow .field:last-child { grid-column: 2; }
}
@media print {
  .infobar, .navbar, .drawer, .scrim, .footer, .actions, .flash, .noprint { display: none !important; }
  body { background: #fff; color: #000; } .ticket { box-shadow: none; break-inside: avoid; border: 1px solid #999; }
}


/* ===== Connexion / inscription ===== */
body.auth { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(1100px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; min-height: 640px; }
.auth-card.reg { grid-template-columns: 5fr 6fr; }
.auth-side { position: relative; color: #fff; padding: 36px 40px 44px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(120% 80% at 10% 0%, #15a34a 0%, rgba(21,163,74,0) 55%), linear-gradient(165deg, #0b8a3e 0%, #076b2f 50%, #0b2418 100%); }
.auth-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--green) 0 50%, var(--yellow) 50% 75%, var(--red) 75%); }
.auth-side .logo-card { background: #fff; border-radius: 24px; padding: 12px 20px; width: fit-content; margin: auto; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.auth-side .logo-card img { display: block; width: 250px; max-width: 100%; height: auto; }
.auth-side .chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: .92rem; }
.auth-side h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.2; margin: 6px 0 0; }
.auth-side p { margin: 0; opacity: .85; max-width: 420px; }
.auth-main { padding: 36px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font-weight: 700; font-size: 1.15rem; }
.auth-brand .sq { width: 64px; height: 64px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.auth-brand .sq img { width: 56px; height: auto; display: block; }
.auth-main h1 { font-size: 1.9rem; font-weight: 700; margin: 0 0 6px; }
.auth-main .sub { color: var(--muted); margin: 0 0 22px; }
.fgroup { margin-bottom: 16px; }
.fgroup > label { display: block; font-weight: 600; font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
.fgroup > label .req { color: var(--red); }
.inp { position: relative; }
.inp > i.ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.25rem; pointer-events: none; }
.inp input { width: 100%; min-height: 52px; padding: 12px 48px 12px 48px; font: inherit; color: var(--ink); background: var(--input); border: 1.5px solid var(--line); border-radius: 14px; }
.inp input::placeholder { color: #9aa8a0; }
.inp input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); background: var(--card); }
.inp input.bad { border-color: var(--bad); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; border-radius: 10px; }
.eye:hover { color: var(--ink); background: var(--line); }
.fsec { display: flex; align-items: center; gap: 8px; margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1.5px solid var(--line); color: var(--muted); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.meter i { height: 5px; border-radius: 4px; background: var(--line); transition: background .2s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--red); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #e98a15; }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--yellow); }
.meter[data-s="4"] i { background: var(--green); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }
.hint.err { color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: .92rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green); flex: none; }
.check a, .auth-main a.lnk { color: var(--green); font-weight: 600; text-decoration: underline; }
.btn-block { width: 100%; min-height: 54px; border-radius: 14px; font-size: 1.05rem; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); }
.auth-alt a { color: var(--green); font-weight: 700; text-decoration: underline; }
.auth-foot { text-align: center; margin-top: 16px; color: var(--muted); font-size: .85rem; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.alert-error { background: #fde8e6; color: #9c1b13; } .alert-ok { background: var(--green-l); color: var(--green-d); }
:root[data-theme="dark"] .alert-error { background: #3a1c19; color: #ffb3ad; }
.theme-fab { position: fixed; top: 16px; right: 16px; z-index: 5; }
dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(660px, 92vw); max-height: 82vh; color: var(--ink); background: var(--card); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal::backdrop { background: rgba(8, 20, 13, .55); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 18px 26px; overflow-y: auto; color: var(--muted); line-height: 1.7; }
.modal-body h3 { color: var(--ink); font-size: 1.05rem; margin: 18px 0 4px; } .modal-body p { margin: 0 0 8px; }
.modal-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.modal-x { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--bg); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.dash-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rsv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.rsv:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .auth-card, .auth-card.reg { grid-template-columns: 1fr; border-radius: 24px; min-height: 0; }
  .auth-side { display: none; }
  .auth-main { padding: 30px 22px; }
  .frow { grid-template-columns: 1fr; }
}

/* ===== Sélecteur de langue ===== */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; font-size: .82rem; font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary img, .lang-menu img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.lang[open] summary { border-color: var(--green); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 214px; max-height: 70vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.lang-menu a:hover { background: var(--green-l); } .lang-menu a.on { background: var(--green-l); color: var(--green-d); font-weight: 700; }
.lang-fab { position: fixed; top: 14px; right: 68px; z-index: 60; }
.lang-drawer { margin-bottom: 4px; } .lang-drawer summary { width: 100%; height: 46px; } .lang-drawer .lang-menu { position: static; width: 100%; margin-top: 6px; max-height: none; }
@media (max-width: 860px) { .nav-actions > .lang { display: none; } }

/* ===== Sections de l'accueil : ancres, Mon billet, Contact ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#accueil, #recherche, #lignes, #mon-billet, #contact { scroll-margin-top: 78px; }
.flash { position: sticky; top: 74px; z-index: 25; box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 10px; }
.split .lead { font-size: 1rem; margin: 0 0 16px; }
.split textarea { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; resize: vertical; }
.split textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; } .steps p { margin: 2px 0 0; font-size: .9rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.contact-list i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-l); color: var(--green-d); display: grid; place-items: center; font-size: 1.3rem; }
.contact-list b { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; word-break: break-word; } .contact-list a:hover { color: var(--green); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Ligne de découpe sous chaque billet (ciseaux + pointillés) */
.cutline { position: relative; margin: -4px 0 20px; border-top: 2px dashed var(--muted); height: 0; color: var(--muted); }
.cutline span { position: absolute; left: 18px; top: -13px; background: var(--bg, #fff); padding: 0 6px; display: flex; align-items: center; gap: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cutline svg { transform: rotate(-90deg); }
@media print { .cutline { border-top-color: #555; color: #333; } .cutline span { background: #fff; } }

/* — Étape 17 : bagage supplémentaire, conditions de vente, fenêtres d'accueil — */
.opt-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.opt-ic{font-size:1.6rem;color:var(--green-d)}.opt-txt{flex:1;min-width:140px;display:flex;flex-direction:column}
.opt-price{font-weight:700}
.stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.stepper button{width:38px;height:38px;border:0;background:var(--green-l);color:var(--green-d);font-size:1.2rem;font-weight:700;cursor:pointer}
.stepper input{width:44px;height:38px;border:0;text-align:center;font-weight:700;background:var(--card);color:var(--ink)}
.cgv-list{margin:0 0 4px;padding-left:20px}.cgv-list li{margin:6px 0}
.cgv-ok{margin:12px 0 0;color:var(--ink);font-weight:600}
@media(max-width:640px){.grid-contact{grid-template-columns:1fr!important}#mail2Box{grid-column:1!important}}
.dlg-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
dialog.sb-dlg{border:0;border-radius:16px;padding:0;width:min(720px,94vw);max-height:88vh;background:var(--card);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.35)}
dialog.sb-dlg::backdrop{background:rgba(0,0,0,.5)}
.sb-dlg .dlg-h{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--card)}
.sb-dlg .dlg-h h3{margin:0}.sb-dlg .dlg-x{border:0;background:none;font-size:1.6rem;cursor:pointer;color:var(--ink)}
.sb-dlg .dlg-b{padding:16px 20px;overflow:auto;max-height:calc(88vh - 70px)}
.sb-dlg details{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:0}
.sb-dlg summary{cursor:pointer;padding:12px 14px;font-weight:700;list-style:none}
.sb-dlg details[open] summary{border-bottom:1px solid var(--line)}
.sb-dlg .dd{padding:10px 14px}.sb-dlg .dd table{width:100%;border-collapse:collapse}.sb-dlg .dd td{padding:5px 0;border-bottom:1px dashed var(--line)}
.sb-dlg .dd td:last-child{text-align:right;font-weight:700}
.sb-dlg iframe{width:100%;height:220px;border:0;border-radius:10px;margin-top:8px}
