/* =====================================================================
   NERIS APPS — Interface publique
   Palette : bleu nuit, bleu électrique, blanc, gris clair.
   Thème clair / sombre via [data-theme] sur <html>.
   ===================================================================== */

:root {
    --brand: #2563eb;
    --accent: #06b6d4;
    --navy: #0b1530;
    --navy-2: #101d40;
    --navy-3: #18295a;

    --bg: #f5f7fc;
    --surface: #ffffff;
    --surface-2: #eef2fa;
    --surface-3: #e4eaf6;
    --text: #0d1530;
    --text-2: #344062;
    --muted: #5d6a8b;
    --border: #e1e7f2;
    --ring: color-mix(in srgb, var(--brand) 35%, transparent);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(13, 21, 48, .06), 0 1px 3px rgba(13, 21, 48, .05);
    --shadow: 0 6px 24px -8px rgba(13, 21, 48, .14), 0 2px 6px rgba(13, 21, 48, .05);
    --shadow-lg: 0 24px 60px -20px rgba(13, 21, 48, .28);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 72px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
    --bg: #060c1d;
    --surface: #0c1530;
    --surface-2: #111c3c;
    --surface-3: #18254b;
    --text: #e8edfb;
    --text-2: #c2cbe6;
    --muted: #8f9cc2;
    --border: #1d2a50;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 8px 28px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
}

/* ------------------------------------------------------------------ Base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    line-height: 1.6;
}
h1, h2, h3, h4, h5 { color: var(--text); font-weight: 750; letter-spacing: -.02em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--brand) 80%, var(--text)); }
img { max-width: 100%; }
/* Garde-fou : aucune page ne doit défiler horizontalement (le menu mobile fermé
   est placé hors écran à droite). « clip » ne casse pas l'en-tête sticky. */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.text-muted-2 { color: var(--muted) !important; }
.container-narrow { max-width: 860px; }
.skip-link {
    position: absolute; left: 1rem; top: -60px; z-index: 2000;
    background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-xs);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
main:focus { outline: none; }
kbd { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); font-size: .75rem; padding: .1rem .35rem; }

/* ----------------------------------------------------------- Boutons */
.btn { font-weight: 600; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 88%, #000); color: #fff; border-color: transparent; transform: translateY(-1px); }
.btn-brand small { opacity: .8; font-weight: 500; font-size: .78rem; }
.btn-brand-soft { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.btn-brand-soft:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand); }
.btn-outline-brand { border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.btn-soft { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.btn-soft:hover { background: var(--surface-3); color: var(--text); }
.btn-store { background: #0a0f1f; color: #fff; border: 1px solid #0a0f1f; padding: .55rem 1.1rem; border-radius: 14px; text-align: left; }
.btn-store i { font-size: 1.6rem; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.02rem; }
.btn-store small { font-size: .68rem; font-weight: 500; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.btn-store:hover { background: #1b2340; color: #fff; transform: translateY(-1px); }
[data-theme="dark"] .btn-store { background: #f1f4fb; color: #0a0f1f; border-color: #f1f4fb; }
[data-theme="dark"] .btn-store:hover { background: #fff; color: #0a0f1f; }
.btn-outline-secondary { color: var(--text-2); border-color: var(--border); }
.btn-outline-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-2); display: inline-grid; place-items: center;
    font-size: 1.1rem; transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand); }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------------------------------------------------------- Chips */
.chip {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600;
    padding: .28rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2);
    border: 1px solid var(--border); line-height: 1.2; white-space: nowrap;
}
.chip-link { text-decoration: none; }
.chip-link:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.chip-badge { border: 0; color: #fff; }
.chip-new { background: linear-gradient(135deg, #10b981, #059669); }
.chip-popular { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.chip-updated { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.chip-demo { background: #fef3c7; color: #92400e; border-color: #fde68a; }
[data-theme="dark"] .chip-demo { background: #3b2a06; color: #fcd34d; border-color: #5b420c; }
.version-pill { font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); padding: .1rem .45rem; border-radius: 6px; margin-left: .25rem; }

/* --------------------------------------------------------- En-tête */
.site-header {
    position: sticky; top: 0; z-index: 1030; height: var(--header-h);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   lui-même enfermerait le menu mobile (position: fixed) dans sa hauteur. */
.site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1; transition: background .2s;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(13,21,48,.4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); font-weight: 800; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 8px 18px -8px var(--brand);
}
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.brand-name { font-size: 1.08rem; letter-spacing: .02em; }
.main-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; justify-content: center; }
.nav-list a, .nav-dropdown-toggle {
    display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .8rem; border-radius: 10px;
    color: var(--text-2); font-weight: 600; font-size: .93rem; text-decoration: none; background: none; border: 0;
    white-space: nowrap;
}
@media (min-width: 992px) and (max-width: 1279.98px) {
    .header-inner { gap: 1rem; }
    .nav-list a, .nav-dropdown-toggle { padding: .45rem .55rem; font-size: .88rem; }
    .header-actions .btn-brand { display: none !important; }
}
.nav-list a:hover, .nav-dropdown-toggle:hover, .nav-list a.active, .nav-dropdown-toggle.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle i { font-size: .7rem; transition: transform .2s; }
.nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 260px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: .5rem; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a { display: flex; width: 100%; gap: .6rem; padding: .55rem .7rem; font-weight: 550; }
.nav-dropdown-menu a i { color: var(--brand); }
.nav-dropdown-menu .all-link { border-top: 1px solid var(--border); margin-top: .3rem; border-radius: 0 0 8px 8px; justify-content: space-between; color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
[data-theme="dark"] .theme-icon-dark, [data-theme="light"] .theme-icon-light { display: none; }
.nav-backdrop { display: none; }
.main-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

/* En-tête transparent au-dessus du hero sombre (page d'accueil) */
.has-hero .site-header:not(.scrolled)::before { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.scrolled) .brand { color: #fff; }
.has-hero .site-header:not(.scrolled) .header-actions .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #e6ecff; }
@media (min-width: 992px) {
    .has-hero .site-header:not(.scrolled) .nav-list > li > a,
    .has-hero .site-header:not(.scrolled) .nav-dropdown-toggle { color: #c9d4f2; }
    .has-hero .site-header:not(.scrolled) .nav-list > li > a:hover,
    .has-hero .site-header:not(.scrolled) .nav-list > li > a.active,
    .has-hero .site-header:not(.scrolled) .nav-dropdown-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
}

@media (max-width: 991.98px) {
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--surface); z-index: 1050;
        padding: 1.2rem; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto;
        box-shadow: var(--shadow-lg); visibility: hidden;
    }
    .main-nav.open { transform: none; visibility: visible; }
    .nav-list { flex-direction: column; align-items: stretch; gap: .2rem; }
    .nav-list a, .nav-dropdown-toggle { width: 100%; padding: .8rem .9rem; font-size: 1rem; justify-content: space-between; }
    .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 .5rem; display: none; min-width: 0; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; transform: none; }
    .nav-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(6, 12, 29, .55); z-index: 1040; backdrop-filter: blur(2px); }
}

/* ------------------------------------------------------- Recherche */
.search-overlay { position: fixed; inset: 0; z-index: 1060; background: rgba(6, 12, 29, .6); backdrop-filter: blur(6px); display: flex; justify-content: center; padding: 10vh 1rem 1rem; }
.search-overlay[hidden] { display: none; }
.search-panel { width: min(680px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; align-self: flex-start; animation: pop .22s var(--ease); }
.search-panel-form { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.search-panel-form > i { color: var(--muted); font-size: 1.15rem; }
.search-panel-form input { flex: 1; border: 0; background: none; font-size: 1.1rem; color: var(--text); outline: none; min-width: 0; }
.suggest-list { max-height: 50vh; overflow-y: auto; }
.suggest-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; text-decoration: none; color: var(--text); }
.suggest-item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.suggest-item small { display: block; color: var(--muted); }
.suggest-item:hover, .suggest-item.active { background: var(--surface-2); color: var(--text); }
.suggest-empty { padding: 1rem; color: var(--muted); margin: 0; }
.search-hint { font-size: .8rem; color: var(--muted); padding: .6rem 1rem; margin: 0; border-top: 1px solid var(--border); background: var(--surface-2); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, var(--navy-3), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0a1430 55%, #081026 100%); color: #e8edfb; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 4.5rem) 0 5.5rem; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 420px; height: 420px; background: var(--brand); top: -120px; right: 8%; animation: float 12s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; background: var(--accent); bottom: -140px; left: 10%; opacity: .35; animation: float 14s ease-in-out infinite reverse; }
.grid-lines { position: absolute; inset: 0; 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: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 25px); } }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: #bfd2ff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: .38rem .85rem; border-radius: 999px; margin-bottom: 1.3rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.07; font-weight: 800; margin-bottom: 1.2rem; }
.hero .lead { color: #b9c5e6; font-size: 1.12rem; max-width: 560px; margin-bottom: 1.8rem; }
.hero-search { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.96); border-radius: 16px; padding: .4rem .4rem .4rem 1rem; max-width: 560px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.hero-search > i { color: #64748b; }
.hero-search input { flex: 1; border: 0; outline: none; background: none; color: #0d1530; font-size: 1rem; min-width: 0; padding: .5rem 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 460px; }
.device { width: 270px; height: 540px; border-radius: 44px; background: linear-gradient(160deg, #1f2c55, #0d1530); padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.08); position: relative; transform: rotate(-4deg); animation: device 8s ease-in-out infinite; }
@keyframes device { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.device-notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; background: #070c1c; border-radius: 12px; transform: translateX(-50%); z-index: 2; }
.device-screen { height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--brand) 60%, #0b1530), #0b1530 60%), #0b1530; padding: 48px 18px 18px; display: flex; flex-direction: column; }
.device-status { position: absolute; top: 22px; left: 34px; right: 34px; display: flex; justify-content: space-between; font-size: .7rem; color: #dbe4ff; font-weight: 600; }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; margin-top: 16px; }
.device-app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .64rem; color: #e1e8ff; text-align: center; line-height: 1.2; }
.device-app img { width: 54px; height: 54px; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 16px -6px rgba(0,0,0,.6); background: #fff; }
.ph-icon { width: 54px; height: 54px; border-radius: 15px; display: block; }
.ph-0 { background: linear-gradient(135deg, #3b82f6, #22d3ee); } .ph-1 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.ph-2 { background: linear-gradient(135deg, #10b981, #06b6d4); } .ph-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ph-text { width: 38px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.25); }
.device-dock { margin-top: auto; background: rgba(255,255,255,.1); border-radius: 22px; padding: 10px; display: flex; justify-content: space-around; }
.device-dock span { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2); }
.float-card { position: absolute; display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.95); color: #0d1530; border-radius: 16px; padding: .7rem 1rem; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); font-size: .85rem; line-height: 1.25; }
.float-card i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); font-size: 1.05rem; }
.float-card small { display: block; color: #64748b; font-size: .74rem; }
.fc-1 { top: 40px; left: -10px; animation: float 9s ease-in-out infinite; }
.fc-2 { bottom: 90px; right: -10px; animation: float 11s ease-in-out infinite reverse; }
.fc-3 { bottom: 10px; left: 20px; animation: float 10s ease-in-out infinite; }

/* -------------------------------------------------------- Sections */
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.section-kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .35rem; }
.page-hero { padding: 3rem 0 2.5rem; background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: .6rem 0 .5rem; }
.page-hero .lead { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.08rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .86rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs i { font-size: .65rem; opacity: .6; }
.breadcrumbs span { color: var(--text-2); font-weight: 600; }

/* ---------------------------------------------------- Cartes appli */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; }
.app-card {
    position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.app-card:hover, .app-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.app-card-badges { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--surface-2); box-shadow: 0 6px 16px -8px rgba(13,21,48,.35); border: 1px solid var(--border); }
.app-icon-sm { width: 44px; height: 44px; border-radius: 12px; }
.app-icon-lg { width: 76px; height: 76px; border-radius: 22px; }
.app-icon-xl { width: 112px; height: 112px; border-radius: 28px; }
.app-card-title { font-size: 1.12rem; margin: 0 0 .25rem; }
.app-card-title a { color: var(--text); text-decoration: none; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); margin: 0 0 .65rem; font-weight: 550; }
.app-card-meta .dot { opacity: .5; }
.app-card-desc { color: var(--text-2); font-size: .92rem; margin: 0 0 1rem; flex: 1; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .9rem; border-top: 1px dashed var(--border); }
.availability { display: flex; align-items: center; gap: .35rem; }
.avail { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: .85rem; background: var(--surface-2); color: var(--muted); }
.avail-dl { color: #059669; background: color-mix(in srgb, #10b981 13%, transparent); }
.avail-store { color: #d97706; background: color-mix(in srgb, #f59e0b 14%, transparent); }
.avail-web { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.availability .version { font-size: .76rem; color: var(--muted); font-weight: 600; margin-left: .2rem; }
.card-link { font-size: .85rem; font-weight: 650; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; position: relative; z-index: 2; }
.card-link i { transition: transform .2s var(--ease); }
.app-card:hover .card-link i { transform: translateX(3px); }

.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.featured-card { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: var(--shadow-sm); }
.featured-card:hover, .featured-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); }
.featured-card-body { padding: 1.6rem; display: flex; flex-direction: column; height: 100%; }
.featured-card .app-icon { margin-bottom: 1.1rem; }
.featured-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.featured-card h3 a { color: var(--text); text-decoration: none; }
.featured-card p { color: var(--text-2); font-size: .94rem; }
.featured-main { grid-row: span 2; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); border-color: transparent; }
.featured-main::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--brand); filter: blur(80px); opacity: .45; right: -80px; top: -80px; }
.featured-main .featured-card-body { position: relative; justify-content: flex-end; min-height: 380px; }
.featured-main h3, .featured-main h3 a { color: #fff; font-size: 1.7rem; }
.featured-main p { color: #c3cdea; font-size: 1.02rem; }
.featured-main .chip:not(.chip-badge):not(.chip-demo) { background: rgba(255,255,255,.1); color: #dbe4ff; border-color: rgba(255,255,255,.15); }
.featured-main .btn-outline-brand { color: #fff; border-color: rgba(255,255,255,.4); }

/* --------------------------------------------------------- Stats */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 1.8rem 1.4rem; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--text-2); font-weight: 600; font-size: .92rem; }
.stat small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }

/* ------------------------------------------------------ Catégories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.category-grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.category-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); color: var(--text); }
.category-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); margin-bottom: .5rem; transition: background .25s, color .25s; }
.category-card:hover .category-icon { background: var(--brand); color: #fff; }
.category-name { font-weight: 700; }
.category-desc { color: var(--text-2); font-size: .88rem; }
.category-count { color: var(--muted); font-size: .82rem; font-weight: 550; }

/* ------------------------------------------------------- Nouveautés */
.release-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.release-list.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.release-item { min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.release-item:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow-sm); color: var(--text); }
.release-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.release-body span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.release-item time { font-size: .78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ------------------------------------------------------------ CTA */
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.8rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; box-shadow: 0 30px 60px -30px var(--brand); }
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; z-index: 1; }
.cta-band .btn-light { color: var(--navy); font-weight: 700; }

/* ---------------------------------------------------------- Filtres */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.filter-search { display: flex; align-items: center; gap: .6rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0 .9rem; margin-bottom: .9rem; }
.filter-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.filter-search i { color: var(--muted); }
.filter-search input { flex: 1; border: 0; outline: 0; background: none; padding: .75rem 0; color: var(--text); min-width: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.filter-field { flex: 1 1 160px; }
.filter-field label { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; display: block; }
.filter-actions { display: flex; gap: .5rem; }
.form-select, .form-control { background-color: var(--surface); border-color: var(--border); color: var(--text); border-radius: 11px; }
.form-select:focus, .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); background-color: var(--surface); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-label { font-weight: 600; color: var(--text-2); font-size: .92rem; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; min-height: 28px; }
.results-count { margin: 0; color: var(--muted); }
.results-count strong { color: var(--text); }
.loading-indicator { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .5rem; }
[data-results].is-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2.2rem; }
.pager-item { min-width: 42px; height: 42px; padding: 0 .7rem; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 600; }
.pager-item:hover { border-color: var(--brand); color: var(--brand); }
.pager-item.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager-gap { border: 0; background: none; }

.empty-state { text-align: center; padding: 3.5rem 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 22px; display: grid; place-items: center; font-size: 1.8rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.empty-state h3 { font-size: 1.25rem; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 1.3rem; }

/* ------------------------------------------------------ Fiche appli */
.app-hero { position: relative; padding: 2.2rem 0 2.6rem; background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--border); overflow: hidden; }
.app-hero-cover { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.app-hero-cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); mask-image: linear-gradient(180deg, #000, transparent); }
.app-hero .container { position: relative; }
.app-header { display: flex; gap: 1.8rem; margin-top: 1.6rem; align-items: flex-start; }
.app-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .35rem; }
.app-header-body { flex: 1; min-width: 0; }
.app-tagline { font-size: 1.12rem; color: var(--text-2); max-width: 760px; margin-bottom: .6rem; }
.app-developer { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: .5rem; }
.app-developer img { border-radius: 6px; object-fit: contain; }
.app-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.share-bar { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.share-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .4rem; min-width: 210px; display: flex; flex-direction: column; }
.share-menu[hidden] { display: none; }
.share-menu a { padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text-2); display: flex; gap: .6rem; align-items: center; }
.share-menu a:hover { background: var(--surface-2); color: var(--brand); }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.app-section { margin-bottom: 2.8rem; }
.app-section > h2:first-child { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.app-section > h2:first-child::before { content: ''; width: 5px; height: 22px; border-radius: 4px; background: linear-gradient(var(--brand), var(--accent)); }
.gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .2rem 1rem; scrollbar-width: thin; }
.gallery-item { flex: 0 0 auto; border: 1px solid var(--border); padding: 0; background: var(--surface-2); border-radius: 16px; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item img { height: 380px; width: auto; display: block; object-fit: cover; max-width: 640px; }
.prose { color: var(--text-2); overflow-wrap: anywhere; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }
.prose-lg { font-size: 1.05rem; }
.small-prose { font-size: .93rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-item { display: flex; gap: .9rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.feature-item h3 { font-size: 1rem; margin-bottom: .2rem; }
.feature-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.feature-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-2); }
.check-list i { color: #10b981; margin-top: .15rem; }
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 1.6rem 2.2rem; }
.timeline-item::before { content: ''; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); }
.timeline-item.is-latest::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.timeline-head time { font-size: .82rem; color: var(--muted); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .84rem; color: var(--muted); }
.timeline-meta a { font-weight: 600; text-decoration: none; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.faq summary { padding: 1rem 1.2rem; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\F282'; font-family: 'bootstrap-icons'; transition: transform .2s; color: var(--muted); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 1.2rem 1rem; }
.app-aside { display: flex; flex-direction: column; gap: 1rem; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: 1rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.info-card-accent { background: linear-gradient(160deg, var(--navy), var(--navy-3)); border: 0; color: #c9d4f2; }
.info-card-accent h2 { color: #fff; }
.info-list { margin: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-weight: 500; }
.info-list dd { margin: 0; font-weight: 650; text-align: right; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.mini-list { padding-left: 1.1rem; margin: 0; color: var(--text-2); font-size: .92rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: flex; gap: .5rem; align-items: center; padding: .4rem 0; text-decoration: none; }
@media (min-width: 992px) { .app-aside { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; } }

/* ------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1080; background: rgba(4, 8, 20, .94); display: flex; align-items: center; justify-content: center; padding: 2rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.6); animation: pop .2s var(--ease); }
.lightbox figcaption { color: #cbd5f1; margin-top: .8rem; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* ----------------------------------------------- Contact & À propos */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.about-card h2 { font-size: 1.25rem; margin: .8rem 0; }
.about-card .feature-icon { margin-bottom: .2rem; }
.legal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }

.error-page { padding: 6rem 0; }
.error-code { display: inline-flex; align-items: center; gap: .8rem; font-size: 4.5rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 1rem; }

/* --------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: #a9b5d6; padding: 4rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-brand p { margin: 1rem 0 1.2rem; max-width: 340px; font-size: .94rem; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer-links a, .footer-contact a { color: #a9b5d6; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .15rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: #dbe4ff; text-decoration: none; transition: background .2s, transform .2s; }
.social-links a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.social-links-dark a { background: var(--surface-2); color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; }
.back-top { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.back-top:hover { background: var(--brand); color: #fff; }

/* --------------------------------------------------------- Toasts */
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; max-width: min(420px, calc(100vw - 2rem)); }
.app-toast { display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); color: var(--text); animation: toastIn .3s var(--ease); border-left: 4px solid var(--brand); }
.app-toast span { flex: 1; font-size: .93rem; }
.app-toast button { border: 0; background: none; color: var(--muted); padding: 0; font-size: 1.2rem; line-height: 1; }
.app-toast-success { border-left-color: #10b981; }
.app-toast-error { border-left-color: #ef4444; }
.app-toast-warning { border-left-color: #f59e0b; }
.app-toast.hide { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.invalid-feedback { font-size: .84rem; }

/* --------------------------------------------------- Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* -------------------------------------------------------- Responsive */
@media (max-width: 1199.98px) {
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-main { grid-row: auto; grid-column: span 2; }
    .featured-main .featured-card-body { min-height: 280px; }
}
@media (max-width: 575.98px) {
    .release-item { flex-wrap: wrap; }
    .release-item time { width: 100%; padding-left: calc(44px + .9rem); margin-top: -.4rem; }
    .footer-bottom { flex-wrap: wrap; gap: .8rem; }
}
@media (max-width: 991.98px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { min-height: 420px; }
    .app-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .release-list, .release-list.compact { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    :root { --header-h: 64px; }
    .section { padding: 3rem 0; }
    .hero { padding-bottom: 3.5rem; }
    .hero-visual { display: none; }
    .hero-search .btn { padding-inline: .8rem; }
    .featured-grid { grid-template-columns: minmax(0, 1fr); }
    .featured-main { grid-column: auto; }
    .feature-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .app-header { flex-direction: column; gap: 1rem; }
    .app-icon-xl { width: 88px; height: 88px; border-radius: 22px; }
    .app-actions .btn { flex: 1 1 100%; }
    .gallery-item img { height: 300px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cta-band { padding: 2rem 1.4rem; }
    .filter-row { gap: .6rem; }
    .filter-field { flex: 1 1 calc(50% - .3rem); min-width: 0; }
    .filter-field label { font-size: .7rem; }
    .filter-actions { width: 100%; }
    .filter-actions .btn { flex: 1; }
    .lightbox { padding: 1rem; }
    .lightbox-nav { top: auto; bottom: 1rem; }
    .form-card { padding: 1.3rem; }
    .brand-name { font-size: .98rem; }
}
@media (max-width: 420px) {
    .stats-band { grid-template-columns: minmax(0, 1fr); }
    .stat { border-right: 0 !important; border-bottom: 1px solid var(--border); }
    .header-actions .icon-btn { width: 38px; height: 38px; }
}

/* ------------------------------------------------- Mode maintenance */
.maintenance-body { background: var(--navy); min-height: 100vh; }
.maintenance-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; overflow: hidden; background: radial-gradient(900px 500px at 80% -10%, var(--navy-3), transparent 60%), linear-gradient(160deg, var(--navy), #081026); color: #c9d4f2; }
.maintenance-card { position: relative; z-index: 1; width: min(560px, 100%); text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 2.5rem 2rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.maintenance-card .brand { justify-content: center; margin-bottom: 1.6rem; }
.maintenance-card .social-links { justify-content: center; }
.maintenance-card p { margin: 0 0 1rem; }
.maintenance-icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 22px; display: grid; place-items: center; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 16px 30px -12px var(--brand); }
.maintenance-card h1 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; margin-bottom: .8rem; }
.maintenance-message { font-size: 1.05rem; line-height: 1.7; }
.maintenance-message h2, .maintenance-message h3 { color: #fff; font-size: 1.1rem; }
.maintenance-message a, .maintenance-contact a { color: #7dd3fc; }
.maintenance-until { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.08); border-radius: 999px; padding: .45rem 1rem; margin: .5rem 0 1rem; font-size: .92rem; }
.maintenance-until strong { color: #fff; }
.maintenance-contact { font-size: .92rem; margin-bottom: 1.2rem; }
.maintenance-admin { position: relative; z-index: 1; margin-top: 1.5rem; font-size: .8rem; color: #6f7ca3; text-decoration: none; }
.maintenance-admin:hover { color: #c9d4f2; }
.maintenance-banner { position: relative; z-index: 1031; display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; padding: .55rem 1rem; background: #f59e0b; color: #1f1300; font-size: .88rem; font-weight: 600; text-align: center; }
.maintenance-banner a { color: #1f1300; text-decoration: underline; }
