:root {
  --ink: #0e1a2b;
  --ink-soft: #4a5a70;
  --muted: #7d8aa0;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --primary: #1554f0;
  --primary-dark: #0d3fbf;
  --primary-soft: #e8efff;
  --mint: #18b89a;
  --mint-soft: #e2f7f2;
  /* Bleu « AIBotics » (fond sombre de la marque) */
  --navy: #063982;        /* bleu roi du logo */
  --navy-hi: #0a4697;     /* plus clair, haut de dégradé / halo */
  --navy-deep: #042453;   /* plus foncé, bas de dégradé */
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px rgba(14, 26, 43, .06);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;

  /* Illustrations des robots */
  --r-body: #ffffff;
  --r-stroke: #c9d3e2;
  --r-base: #1c2a3f;
  --r-screen: #14233a;
  --r-eye: #5fe3c8;
  --r-accent: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
body.has-compare { padding-bottom: 84px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 800px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .75em;
}

/* ───────── Boutons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-added { background: var(--mint-soft); color: #0b7a64; border-color: #b4e9dd; }
.btn:focus-visible, .chip:focus-visible, .card-visual:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px;
}

/* ───────── En-tête ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .5em; flex-shrink: 0; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand, var(--primary)); font-weight: 700; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.badge { background: #fff; color: var(--primary); border-radius: 999px; min-width: 1.5em; padding: 0 .4em; font-size: .78rem; line-height: 1.5em; text-align: center; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ───────── Hero (fond sombre, effet « tech ») ───────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(41, 110, 255, .4), transparent 65%),
    linear-gradient(120deg, var(--navy-deep), var(--navy));
}
.hero-bg { /* vidéo d'arrière-plan (robot en situation) */
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-bg iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; border: 0;
}
.hero-bg::after { /* voile sombre pour garder le texte lisible */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(4, 18, 52, .92) 32%, rgba(6, 40, 110, .62) 72%, rgba(6, 40, 110, .45));
}
.hero::before { /* grille discrète, estompée vers les bords */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(56px, 9vw, 120px); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: #fff; }
.hero h1 em {
  font-style: normal; color: #6ea0ff;
  background: linear-gradient(100deg, #7aa8ff, #5fe3c8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .eyebrow { color: #7fd8c6; display: inline-flex; align-items: center; gap: .7em; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 36em; }
.hero .lead { color: rgba(255, 255, 255, .72); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.hero .btn-primary { background: linear-gradient(120deg, #2f6bff, #1554f0); box-shadow: 0 8px 28px rgba(21, 84, 240, .45); }
.hero .btn-primary:hover:not(:disabled) { background: linear-gradient(120deg, #4a7fff, #2a63f5); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.hero-stats { list-style: none; padding: 24px 0 0; margin: 0; display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero-stats span { color: rgba(255, 255, 255, .55); font-size: .9rem; }
.hero-visual { position: relative; aspect-ratio: 1 / .9; max-width: 100%; }
.hero-orb {
  position: absolute; inset: 6% 4% 2%; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 60%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 60px rgba(95, 227, 200, .12), 0 0 120px rgba(21, 84, 240, .35);
}
.hero-robots { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6%; gap: 4%; }
.hero-robot {
  width: 30%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, #eef3fc, #cfddf1); border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .06);
}
.hero-robot.hr-0 { animation: float 6s ease-in-out -2s infinite; }
.hero-robot.hr-1 { margin-bottom: 8%; animation: float 5s ease-in-out infinite; }
.hero-robot.hr-2 { animation: float 5.5s ease-in-out -1s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Toutes les photos : même cadre 4:5 (format des fichiers de /images), image remplissant le cadre */
.hero-robot img, .card-visual img, .detail-visual img, .ql-visual img, .compare-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Les fonds blancs des photos prennent la teinte de la marque (le robot reste intact) */
.hero-robot img, .card-visual img, .robot-visual img, .detail-visual img, .compare-visual img { mix-blend-mode: multiply; }
/* Agibot : PNG détourés (fond transparent) → pas de fusion, sinon le robot se teinte */
.brand-agibot .card-visual img, .brand-agibot .robot-visual img,
.brand-agibot .detail-visual img, .brand-agibot .compare-visual img { mix-blend-mode: normal; }
/* Agibot : visuels carrés sur fond blanc → affichés entiers, plus petits dans le cadre */
.brand-agibot .card-visual img, .brand-agibot .detail-visual img {
  object-fit: contain; padding: 14%; box-sizing: border-box;
}
.brand-agibot .ql-visual img, .brand-agibot .compare-visual img {
  object-fit: contain; padding: 16%; box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) { .hero-robot { animation: none !important; } html { scroll-behavior: auto; } }

/* ───────── Illustrations SVG ───────── */
.robot-svg { width: 100%; height: 100%; overflow: visible; }
.robot-svg .r-body { fill: var(--r-body); stroke: var(--r-stroke); stroke-width: 2; }
.robot-svg .r-base { fill: var(--r-base); }
.robot-svg .r-screen { fill: var(--r-screen); }
.robot-svg .r-eye { fill: var(--r-eye); }
.robot-svg .r-accent { fill: var(--r-accent); }
.robot-svg .r-leg { stroke: var(--r-base); }

/* ───────── Sections ───────── */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--ink-soft); }

/* ───────── Barre de filtres ───────── */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
}
.chip span { color: var(--muted); font-weight: 500; margin-left: .2em; }
.chip:hover { border-color: var(--ink-soft); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .6); }
.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar select, .toolbar input {
  font: inherit; font-size: .9rem; padding: .55em 1em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.toolbar input { min-width: 0; width: 200px; }

/* ───────── Couleurs par fabricant ───────── */
.brand-pudu { --brand: #1554f0; --brand-soft: #e8efff; --brand-bg: #f5f8ff; }
.brand-orionstar { --brand: #7b3fe4; --brand-soft: #f0e8ff; --brand-bg: #f9f5ff; }

.brand-keenon { --brand: #0a8f7f; --brand-soft: #dff5f1; --brand-bg: #f2fbf9; }

.brand-agibot { --brand: #e8601c; --brand-soft: #ffe9dc; --brand-bg: #fff6f1; }

.brand-pudu .btn-primary, .brand-orionstar .btn-primary, .brand-keenon .btn-primary, .brand-agibot .btn-primary { background: var(--brand); }
.brand-pudu .btn-primary:hover:not(:disabled), .brand-orionstar .btn-primary:hover:not(:disabled), .brand-keenon .btn-primary:hover:not(:disabled), .brand-agibot .btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 82%, #000); }
.btn-primary.btn-orion { background: #7b3fe4; }
.btn-primary.btn-orion:hover { background: #5f2bc0; }
.btn-primary.btn-keenon { background: #0a8f7f; }
.btn-primary.btn-keenon:hover { background: #07705f; }

/* Les photos KEENON sont des visuels 5:8 avec le robot dans la moitié basse : on recadre dessus. */
img[src*="keenon-"] { object-position: 50% 88%; }

/* ───────── Sections par fabricant ───────── */
.brand-section { padding-block: clamp(40px, 6vw, 72px); background: var(--brand-bg); border-top: 6px solid var(--brand); }
.brand-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px;
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--brand-soft);
}
.brand-head > div:first-child { max-width: 680px; }
.brand-head h1, .brand-head h2 { color: var(--brand); }
.brand-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.brand-head p:last-child { color: var(--ink-soft); margin: 0; }
.brand-section .eyebrow { color: var(--brand); }
.brand-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.brand-result { font-weight: 700; font-size: .95rem; }
.brand-link { font-size: .88rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.brand-link:hover { text-decoration: underline; }
@media (max-width: 560px) { .brand-head-side { align-items: flex-start; } }

/* ───────── Fil d'Ariane & en-têtes de page ───────── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand, var(--primary)); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); background: radial-gradient(900px 400px at 90% 0%, var(--primary-soft), transparent 60%); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; max-width: 18em; }
.quote-layout h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }

/* ───────── Accueil : cartes fabricants ───────── */
.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.brand-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--brand-bg); border: 1.5px solid var(--brand-soft); border-top: 6px solid var(--brand);
  transition: transform .2s, box-shadow .2s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 20px 0; }
.brand-card-thumbs span { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #fff, var(--brand-soft)); display: flex; align-items: center; justify-content: center; }
/* Robots verticaux (livraison/accueil) : l'image remplit la vignette */
.brand-card-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.brand-card-thumbs svg { height: 80%; width: auto; }
/* Agibot : robots larges → on montre le robot entier, un peu plus petit */
.brand-agibot .brand-card-thumbs span { padding: 10px; }
.brand-agibot .brand-card-thumbs img { object-fit: contain; }
.brand-card-body { padding: 20px 24px 24px; }
.brand-card-body .eyebrow { color: var(--brand); }
.brand-card h3 { font-size: 1.6rem; color: var(--brand); }
.brand-card-body p:not(.eyebrow) { color: var(--ink-soft); font-size: .95rem; }
.brand-card-link { font-weight: 700; color: var(--brand); }
.other-brand { padding-block: 40px; background: #fff; }
.other-brand .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.other-brand-link {
  display: grid; gap: 4px; padding: 24px 28px; border-radius: var(--radius); text-decoration: none; color: var(--ink-soft);
  background: var(--brand-bg); border: 1.5px solid var(--brand-soft); border-left: 6px solid var(--brand); transition: box-shadow .2s;
}
.other-brand-link:hover { box-shadow: var(--shadow); }
.other-brand-link .eyebrow { color: var(--brand); margin: 0; }
.other-brand-link strong { font-size: 1.4rem; color: var(--brand); letter-spacing: -.02em; }

/* ───────── Fiche technique d'un robot ───────── */
.robot-top { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.robot-visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand, var(--primary)) 6%, #fff), color-mix(in srgb, var(--brand, var(--primary)) 20%, #fff)); display: flex; align-items: center; justify-content: center;
}
.robot-visual img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.brand-keenon .robot-visual img { padding: 2%; }
.robot-visual svg { height: 80%; width: auto; }
.robot-visual .brand-tag { background: var(--brand); color: #fff; }
.robot-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .15em; }
.robot-tagline { font-size: 1.2rem; font-weight: 600; color: var(--brand); }
.robot-summary { color: var(--ink-soft); font-size: 1.05rem; max-width: 38em; }
.robot-stats { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.robot-stats li { background: #fff; border: 1px solid var(--brand-soft); border-radius: 14px; padding: 14px 16px; }
.robot-stats strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; color: var(--brand); }
.robot-stats span { font-size: .82rem; color: var(--muted); }
.price-block { background: #fff; border: 1px solid var(--brand-soft); border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; }
.price-label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 2px 0 12px; }
.price-main strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.price-main span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price-rows { list-style: none; padding: 0; margin: 0; }
.price-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.price-rows li span { color: var(--ink-soft); font-weight: 500; }
.price-rows li strong { font-weight: 700; text-transform: none; letter-spacing: 0; }
.price-note { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.robot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.robot-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; }
.robot-tools .compare-check { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.robot-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 24px; }
/* Sections image + texte (storytelling) */
.robot-story .wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.story-row--rev .story-media { order: 2; }
.story-media { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.story-media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.story-media:hover img { transform: scale(1.03); }
.story-text h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.02em; color: var(--brand); margin-bottom: .4em; }
.story-text p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65; max-width: 40em; }
.robot-video .video-single { max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) {
  .story-row { grid-template-columns: 1fr; }
  .story-row--rev .story-media { order: 0; }
}
.spec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.spec-head p { color: var(--muted); font-size: .9rem; }
.spec-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 8px 20px; }
.spec-card .specs tr:last-child th, .spec-card .specs tr:last-child td { border-bottom: 0; }
.spec-card .specs th, .spec-card .specs td { padding: 14px 12px; }
.robot-cta { padding-block: clamp(40px, 6vw, 64px); }
.robot-related .brand-head { margin-top: 40px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prev-next a { display: grid; gap: 2px; padding: 16px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--brand-soft); text-decoration: none; color: var(--ink); }
.prev-next a:hover { border-color: var(--brand); }
.prev-next span { font-size: .8rem; color: var(--muted); }
.prev-next .next { text-align: right; }
.not-found { text-align: center; }
@media (max-width: 820px) {
  .robot-top { grid-template-columns: 1fr; }
  .robot-visual { max-width: 380px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) { .robot-stats strong { font-size: 1.1rem; } .robot-stats li { padding: 10px; } }

/* ───────── Cartes produits ───────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--brand-soft, var(--line)); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand, var(--primary)) 5%, #fff), color-mix(in srgb, var(--brand, var(--primary)) 18%, #fff)) !important;
}
.card-visual svg { height: 80%; width: auto; }
.card-visual svg, .card-visual img { transition: transform .3s; }
.card:hover .card-visual svg, .card:hover .card-visual img { transform: scale(1.04); }
.brand-tag {
  position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .3em .7em; border-radius: 999px; background: var(--brand, #fff); color: #fff; box-shadow: var(--shadow);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 16px; }
.card-cats { font-size: .75rem; font-weight: 600; color: var(--brand, var(--primary)); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4em; }
.card h3 { font-size: 1.25rem; margin-bottom: .2em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand, var(--primary)); }
.card .compare-check input { accent-color: var(--brand, var(--primary)); }
.card-tagline { color: var(--ink-soft); font-size: .92rem; min-height: 2.9em; }
.card-stats { list-style: none; padding: 12px 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-block: 1px solid var(--line); }
.card-stats li { min-width: 0; }
.card-stats strong { display: block; font-size: 1rem; letter-spacing: -.02em; }
.card-stats span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1 1 auto; padding-inline: .9em; }
.compare-check { display: flex; align-items: center; gap: .5em; font-size: .85rem; color: var(--ink-soft); margin-top: 12px; cursor: pointer; user-select: none; }
.compare-check input { accent-color: var(--primary); width: 16px; height: 16px; }

/* ───────── Secteurs ───────── */
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sector { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.sector p { color: var(--ink-soft); font-size: .95rem; }
.sector-tags { font-size: .82rem !important; font-weight: 600; color: var(--muted) !important; margin: 0; }
.sector-tags a { color: var(--primary); text-decoration: none; }
.sector-tags a:hover { text-decoration: underline; }

/* ───────── Services ───────── */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-n { display: inline-block; font-weight: 800; font-size: .85rem; color: var(--primary); background: var(--primary-soft); border-radius: 8px; padding: .2em .6em; margin-bottom: 14px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }
.financing {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px 36px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, var(--ink), #1b3257);
}
.financing h3 { font-size: 1.4rem; }
.financing p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 40em; }
.financing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost.btn-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost.btn-light:hover { border-color: #fff; }

/* ───────── FAQ ───────── */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ───────── Devis ───────── */
.quote-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.quote-layout > div > p { color: var(--ink-soft); }
.quote-list { margin-top: 28px; }
.quote-list h3 { font-size: 1rem; }
.quote-list ul { list-style: none; padding: 0; margin: 0; }
.quote-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ql-visual { width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--bg-alt); padding: 4px; display: flex; justify-content: center; }
.ql-visual { width: 48px; height: 60px; padding: 0; overflow: hidden; }
.ql-visual svg { width: auto; height: 100%; }
.ql-name { flex: 1; min-width: 0; }
.ql-name strong { display: block; }
.ql-name span { font-size: .8rem; color: var(--muted); }

/* Coordonnées de contact (devis) */
.contact-info { margin-top: 28px; display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1.5px solid var(--line); transition: border-color .2s;
}
.contact-card:hover { border-color: var(--primary); }
.contact-main { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.contact-main:hover .contact-value { color: var(--primary); }
.contact-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.contact-value { display: block; font-size: 1.15rem; font-weight: 700; word-break: break-word; transition: color .2s; }
.contact-copy {
  flex: none; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-soft);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.contact-copy:hover { border-color: var(--primary); color: var(--primary); }
.contact-copy.is-copied { border-color: var(--primary); color: #fff; background: var(--primary); }
.rgpd-note {
  margin: 20px 0 0; font-size: .82rem; line-height: 1.6; color: var(--ink-soft);
  padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line);
}
.rgpd-note strong { color: var(--ink); }
.rgpd-note a { color: var(--primary); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 0; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.form-privacy a { color: var(--primary); }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty span { min-width: 1.6em; text-align: center; font-weight: 600; }
.ql-remove { background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; padding: 0 4px; }
.ql-remove:hover { color: #d33; }
.quote-empty { padding: 20px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--muted); }

.quote-form { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.quote-form input:not([type="checkbox"]), .quote-form select, .quote-form textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%;
}
.quote-form textarea { resize: vertical; }
.quote-form .checkbox { display: flex; align-items: flex-start; gap: .6em; font-weight: 500; }
.quote-form .checkbox input { margin-top: .25em; accent-color: var(--primary); }
.form-error { color: #c62828; font-size: .9rem; font-weight: 600; margin: 0; }

/* ───────── Pied de page ───────── */
/* Fond identique à celui de l'en-tête (.site-header, thème sombre) */
.site-footer { background: rgba(6, 57, 130, .95); color: rgba(255, 255, 255, .7); padding-block: 48px 32px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.logo-footer { color: #fff; margin-bottom: .6em; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.footer-cols > div { display: grid; gap: 6px; align-content: start; }
.footer-cols h4 { margin: 0 0 6px; font-size: .95rem; color: #fff; }
.footer-cols a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .88rem; }
.footer-cols a:hover, .footer-cols h4 a { color: #fff; }
.legal { font-size: .78rem; color: rgba(255, 255, 255, .45); border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; }

/* ───────── Barre de comparaison ───────── */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14, 26, 43, .08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.compare-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-block: 12px; }
.compare-items { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.compare-pill { display: inline-flex; align-items: center; gap: .3em; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: .85rem; padding: .35em .5em .35em .9em; border-radius: 999px; }
.compare-pill button { background: none; border: 0; font-size: 1.1rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 .2em; }
.compare-hint { color: var(--muted); font-size: .85rem; }
.compare-actions { display: flex; gap: 8px; }

/* ───────── Modale ───────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 26, 43, .55); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-panel {
  position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); animation: pop .25s ease-out;
}
.modal-panel.is-wide { max-width: 1040px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close {
  position: sticky; top: 0; float: right; margin: -12px -12px 0 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-alt); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.modal-close:hover { background: var(--line); }

.detail { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; margin-bottom: 12px; }
.detail-visual { background: linear-gradient(165deg, color-mix(in srgb, var(--brand, var(--primary)) 5%, #fff), color-mix(in srgb, var(--brand, var(--primary)) 18%, #fff)); border-radius: var(--radius); aspect-ratio: 4 / 5; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.detail-visual svg { width: auto; height: 80%; }
.detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.detail-tagline { font-weight: 600; color: var(--primary); }
.detail-head > p:not(.eyebrow):not(.detail-tagline) { color: var(--ink-soft); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-sub { margin-top: 32px; font-size: 1.05rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.features li { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; }
.features strong { display: block; font-size: .95rem; margin-bottom: .2em; }
.features span { font-size: .88rem; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--ink-soft); font-weight: 500; width: 42%; }
.specs td { font-weight: 600; }
.source { margin-top: 20px; font-size: .82rem; color: var(--muted); }

.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table tbody th { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.compare-table thead th { font-size: 1rem; vertical-align: bottom; }
.compare-table thead small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.compare-visual { height: 110px; margin-bottom: 8px; }
.compare-visual { width: 110px; height: auto; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.compare-visual svg { height: 100%; width: auto; }

.success { text-align: center; padding: 16px 0; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-size: 2rem; font-weight: 700; display: grid; place-items: center; }
.success p { color: var(--ink-soft); max-width: 30em; margin-inline: auto; margin-bottom: 24px; }

/* ───────── Notification ───────── */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120;
  background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: pop .2s ease-out; max-width: calc(100vw - 32px);
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .quote-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .quote-btn { margin-left: auto; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 8px 24px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 1.05rem; }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; }
  .detail-visual { max-width: 220px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .header-inner { gap: 12px; }
    .toolbar-right, .toolbar-right > * { width: 100%; }
  .toolbar input { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  .financing { padding: 24px; }
}

/* ───────── Impression d'une fiche technique ───────── */
@media print {
  .site-header, .site-footer, .compare-bar, .toast, .skip-link, .robot-actions, .robot-tools, .robot-cta, .robot-related, .breadcrumb { display: none !important; }
  body { padding: 0 !important; font-size: 12px; }
  .brand-section, .section-alt { background: none !important; border: 0 !important; }
  .section, .brand-section { padding-block: 12px !important; }
  .robot-top { grid-template-columns: 200px 1fr; gap: 24px; }
  .robot-visual { box-shadow: none; }
  .features li, .spec-card, .robot-stats li { break-inside: avoid; border: 1px solid #ddd; }
  a { color: inherit; text-decoration: none; }
}

/* ───────── Catalogue complet, lien « voir tout » et pages de texte ───────── */
.chips-group { display: grid; gap: 10px; }
.section-more { margin: 32px 0 0; text-align: center; }
.toolbar-right { align-items: center; }
.toolbar-right .brand-result { font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }

.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2em; }
.prose h2:first-of-type { margin-top: 1em; }
.prose h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.prose p { color: var(--ink-soft); }
.notice { padding: 14px 18px; border-radius: 12px; background: #fff6e0; border: 1px solid #f1d58a; color: #6b4e00 !important; }


/* ───────── Section sombre + vidéos ───────── */
.section-dark { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, rgba(21, 84, 240, .28), transparent 65%); }
.section-dark .wrap { position: relative; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #7fd8c6; }
.section-dark .section-head p:last-child { color: rgba(255, 255, 255, .7); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.video-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .25s, border-color .25s, background .25s;
}
.video-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame img, .video-frame iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-start { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.video-start::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 13, 27, .65)); transition: opacity .25s; }
.video-start:hover::after { opacity: .6; }
.video-start img { transition: transform .4s; }
.video-start:hover img { transform: scale(1.05); }
.video-start:focus-visible { outline: 3px solid #7fd8c6; outline-offset: -3px; }
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); box-shadow: 0 10px 32px rgba(0, 0, 0, .4); transition: transform .2s;
}
.video-play::before { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #0e1a2b; }
.video-start:hover .video-play { transform: scale(1.1); }
.video-body { padding: 20px 22px 24px; }
.video-meta { display: flex; align-items: center; gap: .6em; margin: 0 0 .6em; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.video-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand, #7fd8c6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.video-body h3 { color: #fff; font-size: 1.35rem; margin-bottom: .3em; }
.video-body p:not(.video-meta) { color: rgba(255, 255, 255, .7); font-size: .93rem; }
/* Vidéo sur fond clair (fiche produit) : texte lisible */
.robot-video .video-card { background: #fff; border: 1px solid var(--line); }
.robot-video .video-card:hover { border-color: var(--brand-soft); background: #fff; }
.robot-video .video-body h3 { color: var(--ink); }
.robot-video .video-meta { color: var(--muted); }
.robot-video .video-meta i { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.robot-video .video-body p:not(.video-meta) { color: var(--ink-soft); }
.video-body a { color: #7fd8c6; font-weight: 600; font-size: .92rem; text-decoration: none; }
.video-body a:hover { text-decoration: underline; }
.video-note { margin: 28px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .5); max-width: 60em; }

/* ───────── Apparition au défilement ───────── */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ───────── Finitions « haut de gamme » ───────── */
.site-header { background: rgba(255, 255, 255, .8); }
.section-head h2 { letter-spacing: -.035em; }
.brand-card, .sector { transition: transform .25s, box-shadow .25s, border-color .25s; }
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-soft); }
.financing { background: radial-gradient(600px 240px at 90% 0%, rgba(41, 110, 255, .4), transparent 65%), linear-gradient(120deg, var(--navy-deep), var(--navy)); }
.main-nav a { white-space: nowrap; }
@media (max-width: 1080px) { .main-nav { gap: 18px; } }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }


/* ═════════════ Thème sombre « premium » commun à toutes les pages ═════════════ */

/* En-tête sombre, logo image */
.site-header { background: rgba(6, 57, 130, .95); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.logo img { display: block; height: 44px; width: auto; }
.logo-footer img { height: 48px; }
.main-nav a { color: rgba(255, 255, 255, .72); }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { position: relative; color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #5fe3c8, #6ea0ff);
}
.menu-toggle span { background: #fff; }

/* Bandeau de titre des pages intérieures (fond sombre, halo aux couleurs de la marque) */
.page-hero, .robot-hero {
  position: relative; overflow: hidden; color: #fff; border-top: 0;
  background:
    radial-gradient(820px 380px at 88% 0%, color-mix(in srgb, var(--brand, #1554f0) 62%, transparent), transparent 66%),
    radial-gradient(520px 320px at 100% 100%, rgba(24, 184, 154, .22), transparent 66%),
    linear-gradient(180deg, var(--navy-hi), var(--navy-deep));
}
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); }
.robot-hero { padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); }
.page-hero::before, .robot-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000, transparent 75%);
}
.page-hero .wrap, .robot-hero .wrap { position: relative; }
.brand-hero, .robot-hero { border-bottom: 3px solid var(--brand, transparent); }
.page-hero h1, .robot-hero h1 { color: #fff; }
.page-hero .eyebrow, .robot-hero .eyebrow, .brand-hero .eyebrow { color: color-mix(in srgb, var(--brand, #5fe3c8) 40%, #fff); }
.page-hero .lead, .page-hero p { color: rgba(255, 255, 255, .72); }
.page-hero .lead a { color: #9dc0ff; }
.page-hero .breadcrumb, .robot-hero .breadcrumb { color: rgba(255, 255, 255, .45); }
.page-hero .breadcrumb a, .robot-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb a:hover, .robot-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb [aria-current], .robot-hero .breadcrumb [aria-current] { color: #fff; }

/* Pages fabricants : titre dans le bandeau, catalogue en dessous */
.brand-hero .brand-head { margin: 0; padding: 0; border: 0; }
.brand-hero .brand-head h1 { color: #fff; }
.brand-hero .brand-head p:last-child { color: rgba(255, 255, 255, .72); }
.brand-hero .brand-result { color: #fff; }
.brand-hero .brand-link { color: color-mix(in srgb, var(--brand) 35%, #fff); }
.catalog-page { background: var(--brand-bg, #fff); }
.catalog-page .chip.is-active, .catalog-page .chip[aria-pressed="true"] { background: var(--ink); }

/* Fiche robot */
.robot-visual { box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .14); }
.robot-tagline { color: color-mix(in srgb, var(--brand) 40%, #fff); }
.robot-summary { color: rgba(255, 255, 255, .72); }
.robot-hero .robot-stats li, .robot-hero .price-block { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.robot-hero .robot-stats strong, .robot-hero .price-main strong, .robot-hero .price-rows li strong { color: #fff; }
.robot-hero .robot-stats span, .robot-hero .price-label, .robot-hero .price-main span, .robot-hero .price-note { color: rgba(255, 255, 255, .55); }
.robot-hero .price-rows li { border-top-color: rgba(255, 255, 255, .12); }
.robot-hero .price-rows li span { color: rgba(255, 255, 255, .7); }
.robot-hero .btn-ghost, .brand-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.robot-hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.robot-hero .link-btn { color: color-mix(in srgb, var(--brand) 35%, #fff); }
.robot-hero .compare-check { color: rgba(255, 255, 255, .75); }

@media (max-width: 1024px) {
  .main-nav { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .main-nav a { border-bottom-color: rgba(255, 255, 255, .1); }
  .main-nav a[aria-current="page"]::after { display: none; }
}

/* Impression : la fiche redevient claire sur papier */
@media print {
  .robot-hero { background: none !important; border: 0 !important; }
  .robot-hero::before { display: none; }
  .robot-hero h1, .robot-hero p, .robot-hero li, .robot-hero span, .robot-hero strong, .robot-hero td, .robot-hero th { color: #111 !important; }
  .robot-hero .robot-stats li, .robot-hero .price-block { background: none; border-color: #ddd; }
}

/* Ajustements */
.page-hero + .section, .page-hero + .catalog-page { padding-top: clamp(40px, 5vw, 64px); }
.toolbar input { width: 260px; }
.ql-name a { color: var(--ink); text-decoration: none; }
.ql-name a:hover { color: var(--primary); }
