:root{
  --bleu:#0055A4; --blanc:#ffffff; --rouge:#EF4135; --gris:#0a0a0a; --gris-clair:#f5f7fb; --text:#1f2937;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:#ffffff;line-height:1.7}
a{color:var(--bleu);text-decoration:none}
a:hover{text-decoration:underline}
.header{position:sticky;top:0;background:linear-gradient(90deg,var(--bleu),var(--rouge));color:#fff;z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;max-width:1200px;margin:auto}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:36px}
.brand span{font-weight:700;letter-spacing:.3px}
.menu{display:flex;gap:14px;flex-wrap:wrap}
.menu a{color:#fff;padding:8px 12px;border-radius:10px}
.menu a:hover{background:rgba(255,255,255,.1)}
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center;max-width:1200px;margin:32px auto;padding:0 24px}
.card{background:var(--gris-clair);border-radius:var(--radius);padding:18px}
.cta{display:inline-block;background:var(--bleu);color:#fff;padding:12px 18px;border-radius:12px;font-weight:600;border:2px solid var(--bleu)}
.cta.alt{background:var(--rouge);border-color:var(--rouge)}
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
section{max-width:1200px;margin:28px auto;padding:0 24px}
.badge{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px}
footer{background:#0b1020;color:#c7d2fe;margin-top:40px}
footer .wrap{max-width:1200px;margin:auto;padding:28px 24px;display:grid;grid-template-columns:2fr 1fr;gap:24px}
.kbd{background:#111827;color:#fff;border-radius:6px;padding:2px 6px;font-family:ui-monospace,Menlo,Consolas,monospace}
img
.breadcrumb{font-size:.95rem;margin:10px 0;color:#6b7280}
.breadcrumb a{color:#374151}
.main{max-width:900px;margin:auto}
blockquote{border-left:4px solid var(--bleu);padding-left:14px;color:#374151;background:#f9fafb;border-radius:8px}
table{border-collapse:collapse;width:100%}
th,td{padding:10px;border:1px solid #e5e7eb;text-align:left}
hr{border:none;border-top:1px solid #e5e7eb;margin:24px 0}
.alert{background:#fff;border-left:5px solid var(--rouge);padding:12px;border-radius:10px}
form input, form select, form textarea{width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:10px}
form button{margin-top:10px}
.small{font-size:.9rem;color:#6b7280}
@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}
.seo-keywords{margin-top:28px;background:#f9fafb;border:1px dashed #d1d5db;border-radius:12px;padding:14px}
.seo-keywords h2{font-size:1.05rem;margin:0 0 6px 0;color:#111827}
.seo-keywords p{font-size:.92rem;color:#4b5563;margin:8px 0}

/* --- Mobile header/nav fix (responsive hamburger) --- */
.menu-toggle{display:none}
@media (max-width: 768px){
  header{position: sticky; top:0; z-index: 999; background:#ffffff; max-height:64px; overflow:hidden;
    border-bottom:1px solid #e5e7eb; padding:8px 12px}
  header.open{max-height:100vh; overflow:auto}
  header .menu-toggle{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #e5e7eb;
    border-radius:10px; background:#f8fafc; font-weight:700}
  header nav a{display:block; padding:12px 4px; border-top:1px solid #f1f5f9}
  .main{scroll-margin-top:70px}
}

/* --- Responsive media constraints --- */
.media{margin:16px auto}
.media img{display:block; width:100%; height:auto; border-radius:12px}
.media--narrow{max-width:720px}
@media (max-width: 992px){ .media--narrow{max-width:70vw} }
@media (max-width: 600px){ .media--narrow{max-width:92vw} }

/* --- Header & navigation size fix --- */
:root{
  --header-h: 56px;
  --nav-font: clamp(14px, 3.2vw, 16px);
}
header{line-height:1; background:#fff; border-bottom:1px solid #e5e7eb}
header .brand img{max-height:40px; height:auto}
header nav a{font-size:var(--nav-font); padding:10px 8px; display:inline-block; white-space:nowrap}
/* Compact header layout */
@media (min-width: 769px){
  header{position:sticky; top:0; z-index: 999; padding:8px 12px}
  header .menu-toggle{display:none !important}
}
/* Mobile styles */
@media (max-width: 768px){
  body{overflow-x:hidden}
  header{position:sticky; top:0; z-index:999; padding:8px 12px; max-height:var(--header-h); overflow:hidden}
  header.open{max-height:calc(100vh); overflow:hidden}
  header .menu-toggle{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #e5e7eb;
    border-radius:10px; background:#f8fafc; font-weight:700; font-size:14px}
  header nav{position:fixed; top:var(--header-h); left:0; right:0; bottom:0; background:#fff;
    border-top:1px solid #e5e7eb; padding:8px 12px; transform:translateY(-120%); transition:transform .2s ease}
  header.open nav{transform:translateY(0)}
  header nav a{display:block; padding:12px 10px; border-bottom:1px solid #f1f5f9}
}

/* --- Compact header & robust mobile panel (v2) --- */
:root{
  --header-h: 48px;
}
header{position:sticky; top:0; z-index:999; background:#fff; border-bottom:1px solid #e5e7eb; padding:6px 10px; line-height:1}
header .brand{display:inline-block; vertical-align:middle}
header .brand img{max-height:32px !important; height:auto; width:auto}
header .menu-toggle{display:none}
header nav a{display:inline-block; padding:8px 8px; font-size:clamp(13px, 2.8vw, 15px); white-space:nowrap}

@media (max-width: 768px){
  header{max-height:var(--header-h); overflow:hidden}
  header .menu-toggle{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #e5e7eb;
    border-radius:10px; background:#f8fafc; font-weight:700; font-size:14px}
  /* Whether nav is inside or outside header, target by id */
  #site-nav{position:fixed; top:var(--header-h); left:0; right:0; bottom:0; background:#fff;
    border-top:1px solid #e5e7eb; padding:8px 12px; transform:translateY(-120%); transition:transform .2s ease; overflow-y:auto}
  header.open #site-nav, #site-nav.open{transform:translateY(0)}
  #site-nav a{display:block; padding:12px 10px; border-bottom:1px solid #f1f5f9}
}

/* --- Mobile nav visibility fix (contrast + layering) --- */
#site-nav{ background:#ffffff !important; color:#111827 !important; z-index:1000 !important; }
#site-nav a{ color:#111827 !important; font-weight:600; display:block; padding:12px 16px; }
#site-nav a:hover{ background:#f3f4f6; }
header.open #site-nav{ background:#ffffff !important; }

/* --- Home single-column visuals fix --- */
.home-hero .media{display:block; max-width:720px; margin:16px auto; clear:both; grid-column:1 / -1}
.home-hero .media picture, .home-hero .media img{display:block; width:100%; height:auto}
@media (max-width: 992px){
  .home-hero .media{max-width:70vw}
}
@media (max-width: 600px){
  .home-hero .media{max-width:92vw}
}

/* --- Home visuals: force single-column centered (v2) --- */
.home-hero{ --home-img-max: 640px; }
.home-hero article{ column-count: 1 !important; }
.home-hero figure.media{ display:block !important; float:none !important; clear:both !important; max-width:var(--home-img-max); margin:12px auto !important; }
.home-hero figure.media picture,
.home-hero figure.media img{ display:block !important; width:100% !important; height:auto !important; }
.home-hero .grid,
.home-hero .grid-2,
.home-hero .grid-3,
.home-hero [class*="grid"]{ display:block !important; grid-template-columns: 1fr !important; }
@media (max-width: 992px){ .home-hero figure.media{ max-width:70vw } }
@media (max-width: 600px){ .home-hero figure.media{ max-width:92vw } }

/* --- Home visuals centering cleanup --- */
.home-hero figure.media{ display:block; margin:20px auto; max-width:960px; text-align:center }
.home-hero figure.media picture,
.home-hero figure.media img{ display:block; margin:0 auto; width:100%; height:auto }
@media (max-width: 992px){ .home-hero figure.media{ max-width:70vw } }
@media (max-width: 600px){ .home-hero figure.media{ max-width:92vw } }

/* --- Home intro centered block --- */
.home-intro{ max-width:960px; margin:0 auto; text-align:center; padding:20px 16px }
.home-intro h1{ font-size:2rem; margin-bottom:20px }
.home-intro p{ font-size:1.125rem; margin:20px auto; max-width:720px }
.home-intro .cta-row, .home-intro .cta, .home-intro .cta.alt{ display:inline-flex; gap:12px; flex-wrap:wrap; justify-content:center }
.home-intro figure.media{ display:block; margin:16px auto; max-width:960px }
.home-intro figure.media picture, .home-intro figure.media img{ display:block; width:100%; height:auto }
@media (max-width: 992px){ .home-intro, .home-intro figure.media{ max-width:70vw } }
@media (max-width: 600px){ .home-intro, .home-intro figure.media{ max-width:92vw } }

/* --- HOME HARD CENTER OVERRIDES --- */
.home-force-center main, 
.home-force-center .main, 
.home-force-center article, 
.home-force-center section.hero, 
.home-force-center .home-intro {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start;
}
.home-force-center h1, 
.home-force-center h2, 
.home-force-center p, 
.home-force-center .cta-row {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home-force-center .cta-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px;
  flex-wrap: wrap;
}
.home-force-center .media {
  width: min(92vw, 760px) !important;
  max-width: 760px !important;
  margin: 16px auto !important;
  float: none !important;
  clear: both !important;
}
.home-force-center .media picture,
.home-force-center .media img { 
  display: block !important; 
  width: 100% !important; 
  height: auto !important; 
}
.home-force-center .grid, 
.home-force-center .grid-2, 
.home-force-center .grid-3, 
.home-force-center [class*="grid"] {
  display: block !important;
  grid-template-columns: 1fr !important;
}
.home-force-center * { float: none !important; }
@media (min-width: 1200px){
  .home-force-center .home-intro,
  .home-force-center .media { width: 760px !important; }
}

/* === THEME MODERNE — Prime Vélo Cargo CEE ================================== */
/* Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root{
  --pv-blue:#1e3a8a;      /* bleu profond */
  --pv-blue-2:#2243a0;
  --pv-red:#dc2626;       /* rouge adouci */
  --pv-red-2:#ef4444;
  --pv-bg:#f9fafb;        /* gris très clair */
  --pv-text:#111827;      /* gris foncé */
  --pv-muted:#6b7280;     /* gris moyen */
  --pv-border:#e5e7eb;
  --pv-radius:14px;
  --pv-shadow:0 8px 24px rgba(2,6,23,.08);
}

/* Base */
html{scroll-behavior:smooth}
body{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--pv-text);
  background:var(--pv-bg);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  letter-spacing:.1px;
}
a{color:var(--pv-blue); text-underline-offset:2px; transition:color .2s ease}
a:hover{color:var(--pv-blue-2)}

/* Containers */
main.main, .main{
  max-width:1200px;
  margin:0 auto;
  padding:16px;
}
article{
  background:#fff;
  border:1px solid var(--pv-border);
  border-radius:var(--pv-radius);
  box-shadow:var(--pv-shadow);
  padding:20px;
}

/* Header / Nav */
header{
  backdrop-filter:saturate(140%) blur(6px);
  background:rgba(255,255,255,.92);
  box-shadow:0 6px 16px rgba(2,6,23,.04);
  border-bottom:1px solid var(--pv-border);
}
header nav a{
  border-radius:10px;
  transition:background .2s ease, color .2s ease, transform .06s ease;
}
header nav a:hover{ background:#eef2ff; color:#111827 }
header nav a:active{ transform:translateY(1px) }
.menu-toggle{ border-radius:12px }

/* CTAs */
.cta{
  appearance:none; border:none; cursor:pointer;
  background:linear-gradient(135deg, var(--pv-blue), var(--pv-red));
  color:#fff !important; padding:12px 18px; border-radius:999px; font-weight:700;
  box-shadow:0 10px 20px rgba(30,58,138,.18), inset 0 0 0 1px rgba(255,255,255,.12);
  transition:transform .08s ease, box-shadow .2s ease, opacity .2s ease;
  display:inline-flex; align-items:center; gap:8px;
}
.cta:hover{ box-shadow:0 12px 26px rgba(30,58,138,.22); transform:translateY(-1px) }
.cta:active{ transform:translateY(0) }
.cta.alt{
  background:#fff; color:var(--pv-blue) !important; border:1px solid var(--pv-border);
  box-shadow:var(--pv-shadow)
}
.cta.alt:hover{ background:#f8fafc; color:var(--pv-blue-2) !important }

/* Cards, blocks */
.card{
  background:#fff; border:1px solid var(--pv-border); border-radius:var(--pv-radius);
  padding:16px; box-shadow:var(--pv-shadow);
  transition:transform .08s ease, box-shadow .2s ease; text-decoration:none
}
.card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(2,6,23,.10) }
.grid, .grid-2, .grid-3{ gap:16px }

/* FAQ accordions */
.faq-accordion details{ border:1px solid var(--pv-border); border-radius:12px; padding:10px 12px; background:#fff }
.faq-accordion summary{ position:relative; padding-right:22px }
.faq-accordion summary::after{ content:'▾'; position:absolute; right:6px; top:0; opacity:.6 }
.faq-accordion details[open] summary::after{ transform:rotate(180deg) }

/* Media (images) */
.media{ overflow:hidden; border-radius:16px; box-shadow:var(--pv-shadow) }
.media picture{ display:block }
.media img{ transition:transform .4s ease, filter .2s ease }
.media:hover img{ transform:scale(1.015) }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], textarea, select{
  width:100%; border:1px solid var(--pv-border); border-radius:12px; padding:10px 12px;
  background:#fff; outline:none; transition:border-color .2s ease, box-shadow .2s ease
}
input:focus, textarea:focus, select:focus{ border-color:#a5b4fc; box-shadow:0 0 0 4px rgba(165,180,252,.25) }
button, input[type="submit"]{ border-radius:999px; padding:10px 16px }
form .cta{ margin-top:8px }

/* Breadcrumb */
.breadcrumb{ color:var(--pv-muted); font-size:.9rem; margin-bottom:8px }
.breadcrumb a{ color:var(--pv-blue) }
.breadcrumb a:hover{ text-decoration:underline }

/* Footer */
.footer-nav-internal{
  background:#0f172a; color:#e5e7eb; border:none !important; box-shadow:0 -4px 16px rgba(2,6,23,.12)
}
.footer-nav-internal a{ color:#e5e7eb }
.footer-nav-internal a:hover{ color:#fff; text-decoration:underline }

/* Headings */
h1,h2,h3{ line-height:1.2; letter-spacing:.1px }
h1{ font-weight:800; font-size:clamp(1.8rem, 2.6vw, 2.3rem) }
h2{ font-weight:700; font-size:clamp(1.3rem, 2vw, 1.5rem); margin-top:20px }
h3{ font-weight:600; font-size:1.1rem }

/* Tables (if any) */
table{ width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border-radius:12px; box-shadow:var(--pv-shadow) }
th,td{ padding:10px 12px; border-bottom:1px solid var(--pv-border) }
thead th{ background:#f1f5f9; text-align:left }

/* Animations + a11y */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important }
}

/* Section alternance (soft) — optional: only affects background, not content */
section:nth-of-type(odd){ background:transparent }
section:nth-of-type(even){ background:linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,1)); border-radius:16px; padding:8px 0 }

/* Ensure home hard center still looks good */
.home-force-center .media{ box-shadow:var(--pv-shadow) }

/* === Mobile full-screen menu & responsive polish === */
@media (max-width: 768px){
  header{ max-height:56px; }
  #site-nav{
    position:fixed; top:0; left:0; right:0; bottom:0;
    width:100%; height:100vh;
    background:#ffffff; color:#111827;
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    padding:64px 16px 24px;
    transform:translateY(-100%); transition:transform .25s ease-in-out;
    z-index:9999;
  }
  header.open #site-nav, #site-nav.open{ transform:translateY(0); }
  #site-nav a{ display:block; padding:16px 12px; font-size:18px; color:#111827; border-bottom:1px solid #f1f5f9 }
  #site-nav a:focus{ outline:2px solid #a5b4fc; outline-offset:2px }
  .menu-toggle{ display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid #e5e7eb; border-radius:12px; background:#f8fafc; font-weight:700 }
  .menu-toggle[data-open="true"]{ background:#e5efff }
  /* Global responsive polish */
  main.main, .main{ padding:12px 8px }
  article{ padding:16px 12px; border-radius:12px }
  h1{ font-size:clamp(1.5rem, 6vw, 1.9rem) }
  p{ font-size:clamp(.98rem, 3.8vw, 1.05rem) }
  .home-intro, .media, .media--narrow, .home-intro .media{ max-width:92vw !important; margin-left:auto; margin-right:auto }
  .card{ width:100% }
}

/* === Mobile overlay fullscreen menu + centering (v2) === */
@media (max-width: 768px){
  html.nav-open, body.nav-open { overflow: hidden !important; }
  header{ max-height:56px !important; padding:8px 12px !important; }
  /* Force nav to overlay full screen and be readable */
  #site-nav{
    position: fixed !important;
    inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */
    width: 100% !important;
    height: 100vh !important;
    background: #ffffff !important;
    color: #111827 !important;
    z-index: 10000 !important;
    padding: 68px 18px 24px !important; /* space for header */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateY(-100%) !important;
    transition: transform .25s ease-in-out !important;
    border-top: 1px solid #e5e7eb !important;
  }
  html.nav-open #site-nav, header.open #site-nav, #site-nav.open{
    transform: translateY(0) !important;
  }
  #site-nav a{
    display:block !important; padding:16px 12px !important; font-size:18px !important;
    color:#111827 !important; border-bottom:1px solid #f3f4f6 !important;
  }
  /* Strong centering for content blocks on small screens */
  main.main, .main{ padding: 10px 8px !important; margin: 0 auto !important; width: 100% !important; }
  article{ padding: 14px 12px !important; margin: 10px auto !important; }
  .home-intro, .home-force-center .home-intro, .home-force-center .media, .media, .media--narrow{
    max-width: 94vw !important; width: 94vw !important; margin-left:auto !important; margin-right:auto !important;
  }
  .home-force-center h1, .home-force-center p, .home-force-center .cta-row, .home-intro h1, .home-intro p{
    text-align: center !important; margin-left:auto !important; margin-right:auto !important;
  }
}

/* === Mobile hamburger visible & overlay nav (v3) === */
@media (max-width: 768px){
  .menu-toggle{
    position: fixed !important;
    top: 8px; right: 8px;
    z-index: 10002 !important;
    display: inline-flex !important;
  }
  #site-nav{
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #ffffff !important;
    color: #111827 !important;
    z-index: 10001 !important;
    padding: 68px 18px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateY(-100%) !important;
    transition: transform .25s ease-in-out !important;
    display: block !important;
  }
  html.nav-open #site-nav, header.open #site-nav, #site-nav.open{
    transform: translateY(0) !important;
  }
  #site-nav a{
    display:block !important; padding:16px 12px !important; font-size:18px !important;
    color:#111827 !important; border-bottom:1px solid #f3f4f6 !important;
  }
  /* Mobile centering polish */
  main.main, .main{ padding:12px 8px !important; margin:0 auto !important; }
  article{ padding:16px 12px !important; margin:10px auto !important; }
  .home-intro, .media, .media--narrow{ max-width: 94vw !important; margin-left:auto !important; margin-right:auto !important; }
  .home-intro h1, .home-intro p, .home-intro .cta-row{ text-align:center !important; margin-left:auto !important; margin-right:auto !important; }
}

/* === ULTRA FORCE: overlay menu when nav-open (all widths) === */
html.nav-open .menu-toggle{
  position: fixed !important;
  top: 10px; right: 10px;
  z-index: 100002 !important;
}
#site-nav{
  display: none;
}
html.nav-open #site-nav{
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 100001 !important;
  padding: 76px 20px 24px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-top: 1px solid #e5e7eb !important;
}
html.nav-open #site-nav, html.nav-open #site-nav *{
  color: #111827 !important;
}
html.nav-open #site-nav a{
  display: block !important;
  padding: 18px 14px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-decoration: none !important;
}
html.nav-open #site-nav a:focus{ outline: 2px solid #a5b4fc; outline-offset: 2px }
html.nav-open, body.nav-open{ overflow: hidden !important; }
/* Ensure header does not cover the overlay */
html.nav-open header{ z-index: 100003 !important; background: rgba(255,255,255,.96) !important; }

/* --- Mobile media centering fix (global) --- */
@media (max-width: 768px){
  .media, .media--narrow{ width:100% !important; max-width:100% !important; text-align:center !important; margin-left:auto !important; margin-right:auto !important; }
  .media img, .media picture, .media--narrow img, .media--narrow picture{ display:block !important; max-width:100% !important; width:100% !important; height:auto !important; margin-left:auto !important; margin-right:auto !important; }
}

/* === Sticky CTA: Audit CEE offert === */
.pvc-cta-sticky{
  position: fixed; right: 16px; bottom: 16px; z-index: 10060;
  background: #dc2626; color: #fff; padding: 12px 16px; border-radius: 9999px;
  font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.pvc-cta-sticky:hover{ background:#b91c1c; color:#fff; }
@media (max-width: 768px){
  .pvc-cta-sticky{ right: 12px; left: 12px; bottom: 12px; text-align:center; }
}


/* --- FIX: images de la home (mobile) --- */
@media (max-width: 768px) {
  .home-hero .media,
  .home-hero figure.media,
  .home-hero .media picture {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .home-hero .media img,
  .home-hero figure.media img,
  .main.home-hero .media img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
  }
  /* garder une marge douce entre les visuels */
  .home-hero figure.media { margin: 0 auto 16px auto; text-align: center; }
}



/* --- HERO VISUALS RELOOK --- */
.hero-visuals {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 8px 0;
}
.hero-visuals figure {
  flex: 1 1 300px;
  max-width: 340px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fff;
  text-align: center;
}
.hero-visuals img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero-visuals figcaption {
  font-size: 0.9rem;
  color: #333;
  padding: 8px;
}
@media (max-width: 768px) {
  .hero-visuals { flex-direction: column; align-items: center; gap: 16px; }
  .hero-visuals figure { max-width: 100%; border-radius: 10px; }
}



/* --- HERO VISUALS RELOOK v2 (50% desktop, centered) --- */
.hero-visuals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px auto 8px auto;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}
.hero-visuals figure {
  flex: 1 1 150px;
  max-width: 170px; /* ~50% smaller than previous 340px */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fff;
}
.hero-visuals img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero-visuals figcaption {
  font-size: 0.85rem;
  color: #333;
  padding: 6px;
  line-height: 1.3;
}

/* Mobile remains full width and centered */
@media (max-width: 768px) {
  .hero-visuals { flex-direction: column; align-items: center; gap: 16px; }
  .hero-visuals figure { max-width: 100%; width: 100%; border-radius: 10px; }
  .hero-visuals figcaption { font-size: 0.9rem; padding: 8px; }
}



/* === HERO CARD (velo-cargo) === */
.hero-card{max-width:340px;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.08);margin:0 auto;}
.hero-card img{display:block;width:100%;height:auto;object-fit:cover}
.hero-card figcaption{font-size:.9rem;color:#333;padding:8px;text-align:center}
@media (max-width:768px){.hero-card{max-width:100%;}}



/* --- MOBILE HOTFIX 2025-08-26 FINAL: prevent homepage images overlapping on small screens --- */
@media (max-width: 768px) {
  /* For the new hero visuals grid */
  .hero-visuals {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  .hero-visuals figure,
  .hero-visuals .hero-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    position: relative !important;
  }
  .hero-visuals picture { display: block !important; width: 100% !important; }
  .hero-visuals img { display: block !important; width: 100% !important; height: auto !important; object-fit: contain !important; }

  /* Fallback for legacy homepage markup */
  .home-hero figure.media,
  .home-hero .media.media--narrow,
  .main.home-hero figure.media {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
  }
  .home-hero figure.media picture,
  .main.home-hero figure.media picture { display: block !important; width: 100% !important; }
  .home-hero figure.media img,
  .main.home-hero figure.media img { display: block !important; width: 100% !important; height: auto !important; object-fit: contain !important; }
}



/* --- MOBILE FIX: center .home-intro so it aligns with hero visuals on small screens --- */
@media (max-width: 768px) {
  .home-intro { text-align: center; margin-left: auto; margin-right: auto; }
  .home-intro h1 { text-align: center; margin: 0 auto 16px auto; }
  .home-intro p { text-align: center; margin: 0 auto 12px auto; }
  .home-intro .cta, .home-intro .cta.alt { display: inline-block; margin: 6px auto; }
  .home-intro div { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
}



/* --- MOBILE FIX GLOBAL: centrer uniformément la home (<=768px) --- */
@media (max-width: 768px) {
  body.home, .home-hero, .home-intro, .hero-visuals, .home-hero p, .home-hero div,
  .home-hero section, .home-hero figure, .home-hero figcaption {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .home-hero div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .home-hero figure, .home-hero .hero-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}



/* --- MOBILE FULL PAGE CENTER FIX (header + footer + content) --- */
@media (max-width: 768px) {
  header, nav, footer, .footer, .site-footer,
  body.home, .home-hero, .home-intro, .hero-visuals,
  .home-hero p, .home-hero div, .home-hero section,
  .home-hero figure, .home-hero figcaption {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  header nav, .site-footer nav, footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  footer .footer-links, footer .footer-credits, .site-footer .footer-links, .site-footer .footer-credits {
    text-align: center !important;
    margin: 0 auto !important;
  }
}



/* --- Announcement banner (TRA-EQ-131) --- */
.announcement {
  max-width: 980px;
  margin: 12px auto 16px auto;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #cfe3ff;
  background: linear-gradient(0deg, #ffffff, #ffffff) padding-box,
              linear-gradient(90deg, #0055A4, #ffffff 50%, #EF4135) border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: left;
}
.announcement.success { border: 2px solid #dbeafe; }
.announcement strong { color: #0B4DB1; font-weight: 700; }
@media (max-width:768px){
  .announcement { margin: 12px 12px 16px 12px; text-align:center; }
}

