/* ----- RESET & BASES ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

:root {
    --primary: #2563eb; /* Bleu principal */
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #38bdf8; /* Bleu ciel, pour les dégradés */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #ef4444;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ----- HEADER AMÉLIORÉ ----- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(29, 76, 41, 0.08);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-15deg) scale(1.1);
}

.badge-v {
    background: linear-gradient(135deg, var(--primary-light), #93c5fd);
    color: var(--primary-dark);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(29, 76, 41, 0.15);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

.nav-back {
    font-size: 0.9rem;
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-back:hover {
    color: var(--primary);
}

.nav-back::after {
    display: none;
}

/* ----- DROPDOWN AMÉLIORÉ ----- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.6em;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    min-width: 220px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu a {
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 6px 8px;
}

/* ----- RESPONSIVE HEADER ----- */
@media (max-width: 768px) {
    header {
        padding: 0.6rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        font-size: 1.1rem;
    }

    .badge-v {
        font-size: 0.55rem;
        padding: 0.1rem 0.5rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.12);
        padding: 0.8rem 1.5rem 1.2rem 1.5rem;
        z-index: 1000;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
    }

    nav a::after {
        display: none;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .nav-back {
        border-left: none;
        padding-left: 0;
        margin-top: 0.2rem;
        color: var(--primary);
        font-weight: 600;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
        color: var(--text-main);
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 0 1rem;
        background: var(--bg-alt);
        border-radius: 14px;
        margin-bottom: 0.5rem;
        backdrop-filter: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown-menu a {
        border-bottom: none !important;
        padding: 0.5rem 0;
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .dropdown-divider {
        margin: 4px 0;
    }
}

@media (max-width: 420px) {
    header {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .badge-v {
        font-size: 0.5rem;
        padding: 0.08rem 0.4rem;
    }
}

/* ----- DROPDOWN MENU ----- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 240px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    padding: 0.7rem 0.8rem;
    border-radius: 18px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border);
    margin: 6px 4px;
}

/* ----- MENU MOBILE (HAMBURGER) ----- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----- BOUTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.1rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-alt);
    border-color: #cbd5e1;
}

/* ----- HERO SECTION ----- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem 2rem;
    background:
        radial-gradient(circle at 18% 15%, var(--primary-light) 0%, transparent 45%),
        radial-gradient(circle at 82% 5%, rgba(56, 189, 248, 0.25) 0%, transparent 42%),
        radial-gradient(circle at top, var(--primary-light) 0%, transparent 60%);
}

.hero-content {
    max-width: 800px;
    animation: slideUp 0.8s ease-out;
}

.badge-update {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ----- SECTIONS GENERIQUES ----- */
section[id] {
    scroll-margin-top: 100px;
}

.section-container {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-gray {
    background-color: var(--bg-alt);
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ----- FONCTIONNALITES (3 colonnes) ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 3rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), #bfdbfe);
    width: 84px;
    height: 84px;
    line-height: 84px;
    border-radius: 50%;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-muted);
}

/* ----- NOUVEAUTES (CHANGELOG) ----- */
.changelog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.changelog-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.changelog-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), #bfdbfe);
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
}

.changelog-text h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.changelog-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.changelog-text a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.changelog-text a:hover {
    text-decoration: underline;
}

/* ----- LISTE DES SONNERIES ----- */
.sounds-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.sound-item {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.sound-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.sound-icon {
    font-size: 2rem;
    margin-right: 2rem;
    width: 60px;
    text-align: center;
}

.sound-details {
    flex-grow: 1;
}

.sound-details h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* ----- LECTEUR AUDIO ----- */
.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-left: auto;
    border-radius: 50%;
    border: none;
    background-color: var(--primary);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.play-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.play-label {
    display: none;
}

/* ----- BADGES COMMANDES (v1 / v2) ----- */
.cmd-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cmd-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-new,
.tag-update {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.tag-new {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.tag-update {
    background-color: #fef3c7;
    color: #d97706;
}

/* ----- TAG URGENCE (rouge) ----- */
.tag-urgence {
    background-color: #dc2626;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    animation: pulse-urgence 1.5s ease-in-out infinite;
}

@keyframes pulse-urgence {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ----- TAG NE FONCTIONNE PAS ----- */
.tag-nfp {
    background-color: #0055ff;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    animation: pulse-urgence 1.5s ease-in-out infinite;
}

@keyframes pulse-nfp {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ----- TAG UTILITAIRE (vert clair) ----- */
.tag-utility {
    background-color: #10b981;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ----- TAG INTELLIGENCE (violet) ----- */
.tag-intelligence {
    background-color: #b910a5;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ----- TERMINAL COMMANDES ----- */
.terminal-mockup {
    background-color: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}

.terminal-header {
    background-color: #1e293b;
    padding: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background-color: #ef4444; }
.terminal-dots span:nth-child(2) { background-color: #eab308; }
.terminal-dots span:nth-child(3) { background-color: #22c55e; }

.terminal-title {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: monospace;
    pointer-events: none;
}

.terminal-body {
    padding: 2rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: #f8fafc;
}

.cmd-line {
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cmd-line.empty {
    height: 1rem;
}

.cmd-line.comment {
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

.cmd-prompt { color: var(--primary); font-weight: bold; }
.cmd-name { color: #38bdf8; font-weight: bold; }
.cmd-arg { color: #fde047; }
.cmd-desc { color: #64748b; margin-left: auto; }

/* ----- TAG PREMIUM (jaune) ----- */
.tag-premium {
    background-color: #f59e0b;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ----- TAG EN FIN DE VIE (marron) ----- */
.tag-end-of-life {
    background-color: #78350f;
    color: #fbbf24;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ----- TAG ACCÈS PUBLIC (bleu) ----- */
.tag-public {
    background-color: #2563eb;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ----- TAG PROMOTION (rose) ----- */
.tag-promotion {
    background-color: #ec4899;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    animation: pulse-promotion 1.5s ease-in-out infinite;
}

@keyframes pulse-promotion {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ----- TAG À SAISIR (cyan) ----- */
.tag-to-grab {
    background-color: #06b6d4;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    animation: pulse-grab 1.2s ease-in-out infinite;
}

@keyframes pulse-grab {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ----- CTA SECTION ----- */
.cta-section {
    text-align: center;
    padding: 5rem 3rem;
    margin: 2rem auto 4rem auto;
    max-width: 1140px;
    background: linear-gradient(135deg, var(--primary), #1e3a8a);
    color: white;
    border-radius: 32px;
    box-shadow: 0 24px 60px -20px rgba(37, 99, 235, 0.45);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
    background: var(--bg-alt);
    color: var(--primary-dark);
}

/* ----- FOOTER ----- */
footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--primary);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ----- RESPONSIVE ----- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        position: fixed;
    }

    .logo { font-size: 1.5rem; }

    .menu-toggle { display: flex; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
        padding: 0.5rem 1.5rem 1rem 1.5rem;
    }

    nav.open { display: flex; }

    nav a {
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    nav a:last-child { border-bottom: none; }

    .nav-back {
        border-left: none;
        padding-left: 0;
        margin-top: 0.3rem;
        color: var(--primary);
        font-weight: 600;
    }

    /* Dropdown en version mobile : s'intègre dans le menu déplié */
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        color: var(--text-main);
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 0 1rem;
        background: var(--bg-alt);
        border-radius: 14px;
        margin-bottom: 0.5rem;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-menu a {
        border-bottom: none;
        padding: 0.7rem 0;
        color: var(--text-muted);
    }

    .dropdown-divider {
        margin: 4px 0;
    }

    .hero { padding: 7.5rem 1.2rem 3rem 1.2rem; min-height: unset; }
    .badge-update { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
    .hero p { font-size: 1.05rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .section-container { padding: 3.5rem 1.2rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .section-header p { font-size: 1rem; }

    .features-grid { gap: 1.5rem; }
    .feature-box { padding: 1rem; }

    .changelog-grid { gap: 1rem; }
    .changelog-item { padding: 1.2rem; gap: 1rem; }
    .changelog-icon { width: 40px; height: 40px; line-height: 40px; font-size: 1.2rem; }
    .changelog-text h3 { font-size: 1rem; }
    .changelog-text p { font-size: 0.88rem; }

    .sounds-list { gap: 1rem; }
    .sound-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    .sound-icon { margin: 0 0 0.8rem 0; }
    .sound-details h3 { justify-content: center; font-size: 1.05rem; }

    .play-btn {
        width: 100%;
        height: 46px;
        border-radius: 999px;
        margin: 1rem 0 0 0;
        gap: 0.6rem;
        font-size: 0.95rem;
        font-weight: 600;
    }
    .play-label {
        display: inline;
        font-family: 'Outfit', sans-serif;
    }

    .cmd-legend { flex-direction: column; align-items: center; gap: 0.6rem; }

    .terminal-mockup { border-radius: 14px; }
    .terminal-header { padding: 0.8rem; }
    .terminal-title { font-size: 0.75rem; }
    .terminal-body { padding: 1.2rem; font-size: 0.82rem; }
    .cmd-line { gap: 0.4rem; margin-bottom: 0.7rem; }
    .cmd-desc { margin-left: 0; width: 100%; }
    .tag-new, .tag-update { font-size: 0.6rem; padding: 0.12rem 0.5rem; }

    .cta-section { padding: 3.5rem 1.4rem; margin: 1.5rem 1rem 3rem 1rem; border-radius: 24px; }
    .cta-section h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .cta-section p { font-size: 1rem; }

    footer { padding: 3rem 1.2rem; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 2rem; }
    .terminal-body { font-size: 0.75rem; }
    .cmd-name { word-break: break-word; }
}

/* ============================================================ */
/* PAGES SECONDAIRES (TOS, Privacy, Appeal, 404)                */
/* ============================================================ */

/* ----- HERO COMPACT (pages avec peu de contenu) ----- */
.hero-compact {
    min-height: 45vh;
    padding: 9rem 2rem 3rem 2rem;
}

/* ----- CONTENU LÉGAL (TOS / Privacy) ----- */
.section-narrow {
    max-width: 900px;
}

.section-narrow h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

.section-narrow h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-main);
}

.section-narrow p {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-narrow ul,
.section-narrow ol {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-muted);
}

.section-narrow ul li,
.section-narrow ol li {
    margin-bottom: 0.4rem;
}

.legal-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.highlight {
    background-color: var(--primary-light);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    color: var(--primary-dark);
    font-weight: 500;
}

.legal-link-back {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-link-back a {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
}

.legal-link-back a:hover {
    text-decoration: underline;
}

/* ----- TABLEAU (politique de confidentialité) ----- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem 0;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.legal-table th {
    background-color: var(--bg-alt);
    font-weight: 600;
    color: var(--text-main);
}

.legal-table td {
    color: var(--text-muted);
}

/* ----- FORMULAIRE D'APPEL ----- */
.appeal-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-main);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group .required {
    color: var(--danger);
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-group .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.form-group .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
    border-radius: 6px;
}

.form-group .checkbox-group label {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    cursor: pointer;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.status-message.success {
    display: block;
    background: #1f8b4c;
    color: white;
}

.status-message.error {
    display: block;
    background: #a1282b;
    color: white;
}

.status-message.loading {
    display: block;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.appeal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.appeal-back-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-compact { min-height: 35vh; padding: 8rem 1.2rem 2rem 1.2rem; }
    .section-narrow { padding: 2rem 1.2rem 4rem 1.2rem; }
    .section-narrow h2 { font-size: 1.5rem; }
    .legal-table { font-size: 0.8rem; }
    .legal-table th, .legal-table td { padding: 0.5rem 0.6rem; }
    .appeal-form { padding: 1.5rem; margin: 0 0.5rem; }
    .form-group { margin-bottom: 1.3rem; }
    .btn-submit { font-size: 1rem; padding: 0.8rem; }
}
