/* ================================================
   VPictures — Premium Cinematic Website
   Palette: Dark (#0a0a0f) + Cyan (#00d4ff) + Blue (#4a6cf7)
   ================================================ */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-surface: #0e0e16;
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.3);
    --cyan-soft: rgba(0, 212, 255, 0.08);
    --blue: #4a6cf7;
    --blue-glow: rgba(74, 108, 247, 0.25);
    --gradient-primary: linear-gradient(135deg, #00d4ff, #4a6cf7);
    --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #0e1020 50%, #0a0a0f 100%);
    --text-primary: #eef0f6;
    --text-secondary: #8b8fa8;
    --text-dim: #555770;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.15);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 12px var(--cyan-glow);
}

img {
    max-width: 100%;
    display: block;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 3px;
}

/* ---- HEADER ---- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header-inner {
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 12px var(--cyan-glow));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px var(--cyan-glow));
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--cyan-soft);
    border-color: var(--border-glow);
}

.nav-btn.active {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 25px var(--cyan-glow);
}

.nav-btn svg {
    opacity: 0.7;
}

.nav-btn.active svg {
    opacity: 1;
}

a.nav-btn-external {
    text-decoration: none;
    border-color: var(--border-glow);
}

a.nav-btn-discord {
    text-decoration: none;
    color: #fff;
    background: #5865F2;
    border-color: #5865F2;
}

a.nav-btn-discord:hover {
    background: #4752c4;
    border-color: #4752c4;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

a.nav-btn-discord svg {
    opacity: 1;
}

/* ---- TABS ---- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 30% 70%, rgba(74, 108, 247, 0.04) 0%, transparent 60%),
        var(--bg-dark);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}

.hero-logo {
    width: 180px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 30px var(--cyan-glow));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 36px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 40px var(--cyan-glow), 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 60px var(--cyan-glow), 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    20% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.3);
    }
}

/* ---- SECTIONS ---- */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 32px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.title-icon {
    display: flex;
    align-items: center;
    color: var(--cyan);
}

/* ---- ABOUT ---- */
.about-section {
    background: var(--gradient-bg);
    border-top: 1px solid var(--border-subtle);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- VIDEO GRID (YouTube) ---- */
.videos-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.video-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--cyan-glow);
    transition: var(--transition);
}

.play-btn-icon svg {
    margin-left: 4px;
}

.video-card:hover .play-btn-icon {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--cyan-glow);
}

.video-info {
    padding: 16px 18px;
}

.video-info h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

/* ---- TIKTOK ---- */
.tiktok-section {
    background: var(--gradient-bg) !important;
}

.tiktok-group {
    margin-bottom: 50px;
}

.tiktok-group:last-child {
    margin-bottom: 0;
}

.tiktok-group-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.group-badge {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--cyan);
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.tiktok-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.tiktok-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.tiktok-thumbnail {
    position: relative;
    aspect-ratio: 9 / 12;
    overflow: hidden;
}

.tiktok-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tiktok-card:hover .tiktok-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.tiktok-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.tiktok-card:hover .tiktok-play-overlay {
    opacity: 1;
}

.tiktok-play-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--cyan-glow);
    transition: var(--transition);
}

.tiktok-play-btn svg {
    margin-left: 3px;
}

.tiktok-card:hover .tiktok-play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--cyan-glow);
}

.tiktok-card-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 12px 14px;
}

/* ---- SERVERS SECTION ---- */
.servers-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 50px 32px;
}

.servers-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
}

.servers-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.servers-bar {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 24px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

/* Fade masks on edges */
.servers-bar::before,
.servers-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.servers-bar::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-card), transparent);
}

.servers-bar::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-card), transparent);
}

.servers-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.servers-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.server-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: var(--transition);
    cursor: default;
    opacity: 0.6;
}

.server-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.server-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    filter: grayscale(30%);
    transition: var(--transition);
}

.server-item:hover img {
    filter: grayscale(0%) drop-shadow(0 0 12px var(--cyan-glow));
}

.server-item span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
    transition: var(--transition);
}

.server-item:hover span {
    color: var(--text-primary);
}

/* ---- FORM ---- */
.form-section {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--gradient-bg);
}

.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-logo {
    width: 100px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 20px var(--cyan-glow));
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.form-intro {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: left;
}

.form-intro p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-intro p:last-child {
    margin-bottom: 0;
}

.intro-highlight {
    color: var(--cyan) !important;
    font-weight: 500;
}

/* Form Groups */
.candidature-form {
    max-width: 740px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.field-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid var(--border-glow);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.field-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-left: 52px;
}

.hint-link {
    color: var(--cyan);
    text-decoration: underline;
    font-weight: 500;
}

.hint-link:hover {
    color: #fff;
}

textarea,
input[type="text"],
input[type="url"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: var(--transition);
    resize: vertical;
    outline: none;
}

textarea:focus,
input[type="text"]:focus,
input[type="url"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-soft), var(--shadow-glow);
}

textarea::placeholder,
input::placeholder {
    color: var(--text-dim);
}

/* ---- Custom Dropdown ---- */
.custom-dropdown {
    position: relative;
    width: 100%;
    z-index: 1;
}

.custom-dropdown.open {
    z-index: 100;
}

.form-group:has(.custom-dropdown.open) {
    z-index: 100;
    position: relative;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.dropdown-trigger:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.dropdown-trigger:focus,
.custom-dropdown.open .dropdown-trigger {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-soft), var(--shadow-glow);
}

.custom-dropdown.open .dropdown-trigger {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.custom-dropdown.selected .dropdown-trigger {
    color: var(--text-primary);
}

.dropdown-arrow {
    color: var(--cyan);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    list-style: none;
    padding: 6px;
    margin: 0;
    background: rgba(22, 27, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.custom-dropdown.open .dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu li:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
    padding-left: 22px;
}

.dropdown-menu li.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(74, 108, 247, 0.12));
    color: #fff;
    border-left: 3px solid var(--cyan);
}

.dropdown-menu li small {
    color: var(--text-dim);
    font-size: 0.78rem;
}

/* Scrollbar custom pour la dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-glow);
    border-radius: 10px;
}

/* Submit */
.form-actions {
    text-align: center;
    padding-top: 20px;
}

.submit-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 18px 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 40px var(--cyan-glow), 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 60px var(--cyan-glow), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 24px;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: #f87171;
}

/* ---- FORMULAIRE FERMÉ ---- */
.formulaire-closed {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 32px;
}

.closed-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: pulse-lock 2s ease-in-out infinite;
}

@keyframes pulse-lock {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.formulaire-closed h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.formulaire-closed p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.formulaire-closed p:last-of-type {
    margin-bottom: 32px;
}

.closed-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 36px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.closed-discord-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 50px rgba(88, 101, 242, 0.5), 0 12px 40px rgba(0, 0, 0, 0.4);
    background: #4752C4;
}

/* ---- MODAL ---- */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

.video-modal.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 80px var(--cyan-glow), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--cyan);
    color: var(--bg-dark);
}

.modal-video-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
}

.modal-video-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */

/* Tablette et petits laptops */
@media (max-width: 1024px) {
    .section-container {
        padding: 60px 24px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (Navigation basse / Tab Bar) */
@media (max-width: 768px) {

    /* Header fixe simplifié */
    #main-header {
        height: 60px;
        background: rgba(10, 10, 15, 0.9);
    }

    .header-inner {
        height: 60px;
        padding: 0 20px;
        justify-content: center;
        /* Centre le logo */
    }

    .logo {
        height: 40px;
    }

    /* Tab Bar (Navigation en bas) */
    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(18, 18, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        /* 5 boutons */
        gap: 4px;
        z-index: 2000;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-btn {
        flex-direction: column;
        gap: 4px;
        padding: 8px 4px;
        font-size: 0.7rem;
        border-radius: 12px;
        background: transparent !important;
        border: none !important;
        color: var(--text-secondary);
        box-shadow: none !important;
    }

    .nav-btn svg {
        width: 22px;
        height: 22px;
    }

    .nav-btn.active {
        color: var(--cyan);
        transform: translateY(-2px);
    }

    .nav-btn.active svg {
        filter: drop-shadow(0 0 8px var(--cyan-glow));
    }

    /* Masquer le texte "Faire un Devis" et "Rejoindre" pour ne garder que l'icône sur petit mobile ? 
       Non, on va essayer de garder les noms courts */

    .nav-btn-external,
    .nav-btn-discord {
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-btn-discord.active {
        color: #5865F2 !important;
    }

    /* Hero */
    .hero {
        padding-top: 60px;
        min-height: 100dvh;
        /* Dynamic viewport height */
    }

    .hero-logo {
        width: 130px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* Grilles */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .tiktok-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    /* Formulaire */
    .form-section {
        padding-top: 80px;
        padding-bottom: 120px;
        /* Espace pour la tab bar */
    }

    .form-intro {
        padding: 20px;
    }

    .field-hint {
        padding-left: 0;
        font-size: 0.8rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    /* Modal */
    .modal-content {
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
}

/* Très petits mobiles */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-btn,
    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-btn {
        font-size: 0.65rem;
    }

    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
}