/* ===== Vars (dark, accents néon) ===== */
:root{
  --bg:#0b0f1d; --bg-soft:#0f1430; --card:#121835; --line:#26346a;
  --text:#eef2ff; --muted:#9aa6ce;
  --accent:#7aa2ff; --accent-2:#8bd6ff; --ok:#34e3b3; --warn:#ffc857; --danger:#ff667d;
  --chip:#0f1836; --chip-b:#2a3a77;
  --radius:16px; --shadow:0 14px 36px rgba(0,0,0,.35);
}

/* ===== Base ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #10235b55 0%, transparent 60%),
              radial-gradient(1000px 500px at 110% 10%, #3e1e6a44 0%, transparent 65%),
              linear-gradient(180deg, var(--bg), var(--bg-soft));
  font: 400 15px/1.55 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",Arial;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{display:block; max-width:100%}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer}
input,textarea{background:#0a1330;border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text)}

/* ===== Containers ===== */
.container{max-width:1120px;margin:0 auto;padding:0 14px}
.header{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:34px}
.lang-switch{display:flex;gap:8px}
.lang-switch button{
  border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#0d1536;opacity:.9;
  transition:background .2s,transform .15s,opacity .2s
}
.lang-switch button.active{background:linear-gradient(135deg,#132a66,#1e2f74);opacity:1}
.lang-switch button:active{transform:scale(.96)}

/* ===== Banner (ticker sombre punchy) ===== */
.banner{
  margin:4px 0 10px; border-radius:18px; overflow:hidden;
  background: linear-gradient(135deg,#14235a,#1c2655);
  border:1px solid #2a3a77;
  box-shadow: 0 8px 28px rgba(20,45,125,.25) inset;
}
.ticker{display:flex;gap:22px;padding:10px 12px;white-space:nowrap;animation:scroll 26s linear infinite}
.ticker .item{color:#d7e3ff}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ===== Alert (néon) ===== */
.alert{
  display:flex;align-items:center;gap:10px;margin:10px 0 14px;padding:12px;
  background:linear-gradient(135deg,rgba(255,102,125,.12),rgba(255,102,125,.08));
  border:1px solid rgba(255,102,125,.35);border-radius:14px;color:#ffd8df;
  box-shadow:0 0 0 3px rgba(255,102,125,.08) inset;
}
.alert .dot{
  width:10px;height:10px;border-radius:50%;background:var(--danger);
  box-shadow:0 0 10px var(--danger),0 0 22px rgba(255,102,125,.7);animation:pulse 1.4s infinite
}
@keyframes pulse{50%{transform:scale(1.15)}}

/* ===== Toolbar / Chips / Badge ===== */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chips{display:flex;gap:8px;overflow:auto;padding:2px 0 6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto; padding:8px 12px; border-radius:999px;
  background:var(--chip); border:1px solid var(--chip-b); color:#cfe1ff;
  transition:transform .12s, box-shadow .2s, background .2s;
  box-shadow:0 2px 12px rgba(40,60,140,.25) inset;
}
.chip:active{transform:scale(.96)}
.badge{
  padding:6px 10px;border-radius:12px;background:#0b1540;border:1px solid #2a3a77;color:#aab6de;
}

/* ===== Section & Title ===== */
.section{padding:8px 0 4px}
.section__title{font-weight:900;letter-spacing:.2px;margin:8px 2px 12px}

/* ===== Grid & Cards (dark glossy) ===== */
.grid{display:grid;gap:12px;grid-template-columns:1fr}
.card{
  background:linear-gradient(180deg,#11193a,#0f1533);
  border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow);
  display:flex; flex-direction:column; min-height:100%;
}
.card__media{position:relative;aspect-ratio:16/10;background:#0a1330;overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition:transform .5s ease, filter .4s}
.card:hover .card__media img{transform:scale(1.06)}
.card__price-badge{
  position:absolute;bottom:10px;right:10px;padding:8px 12px;border-radius:12px;
  background:linear-gradient(135deg,#00f5a5,#39ffcc);color:#001a12;font-weight:900;letter-spacing:.2px;
  box-shadow:0 10px 26px rgba(0,245,165,.25)
}
.card__body{padding:12px}
.card__title{font-weight:900;font-size:1.06rem}
.card__subtitle{color:var(--muted);margin:4px 0 8px}
.card__meta{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}
.badge.secondary{background:rgba(122,162,255,.14);border-color:rgba(122,162,255,.45);color:#d9e5ff}
.card__tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{padding:6px 10px;border-radius:10px;background:#0e1a49;border:1px solid #2a3a77;color:#c9d5ff}
.card__cta{display:flex;gap:8px;margin-top:10px}

/* ===== Buttons (néon) ===== */
.btn{
  flex:1;border-radius:12px;padding:11px 12px;font-weight:800;letter-spacing:.2px;border:1px solid var(--line);
  background:#0b1436;transition:transform .12s, filter .2s, background .2s, border-color .2s
}
.btn--primary{
  background:linear-gradient(135deg,#7aa2ff,#8bd6ff); color:#0a1133; border:0;
  box-shadow:0 8px 24px rgba(122,162,255,.35);
}
.btn--primary:hover{filter:saturate(1.15)}
.btn--ghost{background:transparent}
.btn:active{transform:scale(.98)}
.btn--ok{background:linear-gradient(135deg,#24e0b4,#35f0c9);color:#07221a;border:0}

/* ===== Modal ===== */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);z-index:999}
.modal[hidden]{display:none}
.modal__card{
  width:min(92vw,880px);max-height:86vh;overflow:auto;background:linear-gradient(180deg,#11193a,#0f1533);
  border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)
}
.modal__header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.modal__body{padding:14px}
.modal__footer{display:flex;gap:10px;padding:12px 14px;border-top:1px solid var(--line)}
.modal__close{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#0d1536;border:1px solid var(--line)}
.modal__overlay{position:fixed;inset:0}

/* ===== Form ===== */
.form__row{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.form__row--2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
input:focus,textarea:focus{outline:2px solid #6ea8ff88;box-shadow:0 0 0 4px #6ea8ff22}

/* ===== Utilities ===== */
.muted{color:var(--muted)}
.section .grid.two{grid-template-columns:1fr 1fr;gap:16px}
.hr{height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent);margin:20px 0}

/* ===== Responsive ===== */
@media (min-width:480px){ .grid{grid-template-columns:repeat(2,1fr)} .card__title{font-size:1.08rem} }
@media (min-width:768px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .ticker{animation-duration:30s}
  .section{padding:12px 0 8px}
}
@media (min-width:1100px){ .grid{grid-template-columns:repeat(3,1fr)} .card__title{font-size:1.12rem} }

/* ===== RTL ===== */
html[dir="rtl"] body{direction:rtl}
html[dir="rtl"] .brand{flex-direction:row-reverse}
html[dir="rtl"] .lang-switch{flex-direction:row-reverse}
html[dir="rtl"] .card__price-badge{right:auto;left:10px}
html[dir="rtl"] .form__row--2{direction:rtl}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .ticker{animation:none}
}

/* ==== PROMO+ styles ==== */
.promo-line{display:flex;align-items:center;gap:.6rem;margin:.2rem 0 0.4rem}
.price-now{font-size:1.35rem;font-weight:800;background:linear-gradient(90deg,#7aa2ff,#a78bfa);-webkit-background-clip:text;color:transparent}
.price-old{font-size:.95rem;color:#ffb3bb;text-decoration:line-through;opacity:.8}
.promo-timer{padding:.25rem .55rem;border-radius:999px;background:rgba(255,93,108,.12);border:1px solid rgba(255,93,108,.35)}
.pill-row{display:flex;flex-wrap:wrap;gap:.35rem;margin:.4rem 0 .6rem}
.pill{padding:.25rem .55rem;border-radius:999px;background:rgba(122,162,255,.12);border:1px solid rgba(122,162,255,.35);font-size:.85rem}
.pill--scarcity{background:rgba(255,184,108,.12);border-color:rgba(255,184,108,.35)}
.pill--pop{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.35)}
.hi-list{padding-left:1rem;margin:.2rem 0}
.hi-list li{margin:.15rem 0}
.guarantees{display:flex;flex-direction:column;gap:.25rem;margin-top:.5rem;color:#cfe6ff}
.cols{padding-left:1rem;margin:.2rem 0}
.btn--xl{font-size:1.05rem;padding:.9rem 1.2rem}
.btn--wa{margin-left:.5rem;background:#25D366;border:1px solid rgba(255,255,255,.15);color:#08111e;font-weight:700;border-radius:12px;padding:.9rem 1rem}
@media (max-width:640px){
  #reserveModal .modal__footer{position:sticky;bottom:0;backdrop-filter:saturate(1.4) blur(8px);background:linear-gradient(180deg,rgba(14,18,33,.6),rgba(14,18,33,.95));padding:12px}
}

/* === Badge promo agressif === */
.discount-badge{
  position:absolute; top:10px; left:10px;
  padding:6px 10px; border-radius:999px;
  background:linear-gradient(135deg,#ff1f4b,#ff7a59);
  color:#fff; font-weight:800; font-size:.95rem;
  line-height:1; box-shadow:0 8px 20px rgba(255, 50, 90, .35);
  transform:translateZ(0);
}
.discount-badge .pct{ font-variant-numeric: tabular-nums; }

/* Masque si 0% (petite astuce via attr data) */
.card .discount-badge { opacity:1; }
.card .discount-badge:has(.pct:contains("0")){ opacity:.0; }

/* Fallback si :has / :contains indispo → on triche en JS (optionnel) */
