/* =================================================================
   DESIGN TOKENS  —  tout le branding se règle ici
   Pour rebrander : modifier uniquement les variables de :root
   ================================================================= */
:root {
  /* Couleurs */
  --ink:        #0a0a0b;
  --ink-soft:   #2a2d33;
  --muted:      #6b7280;
  --muted-2:    #9aa0a6;
  --paper:      #ffffff;
  --surface:    #ffffff;
  --surface-2:  #eef3fb;
  --hero-bg:    #e9f1fc;
  --line:       #e6eaf0;
  --line-soft:  #f0f3f8;
  --accent:     #1466ff;
  --accent-ink: #0b49c2;
  --accent-2:   #5b9cff;
  --ok:         #1f8a5b;
  --danger:     #c0392b;

  /* Typo */
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  --fs-eyebrow: 0.78rem;
  --fs-small:   0.9rem;
  --fs-body:    1.05rem;
  --fs-lead:    1.2rem;
  --fs-h3:      clamp(1.25rem, 1rem + 1.1vw, 1.65rem);
  --fs-h2:      clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  --fs-h1:      clamp(2.5rem, 1.3rem + 5vw, 5rem);

  /* Échelle d'espacement */
  --sp-1: 0.5rem;  --sp-2: 0.75rem; --sp-3: 1rem;   --sp-4: 1.5rem;
  --sp-5: 2rem;    --sp-6: 3rem;    --sp-7: 4.5rem;  --sp-8: 6.5rem;

  /* Rayons & ombres */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow:    0 1px 2px rgba(20,40,80,.04), 0 10px 30px rgba(20,40,80,.08);
  --shadow-lg: 0 24px 64px rgba(20,40,80,.14);

  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================= RESET ============================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ============================ LAYOUT ============================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section--accent { background: linear-gradient(135deg, var(--accent), #0a52e0); color: #fff; border-radius: var(--radius-lg); }
.section--accent .container { padding-block: var(--sp-7); }
.section--accent h2, .section--accent h3 { color: #fff; }
.section--accent .eyebrow { color: #cfe0ff; }
.section--accent .eyebrow::before { background: #cfe0ff; }
.section--accent .section-head p, .section--accent .lead, .section--accent p { color: rgba(255,255,255,.82); }
.section--accent .step { border-top-color: rgba(255,255,255,.28); }
.section--accent .step::before { color: #cfe0ff; }
.section--accent .step p { color: rgba(255,255,255,.8); }
.tone-soft { color: var(--muted-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 64ch; margin-bottom: var(--sp-6); }
.section-head h2 { font-size: var(--fs-h2); margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-lead); }

/* ============================ BUTTONS =========================== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .8rem .8rem .8rem 1.5rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); box-shadow: 0 8px 22px rgba(20,102,255,.32); }
.btn--primary::after {
  content: "→"; display: grid; place-items: center;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: #fff; color: var(--accent); font-size: .82em; line-height: 1;
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: .8rem 1.5rem; }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1rem 1rem 1rem 1.9rem; font-size: 1.05rem; }
.btn--lg.btn--ghost { padding: 1rem 1.9rem; }

/* ============================= HEADER =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar { background: var(--accent); color: #fff; overflow: hidden; padding: .55rem 0; }
.marquee { display: flex; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 1.4rem; white-space: nowrap; flex-shrink: 0; min-width: 100%; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.marquee-track .dot { opacity: .55; }
.topbar:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .7rem)); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: .9rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: var(--sp-4); }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: .25rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s var(--ease); }
.menu-cta { display: none; }
body.menu-open { overflow: hidden; }

/* ============================== HERO ============================ */
.hero { background: var(--hero-bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 600px; }
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-7) var(--sp-6) var(--sp-7) max(var(--sp-4), calc((100vw - var(--container)) / 2 + var(--sp-4)));
}
.hero-left h1 { font-size: var(--fs-h1); margin-top: var(--sp-4); }
.hero-left .lead { margin-top: var(--sp-3); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.hero-trust .stat b { font-family: var(--font-display); font-size: 1.7rem; display: block; line-height: 1; }
.hero-trust .stat span { font-size: .82rem; color: var(--muted); }
.hero-right { position: relative; background: linear-gradient(160deg, #eef3fb, #d7e3f4); }
.hero-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-right .plate { position: absolute; left: 20px; bottom: 20px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 10px; padding: .5rem .8rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--accent-ink); box-shadow: var(--shadow); }

/* ============================ SERVICES ========================== */
.card-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.service-card .code { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--accent); }
.service-card h3 { font-size: var(--fs-h3); margin: var(--sp-2) 0 var(--sp-3); }
.service-card p { color: var(--muted); font-size: var(--fs-small); flex: 1; }
.service-card .more { margin-top: var(--sp-4); font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.service-card:hover .more { gap: .7rem; }

/* ============================ PROCESS =========================== */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: .85rem; color: var(--accent); position: absolute; top: -.1rem; left: 0; }
.step h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step p { color: var(--muted); font-size: var(--fs-small); }

/* ============================== FAQ ============================= */
.faq { max-width: 100%; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: var(--sp-4) 0; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.faq-q .icon { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 0; font-size: 1.3rem; font-weight: 400; transition: .3s var(--ease); color: var(--accent); }
.faq-item[open] .faq-q .icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a { padding-bottom: var(--sp-4); color: var(--muted); max-width: 70ch; }
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* ============================ CONTACT =========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: var(--sp-5);
  text-align: center; cursor: pointer; transition: .25s var(--ease); background: var(--surface);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.dropzone .hint { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.file-list { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: .5rem; }
.file-chip { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .82rem; background: var(--surface-2); padding: .5rem .75rem; border-radius: 8px; }
.file-chip button { background: none; border: 0; cursor: pointer; color: var(--danger); font-weight: 700; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: var(--sp-3); }
.form-status { margin-top: var(--sp-3); padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); }
.form-status.err { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }

.info-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); position: sticky; top: 110px; }
.info-card h3 { color: #fff; }
.info-card .row { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .row .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted-2); min-width: 90px; padding-top: .2rem; }
.info-card a { color: var(--accent-2); }

/* ======================= TRUSTPILOT / CTA ====================== */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-7); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: var(--muted-2); max-width: 52ch; margin: var(--sp-3) auto var(--sp-5); }
.trust-strip { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); flex-wrap: wrap; }
.tp-stars { color: #00b67a; font-size: 1.3rem; letter-spacing: .1em; }

/* ============================== PAGE ============================ */
.page-hero { padding-block: var(--sp-7) var(--sp-6); background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); letter-spacing: .04em; margin-bottom: var(--sp-3); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: var(--fs-h1); max-width: 18ch; }
.page-hero .lead { margin-top: var(--sp-4); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p { margin-bottom: var(--sp-3); color: var(--ink-soft); }
.prose ul.bullets { margin: var(--sp-3) 0; display: grid; gap: .6rem; }
.prose ul.bullets li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.prose ul.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.callout { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-4); margin: var(--sp-5) 0; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--sp-6); align-items: start; }
.aside-card { position: sticky; top: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow); }

/* ============================ PRICING ========================== */
.price-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; max-width: 980px; margin-inline: auto; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.feature { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); position: relative; transform: scale(1.03); }
.price-card.feature:hover { transform: scale(1.03) translateY(-4px); }
.price-card.feature .code { color: #8fb8ff; }
.price-card.feature h3, .price-card.feature .price-amt { color: #fff; }
.price-card.feature .from { color: var(--muted-2); }
.price-card.feature ul li { color: rgba(255,255,255,.85); }
.price-card.feature ul li::before { color: #6ee7a8; }
.price-card.feature::before { content: "Le plus demandé"; position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.price-card .code { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.price-card h3 { font-size: var(--fs-h3); margin: var(--sp-2) 0 var(--sp-1); }
.price-card .price-amt { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; margin: var(--sp-2) 0; }
.price-card .from { font-size: .82rem; color: var(--muted); }
.price-card ul { display: grid; gap: .7rem; margin: var(--sp-5) 0; flex: 1; }
.price-card ul li { padding-left: 1.7rem; position: relative; font-size: .92rem; color: var(--ink-soft); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }

/* ============================== BLOG =========================== */
.post-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .cover { aspect-ratio: 16/10; background: var(--surface-2); object-fit: cover; width: 100%; }
.post-card .body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.post-card h3 { font-size: 1.2rem; margin: .5rem 0; }
.post-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.post-card .date { font-size: .78rem; color: var(--muted-2); margin-top: var(--sp-3); font-family: var(--font-mono); }
.loading, .empty { text-align: center; color: var(--muted); padding: var(--sp-7) 0; }
.article-body { max-width: 720px; margin-inline: auto; }
.article-body img { border-radius: var(--radius); margin: var(--sp-5) 0; }
.article-body h2 { font-size: var(--fs-h2); margin: var(--sp-6) 0 var(--sp-3); }
.article-body h3 { font-size: var(--fs-h3); margin: var(--sp-5) 0 var(--sp-2); }
.article-body p { margin-bottom: var(--sp-4); color: var(--ink-soft); }
.article-body ul:not(.bullets) { list-style: disc; padding-left: 1.3rem; margin-bottom: var(--sp-4); color: var(--ink-soft); }

/* ============================= ADMIN ========================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #fff; padding: var(--sp-5) var(--sp-4); }
.admin-side .brand { color: #fff; margin-bottom: var(--sp-6); }
.admin-side nav button { width: 100%; text-align: left; background: none; border: 0; color: rgba(255,255,255,.7); padding: .7rem .8rem; border-radius: 8px; cursor: pointer; font-weight: 500; margin-bottom: .3rem; }
.admin-side nav button.active, .admin-side nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: var(--sp-5); background: var(--paper); overflow: auto; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); flex-wrap: wrap; gap: var(--sp-3); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.admin-table th { background: var(--surface-2); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.badge { font-family: var(--font-mono); font-size: .7rem; padding: .25rem .5rem; border-radius: 6px; letter-spacing: .04em; }
.badge.draft { background: var(--surface-2); color: var(--muted); }
.badge.published { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.badge.new { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.badge.done { background: var(--surface-2); color: var(--muted); }
.modal-overlay { position: fixed; inset: 0; background: rgba(20,22,28,.5); display: none; align-items: center; justify-content: center; padding: var(--sp-4); z-index: 100; }
.modal-overlay.show { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: var(--sp-5); width: 100%; max-width: 680px; max-height: 90vh; overflow: auto; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-4); }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }

/* ============================= FOOTER ========================= */
.site-footer { background: var(--ink); color: #fff; padding-block: var(--sp-7) var(--sp-5); margin-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); }
.site-footer h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--sp-3); }
.site-footer a { color: rgba(255,255,255,.78); font-size: .92rem; display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--accent-2); }
.footer-brand p { color: var(--muted-2); font-size: .9rem; margin-top: var(--sp-3); max-width: 32ch; }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: .82rem; color: var(--muted-2); }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: clamp(3.5rem, 16vw, 13rem); line-height: .9; letter-spacing: -0.04em;
  text-align: center; margin-top: var(--sp-6); white-space: nowrap; overflow: hidden;
}

/* ===================== FLOATING (whatsapp) ==================== */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: .6rem; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff; transition: transform .25s var(--ease); }
.fab:hover { transform: scale(1.06); }
.fab.wa { background: #25d366; }

/* =========================== UTILITIES ======================== */
.text-center { text-align: center; }
.dim { color: var(--muted-2); }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

/* =========================== RESPONSIVE ======================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: var(--sp-6) var(--sp-4); }
  .hero-right { min-height: 320px; order: 2; }
  .fb-inner { grid-template-columns: 1fr !important; gap: var(--sp-5) !important; }
  .split { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .info-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sp-8: 4rem; --sp-7: 3rem; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 1002; }
  .brand { position: relative; z-index: 1002; }

  .nav-links {
    position: fixed; inset: 0; z-index: 1000;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: .15rem;
    background: var(--paper);
    padding: 18vh var(--sp-5) var(--sp-6);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .site-header.open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links li { width: 100%; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .site-header.open .nav-links li { opacity: 1; transform: none; }
  .site-header.open .nav-links li:nth-child(1) { transition-delay: .10s; }
  .site-header.open .nav-links li:nth-child(2) { transition-delay: .16s; }
  .site-header.open .nav-links li:nth-child(3) { transition-delay: .22s; }
  .site-header.open .nav-links li:nth-child(4) { transition-delay: .28s; }
  .site-header.open .nav-links li:nth-child(5) { transition-delay: .34s; }
  .site-header.open .nav-links li:nth-child(6) { transition-delay: .40s; }
  .site-header.open .nav-links li.menu-cta { transition-delay: .46s; }
  .nav-links a:not(.btn) { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem); color: var(--ink); width: 100%; padding: .25rem 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current="page"] { color: var(--accent); }
  .menu-cta { display: flex !important; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
  .menu-cta .btn { display: inline-flex; width: 100%; justify-content: center; font-size: 1rem; }

  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3); overflow-x: auto; }
  .admin-side .brand { margin-bottom: 0; }
  .admin-side nav { display: flex; gap: .5rem; }
  .admin-side nav button { width: auto; white-space: nowrap; margin-bottom: 0; }
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: var(--sp-4); }
  .cta-band { padding: var(--sp-6) var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   VOLTIX — visuels, cartes flottantes, galerie, animations
   =================================================================== */

/* --- Vignette modèle dans le hero (style Voltix) --- */
.hero-thumb { display: inline-flex; align-items: center; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem .6rem .6rem; box-shadow: var(--shadow); }
.hero-thumb img { width: 84px; height: 58px; border-radius: 10px; object-fit: cover; }
.hero-thumb .ht-label { font-size: .82rem; line-height: 1.35; }
.hero-thumb .ht-label b { display: block; font-family: var(--font-display); }
.hero-thumb .ht-label span { color: var(--muted); }

/* --- Section bleue : cartes véhicules flottantes (style Voltix) --- */
.feature-band { position: relative; overflow: visible; }
.feature-band .fb-inner { display: grid; grid-template-columns: 1fr .92fr; gap: var(--sp-6); align-items: stretch; }
.fb-copy { display: flex; flex-direction: column; justify-content: center; }
.fb-copy h2 { color: #fff; font-size: var(--fs-h2); }
.fb-copy .eyebrow { color: #cfe0ff; } .fb-copy .eyebrow::before { background: #cfe0ff; }
.fb-copy p { color: rgba(255,255,255,.85); margin-top: var(--sp-3); max-width: 42ch; }
.fb-copy .btn { margin-top: var(--sp-5); align-self: flex-start; }
.feature-band .container { padding-block: var(--sp-6); }
.fb-cards { display: flex; flex-direction: column; gap: var(--sp-4); justify-self: end; width: 100%; max-width: 410px; margin-block: -80px; }
.veh-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.veh-card:hover { transform: translateY(-6px); }
.veh-card .vc-img { position: relative; aspect-ratio: 16/10; }
.veh-card .vc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veh-card .vc-play { position: absolute; inset: 0; display: grid; place-items: center; }
.veh-card .vc-play span { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.veh-card .vc-play span::after { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.veh-card .vc-label { padding: var(--sp-4); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-align: center; }
@media (max-width: 900px) {
  .feature-band .fb-inner { grid-template-columns: 1fr; }
  .fb-cards { margin-block: var(--sp-4) 0; max-width: 100%; justify-self: stretch; }
}

/* --- Galerie mosaïque "expérience" --- */
.gallery { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(4, 158px); gap: var(--sp-3); }
.gallery .g-item, .gallery .g-cta { border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g1 { grid-column: 1; grid-row: 1 / 3; }
.gallery .g2 { grid-column: 1; grid-row: 3 / 5; }
.gallery .g3 { grid-column: 2; grid-row: 1; }
.gallery .g4 { grid-column: 3; grid-row: 1; }
.gallery .g-cta { grid-column: 2 / 4; grid-row: 2 / 4; background: linear-gradient(135deg, var(--accent), #0a52e0); color: #fff; padding: var(--sp-6); display: flex; flex-direction: column; justify-content: center; }
.gallery .g-cta h3 { color: #fff; font-size: var(--fs-h2); }
.gallery .g-cta p { color: rgba(255,255,255,.85); font-size: .95rem; margin-top: .6rem; max-width: 34ch; }
.gallery .g5 { grid-column: 2; grid-row: 4; }
.gallery .g6 { grid-column: 3; grid-row: 4; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, 150px); }
  .gallery .g1 { grid-column: 1; grid-row: 1 / 3; } .gallery .g2 { grid-column: 2; grid-row: 1 / 3; }
  .gallery .g3 { grid-column: 1; grid-row: 3; } .gallery .g4 { grid-column: 2; grid-row: 3; }
  .gallery .g-cta { grid-column: 1 / 3; grid-row: 4; } .gallery .g5 { grid-column: 1; grid-row: 5; } .gallery .g6 { grid-column: 2; grid-row: 5; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: var(--sp-2); }
  .gallery > * { grid-column: auto !important; grid-row: auto !important; }
  .gallery .g-item { aspect-ratio: 1 / 1; }
  .gallery .g-cta { grid-column: 1 / -1 !important; order: 1; aspect-ratio: auto; padding: var(--sp-5); }
  .gallery .g-cta h3 { font-size: var(--fs-h3); }
  .gallery .g5, .gallery .g6 { display: none; }
}

/* --- Micro-interactions --- */
.btn .arrow, .btn--primary::after { transition: transform .25s var(--ease); }
.btn--primary:hover::after { transform: translateX(3px); }
.btn { -webkit-tap-highlight-color: transparent; transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.service-card .more { transition: gap .25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .25s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.eyebrow::before { transition: width .4s var(--ease); }

/* --- Reveal au scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Boutons blancs sur fond bleu : pastille flèche inversée */
.section--accent .btn--primary, .g-cta .btn--primary { background: #fff; color: var(--accent); }
.section--accent .btn--primary:hover, .g-cta .btn--primary:hover { background: #eaf1ff; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.section--accent .btn--primary::after, .g-cta .btn--primary::after { background: var(--accent); color: #fff; }

/* --- Hero : carte modèle + sous-titre (style Voltix) --- */
.model-card { margin-bottom: var(--sp-5); }
.model-card img { width: 280px; max-width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.mc-title { margin-top: var(--sp-3); font-size: 1.05rem; }
.mc-title b { font-weight: 700; }
.mc-desc { margin-top: .4rem; font-size: .88rem; color: var(--muted); max-width: 32ch; line-height: 1.5; }
.hero-sub { margin-top: var(--sp-4); font-size: 1.15rem; color: var(--ink-soft); font-weight: 500; max-width: 42ch; }

/* --- Section stats "We believe" (style Voltix) --- */
.stat-band .sb-head { text-align: center; max-width: 22ch; margin: 0 auto var(--sp-7); font-size: var(--fs-h2); }
.stat-band .sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
.sb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.stat-card { background: var(--surface-2); border-radius: var(--radius); padding: var(--sp-5); }
.stat-card.big { grid-column: 1 / 3; position: relative; }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.stat-card .lbl { color: var(--muted); margin-top: .5rem; font-size: .92rem; }
.stat-card .arrow { position: absolute; top: var(--sp-4); right: var(--sp-4); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.sb-side { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.sb-side p { font-size: 1.1rem; color: var(--ink-soft); }
.sb-side .btn { margin-top: var(--sp-5); align-self: flex-start; }
@media (max-width: 900px) { .stat-band .sb-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   ANIMATIONS v2 — stagger titres, FAQ animée, tilt, wipe, shine, scroll
   =================================================================== */

/* Barre de progression de scroll */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); z-index: 200; }

/* Révélation au scroll (MagicUI text-reveal) : opacité gérée en JS */
.text-reveal .w { display: inline-block; opacity: .22; transition: opacity .12s linear; will-change: opacity; }

/* Bouton shine */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before { content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.btn--primary:hover::before { left: 160%; }
.section--accent .btn--primary::before, .g-cta .btn--primary::before { background: linear-gradient(120deg, transparent, rgba(20,102,255,.18), transparent); }

/* Tilt 3D cartes */
html.js .veh-card, html.js .g-item { transition: transform .25s var(--ease), box-shadow .25s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* Galerie : reveal géré via .reveal (cascade) */

/* FAQ animée (uniquement si JS) */
html.js .faq-a { overflow: hidden; height: 0; opacity: 0; padding-bottom: 0; transition: height .4s var(--ease), opacity .35s var(--ease), padding .4s var(--ease); }
html.js .faq-item.open .faq-a { opacity: 1; }
html:not(.js) .faq-item[open] .faq-q .icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
html.js .faq-item .faq-q .icon { transition: transform .3s var(--ease), background .3s var(--ease); }
html.js .faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }

/* Parallax hero */
.hero-right { overflow: hidden; }
html.js .hero-right img { transform: scale(1.08); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .text-reveal .w { opacity: 1 !important; transition: none; }
  html.js .faq-a { transition: none; }
  html.js .hero-right img { transform: none; }
  .btn--primary::before { display: none; }
}
.faq-a-inner { padding-bottom: var(--sp-4); }

/* ===================== TESTIMONIALS (colonnes animées) ===================== */
.testi { overflow: hidden; }
.testi-top { text-align: center; max-width: 34ch; margin: 0 auto var(--sp-6); }
.testi-badge { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; margin-bottom: var(--sp-3); }
.testi-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); height: 580px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.testi-col { display: flex; flex-direction: column; gap: var(--sp-4); animation: testiScroll 34s linear infinite; }
.testi-col.rev { animation-direction: reverse; }
.testi-col.slow { animation-duration: 46s; }
.testi-cols:hover .testi-col { animation-play-state: paused; }
@keyframes testiScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow); }
.testi-card .stars { color: #f5a623; letter-spacing: .1em; font-size: .85rem; }
.testi-card p { color: var(--ink-soft); margin-top: .5rem; font-size: .95rem; }
.testi-card .who { display: flex; align-items: center; gap: .7rem; margin-top: var(--sp-4); }
.testi-card .av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; flex: 0 0 auto; }
.testi-card .who b { display: block; font-size: .9rem; }
.testi-card .who span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .testi-cols { grid-template-columns: repeat(2, 1fr); } .testi-col:nth-child(3) { display: none; } }
@media (max-width: 600px) { .testi-cols { grid-template-columns: 1fr; height: 500px; } .testi-col:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) { .testi-col { animation: none; } .testi-cols { height: auto; -webkit-mask-image: none; mask-image: none; } }

/* ===================== SCROLL HORIZONTAL (Le déroulé) ===================== */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hscroll-track { display: flex; gap: var(--sp-5); align-items: stretch; will-change: transform; padding-inline: max(var(--sp-4), calc((100vw - var(--container)) / 2 + var(--sp-4))); }
.hpanel { flex: 0 0 auto; width: min(420px, 80vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow); }
.hpanel-intro { background: transparent; border: 0; box-shadow: none; padding-left: 0; width: min(360px, 80vw); }
.hpanel-intro h2 { font-size: var(--fs-h2); margin-top: var(--sp-3); }
.hpanel-intro p { color: var(--muted); margin-top: var(--sp-3); }
.hpanel .hstep-num { font-family: var(--font-mono); color: var(--accent); font-size: 1rem; letter-spacing: .1em; }
.hpanel h3 { font-size: var(--fs-h3); margin: var(--sp-2) 0 var(--sp-3); }
.hpanel p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: static; height: auto; display: block; overflow: visible; padding-block: var(--sp-7); }
  .hscroll-track { flex-direction: column; transform: none !important; padding-inline: var(--sp-4); }
  .hpanel, .hpanel-intro { width: auto; }
}

/* Carte autour du formulaire de contact */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow); }
@media (max-width: 540px) { .form-card { padding: var(--sp-5); } }

/* Carte provenances (texte plus long) */
.stat-card .num.num--zones { font-size: clamp(1.25rem, 4.2vw, 1.9rem); letter-spacing: -.01em; white-space: nowrap; }
