/* =========================================================
   AlgerDrive — Feuille de style
   Thème "showroom nocturne" · accent teal · glassmorphism
   ========================================================= */

/* ---------- Polices auto-hébergées ----------
   Sora + Inter (SIL Open Font License 1.1), fichiers variables servis
   depuis le site : aucune requête vers un tiers, aucune IP transmise. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-solid: #12141c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-muted: #a3abb8;
  --text-dim: #6b7484;

  --accent: #2dd4bf;
  --accent-2: #22c1a6;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --accent-line: rgba(45, 212, 191, 0.4);
  --accent-grad: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 45%, #0ea5a4 100%);
  --gold: #f5c451;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 24px 60px -24px rgba(45, 212, 191, 0.35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-2: #eef1f7;
  --surface: rgba(15, 22, 40, 0.026);
  --surface-2: rgba(15, 22, 40, 0.05);
  --surface-solid: #ffffff;
  --border: rgba(12, 20, 40, 0.1);
  --border-strong: rgba(12, 20, 40, 0.18);
  --text: #0e1420;
  --text-muted: #4a5567;
  --text-dim: #8a94a6;
  --accent: #0d9488;
  --accent-2: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --accent-line: rgba(13, 148, 136, 0.35);
  --accent-grad: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
  --shadow-md: 0 20px 45px -22px rgba(15, 30, 60, 0.28);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 24px 55px -26px rgba(13, 148, 136, 0.32);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

/* L'attribut [hidden] doit toujours l'emporter sur un display: d'auteur
   (sinon .modal-overlay/.empty-state/.to-top resteraient dans le rendu). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg) 60%); }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.blob-1 { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(45,212,191,0.55), transparent 70%); animation: drift1 22s var(--ease) infinite alternate; }
.blob-2 { width: 460px; height: 460px; top: 10%; right: -160px; background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 70%); animation: drift2 26s var(--ease) infinite alternate; }
.blob-3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: radial-gradient(circle, rgba(16,185,129,0.32), transparent 70%); animation: drift3 30s var(--ease) infinite alternate; }
html[data-theme="light"] .aurora-blob { opacity: 0.35; }
.aurora-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-70px, 50px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(40px, -50px) scale(1.2); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; white-space: nowrap; }
.btn-primary { background: var(--accent-grad); color: #04211d; box-shadow: 0 10px 30px -12px rgba(45,212,191,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(45,212,191,0.7); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.brand-name strong { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.92rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); transition: color 0.2s, border-color 0.2s, transform 0.3s; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); transform: rotate(-12deg); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 116px) 0 clamp(48px, 7vw, 84px); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 860px; margin-inline: auto; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin: 26px 0 0; }
.hero-inner > .hero-title:first-child { margin-top: 0; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--text-muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 640px; margin: 22px 0 0; }

.search-shell { position: relative; display: flex; align-items: center; width: min(640px, 100%); margin-top: 38px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 6px 6px 6px 20px; box-shadow: var(--shadow-md); transition: border-color 0.25s, box-shadow 0.25s; }
.search-shell:focus-within { border-color: var(--accent-line); box-shadow: var(--shadow-glow); }
.search-icon { color: var(--text-dim); flex-shrink: 0; }
.search-shell input { flex: 1; border: none; background: none; color: var(--text); font-size: 1rem; padding: 13px 12px; outline: none; min-width: 0; }
.search-shell input::placeholder { color: var(--text-dim); }
.search-clear { width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--text-muted); background: var(--surface-2); flex-shrink: 0; transition: color 0.2s, background 0.2s; }
.search-clear:hover { color: var(--text); background: var(--border-strong); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; margin-top: 48px; }
.stat { padding: 20px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(6px); transition: border-color 0.25s, transform 0.25s; }
.stat:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }

/* ---------- Section heads ---------- */
.directory, .insights { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-sub { color: var(--text-muted); margin: 10px 0 0; font-size: 1.02rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--accent-line), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 1.2rem; font-weight: 700; }
.card-commune { display: inline-flex; align-items: center; gap: 5px; font-size: 0.84rem; color: var(--text-muted); margin-top: 6px; }
.card-commune svg { color: var(--accent); flex-shrink: 0; }
.rating { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(245,196,81,0.12); border: 1px solid rgba(245,196,81,0.28); color: var(--gold); font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.rating svg { width: 13px; height: 13px; }

.card-price { margin: 18px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: baseline; gap: 8px; }
.card-price .from { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.card-price .amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.card-price .unit { font-size: 0.82rem; color: var(--text-muted); }
.card-price.on-request .amount { font-size: 1.1rem; color: var(--text-muted); }

.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag { font-size: 0.76rem; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag.muted { background: var(--surface-2); color: var(--text-muted); font-weight: 500; }

.card-vehicles { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 7px; }
.card-vehicles svg { color: var(--text-dim); flex-shrink: 0; }

.card-actions { display: flex; gap: 9px; margin-top: auto; }
.card-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; transition: all 0.2s; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.card-btn:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-btn svg { width: 15px; height: 15px; }
.card-btn.primary { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); flex: 0 0 auto; padding-inline: 16px; }
.card-btn.icon-only { flex: 0 0 auto; padding-inline: 12px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-icon { font-size: 2.6rem; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { color: var(--text-muted); margin: 8px 0 22px; }

/* ---------- Section Recommandé ---------- */
.recommande { padding: clamp(40px, 6vw, 72px) 0 0; }
.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 45%),
    var(--surface-solid);
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.featured-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-line));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.featured-glow { position: absolute; top: -40%; left: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(45,212,191,0.28), transparent 70%); filter: blur(20px); pointer-events: none; }
.featured-main { position: relative; padding: clamp(24px, 3.5vw, 40px); }
.featured-side { position: relative; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 24px; background: var(--surface); border-left: 1px solid var(--border); }
.featured-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--accent-grad); color: #04211d; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; box-shadow: 0 8px 22px -10px rgba(45,212,191,0.7); }
.featured-head { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; }
.featured-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); flex-shrink: 0; }
.featured-name { font-size: clamp(1.5rem, 3vw, 2rem); }
.featured-commune { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }
.featured-commune svg { color: var(--accent); flex-shrink: 0; }
.featured-pitch { color: var(--text-muted); font-size: 1rem; margin: 20px 0 24px; max-width: 52ch; }
.featured-price { display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 26px; }
.featured-price .from { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.featured-price .amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.featured-price .unit { font-size: 0.86rem; color: var(--text-muted); }
.featured-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.featured-block h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; margin-bottom: 13px; }
.featured-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.featured-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 0.83rem; font-weight: 500; }
.featured-chip svg { color: var(--accent); }

/* ---------- Recommandations secondaires ---------- */
.reco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: clamp(22px, 3vw, 30px); }
.reco-card { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.reco-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.reco-top { display: flex; align-items: flex-start; gap: 13px; }
.reco-rank { flex-shrink: 0; display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 9px; border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; }
.reco-name { font-size: 1.12rem; font-weight: 700; }
.reco-commune { display: inline-flex; align-items: flex-start; gap: 5px; font-size: 0.82rem; color: var(--text-muted); margin-top: 5px; }
.reco-commune svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.reco-why { color: var(--text-muted); font-size: 0.9rem; margin: 15px 0 0; }
.reco-card .card-price { margin: 16px 0 14px; padding: 11px 14px; }
.reco-card .card-price .amount { font-size: 1.28rem; }
.reco-card .card-vehicles { margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(48px, 7vw, 88px) 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-solid); overflow: hidden; transition: border-color 0.25s; }
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 20px; height: 20px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-answer { padding: 0 22px 22px; color: var(--text-muted); font-size: 0.95rem; }
.faq-answer p { margin: 0; }

/* ---------- Insights ---------- */
.insights-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.panel { padding: 26px; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border); }
.panel-title { font-size: 1.12rem; margin-bottom: 22px; }
.panel-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 18px; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 12px; font-size: 0.86rem; }
.bar-name { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { display: block; height: 9px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); width: 0; transition: width 1s var(--ease); }
.bar-val { text-align: right; font-weight: 700; color: var(--text); font-size: 0.84rem; }

.coverage { display: flex; flex-direction: column; gap: 16px; }
.cov-row { display: flex; flex-direction: column; gap: 7px; }
.cov-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.cov-head .cov-name { color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.cov-head .cov-name svg { color: var(--accent); }
.cov-head .cov-pct { font-weight: 700; }
.cov-track { display: block; height: 7px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.cov-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent-grad); width: 0; transition: width 0.9s var(--ease); }

/* ---------- Blog : accueil ---------- */
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.blog-hero { padding: clamp(46px, 8vw, 92px) 0 clamp(26px, 4vw, 44px); }
.blog-hero-inner { max-width: 800px; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0; }
.blog-hero p { color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); margin: 20px 0 0; }
.posts { padding: 0 0 clamp(48px, 7vw, 88px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.post-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.post-cat { align-self: flex-start; font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 5px 11px; border-radius: var(--radius-pill); }
.post-title { font-size: 1.2rem; margin: 16px 0 0; line-height: 1.25; }
.post-excerpt { color: var(--text-muted); font-size: 0.92rem; margin: 12px 0 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-dim); margin-top: auto; }
.post-meta .sep { opacity: 0.5; }
.post-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.post-more svg { transition: transform 0.25s var(--ease); }
.post-card:hover .post-more svg { transform: translateX(4px); }

/* ---------- Blog : article ---------- */
.article { padding: clamp(28px, 5vw, 54px) 0 clamp(40px, 6vw, 80px); }
.article-container { max-width: 860px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 26px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 30px; }
.article-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.85rem); margin: 18px 0 0; }
.article-lede { color: var(--text-muted); font-size: clamp(1.02rem, 2vw, 1.15rem); margin: 18px 0 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-dim); margin-top: 20px; }
.toc { margin-top: 30px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 13px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.93rem; display: grid; gap: 7px; }
.toc a:hover { color: var(--accent); }

.article-body h2 { font-size: clamp(1.38rem, 3vw, 1.8rem); margin: 46px 0 0; scroll-margin-top: calc(var(--nav-h) + 20px); }
.article-body h3 { font-size: 1.1rem; margin: 30px 0 0; }
.article-body p { color: var(--text-muted); margin: 15px 0 0; }
.article-body ul, .article-body ol { color: var(--text-muted); margin: 15px 0 0; padding-left: 22px; display: grid; gap: 9px; }
.article-body li::marker { color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.article-body a:hover { text-decoration-color: var(--accent); }
.table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 460px; }
.article-body th, .article-body td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.article-body thead th { background: var(--surface-2); color: var(--text); font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.article-body tbody td { color: var(--text-muted); }
.article-body tbody tr:last-child td { border-bottom: none; }
.callout { display: flex; gap: 14px; margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.callout svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.callout p { margin: 0; color: var(--text); font-size: 0.93rem; }
.article-cta { margin-top: 46px; padding: clamp(24px, 4vw, 34px); border-radius: var(--radius-lg); background: radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 55%), var(--surface-solid); border: 1px solid var(--accent-line); }
.article-cta h2 { font-size: 1.34rem; }
.article-cta p { color: var(--text-muted); margin: 12px 0 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.article-faq { margin-top: 48px; }
.article-faq h2 { font-size: clamp(1.38rem, 3vw, 1.8rem); margin-bottom: 20px; }
.article-faq .faq-list { max-width: none; }
.author-note { margin-top: 30px; font-size: 0.82rem; color: var(--text-dim); }
.related { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.3rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.related-card { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.25s, transform 0.25s; }
.related-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.related-card .rc-cat { font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); font-weight: 700; }
.related-card h3 { font-size: 0.97rem; margin-top: 9px; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 56px 0 30px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr; gap: 40px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 380px; margin: 16px 0 0; }
.footer-mail { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.footer-mail:hover { text-decoration: underline; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,5,9,0.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; }
.modal { position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8); transform: translateY(20px) scale(0.98); transition: transform 0.35s var(--ease); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: sticky; float: right; top: 16px; right: 16px; margin: 16px 16px -20px 0; z-index: 2; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); transition: all 0.2s; }
.modal-close:hover { color: var(--text); background: var(--border-strong); transform: rotate(90deg); }
.modal-body { padding: 30px 32px 34px; }
.modal-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.modal-title { font-size: 1.8rem; margin: 10px 0 6px; }
.modal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.modal-meta .rating { margin-left: auto; }
.modal-price { display: flex; align-items: baseline; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 26px; }
.modal-price .amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text); }
.modal-price .unit, .modal-price .from { color: var(--text-muted); font-size: 0.86rem; }
.modal-section { margin-bottom: 26px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 14px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 0.92rem; transition: all 0.2s; }
a.contact-item:hover { border-color: var(--accent-line); background: var(--surface-2); }
.contact-item .ci-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact-item .ci-label { font-size: 0.74rem; color: var(--text-dim); }
.contact-item .ci-value { font-weight: 600; word-break: break-word; }
.fleet-group { margin-bottom: 16px; }
.fleet-group:last-child { margin-bottom: 0; }
.fleet-cat { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 9px; text-transform: capitalize; }
.fleet-models { display: flex; flex-wrap: wrap; gap: 7px; }
.model-chip { font-size: 0.8rem; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-muted); }
.service-item svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-row { display: flex; gap: 12px; font-size: 0.9rem; }
.info-row .info-key { color: var(--text-dim); min-width: 130px; flex-shrink: 0; }
.info-row .info-val { color: var(--text); }
.modal-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.modal-cta .btn { flex: 1; min-width: 150px; }

/* ---------- To top ---------- */
.to-top { position: fixed; bottom: 26px; right: 26px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-grad); color: #04211d; box-shadow: 0 12px 30px -10px rgba(45,212,191,0.6); transition: transform 0.3s, opacity 0.3s; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation (uniquement si JS actif : sans JS, tout est visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card { opacity: 0; transform: translateY(20px); }
.js .card.in { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-side { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  /* Navigation compacte : les liens restent atteignables, en défilement horizontal */
  .nav-inner { gap: 10px; }
  .nav-links { gap: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 10px; font-size: 0.84rem; white-space: nowrap; }
  .nav-cta { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 96px 1fr 30px; }
}
@media (max-width: 560px) {
  /* Sur très petit écran, on ne garde que les liens essentiels */
  .brand-name { display: none; }
  .nav-links a.nav-secondary { display: none; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .grid { grid-template-columns: 1fr; }
  .filters { padding: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal-body { padding: 24px 20px 28px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-row .info-key { min-width: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .card { opacity: 1; transform: none; }
}
