/* ═══════════════════════════════════════════════════════════════════
   NEXUS RP — FiveM RP Website
   Accent: #8A2BE2 (Electric Violet)
   Theme: Dark / Gaming Premium
═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #8A2BE2;
    --accent-light: #a855f7;
    --accent-dark: #6b21a8;
    --accent-glow: rgba(138, 43, 226, 0.5);
    --bg-dark: #0d0d0d;
    --bg-card: #141414;
    --bg-card2: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #aaa;
    --text-muted: #666;
    --border: rgba(255, 255, 255, 0.06);
    --font-main: 'Poppins', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background video */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -100;
    pointer-events: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(138, 43, 226, 0.2);
    }
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #7289da;
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* ── Section base ── */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}

.accent {
    color: var(--accent);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fond avec texture sombre */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(138, 43, 226, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(13, 13, 13, 0.6) 0%, rgba(17, 17, 24, 0.5) 40%, rgba(10, 10, 15, 0.6) 100%);
}

/* Overlay gradient sombre */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 30%, rgba(13, 13, 13, 0.5) 70%, rgba(13, 13, 13, 0.8) 100%),
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
    animation: fadeInUp 1s ease both;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-title-accent {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(138, 43, 226, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 30px var(--accent-glow);
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 40px var(--accent-glow);
    transform: translateY(-3px);
}

.hero-btn svg {
    transition: transform var(--transition);
}

.hero-btn:hover svg {
    transform: translateY(4px);
}

.scroll-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    animation: bounce-arrow 2s ease infinite;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════
   RP SECTION
═══════════════════════════════════════════════════════════════════ */
.rp-section {
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.85) 0%, rgba(16, 16, 24, 0.85) 100%);
}

.rp-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.rp-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.rp-intro strong {
    color: var(--text-primary);
}

.rp-intro em {
    color: var(--accent);
    font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL (RP Expliation)
═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-bubble {
    position: relative;
    background: #161622;
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 0 1px rgba(138, 43, 226, 0.1), 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px var(--accent-glow);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.modal-overlay.active .modal-bubble {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--accent);
    color: var(--text-primary);
}

.modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.modal-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.modal-text p:last-child {
    margin-bottom: 28px;
}

.modal-action {
    display: block;
    width: 100%;
    justify-content: center;
}

/* Style pour l'icône SVG */
.svg-quote {
    width: 32px;
    height: 32px;
    fill: #8A2BE2;
    /* Couleur de l'icône */
}

/* Style pour l'icône Font Awesome */
.fa-quote {
    font-size: 32px;
    color: #8A2BE2;
}

/* Style pour le caractère Unicode */
.unicode-quote {
    font-size: 48px;
    color: #8A2BE2;
    line-height: 1;
}

/* 1. Importation d'une police chic depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

.quote-text {
    /* 2. Application de la police chic */
    font-family: 'Playfair Display', serif;

    /* 3. Mise en italique */
    font-style: italic;

    /* 4. Raffinement pour le côté "élégant" */
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    /* Un léger espacement rend le texte plus aéré */
    line-height: 1.6;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    /* Un léger ombrage pour le relief */
}

.elegant-quote {
    font-family: 'Playfair Display', serif;
    /* Police chic */
    font-style: italic;
    font-size: 1.2rem;
    color: #e0e0e0;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border-left: 3px solid #8A2BE2;
    /* Petite touche de design */
    background: rgba(138, 43, 226, 0.05);
}

.quote-icon {
    color: #8A2BE2;
    font-size: 0.8rem;
    margin-top: 5px;
    /* Aligne l'icône avec le haut du texte */
}

/* Style de base du bouton */
.copy-ip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #8A2BE2;
    /* Violet chic par défaut */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

/* Effet au survol (Hover) */
.copy-ip-btn:hover {
    background-color: #9B44F8;
    /* Un violet légèrement plus clair */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.35);
}

/* Effet au clic (Active) */
.copy-ip-btn:active {
    transform: translateY(0);
}

/* --- GESTION DES ETATS (Normal vs Copié) --- */

/* Cacher l'icône de validation et le texte de confirmation par défaut */
.copy-icon-check,
.copy-label-done {
    display: none !important;
}

/* Quand le bouton a la classe .copied (à ajouter via ton JS au clic) */
.copy-ip-btn.copied {
    background-color: #2ec4b6;
    /* Vert élégant pour le succès */
    box-shadow: 0 4px 12px rgba(46, 196, 182, 0.2);
}

.copy-ip-btn.copied .copy-icon,
.copy-ip-btn.copied .copy-label {
    display: none !important;
    /* On cache le "Copier" */
}

.copy-ip-btn.copied .copy-icon-check,
.copy-ip-btn.copied .copy-label-done {
    display: inline-block !important;
    /* On affiche le "Copié !" */
    animation: popIn 0.3s ease-out;
    /* Animation d'apparition rapide */
}

/* Animation d'apparition pour un effet fluide */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CHARACTERS SECTION
═══════════════════════════════════════════════════════════════════ */
.characters-section {
    background: linear-gradient(180deg, rgba(16, 16, 24, 0.85) 0%, rgba(13, 13, 13, 0.85) 100%);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Character Card ── */
.character-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-8px);
}

/* Hover colors per character */
.character-1:hover {
    border-color: #1C304A;
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.35), 0 0 0 1px rgba(138, 43, 226, 0.2);
}

.character-2:hover {
    border-color: #E040FB;
    box-shadow: 0 12px 40px rgba(224, 64, 251, 0.35), 0 0 0 1px rgba(224, 64, 251, 0.2);
}

.character-3:hover {
    border-color: #00BCD4;
    box-shadow: 0 12px 40px rgba(0, 188, 212, 0.35), 0 0 0 1px rgba(0, 188, 212, 0.2);
}

.character-4:hover {
    border-color: #FF6D00;
    box-shadow: 0 12px 40px rgba(255, 109, 0, 0.35), 0 0 0 1px rgba(255, 109, 0, 0.2);
}

.character-5:hover {
    border-color: #69F0AE;
    box-shadow: 0 12px 40px rgba(105, 240, 174, 0.35), 0 0 0 1px rgba(105, 240, 174, 0.2);
}

.character-6:hover {
    border-color: #FF1744;
    box-shadow: 0 12px 40px rgba(255, 23, 68, 0.35), 0 0 0 1px rgba(255, 23, 68, 0.2);
}

.character-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.character-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9) saturate(1);
}

.character-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.character-card:hover .character-overlay {
    opacity: 1;
}

.character-overlay span {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.character-info {
    padding: 20px;
}

.character-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.character-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.character-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.25);
    padding: 3px 10px;
    border-radius: 50px;
}

/* ═══════════════════════════════════════════════════════════════════
   JOIN SECTION
═══════════════════════════════════════════════════════════════════ */
.join-section {
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.85) 0%, rgba(16, 16, 24, 0.85) 50%, rgba(13, 13, 13, 0.85) 100%);
}

.join-card {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 24px;
    padding: 60px 48px;
    overflow: hidden;
}

.join-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.join-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.join-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.join-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.join-ip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 12px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.join-ip code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.join-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER (injecté via loader.js)
═══════════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideDown 0.6s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.header-logo span {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav a:hover::after {
    width: 100%;
}

.header-discord-btn {
    padding: 8px 20px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 50px;
    color: var(--accent) !important;
    font-weight: 600;
    transition: var(--transition);
}

.header-discord-btn:hover {
    background: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.header-discord-btn::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER (injecté via loader.js)
═══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: #080810;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-link:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .join-card {
        padding: 40px 24px;
    }

    .modal-bubble {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Bouton Connexion */
.connect-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #007BFF;
    /* Bleu de base */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.connect-btn:hover {
    background-color: #0056b3;
}

/* Cache les états "Actifs" par défaut */
.connect-btn .loading-spinner,
.connect-btn .connect-label-done {
    display: none;
}

/* Spinner qui tourne */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- ÉTAT DE CONNEXION ACTIVE --- */
.connect-btn.connecting {
    background-color: #002b5c !important;
    /* Bleu foncé */
    pointer-events: none;
    /* Désactive le clic */
}

.connect-btn.connecting .play-icon,
.connect-btn.connecting .connect-label {
    display: none;
    /* Cache l'icône de lecture et le texte initial */
}

.connect-btn.connecting .loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    /* Fait tourner l'icône de chargement */
}

.connect-btn.connecting .connect-label-done {
    display: inline;
}