/* JUA-NEXUS — site vitrine
   Mise en page : sections pleine largeur, contenu centré (max 1180px), fond nuit avec trame « circuit » dans le hero. */
:root {
  --nuit: #0A0F1A;
  --nuit-2: #0E1524;
  --surface: #121B2E;
  --surface-2: #17223A;
  --line: #22304D;
  --fg: #E6EEF8;
  --muted: #95A6C2;
  --cyan: #22D3EE;
  --blue: #3B6CFF;
  --amber: #FFB547;
  --orange: #FF7A3D;
  --ok: #34D399;
  --err: #F87171;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue));
  --sun: linear-gradient(180deg, #FFC861, var(--orange));
  --display: "Exo 2", "Segoe UI", Arial, sans-serif;
  --body: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --radius: 14px;
  --container: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nuit); color: var(--fg); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--nuit); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }
.eyebrow { font: 500 .78rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin-top: 18px; }
.ico { width: 26px; height: 26px; }
.ico-sm { width: 18px; height: 18px; flex: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sun); color: #1a1006; font: 700 .97rem var(--body); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 122, 61, .6); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); text-decoration: none; font-weight: 600; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 26, .82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(34, 48, 77, .7); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .emblem { width: 52px; height: auto; }
.brand-name { font: 800 1.35rem var(--display); letter-spacing: .02em; }
.brand-name b { color: var(--amber); }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 1360px) { .nav a:not(.btn) { padding: 8px 9px; font-size: .9rem; } }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--fg); }
.nav a[aria-current]:not(.btn) { background: var(--surface); }
.nav .btn { margin-left: 10px; }
/* Menu déroulant « Nos solutions » */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 .95rem var(--body); white-space: nowrap; cursor: pointer; }
.nav-drop-btn .chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-drop-btn:hover, .nav-drop.is-active .nav-drop-btn, .nav-drop.open .nav-drop-btn { color: var(--fg); }
.nav-drop.is-active .nav-drop-btn { background: var(--surface); }
.nav-sub { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 300px; padding: 8px; border-radius: 14px; background: var(--nuit); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: none; z-index: 60; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* pont pour le survol */
.nav-drop:hover .nav-sub, .nav-drop.open .nav-sub { display: block; }
.nav-drop:hover .chev, .nav-drop.open .chev { transform: rotate(180deg); }
.nav .nav-sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.nav .nav-sub a:hover, .nav .nav-sub a[aria-current] { background: var(--surface); color: var(--fg); }
.nav-sub-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(59, 108, 255, .14); color: var(--cyan); }
.nav-sub-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-sub-text b { color: var(--fg); font-weight: 700; }
.nav-sub-text small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.nav .nav-sub a.nav-sub-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--cyan); font-size: .88rem; }
.nav .nav-home { display: inline-flex; align-items: center; gap: 10px; }
.nav-home .ico { width: 20px; height: 20px; }
.nav-home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--fg); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  /* Menu ouvert : couvre tout l'écran sous l'en-tête, pour que la page ne transparaisse pas derrière */
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--nuit); border-bottom: 1px solid var(--line); display: none;
    height: calc(100vh - 72px); height: calc(100dvh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav .nav-home-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  /* Mobile : les solutions s'affichent en liste sous leur titre */
  .nav-drop-btn { width: 100%; padding: 12px; font-size: .95rem; }
  .nav-drop-btn .chev { margin-left: auto; }
  .nav-sub { position: static; transform: none; min-width: 0; margin: 0 0 6px 12px; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none; }
  .nav-sub::before { display: none; }
  .nav-drop:hover .nav-sub { display: none; }
  .nav-drop:hover .chev { transform: none; }
  .nav-drop.open .nav-sub { display: block; }
  .nav-drop.open .chev { transform: rotate(180deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) 56px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(255, 140, 60, .16), transparent 70%),
    linear-gradient(var(--nuit-2) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--nuit-2) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--nuit); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.sun-glow { position: absolute; width: 70%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, .35), transparent 65%); filter: blur(10px); }
.hero-emblem { position: relative; width: min(100%, 440px); height: auto; }
.hero-emblem .rays circle { animation: pulse 3.2s ease-in-out infinite; }
.hero-emblem .rays circle:nth-child(2) { animation-delay: .4s; }
.hero-emblem .rays circle:nth-child(3) { animation-delay: .8s; }
.hero-emblem .rays circle:nth-child(4) { animation-delay: 1.2s; }
.hero-emblem .rays circle:nth-child(5) { animation-delay: 1.6s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.orbit-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; position: relative; }
.orbit-tags li { font: 500 .75rem var(--mono); color: var(--muted); border: 1px solid var(--line); background: rgba(18, 27, 46, .7); padding: 5px 10px; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 27, 46, .6); }
.stats div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { font: 800 2rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; order: -1; }
  .hero-emblem { width: min(70%, 300px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--nuit-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.page-hero { padding-block: clamp(48px, 7vw, 80px) 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 90% at 85% 0%, rgba(255, 140, 60, .12), transparent 70%), linear-gradient(var(--nuit-2) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--nuit-2) 1px, transparent 1px) 0 0 / 56px 56px, var(--nuit); }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; font-size: .92rem; }
.back:hover { color: var(--fg); }

/* Tuiles (pôles, formations) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: rgba(34, 211, 238, .5); transform: translateY(-3px); }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile > p:not(.tile-kicker) { color: var(--muted); }
.tile-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; color: var(--cyan); background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(59, 108, 255, .14)); border: 1px solid rgba(34, 211, 238, .25); margin-bottom: 6px; }
.tile-kicker { font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); min-height: 1em; }
.tile-link { margin-top: auto; padding-top: 8px; color: var(--cyan); font-weight: 600; text-decoration: none; font-size: .93rem; }
.tile-facts { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tile-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--fg); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; }

/* Cartes (réalisations, actualités) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 181, 71, .45); }
.card-media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(255, 150, 60, .14), transparent 60%), var(--surface-2); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--cyan); }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 400 .78rem var(--mono); color: var(--muted); min-height: 1.2em; }
.tag { color: var(--amber); border: 1px solid rgba(255, 181, 71, .4); padding: 2px 9px; border-radius: 999px; }
.emblem.ghost { width: 42%; max-width: 160px; opacity: .55; }
.emblem.big { width: 200px; margin: 0 auto 20px; }

/* Bloc à propos + étapes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .btn { margin-top: 28px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 500 .85rem var(--mono); color: var(--amber); padding-top: 3px; }
.steps b { font-family: var(--display); font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Détail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.detail-cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; border: 1px solid var(--line); }
.detail-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.aside-box { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.aside-title { font-size: 1rem; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts dt { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related a { color: var(--cyan); text-decoration: none; }
.related a:hover { text-decoration: underline; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.prose { font-size: 1.05rem; max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose a { color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--amber); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber); color: var(--muted); font-style: italic; }
.prose img { border-radius: 10px; }
.prose pre, .prose code { font-family: var(--mono); background: var(--surface); border-radius: 6px; }
.prose code { padding: 2px 6px; font-size: .9em; }
.prose pre { padding: 16px; overflow-x: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.contact-list .ico { color: var(--amber); flex: none; }
.contact-list b { display: block; font-family: var(--display); }
.contact-list span { color: var(--muted); overflow-wrap: anywhere; }
.form-card { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.form-card form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--nuit); color: var(--fg); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.has-error input, .has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; }
.form-card .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .4); color: #b6f3da; }
.alert-error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); color: #fecaca; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: grid; justify-items: center; gap: 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--surface-2); border-color: var(--cyan); }

/* Galerie : albums */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chips a:hover { color: var(--fg); border-color: var(--cyan); }
.chips a[aria-current] { background: var(--sun); color: #1a1006; border-color: transparent; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.album-link { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; height: 100%; }
.album-link:hover { transform: translateY(-3px); border-color: rgba(255, 181, 71, .5); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-link:hover .album-cover img { transform: scale(1.05); }
.album-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10, 15, 26, .7)); }
.album-count { position: absolute; right: 12px; bottom: 12px; z-index: 1; font: 500 .78rem var(--mono); color: #fff; background: rgba(10, 15, 26, .65); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.album-body { padding: 18px 20px 22px; display: grid; gap: 10px; }
.album-body h3 { color: var(--fg); }
.album-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: var(--muted); }
.album-facts span { display: inline-flex; align-items: center; gap: 8px; }
.album-facts .ico-sm { color: var(--amber); }
.album-intro { margin-bottom: 36px; }

/* Galerie : photos d'un album (colonnes façon mosaïque) */
.masonry { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 14px; }
.masonry li { break-inside: avoid; margin-bottom: 14px; }
.masonry a { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.masonry img { width: 100%; height: auto; transition: transform .4s, opacity .2s; }
.masonry a:hover img { transform: scale(1.03); }
.masonry a:focus-visible { outline-offset: 2px; }
.masonry-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(10, 15, 26, .85)); opacity: 0; transition: opacity .2s; }
.masonry a:hover .masonry-cap, .masonry a:focus-visible .masonry-cap { opacity: 1; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgba(5, 8, 15, .95); padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.lightbox[hidden] { display: none; }
.lb-open { overflow: hidden; }
.lb-figure { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 0 20px; min-width: 0; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 6px; transition: opacity .2s; }
.lightbox.loading .lb-img { opacity: .4; }
.lb-figure figcaption { display: flex; gap: 16px; justify-content: center; align-items: baseline; color: var(--muted); font-size: .92rem; text-align: center; padding-inline: 12px; }
.lb-caption { color: var(--fg); }
.lb-count { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.lb-btn { background: rgba(255, 255, 255, .08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; font-size: 1.2rem; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-figure { padding-bottom: 80px; }
  .lb-img { max-height: calc(100dvh - 170px); }
}

/* Jua Invite */
.hero-checks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .93rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .ico-sm { color: var(--ok); }
.phone-wrap { display: grid; justify-items: center; gap: 12px; }
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 610; border-radius: 42px; padding: 12px; background: #05080F;
  box-shadow: 0 0 0 2px #2A3654, 0 40px 80px -30px rgba(255, 140, 60, .45), 0 30px 60px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; border-radius: 0 0 14px 14px; background: #05080F; z-index: 2; }
.phone iframe { display: block; width: 375px; height: 796px; border: 0; border-radius: 30px; background: #FBF7F0; transform: scale(.736); transform-origin: 0 0; }
.phone-cap { font: 500 .75rem var(--mono); color: var(--muted); letter-spacing: .06em; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.feature-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--amber); background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .25); margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .94rem; }
.steps-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-bottom: 18px; }
.model { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.model-preview { aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; }
.mp-kicker { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.mp-hosts { font-size: 1.9rem; line-height: 1.1; }
.mp-line { width: 80px; height: 1px; }
.model-elegance .model-preview { background: #FBF7F0; color: #2B2620; }
.model-elegance .mp-hosts { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
.model-elegance .mp-kicker { color: #B08D57; } .model-elegance .mp-line { background: #B08D57; }
.model-tradition .model-preview { color: #2A1A0E; background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(180, 70, 42, .1) 12px 14px), #F6EBDA; border-bottom: 8px solid; border-image: repeating-linear-gradient(90deg, #B4462A 0 16px, #E2A23B 16px 32px, #2A1A0E 32px 48px) 8; }
.model-tradition .mp-hosts { font-family: "Marcellus", Georgia, serif; }
.model-tradition .mp-kicker { color: #B4462A; } .model-tradition .mp-line { background: #B4462A; }
.model-festif .model-preview { background: radial-gradient(70% 80% at 50% 0%, rgba(255, 92, 138, .4), transparent 70%), #1B1036; color: #FFF6EC; }
.model-festif .mp-hosts { font-family: "Fredoka", sans-serif; font-weight: 600; background: linear-gradient(90deg, #FFB547, #FF5C8A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.model-festif .mp-kicker { color: #FFB547; } .model-festif .mp-line { background: #FFB547; }
.model-body { padding: 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.model-body > p:not(.tile-kicker) { color: var(--muted); }
.model-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.center-text { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; align-items: stretch; margin-bottom: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan-featured { border-color: var(--amber); background: linear-gradient(180deg, rgba(255, 181, 71, .08), transparent 40%), var(--surface); box-shadow: 0 30px 60px -40px rgba(255, 150, 60, .6); }
.plan-flag { position: absolute; top: -12px; left: 26px; background: var(--sun); color: #1a1006; font: 700 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan-price { font: 800 2.2rem var(--display); }
.plan-cap { display: flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 600; font-size: .92rem; }
.plan-text { color: var(--muted); }
.plan-list { flex: 1; padding-top: 8px; border-top: 1px solid var(--line); }
.plan-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan-list li { position: relative; padding-left: 26px; font-size: .95rem; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: 12px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-family: var(--display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) { .invite-hero .hero-visual, .phone-wrap { order: 0; } }

/* JUA-MEDICAL */
.medical-hero .container { display: grid; gap: 48px; }
.medical-hero-copy { max-width: 860px; }
.medical-hero h1 { max-width: 22ch; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #0E1524; border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 30px 80px -50px rgba(255, 140, 60, .5); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #121B2E; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2A3654; }
.browser-bar span:first-child { background: #FF6B6B; } .browser-bar span:nth-child(2) { background: var(--amber); } .browser-bar span:nth-child(3) { background: #34D399; }
.browser-bar b { margin-left: 12px; font: 400 .75rem var(--mono); color: var(--muted); }
.browser img { width: 100%; height: auto; }
.journey { counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-bottom: 14px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.shot a { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0E1524; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { padding: 18px 20px 20px; display: grid; gap: 4px; }
.shot figcaption b { font-family: var(--display); font-size: 1.05rem; }
.shot figcaption span { color: var(--muted); font-size: .92rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.why-list .ico { color: var(--amber); flex: none; }
.why-list b { display: block; font-family: var(--display); }
.why-list span { color: var(--muted); font-size: .94rem; }
.solutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.solution { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.solution:hover { border-color: rgba(255, 181, 71, .5); transform: translateY(-3px); }
.solution .feature-ico { width: 52px; height: 52px; margin: 0; }
.solution h3 { margin-bottom: 6px; }
.solution p { color: var(--muted); }
.solution .link-arrow { margin-top: 12px; }

/* Appel à l'action */
.cta { padding-block: 72px; background: radial-gradient(60% 120% at 20% 0%, rgba(255, 150, 60, .18), transparent 70%), var(--nuit-2); border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta p { color: var(--muted); margin-top: 10px; max-width: 56ch; }

/* Pied de page */
.site-footer { background: #070B14; border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; }
.footer-title { font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links, .footer-contact, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .socials a { text-decoration: none; color: var(--fg); }
.footer-links a:hover, .socials a:hover { color: var(--cyan); }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: .92rem; }
/* Icônes des réseaux sociaux (liens renseignés dans Paramètres) */
.socials { gap: 10px; }
.socials a.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); transition: color .2s, border-color .2s, transform .2s; }
.socials a.social:hover, .socials a.social:focus-visible { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.socials .social-ico { width: 20px; height: 20px; }
.footer-contact li { display: flex; gap: 10px; color: var(--muted); font-size: .95rem; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 3px; }
.footer-contact span { overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); z-index: 40; }
.whatsapp svg { width: 30px; height: 30px; }

/* Apparition au défilement (le contenu reste visible sans JavaScript) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Page JUA-EKONZO : composition back-office + portail mobile + terminal POS */
.ekonzo-hero .container { gap: 40px; }
.ekz-devices { position: relative; padding: 0 0 60px 0; margin-right: clamp(0px, 9vw, 130px); }
.ekz-devices::before { content: ""; position: absolute; right: -8%; top: 10%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, .3), transparent 65%); filter: blur(14px); pointer-events: none; }
.ekz-browser { position: relative; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.ekz-phone, .ekz-pos { position: absolute; margin: 0; background: #05080F; overflow: hidden; box-shadow: 0 0 0 2px #2A3654, 0 40px 70px -24px rgba(0, 0, 0, .85), 0 30px 60px -30px rgba(255, 140, 60, .45); }
.ekz-phone { right: calc(-1 * clamp(0px, 9vw, 130px)); bottom: 0; width: clamp(140px, 19%, 230px); aspect-ratio: 9 / 18.5; border-radius: 30px; padding: 8px; }
.ekz-pos { left: -26px; bottom: -10px; width: clamp(130px, 17%, 210px); aspect-ratio: 9 / 19; border-radius: 22px; padding: 9px 9px 46px; background: linear-gradient(180deg, #1A2338, #0B111E); }
.ekz-phone img, .ekz-pos img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; display: block; }
.ekz-pos img { border-radius: 12px; }
.ekz-pos-printer { position: absolute; left: 18%; right: 18%; bottom: 16px; height: 8px; border-radius: 4px; background: #05080F; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.ekz-stats .stats { margin: 0 0 8px; }
.ekz-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 22px; }
.ekz-screen { margin: 0; display: grid; gap: 16px; align-content: start; }
.ekz-screen-frame { aspect-ratio: 9 / 16; border-radius: 26px; padding: 8px; background: #05080F; box-shadow: 0 0 0 2px #2A3654, 0 30px 60px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.ekz-screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }
.ekz-screen figcaption { display: grid; gap: 4px; }
.ekz-screen figcaption b { font-family: var(--display); font-size: 1.05rem; }
.ekz-screen figcaption span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .ekz-devices { margin-right: 0; padding-bottom: 90px; }
  .ekz-phone { right: 4px; width: 32%; }
  .ekz-pos { left: 4px; width: 28%; }
  .ekz-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Médiathèque (ressources.php, pages des solutions) */
.media-h { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 8px 0 18px; }
.media-h .ico { color: var(--amber); }
.media-filter { margin: -16px 0 24px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; margin-bottom: 40px; }
.media-grid-video { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.media-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.media-card:target { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 181, 71, .25); }
.media-player { position: relative; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; background: #000; }
.media-player video, .media-player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.media-ext { display: grid; place-items: center; align-content: center; gap: 10px; height: 100%; color: var(--fg); text-decoration: none; }
.media-ext .ico { width: 56px; height: 56px; color: var(--amber); }
.media-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-body h3 { font-size: 1.12rem; }
.media-body p { color: var(--muted); font-size: .94rem; margin: 0; }
.media-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.media-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.media-facts li { font: 500 .74rem var(--mono); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-actions .btn, .media-foot > .btn { display: inline-flex; align-items: center; gap: 6px; }
.media-thumb { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--surface-2), #0E1524); display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.media-ico { display: grid; justify-items: center; gap: 8px; color: var(--amber); }
.media-ico .ico { width: 38px; height: 38px; }
.media-ico b { font: 500 .78rem var(--mono); letter-spacing: .08em; color: var(--fg); }
.media-note { font-size: .85rem !important; border-left: 3px solid var(--cyan); padding-left: 10px; }


/* Partenaires (partenaires.php et bandeau de l'accueil) : logos sur fond clair, quelle que soit leur couleur d'origine */
.partner-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.partner-logos a { display: grid; place-items: center; height: 110px; padding: 14px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.partner-logos a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(255, 181, 71, .6); }
.partner-logos img { max-width: 100%; max-height: 80px; object-fit: contain; }
.partners { display: grid; gap: 22px; }
.partner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.partner:target { border-color: var(--amber); }
.partner-logo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; border-radius: 12px; background: #fff; }
.partner-logo img { max-width: 100%; max-height: 140px; object-fit: contain; }
.partner-initials { font: 800 2.4rem var(--display); color: #0A0F1A; }
.partner-body { display: grid; gap: 10px; }
.partner-body h2 { font-size: 1.5rem; }
.partner-body p, .partner-body .prose { color: var(--muted); }
@media (max-width: 640px) { .partner { grid-template-columns: 1fr; } .partner-logo { max-width: 260px; } }

/* ---------- En-tête : logo toujours sur une ligne ---------- */
.brand { flex: none; }
.brand-name { white-space: nowrap; }

/* ---------- Bannière d'accueil déroulante (Administration › Bannière d'accueil) ---------- */
.hero-slider { position: relative; overflow: hidden; isolation: isolate; height: clamp(560px, calc(100vh - 72px), 780px); background: var(--nuit); }
.hs-slides, .hs-slide { position: absolute; inset: 0; }
.hs-slide { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; z-index: 2; }
.hs-slide.is-leaving { visibility: visible; z-index: 1; }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.12); transition: transform 8s ease-out; }
.hs-slide.is-active .hs-bg { transform: scale(1.02); }
.hs-bg-empty { background: radial-gradient(60% 70% at 72% 45%, rgba(255, 140, 60, .25), transparent 70%), var(--nuit); }
.hs-shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 26, .94) 0%, rgba(10, 15, 26, .82) 32%, rgba(10, 15, 26, .35) 58%, rgba(10, 15, 26, .1) 78%, rgba(10, 15, 26, .35) 100%),
    linear-gradient(180deg, rgba(10, 15, 26, .55) 0%, transparent 22%, transparent 70%, var(--nuit) 100%); }
.hs-shade::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background: linear-gradient(rgba(34, 48, 77, .35) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(34, 48, 77, .35) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, transparent 55%); }
.hs-content { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; padding-bottom: 70px; }
.hs-copy { max-width: 640px; }
.hs-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; background: rgba(10, 15, 26, .55); backdrop-filter: blur(6px); }
.hs-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--cyan); animation: hs-ping 2s infinite; }
@keyframes hs-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }
.hs-title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.05; margin-top: 6px; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.hs-title .hl { background: linear-gradient(90deg, #FFC861, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-text { color: #C9D6EA; font-size: 1.15rem; max-width: 54ch; }
/* Entrée échelonnée des textes de la diapositive active */
.hs-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.hs-slide.is-active .hs-copy > * { opacity: 1; transform: none; }
.hs-slide.is-active .hs-copy > :nth-child(1) { transition-delay: .25s; }
.hs-slide.is-active .hs-copy > :nth-child(2) { transition-delay: .4s; }
.hs-slide.is-active .hs-copy > :nth-child(3) { transition-delay: .55s; }
.hs-slide.is-active .hs-copy > :nth-child(4) { transition-delay: .7s; }

/* Emblème fixe, lumineux, à droite */
.hs-emblem { position: absolute; z-index: 4; right: max(20px, calc((100vw - var(--container)) / 2 + 10px)); top: 46%; width: min(30vw, 380px); aspect-ratio: 1; transform: translateY(-50%); display: grid; place-items: center; pointer-events: none; }
.hs-emblem .hero-emblem { position: relative; width: 82%; filter: drop-shadow(0 0 28px rgba(255, 170, 70, .35)); animation: hs-float 7s ease-in-out infinite; }
.hs-halo { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, .42), rgba(255, 122, 61, .12) 45%, transparent 68%); filter: blur(8px); animation: hs-breathe 5s ease-in-out infinite; }
.hs-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .35); }
.hs-ring-1 { inset: -6%; border-style: dashed; animation: hs-spin 40s linear infinite; }
.hs-ring-2 { inset: -18%; border-color: rgba(59, 108, 255, .22); border-top-color: rgba(255, 181, 71, .7); animation: hs-spin 18s linear infinite reverse; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hs-breathe { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* Commandes : compteur, points avec barre de progression, flèches, pause */
.hs-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 34px; display: flex; align-items: center; gap: 24px; }
.hs-counter { font: 500 .85rem var(--mono); color: var(--muted); letter-spacing: .08em; display: flex; gap: 6px; align-items: baseline; }
.hs-counter b { font: 800 1.5rem var(--display); color: var(--fg); }
.hs-dots { display: flex; gap: 8px; }
.hs-dot-btn { width: 46px; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.hs-dot-btn span { display: block; height: 4px; border-radius: 4px; background: rgba(149, 166, 194, .35); overflow: hidden; position: relative; }
.hs-dot-btn span::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--amber)); }
.hs-dot-btn.is-active span::after { transform: scaleX(1); }
.hero-slider.is-running .hs-dot-btn.is-active span::after { transform: scaleX(0); animation: hs-progress var(--hs-delay, 7000ms) linear forwards; }
@keyframes hs-progress { to { transform: scaleX(1); } }
.hs-dot-btn:hover span { background: rgba(149, 166, 194, .6); }
.hs-arrows { display: flex; gap: 8px; margin-left: auto; }
.hs-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 15, 26, .55); backdrop-filter: blur(6px); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.hs-btn:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .12); }
.hs-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-btn .i-play, .hero-slider.is-paused .hs-btn .i-pause { display: none; }
.hero-slider.is-paused .hs-btn .i-play { display: block; }
.hs-stats-wrap { position: relative; z-index: 6; margin-top: -28px; padding-bottom: 8px; }
.hs-stats-wrap .stats { margin: 0; background: rgba(18, 27, 46, .85); backdrop-filter: blur(8px); }

@media (max-width: 1100px) {
  .hs-emblem { width: min(30vw, 300px); right: 20px; top: 40%; }
}
@media (max-width: 860px) {
  .hero-slider { height: auto; min-height: 640px; }
  /* La hauteur s'adapte à la diapositive la plus haute : les diapositives sont empilées dans la même cellule */
  .hs-slides { position: relative; display: grid; }
  .hs-slide { position: relative; grid-area: 1 / 1; }
  .hs-bg { object-position: 70% center; }
  .hs-shade { background: linear-gradient(180deg, rgba(10, 15, 26, .45) 0%, rgba(10, 15, 26, .7) 40%, rgba(10, 15, 26, .95) 75%, var(--nuit) 100%); }
  .hs-content { align-items: flex-end; padding-top: 240px; padding-bottom: 96px; min-height: 640px; }
  .hs-emblem { width: 190px; right: 50%; top: 30px; transform: translateX(50%); }
  .hs-title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hs-text { font-size: 1.02rem; }
  .hs-controls { bottom: 24px; gap: 14px; }
  .hs-dot-btn { width: 28px; }
  .hs-counter { display: none; }
  .hs-btn { width: 42px; height: 42px; }
  .hs-stats-wrap { margin-top: 0; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-bg, .hs-copy > *, .hs-slide { transition: none !important; }
  .hs-emblem .hero-emblem, .hs-halo, .hs-ring, .hs-dot { animation: none !important; }
}

/* ---------- Animations de navigation et effets « hi-tech » ---------- */

/* Transition douce entre les pages (navigateurs récents ; les autres changent de page normalement) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .26s ease-in both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }

/* Barre de chargement en haut de l'écran au départ vers une autre page */
.page-loader { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; transform-origin: left; transform: scaleX(0); opacity: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--amber), var(--orange)); box-shadow: 0 0 12px rgba(34, 211, 238, .7); }
.is-navigating .page-loader { opacity: 1; animation: loader 2.4s cubic-bezier(.1, .8, .2, 1) forwards; }
@keyframes loader { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }

/* En-tête : plus compact et plus opaque après défilement, avec la progression de lecture */
.site-header { transition: background .3s, box-shadow .3s; }
.site-header .nav-bar { transition: min-height .3s; }
.site-header.is-scrolled { background: rgba(10, 15, 26, .94); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }
.site-header.is-scrolled .nav-bar { min-height: 62px; }
.brand .emblem { transition: transform .5s cubic-bezier(.2, .7, .2, 1), width .3s; }
.brand:hover .emblem { transform: rotate(-8deg) scale(1.08); }
.site-header.is-scrolled .brand .emblem { width: 46px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--amber)); pointer-events: none; }

/* Liens du menu : soulignement lumineux */
@media (min-width: 1181px) {
  .nav > a:not(.btn):not(.nav-home), .nav-drop-btn { position: relative; }
  .nav > a:not(.btn):not(.nav-home)::after, .nav-drop-btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .nav > a:not(.btn):not(.nav-home):hover::after, .nav > a[aria-current]:not(.btn)::after, .nav-drop:hover .nav-drop-btn::after, .nav-drop.is-active .nav-drop-btn::after { transform: scaleX(1); }
  /* Sous-menus : ouverture en fondu et glissement */
  .nav-sub { display: block; visibility: hidden; opacity: 0; transform: translate(-50%, 10px) scale(.98); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
  .nav-drop:hover .nav-sub, .nav-drop.open .nav-sub { visibility: visible; opacity: 1; transform: translate(-50%, 0) scale(1); transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .nav-sub a { transition: background .2s, transform .2s; }
  .nav .nav-sub a:hover { transform: translateX(4px); }
  .nav-sub a:hover .nav-sub-ico { background: linear-gradient(135deg, rgba(34, 211, 238, .3), rgba(59, 108, 255, .3)); }
}

/* Boutons : reflet lumineux au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transition: left .6s ease; }
.btn-ghost::before { background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .25), transparent); }
.btn:hover::before { left: 120%; }

/* En-tête des pages : balayage de lumière et entrée du titre */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(34, 211, 238, .07) 45%, rgba(255, 181, 71, .06) 55%, transparent 70%); animation: sweep 9s ease-in-out 1s infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.page-hero .container > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero .container > :nth-child(2) { animation-delay: .1s; }
.page-hero .container > :nth-child(3) { animation-delay: .2s; }
.page-hero .container > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.page-hero h1, .section-head h2 { background: linear-gradient(90deg, var(--fg) 60%, #9fdcff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cartes : halo lumineux qui suit la souris et bordure dégradée */
.tile, .card, .solution, .album-link { --mx: 50%; --my: -200px; }
.tile::before, .card::before, .solution::before, .album-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(34, 211, 238, .12), transparent 45%); }
.card, .solution, .album-link { position: relative; }
.tile:hover::before, .card:hover::before, .solution:hover::before, .album-link:hover::before { opacity: 1; }
.tile:hover, .solution:hover { box-shadow: 0 18px 40px -24px rgba(34, 211, 238, .55); }
.card:hover, .album-link:hover { box-shadow: 0 18px 40px -24px rgba(255, 181, 71, .45); }
.tile-ico { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.tile:hover .tile-ico { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 8px 22px -8px rgba(34, 211, 238, .7); }
.tile-link { transition: letter-spacing .25s, color .2s; }
.tile:hover .tile-link { letter-spacing: .02em; }

/* Apparition au défilement : variante latérale pour les en-têtes de section */
.js .section-head.reveal { transform: translateX(-24px); }
.js .section-head.reveal.visible { transform: none; }

/* Chiffres clés : léger éclat */
.stats dt { position: relative; }
.stats div:hover dt { filter: drop-shadow(0 0 10px rgba(34, 211, 238, .55)); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .page-hero::after { display: none; }
}

/* ---------- Fond d'arrière-plan « hi-tech » propre à chaque page ---------- */
/* Dessiné surtout à droite, estompé vers le contenu, fixe pendant le défilement (assets/img/fonds/) */
.page-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--page-bg) right top / cover no-repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .85) 65%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .85) 65%, #000 100%);
  animation: bg-drift 45s ease-in-out infinite alternate; }
@keyframes bg-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-24px, 16px, 0) scale(1.04); } }
/* Les bandeaux et sections alternées laissent légèrement apparaître le fond */
.page-hero { background-color: rgba(10, 15, 26, .55); }
.section-alt { background: rgba(14, 21, 36, .82); }
@media (max-width: 860px) {
  .page-bg { opacity: .32; background-position: 70% top;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 85%); }
}

/* ---------- Accueil : panorama des rubriques ---------- */
.explorer-intro { max-width: 34ch; }
.explore-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.explore-card { --k: var(--cyan); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 220px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 34, 58, .92), rgba(14, 21, 36, .92)); border: 1px solid var(--line); text-decoration: none; color: var(--fg);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.explore-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.explore-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--k) 55%, transparent); box-shadow: 0 22px 44px -26px var(--k); }
.explore-card:hover::after { transform: scaleX(1); }
.explore-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); border: 1px solid color-mix(in srgb, var(--k) 35%, transparent); transition: transform .4s; }
.explore-card:hover .explore-ico { transform: rotate(-8deg) scale(1.06); }
.explore-bg { position: absolute; right: -18px; bottom: -18px; color: var(--k); opacity: .06; transition: opacity .4s, transform .6s; }
.explore-bg .ico { width: 120px; height: 120px; }
.explore-card:hover .explore-bg { opacity: .14; transform: rotate(-10deg) scale(1.08); }
.explore-card b { font: 700 1.08rem var(--display); margin-top: 6px; }
.explore-text { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.explore-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.explore-foot small { font: 500 .72rem var(--mono); letter-spacing: .06em; color: var(--k); text-transform: uppercase; }
.explore-go { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--fg); transition: gap .25s; }
.explore-card:hover .explore-go { gap: 9px; }
@media (max-width: 1180px) { .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .explore-card { min-height: 0; padding: 16px; } .explore-text { display: none; } }

/* ---------- Accueil : aperçu de la médiathèque ---------- */
.media-teasers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.media-teaser { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: transform .3s, border-color .3s, box-shadow .3s; }
.media-teaser:hover { transform: translateY(-4px); border-color: rgba(255, 122, 61, .5); box-shadow: 0 18px 40px -24px rgba(255, 122, 61, .6); }
.media-teaser-visual { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 90% at 70% 20%, rgba(255, 140, 60, .25), transparent 70%), linear-gradient(var(--nuit-2) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--nuit-2) 1px, transparent 1px) 0 0 / 24px 24px, #0c1322; }
.media-teaser-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.media-teaser:hover .media-teaser-visual img { transform: scale(1.05); }
.media-teaser-ico { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #1a1006; background: var(--sun); box-shadow: 0 0 0 8px rgba(255, 140, 60, .18); }
.media-teaser-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.media-teaser-body small { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.media-teaser-body b { font-weight: 700; line-height: 1.35; }
@media (max-width: 1000px) { .media-teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media-teaser-visual img ~ .media-teaser-ico { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; box-shadow: 0 0 0 5px rgba(255, 140, 60, .2); }
.media-teaser-visual img ~ .media-teaser-ico .ico { width: 20px; height: 20px; }
@media (min-width: 1181px) and (max-width: 1360px) { .nav-drop-btn { padding: 8px 9px; font-size: .9rem; } }

/* Jua Invite : galerie de modèles (vignettes téléphone) et choix obligatoire dans la commande */
.model-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.model-filters button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 .88rem var(--body, inherit); cursor: pointer; }
.model-filters button span { color: var(--muted); margin-left: 4px; font-weight: 500; }
.model-filters button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--nuit); }
.model-filters button[aria-pressed="true"] span { color: var(--nuit); }
.models-v2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 26px 20px; }
.model2 { display: flex; flex-direction: column; gap: 14px; border-radius: 22px; padding: 14px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s; }
.model2:hover { transform: translateY(-4px); border-color: rgba(255, 181, 71, .5); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.model2.is-chosen { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.model2[hidden] { display: none; }
.mphone { position: relative; display: block; border-radius: 26px; padding: 8px; background: #05080F; border: 1px solid #2A3755; box-shadow: inset 0 0 0 2px #0E1524; overflow: hidden; }
.mphone::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: rgba(0, 0, 0, .55); }
.mphone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 560; object-fit: cover; object-position: top; border-radius: 20px; transition: object-position 3s ease; }
.model2:hover .mphone img { object-position: bottom; }
.model-new { position: absolute; z-index: 1; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--nuit); font: 800 .68rem var(--body, inherit); letter-spacing: .06em; text-transform: uppercase; }
.model2-body { display: grid; gap: 6px; padding: 0 4px 4px; }
.model2-body h3 { margin: 0; }
.model2-body > p:not(.tile-kicker):not(.model-swatch) { color: var(--muted); margin: 0; font-size: .92rem; }
.model-swatch { display: flex; gap: 6px; margin: 2px 0 0; }
.model-swatch span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.model-pick { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.model-pick legend { font-weight: 700; margin-bottom: 4px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; max-height: 470px; overflow-y: auto; padding: 4px; }
.pick { position: relative; display: grid; gap: 6px; cursor: pointer; border-radius: 14px; padding: 5px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); transition: border-color .2s, box-shadow .2s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; display: block; }
.pick span { display: grid; line-height: 1.2; padding: 0 2px 2px; }
.pick b { font-size: .85rem; }
.pick small { font-size: .7rem; color: var(--muted); }
.pick:has(input:checked) { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.pick:has(input:checked)::after { content: "✓"; position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--nuit); font-weight: 800; font-size: .8rem; }
.pick:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.model-pick.has-error .pick-grid { outline: 1px solid #F87171; border-radius: 14px; }

/* Jua Invite : vidéo de démonstration */
.video-frame { position: relative; max-width: 1100px; margin: 24px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #05080F; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.video-frame video { display: block; width: 100%; height: auto; background: #05080F; }
.video-frame .vd-v { display: none; }
@media (max-width: 700px) { .video-frame { max-width: 420px; } .video-frame .vd-h { display: none; } .video-frame .vd-v { display: block; } }
.video-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.video-demo .lead { max-width: 820px; }
