/* =====================================================================
   Gregaming91 — Feuille de style
   Thème tech/gaming sombre, dégradé vert→cyan→bleu (logo)
   ===================================================================== */

:root {
    --vert:        #21e3a3;
    --cyan:        #1fc8e3;
    --bleu:        #2b9bf4;
    --gradient:    linear-gradient(120deg, #21e3a3 0%, #1fc8e3 50%, #2b9bf4 100%);
    --gradient-soft: linear-gradient(120deg, rgba(33,227,163,.15), rgba(43,155,244,.15));

    --bg:          #0c0f16;
    --bg-2:        #11151f;
    --surface:     #161b27;
    --surface-2:   #1d2433;
    --border:      #242c3d;
    --text:        #e7ecf4;
    --text-muted:  #8e9ab2;

    --shadow:      0 10px 40px rgba(0,0,0,.45);
    --glow:        0 0 30px rgba(31,200,227,.25);
    --radius:      16px;
    --radius-sm:   10px;
    --container:   1180px;

    --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Masque la barre de défilement native : l'indicateur « filament 3D » la remplace.
   Le défilement reste actif (molette, tactile, clavier). */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; }

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(43,155,244,.12), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(33,227,163,.10), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vert); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600; font-size: .98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .25s, background .25s;
    font-family: inherit;
    text-align: center;
    line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--gradient);
    color: #06121b;
    box-shadow: var(--glow);
}
.btn-primary:hover { color: #06121b; box-shadow: 0 0 38px rgba(31,200,227,.5); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger { background: #e3434f; color: #fff; }
.btn-danger:hover { background: #c5343f; color:#fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12,15,22,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.brand img {
    height: 46px; width: auto;
    animation: brandPulse 4.5s ease-in-out infinite;
    transition: transform .35s ease, filter .35s ease;
    will-change: filter, transform;
}
.brand:hover { color: var(--text); }
.brand:hover img { transform: scale(1.07) rotate(-4deg); filter: drop-shadow(0 0 10px rgba(31,200,227,.65)); }
@keyframes brandPulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(31,200,227,0)); }
    50%      { filter: drop-shadow(0 0 7px rgba(31,200,227,.4)); }
}
@media (prefers-reduced-motion: reduce) { .brand img { animation: none; } }
.nav-links { display: flex; align-items: center; gap: .4rem; list-style: none; }
.nav-links a {
    color: var(--text); padding: .5rem .9rem; border-radius: 999px;
    font-weight: 500; font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--cyan); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* Sous-menus déroulants */
.has-sub { position: relative; }
.nav-sub-toggle {
    color: var(--text); padding: .5rem .9rem; border-radius: 999px; font-weight: 500;
    font-size: .95rem; font-family: inherit; background: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: .35rem;
}
.nav-sub-toggle:hover, .nav-sub-toggle.active { background: var(--surface-2); color: var(--cyan); }
.caret { font-size: .6rem; transition: transform .2s ease; }
.nav-sub {
    position: absolute; top: 100%; left: 0; min-width: 215px; margin: 0; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: .4rem; display: none; flex-direction: column; gap: .15rem;
    box-shadow: 0 14px 34px rgba(0,0,0,.45); z-index: 200;
}
.has-sub:hover .nav-sub, .has-sub.open .nav-sub { display: flex; }
.has-sub:hover .caret, .has-sub.open .caret { transform: rotate(180deg); }
.nav-sub a { padding: .55rem .8rem; border-radius: 8px; white-space: nowrap; display: block; font-size: .92rem; }

.announce-bar {
    background: var(--gradient);
    color: #06121b; text-align: center;
    font-weight: 600; font-size: .9rem; padding: .45rem 1rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
    position: relative; aspect-ratio: 1; border-radius: 50%;
    background: var(--gradient-soft);
    display: grid; place-items: center;
}
.hero-visual::before {
    content: ''; position: absolute; inset: 8%;
    border-radius: 50%; border: 1px dashed rgba(31,200,227,.35);
    animation: spin 40s linear infinite;
}
.hero-visual img { width: 70%; filter: drop-shadow(0 0 30px rgba(31,200,227,.35)); border-radius: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }

.pills { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.pill {
    font-size: .8rem; padding: .35rem .85rem; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}

/* ---------- Sections titres ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-head p { color: var(--text-muted); margin-top: .6rem; }

/* ---------- Cartes ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

/* ---------- Grille produits ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s, border-color .2s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(31,200,227,.5); box-shadow: var(--glow); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
    position: absolute; top: .8rem; left: .8rem;
    background: var(--gradient); color: #06121b;
    font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
}
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .75rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: 1.1rem; margin: .25rem 0 .5rem; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--cyan); }
.product-desc { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.product-price { font-size: 1.25rem; font-weight: 700; }
.product-price.devis { font-size: 1rem; color: var(--vert); }

/* ---------- Catégories ---------- */
.cat-card {
    display: block; padding: 1.6rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(31,200,227,.5); }
.cat-card .cat-icon {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
    background: var(--gradient-soft); display: grid; place-items: center; font-size: 1.6rem;
}
.cat-card h3 { color: var(--text); margin-bottom: .4rem; }
.cat-card p { color: var(--text-muted); font-size: .9rem; }

/* ---------- Étapes (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.step { text-align: center; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center; font-weight: 700; font-size: 1.3rem;
    background: var(--gradient); color: #06121b;
}
.step h4 { margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* ---------- Fiche produit ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--bg-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 78px; height: 78px; object-fit: cover; border-radius: var(--radius-sm);
    border: 2px solid var(--border); cursor: pointer; transition: border-color .2s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--cyan); }
.specs { list-style: none; margin: 1.5rem 0; display: grid; gap: .6rem; }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.specs li span:first-child { color: var(--text-muted); }
.price-tag { font-size: 2rem; font-weight: 800; margin: 1rem 0; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .92rem; font-weight: 500; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
input, select, textarea {
    width: 100%; padding: .8rem .95rem;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: .98rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(31,200,227,.15); }
textarea { resize: vertical; min-height: 120px; }
label.inline { display: flex; align-items: center; gap: .5rem; }
label.inline input { width: auto; }

/* ---------- Alertes ---------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid; }
.alert ul { margin: .4rem 0 0 1.1rem; }
.alert-success { background: rgba(33,227,163,.1); border-color: rgba(33,227,163,.4); color: #7af3c8; }
.alert-error   { background: rgba(227,67,79,.1); border-color: rgba(227,67,79,.4); color: #f6a0a6; }
.alert-info    { background: rgba(43,155,244,.1); border-color: rgba(43,155,244,.4); color: #9cc8f8; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--cyan); }
.social { display: flex; gap: .7rem; margin-top: 1rem; }
.social a {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.social a:hover { background: var(--gradient); color: #06121b; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { margin: .15rem 0; }
.dev-credit { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: .4rem !important; }
.credit-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .85rem; border-radius: 999px;
    font-weight: 600; color: var(--text);
    border: 1px solid var(--border); background: var(--surface-2);
    transition: all .25s;
}
.credit-link { vertical-align: middle; }
.credit-link .credit-spark { display: inline-block; vertical-align: -3px; transition: transform .3s; }
.credit-link:hover {
    color: #06121b; background: var(--gradient);
    border-color: transparent; box-shadow: var(--glow); transform: translateY(-1px);
}
.credit-link:hover .credit-spark { transform: rotate(-15deg) scale(1.15); }
.credit-sep { opacity: .5; }
.credit-admin { color: var(--text-muted); }
.credit-admin:hover { color: var(--cyan); }

/* Accueil : sections réordonnables (ordre défini en admin) */
main.home-flow { display: flex; flex-direction: column; }
main.home-flow > .hero { order: -1; }

/* ===================== Thèmes prédéfinis ===================== */
.announce-bar { display: block; }

body[data-theme="neon"] {
    --bg: #05060c; --bg-2: #0a0c14; --surface: #0f1320; --surface-2: #161b2b;
    --border: #243049; --glow: 0 0 36px rgba(31,200,227,.5);
}
body[data-theme="cyber"] {
    --bg: #0a0713; --bg-2: #120c20; --surface: #170f29; --surface-2: #201637;
    --border: #34244f; --text: #ece7f6; --text-muted: #9b90b6;
}
body[data-theme="clair"] {
    --bg: #eef2f8; --bg-2: #e4eaf3; --surface: #ffffff; --surface-2: #eef2f8;
    --border: #d6deec; --text: #16203a; --text-muted: #56607a;
    --shadow: 0 10px 30px rgba(40,60,90,.12);
}
/* Ajustements pour le thème clair */
body[data-theme="clair"] .site-header { background: rgba(255,255,255,.85); }
body[data-theme="clair"] .hero-bg .hero-overlay {
    background: linear-gradient(180deg, rgba(244,247,251,.45), rgba(244,247,251,.82));
}
body[data-theme="clair"] .bottom-nav { background: rgba(255,255,255,.94); }
body[data-theme="clair"] .nav-links { background: var(--surface); }
body[data-theme="clair"] .pill,
body[data-theme="clair"] .badge-inline { color: var(--text-muted); }
body[data-theme="clair"] .fx-scanlines { opacity: .05; }

/* Timeline suivi de commande */
.suivi-steps { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.suivi-steps li { display: flex; gap: 1rem; padding: 0 0 1.3rem; position: relative; }
.suivi-steps li:not(:last-child)::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.suivi-steps li.done:not(:last-child)::before { background: var(--vert); }
.suivi-steps .dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border); background: var(--surface); z-index: 1; }
.suivi-steps li.done .dot { background: var(--gradient); border-color: transparent; }
.suivi-steps li.current .dot { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(31,200,227,.2); }
.suivi-steps li.todo { opacity: .5; }

/* Galerie réalisations */
.realisations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.realisation { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.realisation img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .4s; }
.realisation:hover img { transform: scale(1.06); }
.realisation figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: .9rem .8rem .7rem; background: linear-gradient(transparent, rgba(12,15,22,.85)); color: #fff; font-size: .85rem; font-weight: 500; }

/* Bouton favori */
.fav-btn {
    position: absolute; top: .7rem; right: .7rem; z-index: 7;
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(12,15,22,.6); color: #fff; font-size: 1.05rem;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: all .2s;
}
.fav-btn:hover { background: rgba(12,15,22,.85); transform: scale(1.1); }
.fav-btn.active { color: #ff5d73; background: rgba(255,93,115,.18); }
.fav-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #ff5d73; color: #fff; font-size: .7rem; font-weight: 700; text-align: center; }

/* Badge de stock */
.stock-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.stock-badge.ok { background: rgba(33,227,163,.16); color: #7af3c8; }
.stock-badge.low { background: rgba(255,193,7,.16); color: #ffd874; }
.stock-badge.rupture { background: rgba(227,67,79,.16); color: #f6a0a6; }

/* Avis clients */
.stars { color: #ffc34d; letter-spacing: 2px; }
.avis-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem;
    transition: transform .2s, border-color .2s;
}
.avis-card:hover { transform: translateY(-4px); border-color: rgba(31,200,227,.4); }
.avis-card .avis-text { color: var(--text); font-style: italic; flex: 1; line-height: 1.6; }
.avis-card .avis-meta { color: var(--text-muted); font-size: .9rem; }

/* Réordonnancement par glisser-déposer (admin) */
.drag-grip { cursor: grab; color: var(--text-muted); font-size: 1.2rem; text-align: center; width: 32px; user-select: none; }
[data-sortable] > [data-id] { transition: background .15s ease, opacity .15s ease; }
[data-sortable] > [data-id].dragging { opacity: .5; background: var(--surface-2); }
[data-sortable] > [data-id][draggable] { cursor: grab; }

/* Sections pliables (paramètres admin) */
.settings-section { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .7rem; overflow: hidden; background: var(--surface); }
.settings-section > summary {
    cursor: pointer; padding: .85rem 1.05rem; font-weight: 600; list-style: none;
    display: flex; align-items: center; justify-content: space-between; background: var(--bg-2);
}
.settings-section > summary::-webkit-details-marker { display: none; }
.settings-section > summary::after { content: '▾'; color: var(--text-muted); transition: transform .2s ease; }
.settings-section[open] > summary::after { transform: rotate(180deg); }
.settings-section .settings-body { padding: 1.05rem; }
.settings-section .settings-body label { display: block; margin-bottom: .7rem; }

.avis-head { display: flex; align-items: center; gap: .8rem; }
.avis-avatar {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.15rem; line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.avis-photo { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.avis-photo img { width: 100%; max-height: 220px; object-fit: cover; display: block; transition: transform .3s ease; }
.avis-photo:hover img { transform: scale(1.04); }

/* Bouton d'installation PWA */
.pwa-install[hidden], .pwa-iostip[hidden] { display: none !important; }
.pwa-install {
    position: fixed; bottom: 22px; left: 22px; z-index: 96;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .7rem 1.1rem; border-radius: 999px; border: none; cursor: pointer;
    background: var(--gradient); color: #06121b; font-weight: 700; font-size: .9rem; font-family: inherit;
    box-shadow: var(--glow); animation: btnPulse 2s ease-in-out infinite;
}
.pwa-install:hover { transform: translateY(-2px); }
@media (max-width: 768px) { .pwa-install { bottom: 80px; left: 14px; } }
.pwa-iostip { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.6);
    display: grid; place-items: end center; padding: 1.2rem; }
.pwa-iostip-box { background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.4rem; max-width: 340px; position: relative; box-shadow: var(--shadow); }
.pwa-iostip-close { position: absolute; top: .5rem; right: .7rem; background: none; border: none;
    color: var(--text-muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* Bouton WhatsApp flottant */
.wa-btn {
    position: fixed; bottom: 22px; right: 22px; z-index: 96;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff;
    box-shadow: 0 8px 26px rgba(37,211,102,.5);
    transition: transform .2s, box-shadow .2s;
    animation: waPulse 2.6s ease-in-out infinite;
}
.wa-btn:hover { transform: scale(1.08); color: #fff; box-shadow: 0 10px 32px rgba(37,211,102,.7); }

/* Progression « impression 3D » (filament qui s'imprime) */
.print-rail {
    position: fixed; left: 16px; top: 92px; bottom: 104px; width: 16px;
    z-index: 90; pointer-events: none; --print: 0%;
}
.print-rail .pr-track,
.print-rail .pr-filament {
    position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 3px; border-radius: 3px;
}
.print-rail .pr-track { bottom: 0; background: rgba(255,255,255,.09); }
.print-rail .pr-filament {
    height: var(--print); background: var(--gradient);
    box-shadow: 0 0 9px rgba(31,200,227,.6); transition: height .12s linear;
}
.print-rail .pr-head {
    position: absolute; left: 50%; top: var(--print); transform: translate(-50%, -50%);
    width: 16px; height: 12px; border-radius: 3px;
    background: linear-gradient(#e6edf6, #8e9ab2);
    box-shadow: 0 0 12px rgba(31,200,227,.75); transition: top .12s linear;
}
.print-rail .pr-head::after { /* la buse */
    content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #9aa6bd;
}
@media (max-width: 768px) { .print-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .print-rail .pr-filament, .print-rail .pr-head { transition: none; } }

/* Bouton retour en haut */
.to-top {
    position: fixed; left: 14px; bottom: 24px; z-index: 96;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 1.2rem; color: #fff;
    border: 1px solid rgba(31,200,227,.5); background: rgba(12,15,22,.82);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 0 16px rgba(31,200,227,.35);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px) scale(1.06); color: var(--cyan); }
@media (max-width: 768px) { .to-top { bottom: 88px; left: 12px; width: 42px; height: 42px; } }

/* Bouton musique d'ambiance */
.music-btn {
    position: fixed; bottom: 88px; right: 22px; z-index: 96;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: #fff; font-size: 1.2rem;
    border: 1px solid var(--border); background: rgba(12,15,22,.8);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.music-btn:hover { transform: scale(1.08); box-shadow: var(--glow); }
.music-btn .music-on { display: none; }
.music-btn.playing .music-on { display: block; }
.music-btn.playing .music-off { display: none; }
.music-btn.playing { border-color: rgba(31,200,227,.6); box-shadow: 0 0 18px rgba(31,200,227,.4); }
@media (max-width: 768px) { .music-btn { bottom: 140px; right: 14px; width: 44px; height: 44px; } }
@keyframes waPulse { 0%,100% { box-shadow: 0 8px 26px rgba(37,211,102,.5); } 50% { box-shadow: 0 8px 34px rgba(37,211,102,.85); } }

/* Bandeau cookies */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 1rem 1.25rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center;
    gap: 1.4rem; flex-wrap: wrap; box-shadow: 0 -10px 30px rgba(0,0,0,.4);
}
.cookie-banner .cookie-actions .btn { min-width: 110px; }
.cookie-banner p { margin: 0; color: var(--text-muted); font-size: .9rem; max-width: 62ch; }
.cookie-actions { display: flex; gap: .6rem; }

/* Encart consentement vidéo */
.video-consent {
    text-align: center; padding: 2.5rem 1rem;
    background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.video-consent p { color: var(--text-muted); margin-bottom: 1rem; }

/* Pages légales */
.legal h1 { margin-bottom: 1rem; }
.legal h2 { margin: 1.9rem 0 .6rem; font-size: 1.25rem; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.75; margin-bottom: .8rem; }
.legal code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 5px; }

/* FAQ accordéon */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--cyan); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--cyan); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); line-height: 1.7; }

/* Encart promo Cyberlogic (page de remerciement) */
.cyber-promo {
    margin-top: 1.5rem; display: flex; align-items: center; gap: 1.3rem;
    flex-wrap: wrap; text-align: left;
}
.cyber-promo__icon {
    font-size: 1.9rem; width: 60px; height: 60px; border-radius: 16px;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--gradient-soft); border: 1px solid rgba(31,200,227,.3);
}
.cyber-promo__text { flex: 1; min-width: 220px; }
.cyber-promo__text h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.cyber-promo__text p { font-size: .9rem; }
@media (max-width: 560px) {
    .cyber-promo { text-align: center; justify-content: center; }
}

/* ---------- Filtres catalogue ---------- */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 90px; }
.filters h4 { margin-bottom: 1rem; }
.filter-list { list-style: none; display: grid; gap: .3rem; }
.filter-list a { display: block; padding: .55rem .85rem; border-radius: var(--radius-sm); color: var(--text); }
.filter-list a:hover, .filter-list a.active { background: var(--surface-2); color: var(--cyan); }

/* ---------- Tableaux admin ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tr:hover td { background: var(--surface); }
.tag { display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.tag-nouveau { background: rgba(43,155,244,.18); color: #9cc8f8; }
.tag-en_cours { background: rgba(255,193,7,.16); color: #ffd874; }
.tag-devis_envoye { background: rgba(155,89,244,.16); color: #c4a6f8; }
.tag-paye, .tag-termine { background: rgba(33,227,163,.16); color: #7af3c8; }
.tag-annule { background: rgba(227,67,79,.16); color: #f6a0a6; }

/* ---------- Admin layout ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 1.5rem 1rem; }
.admin-side .brand { margin-bottom: 2rem; padding: 0 .5rem; }
.admin-menu { list-style: none; display: grid; gap: .25rem; }
.admin-menu a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; }
.admin-menu a:hover, .admin-menu a.active { background: var(--surface-2); color: var(--cyan); }
.admin-menu-group {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-muted); padding: .9rem .9rem .25rem; margin-top: .3rem;
    border-top: 1px solid var(--border);
}
.admin-menu-group:first-of-type { margin-top: .5rem; }

/* Raccourcis du tableau de bord */
.dash-shortcuts-group { margin-bottom: .8rem; }
.dash-shortcuts-title { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .4rem; }
.dash-shortcuts { display: flex; flex-wrap: wrap; gap: .5rem; }
.dash-badge { background: #e3434f; color: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .72rem; font-weight: 700; margin-left: .2rem; }

/* Graphique statistiques */
.stats-chart { display: flex; align-items: flex-end; gap: .4rem; height: 160px; }
.stats-chart .sc-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .25rem; }
.stats-chart .sc-bar { width: 100%; max-width: 34px; background: var(--gradient); border-radius: 5px 5px 0 0; min-height: 2px; transition: filter .15s ease; }
.stats-chart .sc-col:hover .sc-bar { filter: brightness(1.2); }
.stats-chart .sc-val { font-size: .7rem; color: var(--text-muted); }
.stats-chart .sc-day { font-size: .66rem; color: var(--text-muted); }
.admin-main { padding: 2rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.admin-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center; }
.admin-overlay { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.stat .num { font-size: 2rem; font-weight: 800; }
.stat .label { color: var(--text-muted); font-size: .85rem; }

/* ---------- Divers ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.breadcrumb { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.badge-inline { font-size:.7rem; padding:.2rem .55rem; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); color:var(--text-muted); }
.badge { display:inline-block; font-size:.78rem; font-weight:600; padding:.25rem .6rem; border-radius:999px; text-decoration:none; border:1px solid transparent; white-space:nowrap; transition:filter .15s ease; }
.badge:hover { filter:brightness(1.12); }
.badge-on  { background:rgba(33,227,163,.14); border-color:rgba(33,227,163,.4); color:#3fe3ac; }
.badge-off { background:rgba(142,154,178,.14); border-color:rgba(142,154,178,.4); color:#9aa6bd; }

/* ---------- Barre d'onglets mobile (PWA / appli) ---------- */
.bottom-nav { display: none; }
@media (max-width: 768px) {
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
        background: rgba(12,15,22,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: .5rem 0 .55rem; font-size: .66rem; color: var(--text-muted); font-weight: 500;
        transition: color .2s;
    }
    .bottom-nav a .bn-ico { font-size: 1.25rem; line-height: 1; filter: grayscale(.35); transition: filter .2s; }
    .bottom-nav a.active { color: var(--cyan); }
    .bottom-nav a.active .bn-ico { filter: none; transform: translateY(-1px); }
    body { padding-bottom: 66px; }
    .wa-btn { bottom: 80px; width: 50px; height: 50px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid, .product-detail { grid-template-columns: 1fr; }
    .hero-visual { max-width: 360px; margin: 0 auto; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side {
        display: block; position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 200;
        overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease;
    }
    .admin-side.open { transform: translateX(0); box-shadow: var(--shadow); }
    .admin-overlay { display: block; position: fixed; inset: 0; z-index: 190;
        background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
    .admin-overlay.open { opacity: 1; pointer-events: auto; }
    .admin-toggle { display: inline-flex; }
    .admin-main { padding: 1.2rem; }
    .admin-main .grid-2 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .nav-links {
        position: absolute; top: 100%; right: 1rem; left: 1rem;
        flex-direction: column; align-items: stretch;
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: .6rem; gap: .2rem;
        display: none; box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    /* Sous-menus : empilés et dépliables au tap */
    .has-sub { position: static; }
    .nav-sub-toggle { width: 100%; justify-content: space-between; }
    .nav-sub {
        position: static; box-shadow: none; border: 0; min-width: 0;
        background: var(--bg-2); margin: .15rem 0 .3rem .8rem; padding: .3rem;
    }
    .has-sub:hover .nav-sub { display: none; }
    .has-sub.open .nav-sub { display: flex; }
    .has-sub:hover .caret { transform: none; }
    .has-sub.open .caret { transform: rotate(180deg); }
}
@media (max-width: 560px) {
    .grid-4, .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
    .form .row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hub de liens (page liens.php) ---------- */
.linkhub { display: flex; justify-content: center; }
.linkhub-inner { width: 100%; max-width: 480px; }
.linkhub-head { text-align: center; margin-bottom: 1.8rem; }
.linkhub-avatar {
    width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
    border: 2px solid transparent; background: var(--bg-2);
    padding: 4px; box-shadow: var(--glow, 0 0 30px rgba(31,200,227,.35));
    background-image: linear-gradient(var(--bg-2), var(--bg-2)), var(--gradient);
    background-origin: border-box; background-clip: content-box, border-box;
}
.linkhub-head h1 { font-size: 1.7rem; margin: .8rem 0 .2rem; }
.linkhub-bio { color: var(--text-muted); font-size: .95rem; margin: 0; }
.linkhub-list { display: flex; flex-direction: column; gap: .7rem; }
.linkhub-sep {
    text-align: center; color: var(--text-muted); font-size: .8rem;
    text-transform: uppercase; letter-spacing: .12em; margin: .8rem 0 .2rem;
}
.link-item {
    display: flex; align-items: center; gap: .9rem;
    padding: .85rem 1.1rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-2);
    text-decoration: none; color: inherit;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.link-item:hover {
    transform: translateY(-2px); border-color: transparent;
    box-shadow: 0 8px 26px rgba(0,0,0,.35), var(--glow, 0 0 24px rgba(31,200,227,.3));
}
.link-ic { font-size: 1.5rem; width: 1.8rem; text-align: center; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.link-ic img { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; display: block; }
.link-txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.link-txt strong { font-size: 1rem; }
.link-txt small { color: var(--text-muted); font-size: .82rem; }
.link-arrow { color: var(--text-muted); font-size: 1.1rem; flex: none; transition: transform .18s ease; }
.link-item:hover .link-arrow { transform: translateX(3px); }
