/* =============================================================
   RPGF — Studio de développement web
   Design : TECH DARK MODE — bleu / cyan / violet, glow & code
   Feuille de style neuve (aucune réutilisation d'un autre site)
   ============================================================= */

:root {
    /* Palette */
    --bg:        #0A0D14;
    --bg-2:      #0E121C;
    --panel:     #121826;
    --panel-2:   #161d2e;
    --line:      rgba(141,147,166,.18);
    --line-2:    rgba(141,147,166,.30);

    --blue:      #3D7BFF;
    --cyan:      #25D6C4;
    --violet:    #8B5CF6;

    --ink:       #EDF1F7;   /* off-white */
    --muted:     #8A93A6;   /* gris */
    --muted-2:   #AEB6C6;

    --grad:      linear-gradient(120deg, #3D7BFF 0%, #8B5CF6 52%, #25D6C4 100%);
    --grad-soft: linear-gradient(120deg, rgba(61,123,255,.16), rgba(139,92,246,.14), rgba(37,214,196,.14));

    --ff-display: 'Sora', system-ui, sans-serif;
    --ff-body:    'Inter', system-ui, sans-serif;
    --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 24px 60px -30px rgba(0,0,0,.85);
    --glow-blue: 0 0 40px -8px rgba(61,123,255,.55);

    --wrap: 1180px;
}

/* ---------- Reset léger ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ff-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.center { text-align: center; }
.mono { font-family: var(--ff-mono); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Fond quadrillé décoratif ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(141,147,166,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141,147,166,.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

/* =============================================================
   BOUTONS
   ============================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--ff-display); font-weight: 600; font-size: .96rem;
    padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s, border-color .25s;
    white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px -6px rgba(61,123,255,.75); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; box-shadow: 0 0 26px -10px rgba(37,214,196,.7); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { transform: translateY(-2px); }
.btn-dark { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn-dark:hover { border-color: var(--blue); }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,13,20,.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--ff-display); font-weight: 800; font-size: 1.28rem; letter-spacing: .02em; }
.brand-text em { font-family: var(--ff-mono); font-style: normal; font-size: .68rem; color: var(--cyan); margin-top: 3px; letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    font-family: var(--ff-display); font-weight: 500; font-size: .96rem; color: var(--muted-2);
    padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.actif { color: var(--ink); }
.site-nav a.actif::after {
    content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--grad);
}
.nav-panier { position: relative; display: inline-flex !important; align-items: center; }
.panier-compteur {
    position: absolute; top: -2px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--grad); color: #fff; font-size: .68rem; font-weight: 700; font-family: var(--ff-mono);
    border-radius: 999px; display: none; align-items: center; justify-content: center; line-height: 1;
}
.panier-compteur.actif { display: inline-flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* =============================================================
   SECTIONS génériques
   ============================================================= */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 16px;
}
.eyebrow::before { content: "</>"; font-weight: 700; color: var(--blue); }
.eyebrow.center { justify-content: center; }

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.lead { font-size: 1.16rem; color: var(--muted-2); }

.grad-text {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =============================================================
   HERO (index)
   ============================================================= */
.hero { position: relative; padding: 76px 0 70px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 70% 20%, rgba(139,92,246,.35), transparent 70%),
        radial-gradient(50% 50% at 15% 80%, rgba(37,214,196,.22), transparent 70%),
        linear-gradient(180deg, rgba(10,13,20,.55), var(--bg) 92%);
}
.hero-inner { max-width: 780px; }
.hero .terminal-tag {
    display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: .8rem;
    color: var(--muted-2); background: rgba(18,24,38,.7); border: 1px solid var(--line);
    padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero .terminal-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats .stat b { display: block; font-family: var(--ff-display); font-weight: 800; font-size: 2rem; }
.hero-stats .stat b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat small { color: var(--muted); font-size: .85rem; font-family: var(--ff-mono); }

/* Bandeau stack technique défilant */
.stack-band { border-block: 1px solid var(--line); background: var(--bg-2); padding: 20px 0; }
.stack-band .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.tech-badge {
    font-family: var(--ff-mono); font-size: .82rem; color: var(--muted-2);
    border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.015);
    transition: border-color .25s, color .25s;
}
.tech-badge:hover { border-color: var(--blue); color: var(--ink); }

/* =============================================================
   CARTES / GRILLES (features, expertises)
   ============================================================= */
.grille { display: grid; gap: 22px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

.carte {
    position: relative; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; transition: transform .25s ease, border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.carte::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.carte:hover::before { opacity: 1; }
.carte .ico {
    width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan); margin-bottom: 18px;
}
.carte h3 { font-size: 1.24rem; margin-bottom: 10px; }
.carte p { color: var(--muted-2); font-size: .97rem; margin: 0; }
.carte .num { font-family: var(--ff-mono); font-size: .8rem; color: var(--blue); }

/* Carte avec image */
.carte-img { padding: 0; }
.carte-img .visuel { aspect-ratio: 4/3; overflow: hidden; }
.carte-img .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte-img:hover .visuel img { transform: scale(1.06); }
.carte-img .corps { padding: 24px 26px 28px; }
.carte-img .corps h3 { font-size: 1.2rem; }

/* =============================================================
   SPLIT (texte + image)
   ============================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(61,123,255,.18)); }
.liste-check { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.liste-check li { position: relative; padding-left: 32px; color: var(--muted-2); }
.liste-check li::before {
    content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px;
    background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan);
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}

/* Snippet de code décoratif */
.code-card {
    background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    font-family: var(--ff-mono); font-size: .84rem; box-shadow: var(--shadow);
}
.code-card .barre { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.code-card .barre i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-card .barre i:nth-child(1) { background: #ff5f57; }
.code-card .barre i:nth-child(2) { background: #febc2e; }
.code-card .barre i:nth-child(3) { background: #28c840; }
.code-card .barre span { margin-left: 8px; color: var(--muted); font-size: .76rem; }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; line-height: 1.7; color: var(--muted-2); }
.code-card .k { color: var(--violet); }
.code-card .s { color: var(--cyan); }
.code-card .f { color: var(--blue); }
.code-card .c { color: var(--muted); }

/* =============================================================
   PAGE HERO (sous-pages)
   ============================================================= */
.page-hero { position: relative; padding: 80px 0 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(50% 80% at 80% 0%, rgba(139,92,246,.22), transparent 65%),
                radial-gradient(40% 70% at 5% 100%, rgba(37,214,196,.14), transparent 65%);
}
.page-hero h1 { max-width: 800px; }
.page-hero p { max-width: 640px; color: var(--muted-2); font-size: 1.12rem; }

/* =============================================================
   PROCESS / TIMELINE (expertises)
   ============================================================= */
.process { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.etape {
    position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; transition: border-color .3s, transform .25s;
}
.etape:hover { border-color: var(--line-2); transform: translateY(-3px); }
.etape .step-num {
    font-family: var(--ff-mono); font-size: .82rem; color: var(--bg); font-weight: 700;
    width: 40px; height: 40px; border-radius: 10px; background: var(--grad);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.etape h3 { font-size: 1.22rem; }
.etape p { color: var(--muted-2); font-size: .97rem; margin: 0; }

.stack-groupe { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.stack-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stack-col h4 { font-family: var(--ff-mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.stack-col ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-col li { font-family: var(--ff-mono); font-size: .82rem; color: var(--muted-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; }

/* =============================================================
   BOUTIQUE / OFFRES
   ============================================================= */
.boutique-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filtre-btn {
    font-family: var(--ff-mono); font-size: .84rem; color: var(--muted-2); cursor: pointer;
    background: rgba(255,255,255,.02); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
    transition: .22s;
}
.filtre-btn:hover { color: var(--ink); border-color: var(--line-2); }
.filtre-btn.actif { color: #fff; background: var(--grad); border-color: transparent; }

.produits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.carte-produit {
    position: relative; display: flex; flex-direction: column; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .3s, box-shadow .3s;
    overflow: hidden;
}
.carte-produit::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.carte-produit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.carte-produit:hover::before { opacity: 1; }
.carte-produit.hidden { display: none; }
.carte-produit .cat { font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.carte-produit h3 { font-size: 1.24rem; margin: 10px 0 8px; }
.carte-produit h3 a { transition: color .2s; }
.carte-produit h3 a:hover { color: var(--blue); }
.carte-produit .resume { color: var(--muted-2); font-size: .95rem; flex: 1; }
.carte-meta { display: flex; gap: 16px; margin: 14px 0; color: var(--muted); font-size: .82rem; font-family: var(--ff-mono); }
.carte-meta span { display: inline-flex; align-items: center; gap: 6px; }
.carte-prix { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.carte-prix .montant { font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; }
.carte-prix .ht { color: var(--muted); font-size: .78rem; font-family: var(--ff-mono); }
.badge-pop {
    position: absolute; top: 18px; right: 18px; font-family: var(--ff-mono); font-size: .68rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--bg); background: var(--grad);
    padding: 4px 11px; border-radius: 999px;
}

/* =============================================================
   PAGE PRODUIT
   ============================================================= */
.fil-ariane { font-family: var(--ff-mono); font-size: .82rem; color: var(--muted); padding: 26px 0 0; }
.fil-ariane a { color: var(--muted-2); }
.fil-ariane a:hover { color: var(--cyan); }

.produit-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 40px 0 20px; align-items: start; }
.produit-visuel {
    position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px;
    border: 1px solid var(--line); background:
        radial-gradient(60% 90% at 80% 10%, rgba(139,92,246,.4), transparent 60%),
        radial-gradient(50% 80% at 10% 100%, rgba(37,214,196,.25), transparent 60%),
        var(--panel-2);
    display: flex; align-items: center; justify-content: center;
}
.pv-cat { position: absolute; top: 18px; left: 18px; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; background: rgba(10,13,20,.5); }
.pv-glyph { font-family: var(--ff-mono); font-size: 5rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.produit-detail .resume { font-size: 1.14rem; color: var(--ink); }
.produit-detail .desc { color: var(--muted-2); }
.produit-detail h3 { font-size: 1.2rem; margin-top: 30px; }
.inclus-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.inclus-liste li { position: relative; padding-left: 30px; color: var(--muted-2); }
.inclus-liste li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); font-family: var(--ff-mono); }
.pour-qui { margin-top: 28px; background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; color: var(--muted-2); font-size: .96rem; }
.pour-qui b { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--ff-display); }

.achat-box { position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.prix-gros { font-family: var(--ff-display); font-weight: 800; font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prix-ht { color: var(--muted); font-size: .82rem; font-family: var(--ff-mono); margin-bottom: 22px; }
.achat-box dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.achat-box dt { font-family: var(--ff-mono); font-size: .8rem; color: var(--muted); }
.achat-box dd { margin: 0; font-size: .92rem; text-align: right; }
.qte-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qte-input { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.qte-input button { background: none; border: 0; color: var(--ink); width: 38px; height: 40px; font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.qte-input button:hover { background: rgba(255,255,255,.05); }
.qte-input input { width: 46px; height: 40px; text-align: center; border: 0; background: transparent; color: var(--ink); font-family: var(--ff-mono); font-size: 1rem; -moz-appearance: textfield; }
.qte-input input::-webkit-outer-spin-button, .qte-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* =============================================================
   PANIER / CHECKOUT
   ============================================================= */
.panier-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.ligne-panier { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lp-info .cat { font-family: var(--ff-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.lp-info h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.lp-info h3 a:hover { color: var(--blue); }
.lp-actions { display: flex; align-items: center; gap: 10px; }
.lp-prix { font-family: var(--ff-display); font-weight: 800; font-size: 1.16rem; }
.lien-suppr { font-family: var(--ff-mono); font-size: .8rem; color: var(--muted); transition: color .2s; }
.lien-suppr:hover { color: #ff6b6b; }

.recap { position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.recap h3 { font-size: 1.2rem; margin-bottom: 18px; }
.recap-ligne { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: .95rem; margin-bottom: 10px; }
.recap-total { display: flex; justify-content: space-between; font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; margin: 16px 0 20px; }
.recap-note { font-size: .8rem; color: var(--muted); font-family: var(--ff-mono); margin-top: 14px; text-align: center; }

.panier-vide { text-align: center; padding: 70px 20px; }
.panier-vide .glyph { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 20px; background: var(--grad-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--cyan); }
.panier-vide h2 { margin-bottom: 10px; }
.panier-vide p { color: var(--muted-2); max-width: 420px; margin: 0 auto 24px; }

/* =============================================================
   FORMULAIRES
   ============================================================= */
.bloc-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.bloc-form h2 { font-size: 1.5rem; }
.bloc-form .sous { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ.full { grid-column: 1 / -1; }
.champ label { font-family: var(--ff-display); font-weight: 500; font-size: .9rem; }
.champ .req { color: var(--violet); }
.champ input, .champ select, .champ textarea {
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
    color: var(--ink); font-family: var(--ff-body); font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,123,255,.18); outline: none; }
.champ textarea { min-height: 130px; resize: vertical; }
.champ small { color: #ff8080; font-size: .82rem; }

.alerte { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; font-size: .95rem; }
.alerte b { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.alerte-ok { background: rgba(37,214,196,.1); border: 1px solid rgba(37,214,196,.4); color: #b8f5ec; }
.alerte-ok b { background: var(--cyan); color: var(--bg); }
.alerte-err { background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.35); color: #ffc2c2; }
.alerte-err b { background: #ff6b6b; color: #fff; }
.alerte-info { background: rgba(61,123,255,.08); border: 1px solid rgba(61,123,255,.35); color: #cfe0ff; }
.alerte-info b { background: var(--blue); color: #fff; }
.alerte a { text-decoration: underline; }

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.contact-info { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 22px; }
.contact-bloc { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-bloc .ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan); display: inline-flex; align-items: center; justify-content: center; }
.contact-bloc b { display: block; font-family: var(--ff-display); font-size: .95rem; margin-bottom: 2px; }
.contact-bloc a, .contact-bloc span { color: var(--muted-2); font-size: .92rem; }
.contact-bloc a:hover { color: var(--cyan); }
.a-venir { color: var(--muted); font-style: italic; }

/* =============================================================
   CONFIRMATION
   ============================================================= */
.confirm-box { text-align: center; max-width: 640px; margin: 0 auto; }
.confirm-check { width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 20px; background: var(--grad); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-blue); }
.confirm-ref { display: inline-block; margin-top: 20px; font-family: var(--ff-mono); font-size: .95rem; background: var(--panel); border: 1px solid var(--line-2); padding: 10px 20px; border-radius: 999px; color: var(--cyan); }
.tl-item { display: grid; gap: 14px; align-items: start; }
.tl-item .step { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-mono); font-weight: 700; font-size: .85rem; }

/* =============================================================
   PAGES LÉGALES
   ============================================================= */
.legal { max-width: 820px; margin: 0 auto; padding: 20px 0 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; padding-top: 10px; }
.legal h2:first-of-type { margin-top: 10px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted-2); font-size: .98rem; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--cyan); text-decoration: underline; }
.legal .maj { font-family: var(--ff-mono); font-size: .82rem; color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted-2); }
.legal th { background: var(--panel); color: var(--ink); font-family: var(--ff-display); }

/* =============================================================
   CTA final réutilisable
   ============================================================= */
.cta-band { position: relative; text-align: center; border: 1px solid var(--line-2); border-radius: 24px; padding: 60px 32px; overflow: hidden; background: var(--panel); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(139,92,246,.28), transparent 60%), radial-gradient(50% 120% at 80% 100%, rgba(37,214,196,.2), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-band p { color: var(--muted-2); max-width: 520px; margin: 0 auto 28px; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 62px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.brand--footer { margin-bottom: 16px; }
.footer-pitch { color: var(--muted-2); font-size: .98rem; max-width: 280px; }
.footer-legal-mini { color: var(--muted); font-size: .82rem; font-family: var(--ff-mono); line-height: 1.7; }
.footer-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mini-badge { font-family: var(--ff-mono); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.footer-col h4 { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted-2); font-size: .92rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-contact p { color: var(--muted-2); font-size: .92rem; line-height: 1.7; }
.footer-contact a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .82rem; }

/* =============================================================
   ANIMATIONS AU SCROLL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
    .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
    .produits-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 34px; }
    .split.reverse .split-media { order: 0; }
    .produit-detail { grid-template-columns: 1fr; }
    .achat-box, .recap { position: static; }
    .panier-layout, .contact-grid { grid-template-columns: 1fr; }
    .process, .stack-groupe { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .section { padding: 62px 0; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(10,13,20,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
        padding: 12px 5%; transform: translateY(-120%); transition: transform .3s ease; z-index: 90;
    }
    .site-nav.ouvert { transform: none; }
    .site-nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
    .site-nav a.actif::after { display: none; }
    .nav-panier { justify-content: flex-start; }
    .grille-3, .grille-4, .grille-2, .produits-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 26px; }
    .ligne-panier { grid-template-columns: 1fr; gap: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}
