/* 0bla V4 -- Global CSS | Zero framework | Mobile-first | Dark+Light */
/* Identite : orange #e8811d + bleu #1a7de8 + cream/noir */
/* Fonts : Plus Jakarta Sans + JetBrains Mono + Playwrite FR Trad (locales WOFF2) */
/* CSP : zero style="" inline, zero @import externe */

/* ===== FONTS LOCALES ===== */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-var.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono-var.woff2') format('woff2');
    font-weight: 100 800;
    font-display: swap;
}
@font-face {
    font-family: 'Special Elite';
    src: url('../fonts/special-elite.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Special Elite';
    src: url('../fonts/special-elite-ext.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== VARIABLES ===== */
:root {
    /* Couleurs de marque (identiques dark et light) */
    --orange: #e8811d;
    --orange-hover: #d3720f;
    --orange-glow: rgba(232, 129, 29, 0.15);
    --blue: #1a7de8;
    --blue-hover: #1565c0;
    --blue-glow: rgba(26, 125, 232, 0.15);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Light mode (defaut) */
    --bg: #fffdf8;
    --bg-card: #ffffff;
    --bg-elevated: #f8fafc;
    --bg-terminal: #1e293b;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px -8px rgba(0,0,0,0.1);

    /* Alias compatibilite (ancien CSS V3) */
    --primary: var(--orange);
    --primary-hover: var(--orange-hover);
    --primary-glow: var(--orange-glow);
    --bg-deep: var(--bg);
    --text-main: var(--text);
    --border-color: var(--border);

    /* Dimensions */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-8: 8px;
    --radius-12: 12px;
    --transition: all 0.2s ease;

    /* Fonts */
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-brand: 'Special Elite', cursive;
}

/* Dark mode : cookie serveur data-theme OU classe .dark (JS legacy) */
[data-theme="dark"],
.dark {
    --bg: #000000;
    --bg-card: #0d0d0d;
    --bg-elevated: #1a1a1a;
    --bg-terminal: #0a0a0a;
    --text: #fffdf8;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 30px -8px rgba(0,0,0,0.5);
    --bg-deep: var(--bg);
    --text-main: var(--text);
    --border-color: var(--border);
}

/* Fallback : respect du systeme si pas de cookie */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not(.light) {
        --bg: #000000;
        --bg-card: #0d0d0d;
        --bg-elevated: #1a1a1a;
        --bg-terminal: #0a0a0a;
        --text: #fffdf8;
        --text-secondary: #a0a0a0;
        --text-muted: #666666;
        --border: #2a2a2a;
        --shadow: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 30px -8px rgba(0,0,0,0.5);
        --bg-deep: var(--bg);
        --text-main: var(--text);
        --border-color: var(--border);
    }
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
main { flex: 1; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.font-brand { font-family: var(--font-brand); line-height: 1.3; font-weight: 400; }
.font-mono { font-family: var(--font-mono); }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== BUTTONS ===== */
.btn, .btn-v3 {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 12px 24px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
    border: none; border-radius: var(--radius); cursor: pointer;
    transition: var(--transition); text-decoration: none; line-height: 1;
}
.btn-primary {
    background: var(--orange); color: #fff;
    box-shadow: 0 4px 14px -4px var(--orange-glow);
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 8px 24px -4px var(--orange-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 16px; font-size: 12px; border-radius: var(--radius); }
.btn-ghost:hover { color: var(--orange); background: var(--orange-glow); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; }

/* ===== INPUTS ===== */
.input {
    width: 100%; height: 48px; padding: 0 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text);
    font-size: 14px; font-weight: 600; outline: none;
    transition: var(--transition);
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }

/* ===== CARDS ===== */
.card, .card-v3 {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover, .card-v3:hover { box-shadow: var(--shadow-lg); }
.card-v3 { padding: 2rem; }
.card-v3 h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-v3 p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 99px; font-size: 11px; font-weight: 800;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-primary { background: var(--orange-glow); color: var(--orange); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-v3 {
    display: inline-block; border: 1px solid var(--border);
    background: var(--bg-elevated); padding: 6px 14px; border-radius: 99px;
    font-size: 0.8rem; color: var(--text-secondary);
    margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-trace {
    color: var(--success); font-size: 0.7rem; text-transform: uppercase;
    white-space: nowrap; margin-left: 15px;
    background: rgba(16,185,129,0.1); padding: 4px 8px; border-radius: 4px; font-weight: 700;
}

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em; }
.logo-img { height: 56px; width: auto; }
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light, .dark .logo-light { display: none; }
[data-theme="dark"] .logo-dark, .dark .logo-dark { display: block; }
.logo-dot { color: var(--blue); }
.logo-baseline { font-size: 0.6rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a { padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--text-secondary); border-radius: var(--radius); transition: var(--transition); text-transform: uppercase; letter-spacing: 0.04em; }
.nav a:hover { color: var(--orange); background: var(--orange-glow); }
.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.menu-btn { display: flex; padding: 8px; background: none; border: none; color: var(--text); cursor: pointer; }
@media (min-width: 768px) { .menu-btn { display: none; } }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed; inset: 0; background: var(--bg); z-index: 100;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 2rem; display: flex; flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a { display: block; padding: 16px; font-size: 1.1rem; font-weight: 700; border-radius: var(--radius); }
.mobile-menu a:hover { background: var(--orange-glow); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mobile-menu-header .logo { font-size: 1.25rem; }
.menu-close-btn { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text); padding: 8px; }
.mobile-menu-sep { border-top: 1px solid var(--border); margin: 1rem 0; }

/* ===== HERO ===== */
.hero-v3 { padding: 6rem 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-text-content { text-align: left; }
.h1-v3 { font-size: clamp(1.8rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.h2-v3 { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.p-v3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.7; max-width: 650px; overflow-wrap: anywhere; word-break: break-word; }
.p-v3-muted { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; align-items: center; }
.hero-app-block { }
.stats-v3 { }

/* ===== APP CARD (formulaire) ===== */
.app-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.app-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; color: var(--success); }
.app-card-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.fused-group {
    display: flex; align-items: center;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px;
    margin-bottom: 1.5rem; transition: border-color 0.3s;
}
.fused-group:focus-within { border-color: var(--orange); }
.fused-group input {
    flex: 1; background: transparent; border: none;
    color: var(--text); padding: 12px 15px; outline: none;
    box-shadow: none; min-width: 0; font-size: 1rem;
}
.fused-group button { margin: 0; white-space: nowrap; }

/* ===== RESULT / ERROR AREAS ===== */
.result-area {
    margin: 1rem 0; padding: 1rem;
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15);
    border-radius: var(--radius);
}
.result-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.result-success { font-weight: 700; color: var(--success); font-size: 0.9rem; }
.result-copy { display: flex; gap: 8px; }
.result-url {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px 14px; color: var(--text);
    font-weight: 800; text-align: center; font-family: var(--font-mono);
}
.countdown-wrap {
    margin-top: 8px; display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; color: var(--warning);
}
.error-area {
    margin: 1rem 0; padding: 1rem;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--radius); color: var(--danger); font-weight: 700; font-size: 0.9rem;
}

/* ===== EXAMPLE BOX ===== */
.example-box { background: var(--bg-elevated); border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--border); }
.example-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.example-link-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; background: var(--bg); padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); }
.example-link { color: var(--orange); font-family: var(--font-mono); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-info { display: flex; align-items: center; gap: 8px; margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }

/* ===== STICKY SCROLL (ecosysteme — CSS pur, zero JS) ===== */
.scroll-section { position: relative; max-width: 700px; margin: 0 auto; padding: 4rem 1.5rem; }
.scroll-slide {
    position: sticky; top: 80px; min-height: 50vh;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
    padding: 3rem 2rem; background: var(--bg-card);
    border: 2px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); margin-bottom: 1rem;
}
.scroll-slide h2 { font-family: var(--font-brand); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 400; color: var(--orange); text-align: center; line-height: 1.5; }
.scroll-slide p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary); text-align: center; max-width: 600px; line-height: 1.7; }
.scroll-slide a { color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* CTA final */
.cta-final { padding: 6rem 0; text-align: center; background: var(--bg-elevated); border-top: 1px solid var(--border); }
.cta-final h2 { font-family: var(--font-brand); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 400; color: var(--orange); margin-bottom: 1rem; line-height: 1.5; }
.cta-final p { color: var(--text-muted); margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
    .scroll-slide { position: relative; height: auto; padding: 4rem 2rem; }
}

/* ===== ICON BOX (features) ===== */
.icon-box-v3 {
    width: 48px; height: 48px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; background: var(--orange-glow); color: var(--orange);
}
.icon-box-v3 svg { width: 24px; height: 24px; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon svg { width: 24px; height: 24px; }

/* ===== SECTIONS ===== */
.section-stats { padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-features { padding: 6rem 0; }
.section-features header { margin-bottom: 4rem; }
.section-faq { padding: 5rem 0; }
.py-section { padding: 5rem 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== FAQ ===== */
.faq-item, details {
    background: var(--bg-card); border: 1px solid var(--border);
    margin-bottom: 0.75rem; border-radius: var(--radius-lg); overflow: hidden;
}
summary, details summary {
    padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.95rem;
}
summary::-webkit-details-marker, details summary::-webkit-details-marker { display: none; }
summary::after, details summary::after { content: '+'; font-size: 1.2rem; font-weight: 900; color: var(--text-muted); }
details[open] summary::after { content: '-'; }
details[open] summary { border-bottom: 1px solid var(--border); }
.faq-content, details > div { padding: 1rem 1.5rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== KPI DASHBOARD ===== */
.kpi { text-align: center; padding: 1.5rem; }
.kpi-value { font-size: 2rem; font-weight: 900; color: var(--text); }
.kpi-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* ===== LINK ROWS (dashboard) ===== */
.link-row { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; transition: background 0.15s; }
.link-row:last-child { border-bottom: none; }
.link-row:hover { background: var(--orange-glow); }
.link-row .link-info { flex: 1; min-width: 0; }
.link-row .link-url { font-weight: 700; font-size: 0.875rem; color: var(--orange); }
.link-row .link-dest { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.link-row .link-date { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.link-row .link-clicks { text-align: center; min-width: 60px; }
.link-row .link-clicks strong { font-size: 1.1rem; display: block; }
.link-row .link-clicks small { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }
.link-row .link-actions { display: flex; gap: 4px; }
.link-row .link-actions button, .link-row .link-actions a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); background: transparent;
    color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.link-row .link-actions button:hover, .link-row .link-actions a:hover { color: var(--orange); border-color: var(--orange); background: var(--orange-glow); }
.link-row .link-actions button svg, .link-row .link-actions a svg { width: 16px; height: 16px; }
.qr-inline { padding: 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.qr-inline svg { max-width: 180px; margin: 0 auto; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 1.5rem; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); font-size: 13px; font-weight: 700; transition: var(--transition); }
.pagination a { border: 1px solid var(--border); color: var(--text-secondary); }
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .active { background: var(--orange); color: #fff; }

/* ===== MODAL ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-bg.active { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; }

/* ===== COOKIE BANNER ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--border); padding: 1rem 0; z-index: 90; box-shadow: 0 -4px 12px rgba(0,0,0,0.1); }
body:has(.cookie-banner) { padding-bottom: 70px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: auto; }
.footer h4 { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--text); }
.footer a { font-size: 0.85rem; color: var(--text-secondary); display: block; padding: 4px 0; transition: color 0.2s; }
.footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem; }
.footer .logo-img { height: 40px; }
.footer-desc { line-height: 1.7; }
.footer-security { padding: 1rem; margin-top: 1rem; }
.footer-status { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
.text-danger { color: var(--danger); }
.cookie-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-inner p { flex: 1; min-width: 200px; }
.cookie-link { color: var(--orange); }

/* ===== PRICING ===== */
.pricing-price { font-size: 3rem; font-weight: 900; margin: 1.5rem 0; color: var(--text); }
.pricing-price span { font-size: 0.9rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.pricing-list { text-align: left; list-style: none; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.pricing-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pricing-list li:last-child { border-bottom: none; }
.pricing-popular { border-color: var(--orange); border-width: 2px; position: relative; }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; padding: 4px 16px; border-radius: 99px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.pricing-toggle { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 3rem; }
.pricing-toggle label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.pricing-toggle .toggle-track { width: 48px; height: 26px; background: var(--border); border-radius: 13px; position: relative; cursor: pointer; transition: background 0.3s; }
.pricing-toggle .toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.3s; }
#pricingToggle { display: none; }
#pricingToggle:checked ~ .pricing-wrap .pricing-toggle .toggle-track { background: var(--orange); }
#pricingToggle:checked ~ .pricing-wrap .pricing-toggle .toggle-track::after { transform: translateX(22px); }
.price-monthly { display: inline; }
.price-annual { display: none; }
#pricingToggle:checked ~ .pricing-wrap .price-monthly { display: none; }
#pricingToggle:checked ~ .pricing-wrap .price-annual { display: inline; }
.pricing-save { background: var(--orange-glow); color: var(--orange); font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; }

/* ===== AUTH FORMS ===== */
.auth-card { max-width: 420px; margin: 0 auto; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-label { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.auth-link { color: var(--orange); font-weight: 700; }
.auth-avatar { width: 56px; height: 56px; background: var(--orange-glow); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--orange); font-size: 1.5rem; }

/* ===== STATUS PAGES (erreur, password, expiration) ===== */
.status-page { padding: 6rem 1.25rem; }
.password-form { display: inline-flex; gap: 0.5rem; margin-top: 1rem; }

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed; z-index: 90; left: 20px; bottom: 20px;
    padding: 12px 18px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text); font-weight: 600; font-size: 0.85rem; font-family: var(--font-mono);
    cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-transform: uppercase; display: flex; align-items: center; gap: 6px;
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}
.back-top-logo { height: 24px; width: auto; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.py-section { padding: 5rem 0; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.search-bar { padding: 1rem; border-bottom: 1px solid var(--border); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fade { animation: fadeIn 0.3s ease; }
.animate-slide { animation: slideUp 0.4s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-text-content { text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .p-v3 { margin: 0 auto 2.5rem auto; }
    .hero-v3 { padding: 3rem 0; }
    .hero-app-block { max-width: 500px; margin: 0 auto; }
    .app-card-header { justify-content: center; }
    .section-features { padding: 4rem 0; }
    .section-stats { padding: 3rem 0; }
    .section-faq { padding: 3rem 0; }
}

@media (max-width: 768px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .fused-group { flex-direction: column; background: transparent; border: none; padding: 0; }
    .fused-group input { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); margin-bottom: 10px; border-radius: var(--radius); padding: 14px; }
    .fused-group button { width: 100%; justify-content: center; }
    .example-link-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .badge-trace { margin-left: 0; }
    .app-card { padding: 1.5rem; }
    .stat-value { font-size: 1.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer { padding: 3rem 0 1.5rem; }
    .link-row { flex-wrap: wrap; }
    .link-row .link-dest { max-width: 100%; }
    .password-form { flex-direction: column; width: 100%; }
    .password-form .input { width: 100%; }
    .result-copy { flex-direction: column; }
    .status-page { padding: 4rem 1rem; }
    .py-section { padding: 3rem 0; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
    .h1-v3 { font-size: 1.6rem; }
    .h2-v3 { font-size: 1.3rem; }
    .pricing-price { font-size: 2.2rem; }
}

/* ===== GOOGLE OAUTH BUTTON ===== */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    width: 100%; padding: 12px 24px; font-size: 13px; font-weight: 700;
    background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; transition: var(--transition);
    text-decoration: none;
}
.btn-google:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-separator { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.auth-separator::before, .auth-separator::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== DNS INSTRUCTIONS TABLE ===== */
.dns-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.dns-table td { padding: 8px; font-size: 0.875rem; }
.dns-table tr { border-bottom: 1px solid var(--border); }
.dns-table tr:last-child { border-bottom: none; }
.dns-card { background: var(--bg-elevated); padding: 1.5rem; border-radius: var(--radius-lg); }

/* ===== ADMIN SELECT ===== */
.admin-select { width: auto; height: 32px; font-size: 11px; padding: 0 8px; }
.admin-select-ok { border-color: var(--success) !important; box-shadow: 0 0 0 3px rgba(16,185,129,0.15) !important; }

/* ===== PRICING CARDS ALIGNMENT ===== */
.grid-3 > .card-v3, .grid-2 > .card-v3 { display: flex; flex-direction: column; }
.grid-3 > .card-v3 .pricing-list, .grid-2 > .card-v3 .pricing-list { flex: 1; }
.grid-3 > .card-v3 .btn, .grid-2 > .card-v3 .btn { margin-top: auto; }
.grid-3 > .card-v3 h3, .grid-2 > .card-v3 h3 { min-height: 2rem; }

/* ===== PEAUFINAGE UX SESSION 3 ===== */

/* Footer : equilibrer les colonnes */
.footer .grid-4 > div { min-width: 0; }
.footer .grid-4 > div:first-child { max-width: 280px; }

/* Dashboard admin : espacement entre les users */
#adminUserList .link-row { gap: 0.75rem; }
#adminUserList .link-row .flex { flex-wrap: wrap; gap: 0.5rem; }

/* Custom domains : badges statut */
.domain-status-pending { color: var(--warning); }
.domain-status-active { color: var(--success); }

/* Mobile tarifs : cards full width */
@media (max-width: 768px) {
    .grid-3 > .card-v3, .grid-2 > .card-v3 { min-height: auto; }
    .pricing-price { font-size: 2rem; }
}

/* Mobile footer : logo plus petit */
@media (max-width: 768px) {
    .footer .logo-img { height: 32px; }
}

/* ===== AVATAR (profil + dashboard) ===== */
.user-avatar {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: var(--orange); font-size: 1.3rem;
    background: var(--orange-glow); overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-lg { width: 64px; height: 64px; font-size: 1.8rem; border-radius: var(--radius-lg); }

/* ===== DASHBOARD TABS (CSS pur via radio buttons) ===== */
.dash-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.dash-tabs label { padding: 12px 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.dash-tabs label:hover { color: var(--orange); }
.dash-tab-radio { display: none; }
#dashTabLinks:checked ~ .dash-tabs label[for="dashTabLinks"],
#dashTabUsers:checked ~ .dash-tabs label[for="dashTabUsers"],
#dashTabWebhooks:checked ~ .dash-tabs label[for="dashTabWebhooks"],
#dashTabDomains:checked ~ .dash-tabs label[for="dashTabDomains"] { color: var(--orange); border-bottom-color: var(--orange); }
.dash-tab-content { display: none; }
#dashTabLinks:checked ~ .dash-content-links,
#dashTabUsers:checked ~ .dash-content-users,
#dashTabWebhooks:checked ~ .dash-content-webhooks,
#dashTabDomains:checked ~ .dash-content-domains { display: block; }

/* Domain status check button */
.btn-check-dns { padding: 4px 8px; font-size: 11px; }

/* Scroll card icons */
.scroll-icon { color: var(--orange); margin-bottom: 1rem; }
.scroll-icon svg { margin: 0 auto; }

/* ===== HEADER BASELINE ===== */

/* ===== HEADER BASELINE ===== */
.header-baseline {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
    letter-spacing: 0.02em; white-space: nowrap;
}
.baseline-quote-open { color: var(--orange); font-size: 1.1rem; font-weight: 900; line-height: 1; }
.baseline-quote-close { color: var(--blue); font-size: 1.1rem; font-weight: 900; line-height: 1; }
@media (max-width: 768px) { .header-baseline { font-size: 0.55rem; } }
@media (max-width: 480px) { .header-baseline { font-size: 0.5rem; gap: 2px; } }

/* ===== MOBILE DASHBOARD FIXES ===== */
@media (max-width: 768px) {
    /* Baseline : cacher en mobile dans le header principal (visible dans le menu mobile) */
    .header-inner .header-baseline { display: none; }
    
    /* KPIs : 2x2 grid en mobile */
    .grid-4.mb-4 { grid-template-columns: repeat(2, 1fr); }
    
    /* Onglets : scroll horizontal si trop long */
    .dash-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .dash-tabs::-webkit-scrollbar { display: none; }
    .dash-tabs label { padding: 10px 12px; font-size: 10px; flex-shrink: 0; }
    
    /* Boutons d'action : wrap sur 2 lignes */
    .link-row .link-actions { flex-wrap: wrap; gap: 2px; }
    .link-row .link-actions button, .link-row .link-actions a { width: 32px; height: 32px; }
    
    /* Dashboard header : stack vertical */
    .flex.justify-between.items-center.mb-4.gap-2 { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 480px) {
    /* KPIs encore plus compact */
    .kpi { padding: 1rem; }
    .kpi-value { font-size: 1.5rem; }
    
    /* Liens : texte plus petit */
    .link-row .link-url { font-size: 0.75rem; }
    .link-row .link-dest { font-size: 0.65rem; }
}
