/* ==========================================================================
   ZainAuto — thème
   ========================================================================== */
:root {
  --ink: #070c1c;
  --navy: #0b1430;
  --navy-2: #13204a;
  --blue: #2f6bff;
  --blue-dark: #1f55dd;
  --accent: #ff6a1a;
  --accent-2: #ff3d71;
  --grad: linear-gradient(120deg, #ff8a1f 0%, #ff5a2e 45%, #ff3d71 100%);
  --grad-blue: linear-gradient(120deg, #2f6bff, #7a5cff);
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #121a2e;
  --muted: #66708a;
  --line: #e4e8f1;
  --danger: #e5383b;
  --ok: #11a36a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 20, 50, .05), 0 4px 16px rgba(10, 20, 50, .06);
  --shadow-hover: 0 18px 40px -12px rgba(10, 20, 50, .28);
  --ease: cubic-bezier(.22, .9, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 800; }
h3 { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
::selection { background: #ffd2b8; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.page { padding-top: 34px; padding-bottom: 56px; }
.section { padding-top: 56px; padding-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.req { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradmove 6s ease-in-out infinite alternate; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.kicker-light { background: none; color: #ffb38a; }

/* ---------- boutons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 107, 255, .7); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(47, 107, 255, .8); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(255, 90, 46, .75); }
.btn-accent:hover { box-shadow: 0 16px 30px -10px rgba(255, 90, 46, .85); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d1e2; box-shadow: var(--shadow); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f6c6c7; }
.btn-danger:hover { background: #fff3f3; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: .4em .8em; font-size: .85rem; border-radius: 9px; }
.btn-block { display: flex; width: 100%; margin-top: .6rem; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: shine 3.8s ease-in-out infinite;
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- en-tête ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background: rgba(9, 15, 36, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .35s, box-shadow .35s, border-color .35s;
}
.is-home .topbar { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home.scrolled .topbar, .is-home.nav-open .topbar { background: rgba(9, 15, 36, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none !important; }
.logo b { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 6px 14px rgba(255, 106, 26, .5)); transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn), .nav .link-btn { position: relative; color: #cfd8ea; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn)::after, .nav .link-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav .link-btn:hover, .nav a.active { color: #fff; text-decoration: none; }
.nav a:not(.btn):hover::after, .nav .link-btn:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.flash {
  margin-top: 18px; padding: 14px 18px; border-radius: 14px;
  background: #e9fbf2; color: #0b6b47; border: 1px solid #bdebd5; font-weight: 600;
  box-shadow: var(--shadow); animation: slideDown .5s var(--ease) both;
}
.is-home .flash { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(600px, calc(100% - 40px)); margin: 0; animation: toast 5s var(--ease) both; }

/* ---------- héros (accueil) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  min-height: min(860px, 100vh); display: flex; align-items: center; padding: 120px 0 90px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-photo { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; }
/* Photo retournée pour placer la voiture à droite, le texte restant lisible à gauche */
.has-photo .hero-photo { background-image: url("/static/img/hero.jpg"); background-position: 35% center; opacity: .85; transform: scaleX(-1); animation: kenburns 30s ease-in-out infinite alternate; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.hero .b1 { width: 520px; height: 520px; background: #ff5a2e; top: -160px; right: -80px; animation: float1 16s ease-in-out infinite; }
.hero .b2 { width: 460px; height: 460px; background: #3a5bff; bottom: -200px; left: -120px; animation: float2 18s ease-in-out infinite; }
.hero .b3 { width: 320px; height: 320px; background: #b03dff; top: 30%; left: 45%; opacity: .3; animation: float3 20s ease-in-out infinite; }
.has-photo .blob { opacity: .35; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, rgba(7, 12, 28, .9)); }
.has-photo .hero-fade { height: 100%; background: linear-gradient(90deg, rgba(7, 12, 28, .9) 0%, rgba(7, 12, 28, .55) 55%, rgba(7, 12, 28, .25) 100%); }

/* traînées lumineuses (phares en mouvement) */
.streaks { position: absolute; inset: 0; overflow: hidden; }
.streaks span {
  position: absolute; left: -40%; height: 2px; width: 34%; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 150, 80, .9), #fff);
  box-shadow: 0 0 12px rgba(255, 120, 60, .8);
  animation: streak 5s linear infinite;
}
.streaks span:nth-child(1) { top: 62%; animation-delay: 0s; animation-duration: 4.2s; }
.streaks span:nth-child(2) { top: 70%; animation-delay: 1.3s; animation-duration: 5.5s; width: 22%; }
.streaks span:nth-child(3) { top: 78%; animation-delay: 2.6s; animation-duration: 3.8s; }
.streaks span:nth-child(4) { top: 66%; animation-delay: 3.4s; animation-duration: 6s; width: 18%; background: linear-gradient(90deg, transparent, rgba(110, 150, 255, .9), #fff); box-shadow: 0 0 12px rgba(90, 130, 255, .8); }
.streaks span:nth-child(5) { top: 84%; animation-delay: .7s; animation-duration: 4.8s; background: linear-gradient(90deg, transparent, rgba(110, 150, 255, .9), #fff); box-shadow: 0 0 12px rgba(90, 130, 255, .8); }
.streaks span:nth-child(6) { top: 74%; animation-delay: 4.1s; animation-duration: 4.4s; width: 26%; }
.streaks span:nth-child(7) { top: 88%; animation-delay: 2s; animation-duration: 5.2s; width: 30%; }
.streaks span:nth-child(8) { top: 58%; animation-delay: 5s; animation-duration: 6.4s; width: 14%; background: linear-gradient(90deg, transparent, rgba(255, 80, 130, .9), #fff); box-shadow: 0 0 12px rgba(255, 70, 120, .8); }

.hero-content { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; font-weight: 600; color: #e7ecf7;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 rgba(46, 229, 157, .7); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; margin: 22px 0 18px; font-weight: 900; letter-spacing: -.035em; }
.hero-sub { color: #c3cde3; margin: 0 0 34px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; }
.hero-sub strong { color: #fff; }
.glass {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.quick-search { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; border-radius: 22px; max-width: 1040px; }
.has-photo .quick-search { max-width: 860px; }
.has-photo .hero-brands { max-width: 860px; }
.quick-search label span { display: block; font-size: .72rem; font-weight: 800; color: #c9d3ea; margin: 0 0 6px 4px; text-transform: uppercase; letter-spacing: .1em; }
.quick-search select, .quick-search input { background: rgba(255, 255, 255, .95); border-color: transparent; min-height: 52px; border-radius: 12px; }
.quick-search .btn { min-height: 52px; }
.hero-brands { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; font-size: .9rem; color: #9fabc6; }
.hero-brands a { color: #e3e9f6; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); transition: background .25s, border-color .25s, transform .25s; }
.hero-brands a:hover { text-decoration: none; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }

/* ---------- catégories ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 700; }
.link-more span { display: inline-block; transition: transform .25s var(--ease); }
.link-more:hover { text-decoration: none; }
.link-more:hover span { transform: translateX(5px); }
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 10px 18px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-align: center;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); opacity: 0; transition: opacity .35s; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cat:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat:hover::before { opacity: 1; }
.cat-icon { width: 86px; height: 46px; display: grid; place-items: center; }
.cat-icon svg { width: 100%; height: 100%; overflow: visible; transition: transform .45s var(--ease); }
.cat:hover .cat-icon svg { transform: translateX(6px); }
.ic-body { fill: #eef2fb; stroke: var(--navy-2); stroke-width: 1.6; stroke-linejoin: round; transition: fill .35s; }
.ic-wheel { fill: #fff; stroke: var(--navy-2); stroke-width: 1.6; }
.ic-fill { fill: var(--accent); }
.cat:hover .ic-body { fill: #ffe6d8; }
.cat-label { font-weight: 800; margin-top: 6px; }
.cat-n { font-size: .8rem; color: var(--muted); }

/* ---------- cartes annonces ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  color: var(--text); display: flex; flex-direction: column; text-decoration: none !important;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e6ebf5, #d7deec); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(5, 10, 25, .7)); pointer-events: none; }
.card-price-tag {
  position: absolute; z-index: 1; left: 14px; bottom: 12px; color: #fff; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .9rem; min-height: 80px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-version { margin: 2px 0 12px; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-loc { margin: auto 0 0; padding-top: 12px; color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); margin-top: 14px; }
.card-loc svg { width: 15px; height: 15px; color: var(--accent); }
.card-go { margin-left: auto; font-weight: 700; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.card:hover .card-go { opacity: 1; transform: none; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: #f1f4fa; border-radius: 8px; padding: 3px 9px; font-size: .78rem; font-weight: 600; color: #46506a; }
.badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.badge-sold { background: var(--danger); color: #fff; }
.badge-new { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 80, 60, .8); }
.badge-lg { font-size: .95rem; padding: 7px 16px; }
.empty { background: #fff; border: 1.5px dashed #cdd5e6; border-radius: var(--radius); padding: 44px 20px; text-align: center; color: var(--muted); }
.empty p { margin-top: 0; }
.empty-hero { padding: 50px 20px; background: radial-gradient(ellipse at top, #fff4ed, #fff 70%); border-style: solid; border-color: #f1e3da; }
.empty-hero h3 { color: var(--text); font-size: 1.35rem; margin-bottom: .3em; }
.empty-car { width: 160px; margin: 0 auto 18px; position: relative; }
.empty-car svg { width: 100%; animation: bounce 1.6s ease-in-out infinite; }
.empty-car .ic-body { fill: #ffe3d2; stroke: var(--accent); }
.empty-car .ic-wheel { stroke: var(--accent); }
.empty-road { height: 3px; margin-top: 4px; border-radius: 3px; background: repeating-linear-gradient(90deg, #ffbe98 0 18px, transparent 18px 30px); background-size: 30px 3px; animation: road .6s linear infinite; }

/* ---------- atouts ---------- */
.features { padding: 56px 0 64px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.feature-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(255, 90, 46, .7); }
.feature:nth-child(even) .feature-ic { background: var(--grad-blue); box-shadow: 0 10px 20px -8px rgba(47, 107, 255, .7); }
.feature-ic svg { width: 24px; height: 24px; }

/* ---------- bandeau vendeur ---------- */
.sell-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 80px 0; text-align: center; }
.sell-bg { position: absolute; inset: 0; pointer-events: none; }
.sell-band .b1 { width: 480px; height: 480px; background: #ff5a2e; top: -240px; left: 10%; opacity: .4; animation: float2 18s ease-in-out infinite; }
.sell-band .b2 { width: 420px; height: 420px; background: #3a5bff; bottom: -240px; right: 8%; opacity: .45; animation: float1 16s ease-in-out infinite; }
.sell-inner { position: relative; }
.sell-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.muted-light { color: #b4bfd6; }
.steps { list-style: none; padding: 0; margin: 36px auto 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; text-align: left; counter-reset: s; }
.steps li { display: flex; gap: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .35s var(--ease), background .35s; }
.steps li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.steps p { margin: .25em 0 0; color: #b4bfd6; font-size: .92rem; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 900; box-shadow: 0 10px 22px -8px rgba(255, 90, 46, .9); }

/* ---------- formulaires ---------- */
label { display: block; }
label > span:first-child { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fbfcfe;
  border: 1.5px solid #dfe4ee; border-radius: 12px; padding: .65em .85em; min-height: 48px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: #c8d0e0; }
textarea { resize: vertical; min-height: 150px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.form label { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
fieldset { border: 0; margin: 0 0 20px; }
legend { font-size: 1.15rem; font-weight: 800; padding: 0; margin-bottom: 16px; float: left; width: 100%; display: flex; align-items: center; gap: 10px; }
legend::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--grad); }
legend + * { clear: both; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.alert { padding: 14px 18px; border-radius: 14px; margin: 0 0 18px; animation: slideDown .45s var(--ease) both; }
.alert ul { margin: .4em 0 0; padding-left: 1.2em; }
.alert-error { background: #fff2f2; color: #a11d20; border: 1px solid #f8cdce; }
.alert-info { background: #eef3ff; color: #1d3f96; border: 1px solid #cfdcff; }

.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px; margin-bottom: 22px; }

/* ---------- connexion / inscription ---------- */
.auth { display: flex; justify-content: center; padding-top: 48px; }
.auth-card { display: grid; grid-template-columns: 1fr 1.1fr; width: 100%; max-width: 980px; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(10, 20, 50, .35); }
.auth-side { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 44px 38px; display: flex; align-items: flex-end; min-height: 520px; }
.auth-side .b1 { width: 340px; height: 340px; background: #ff5a2e; top: -120px; left: -80px; opacity: .6; animation: float1 14s ease-in-out infinite; }
.auth-side .b2 { width: 300px; height: 300px; background: #3a5bff; bottom: -120px; right: -100px; opacity: .6; animation: float2 16s ease-in-out infinite; }
.auth-side .streaks span { width: 50%; }
.auth-side .streaks span:nth-child(1) { top: 12%; }
.auth-side .streaks span:nth-child(2) { top: 20%; }
.auth-side .streaks span:nth-child(3) { top: 28%; }
.auth-side .streaks span:nth-child(4) { top: 16%; }
.auth-side .streaks span:nth-child(5) { top: 34%; }
.auth-side-content { position: relative; z-index: 1; }
.auth-side h2 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: #d7deee; }
.ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; background: rgba(46, 229, 157, .18); color: #2ee59d; }
.auth-box { padding: 44px 42px; }
.auth-box h1 { margin-bottom: .2em; }
.auth-box > .muted { margin-top: 0; margin-bottom: 24px; }
.auth-switch { margin: 18px 0 0; }

/* photos */
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center;
  border: 2px dashed #c3cde0; border-radius: 18px; padding: 36px 16px; margin-top: 12px;
  background: linear-gradient(180deg, #fafbff, #f3f6fd); cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.dropzone::before { content: "📷"; font-size: 2rem; display: block; margin-bottom: 6px; transition: transform .35s var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #fff6f0; }
.dropzone:hover::before, .dropzone.drag::before { transform: translateY(-4px) scale(1.1); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-item { position: relative; border-radius: 12px; overflow: hidden; background: #e7ebf2; aspect-ratio: 4 / 3; margin: 0 !important; animation: pop .35s var(--ease) both; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.photo-del { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(9, 15, 36, .8); color: #fff; font-size: .8rem; padding: 5px 9px; display: flex !important; gap: 6px; align-items: center; margin: 0 !important; font-weight: 600 !important; }
.photo-item:has(input:checked) img { opacity: .3; }
.photo-main { position: absolute; top: 7px; left: 7px; background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.photo-bad { outline: 3px solid var(--danger); }
.photo-warning { color: var(--danger); font-weight: 700; }

/* ---------- recherche ---------- */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 22px; position: sticky; top: 92px; }
.filters-title { font-size: 1.15rem; }
.filters label { margin-bottom: 12px; }
.filters label > span:first-child { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.filters input, .filters select { min-height: 44px; }
.filters .row2 { gap: 10px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-head h1 { font-size: 1.55rem; margin: 0; }
.sort-form select { min-width: 230px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; transition: transform .2s, border-color .2s; }
.pagination a:hover { text-decoration: none; transform: translateY(-2px); border-color: #c5cde0; }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- fiche annonce ---------- */
.breadcrumb { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
.gallery { margin-bottom: 22px; }
.gallery-main { position: relative; background: radial-gradient(ellipse at center, #1a2448, #070c1c); border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-hover); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; animation: fadeIn .45s ease both; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 1.9rem; line-height: 1; cursor: pointer; color: #fff; transition: background .2s, transform .2s;
}
.gal-nav:hover { background: rgba(255, 255, 255, .3); transform: translateY(-50%) scale(1.08); }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
.gal-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; backdrop-filter: blur(6px); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; }
.thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2.5px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #e7ebf2; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); opacity: 1; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.description { white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.sticky { position: sticky; top: 92px; }
.detail-title { font-size: 1.65rem; margin-bottom: .2em; }
.detail-price { font-size: 2.3rem; font-weight: 900; margin: 12px 0 14px; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seller { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.seller p { margin: 0; }
.avatar { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; box-shadow: 0 8px 18px -8px rgba(47, 107, 255, .8); }
.owner-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(90deg, #fff4ec, #fff); border: 1px solid #ffdcc6; border-radius: 16px; padding: 12px 16px; margin-bottom: 20px; font-weight: 600;
}
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.owner-actions form, .my-actions form { margin: 0; }

/* ---------- compte ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin-bottom: .15em; }
.page-head p { margin: 0; }
.my-listings { list-style: none; margin: 0; padding: 0; }
.my-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.my-item:last-child { border-bottom: 0; }
.my-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #e7ebf2; }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.my-thumb:hover img { transform: scale(1.08); }
.my-title { font-weight: 800; color: var(--text); font-size: 1.08rem; }
.my-meta { margin-top: 3px; }
.my-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .76rem; font-weight: 800; }
.status-active { background: #e2f8ee; color: var(--ok); }
.status-sold { background: #ffe9e9; color: var(--danger); }
.account-forms { align-items: start; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad); opacity: .12; }
.stat-n { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: #f8faff; }
.table form { margin: 0; }
.t-thumb { width: 78px; }
.t-thumb img { width: 66px; height: 50px; object-fit: cover; border-radius: 8px; }

.error-page { padding-top: 90px; padding-bottom: 90px; }
.error-page h1 { font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- pied de page ---------- */
.footer { position: relative; background: var(--ink); color: #c3cde3; margin-top: 0; padding: 44px 0 20px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.is-inner .footer { margin-top: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .muted { color: #8390ab; }
.logo-footer { font-size: 1.3rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #c3cde3; transition: color .2s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 26px; padding-top: 16px; font-size: .85rem; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, -40px) scale(1.08); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-80px, 40px); } 66% { transform: translate(60px, -30px); } }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(450%); opacity: 0; } }
@keyframes gradmove { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .7); } 70% { box-shadow: 0 0 0 10px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes kenburns { from { transform: scaleX(-1) scale(1); } to { transform: scaleX(-1) scale(1.1) translate(1%, -1%); } }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -16px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -16px); visibility: hidden; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes road { from { background-position: 0 0; } to { background-position: -30px 0; } }

.anim-up { animation: up .9s var(--ease) both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .22s; }
.d3 { animation-delay: .34s; }
.d4 { animation-delay: .46s; }

/* Apparition au défilement (activée seulement si JS fonctionne) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-8px); }
.js .cat.reveal.in:hover { transform: translateY(-6px); }
.js .feature.reveal.in:hover, .js .steps li.reveal.in:hover { transform: translateY(-4px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr 330px; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(9, 15, 36, .97); padding: 8px 24px 20px; box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
  }
  .nav-open .nav { display: flex; animation: slideDown .3s var(--ease) both; }
  .nav a:not(.btn), .nav .link-btn { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; width: 100%; }
  .nav a:not(.btn)::after, .nav .link-btn::after { display: none; }
  .nav-cta { margin-top: 14px; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search .btn { grid-column: 1 / -1; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .steps { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; padding: 30px 28px; }
  .auth-side .ticks { display: none; }
  .auth-side h2 { margin: 0; font-size: 1.45rem; }
  .auth { padding-top: 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.6rem; }
  .hero { padding: 100px 0 80px; min-height: 0; }
  .hero-brands { display: none; }
  .grid, .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-price-tag { font-size: 1.05rem; left: 10px; bottom: 8px; }
  .chips li:nth-child(n+3) { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .row2, .row3, .specs, .stats { grid-template-columns: 1fr; }
  .my-item { grid-template-columns: 96px 1fr; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .panel { padding: 18px; }
  .auth-box { padding: 26px 22px; }
  .sort-form select { min-width: 0; }
  .scroll-hint { display: none; }
}
@media (max-width: 400px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Liste des modèles liée à la marque */
select:disabled { opacity: .6; cursor: not-allowed; }
.model-other { margin-top: 8px; }
.model-other[hidden] { display: none; }

/* ==========================================================================
   Forfaits et tarifs
   ========================================================================== */
.pricing-head { max-width: 680px; margin: 0 auto 34px; }
.pricing-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.plan-now { display: inline-block; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: .92rem; box-shadow: var(--shadow); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; margin-bottom: 30px; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 30px 26px 26px; box-shadow: var(--shadow); border: 1.5px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.price-card h2 { margin-bottom: .2em; }
.price-card > .muted { margin: 0 0 18px; min-height: 2.6em; }
.price-card-pro { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 24px 50px -20px rgba(255, 90, 46, .45); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(255, 80, 60, .8); }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.price-n { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.price-card-pro .price-n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-quote { font-size: 2rem; }
.price-per { color: var(--muted); font-weight: 600; }
.price-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-list li { position: relative; padding: 7px 0 7px 30px; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; }
.price-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 900; color: #fff; background: var(--grad-blue); }
.price-card-pro .price-list li::before { background: var(--grad); }
.price-card form { margin: 0; }
.price-card .btn-block + .btn-block, .price-card form + .btn-block { margin-top: 10px; }
.is-current { cursor: default; color: var(--muted); background: #f4f6fb; box-shadow: none; }
.is-current:hover { box-shadow: none; border-color: var(--line); }
.pricing-how h2 { font-size: 1.3rem; }
.how-list { margin: 0 0 12px; padding-left: 1.3em; }
.how-list li { margin-bottom: 6px; }

/* Utilisation du forfait */
progress.usage { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: #edf0f7; overflow: hidden; margin: 10px 0 4px; }
progress.usage::-webkit-progress-bar { background: #edf0f7; border-radius: 999px; }
progress.usage::-webkit-progress-value { background: var(--grad); border-radius: 999px; }
progress.usage::-moz-progress-bar { background: var(--grad); border-radius: 999px; }
.plan-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.plan-panel-head h2 { margin-bottom: .15em; }
.plan-panel-head p { margin: 0; }
.plan-panel .alert { margin: 14px 0 0; }
.plan-note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.limit-box { text-align: left; }
.limit-box h1 { font-size: 1.7rem; }
.limit-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Admin : forfaits */
.plan-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.plan-form label { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.plan-form select, .plan-form input[type=number] { min-height: 34px; padding: 4px 8px; font-size: .85rem; width: auto; max-width: 150px; }
.row-done { opacity: .6; }
.pre-line { white-space: pre-line; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card > .muted { min-height: 0; }
}

/* ==========================================================================
   Panneau de contrôle (admin)
   ========================================================================== */
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-top h1 { margin: 0; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; padding: 6px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 22px; }
.admin-tabs a { padding: 9px 16px; border-radius: 11px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.admin-tabs a:hover { text-decoration: none; background: #f1f4fa; color: var(--text); }
.admin-tabs a.on { background: var(--navy); color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; vertical-align: middle; }
.stats-4 { grid-template-columns: repeat(3, 1fr); }
.stats-4 .stat-n { font-size: 1.8rem; }
.status-warn { background: #fff3dd; color: #a86400; }
.status { margin-left: 4px; }
.simple-list { list-style: none; margin: 0 0 10px; padding: 0; }
.simple-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.simple-list li:first-child { border-top: 0; }
.t-actions { white-space: nowrap; }
.t-actions form { display: inline-block; margin: 0; }
.admin-cols { align-items: start; }
.admin-search { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px; }
.admin-search input[type=search] { flex: 1 1 260px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.admin-search select { width: auto; flex: 0 0 auto; }
.client-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.client-head h2 { margin-bottom: .2em; }
.client-head p { margin: 0; }
.client-plan { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; background: #f6f8fc; border-radius: 14px; padding: 12px 18px; }
.client-plan strong { font-size: 1.2rem; }
.pay-form .row3 { margin-bottom: 0; }
.form label[hidden] { display: none; }
.danger-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.danger-actions form { margin: 0; }
.narrow-box { max-width: 720px; }
.year-pick { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.year-pick label { display: flex; flex-direction: column; gap: 4px; }
.year-pick select { width: auto; }
.year-total { margin: 0 0 10px; font-size: 1.1rem; }
.month-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; }
.month-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.month-val { font-weight: 700; white-space: nowrap; font-size: .7rem; }
progress.vbar { -webkit-appearance: none; appearance: none; writing-mode: vertical-lr; direction: rtl; width: 100%; max-width: 46px; height: 140px; border: 0; border-radius: 10px; background: #edf0f7; overflow: hidden; }
progress.vbar::-webkit-progress-bar { background: #edf0f7; border-radius: 10px; }
progress.vbar::-webkit-progress-value { background: var(--grad); border-radius: 10px; }
progress.vbar::-moz-progress-bar { background: var(--grad); border-radius: 10px; }
@media (max-width: 880px) {
  .client-plan { align-items: flex-start; text-align: left; }
  .month-bars { grid-template-columns: repeat(6, 1fr); row-gap: 18px; }
}

/* ==========================================================================
   Application mobile (installable)
   ========================================================================== */
.topbar { padding-top: env(safe-area-inset-top); }
.footer { padding-bottom: calc(env(safe-area-inset-bottom) + 0px); }
.is-app .hide-in-app { display: none !important; }
.app-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 130px 0 70px; }
.is-inner .app-hero { padding-top: 60px; }
.app-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.app-hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.app-hero .b1 { width: 520px; height: 520px; background: #ff5a2e; opacity: .45; top: -200px; right: -80px; animation: float2 18s ease-in-out infinite; }
.app-hero .b2 { width: 460px; height: 460px; background: #3a5bff; opacity: .45; bottom: -260px; left: -60px; animation: float1 16s ease-in-out infinite; }
.app-hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.app-copy h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); color: #fff; }
.muted-light { color: #b9c2dc; }
.app-points { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; color: #e4e9f7; font-weight: 600; }
.app-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-cta .btn { border: 0; cursor: pointer; }
.show-if-installable, .show-ios, .show-android, .app-installed { display: none !important; }
.can-install .show-if-installable { display: inline-flex !important; }
.ios .show-ios { display: inline-flex !important; }
.android .show-android { display: inline-flex !important; }
.can-install .hide-if-installable { display: none !important; }
.is-app .app-installed, .did-install .app-installed { display: inline-block !important; color: #7ff0bf; font-weight: 700; }
.is-app .app-cta .btn, .did-install .app-cta .btn { display: none !important; }
.ios .desktop-only, .android .desktop-only { display: none; }
.phone { justify-self: center; width: 230px; height: 460px; border-radius: 40px; padding: 12px; background: linear-gradient(160deg, #2a3560, #0b1430); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 255, 255, .12); animation: phoneFloat 6s ease-in-out infinite; }
.phone-screen { position: relative; height: 100%; border-radius: 30px; background: radial-gradient(ellipse at top, #22305f, #070c1c 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.phone-bar { position: absolute; top: 10px; left: 50%; width: 80px; height: 22px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.phone-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 36px -12px rgba(255, 80, 60, .8); margin-bottom: 8px; }
.phone-screen strong { font-size: 1.3rem; }
.phone-screen span { color: #b9c2dc; font-size: .85rem; }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.app-steps { align-items: start; }
.app-steps .panel:target { box-shadow: 0 0 0 3px #ffb38a, var(--shadow); }
.ios #iphone, .android #android { box-shadow: 0 0 0 2px #ffcfb4, var(--shadow); }
.key { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; background: #eef1f7; border: 1px solid var(--line); font-size: .85rem; }
.install-banner { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(11, 20, 48, .96); color: #fff; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); animation: slideUp .5s var(--ease) both; }
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 11px; flex: 0 0 auto; }
.install-banner div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.install-banner span { color: #b9c2dc; font-size: .8rem; }
.install-close { background: none; border: 0; color: #b9c2dc; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
@keyframes slideUp { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.offline-page { background: var(--ink); color: #fff; }
.offline-box { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.offline-box img { border-radius: 22px; margin-bottom: 14px; }
.offline-box .muted { color: #b9c2dc; max-width: 340px; margin-bottom: 18px; }
@media (max-width: 880px) {
  .app-hero-inner { grid-template-columns: 1fr; }
  .phone { width: 190px; height: 380px; }
}
.nav a, .nav .link-btn { white-space: nowrap; }
@media (min-width: 881px) and (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a:not(.btn), .nav .link-btn { font-size: .9rem; }
  .nav-cta { padding-left: 1em; padding-right: 1em; }
}
