:root {
    /* Enhanced Color System */
    --primary-bg: #0A0A0A;
    --secondary-bg: #141414;
    --tertiary-bg: #1E1E1E;

    /* Orange Palette - More Vibrant */
    --accent-orange: #FF6B00;
    --accent-orange-light: #FF8E3C;
    --accent-orange-dark: #FF3D00;
    --accent-orange-darker: #CC3300;

    /* Gradients - Dynamic & Energetic */
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF3D00 50%, #FF1A00 100%);
    --gradient-secondary: linear-gradient(45deg, #FF8E3C 0%, #FF6B00 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 107, 0, 0.4) 0%, transparent 70%);
    --gradient-hero: radial-gradient(circle at 30% 40%, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 61, 0, 0.1) 0%, transparent 50%);

    /* Chrome/Metallic Effect */
    --chrome-gradient: linear-gradient(to bottom,
            #FFFFFF 0%, #F5F5F5 25%, #E0E0E0 50%, #BDBDBD 75%, #9E9E9E 100%);

    /* Text Colors */
    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --text-tertiary: #808080;

    /* Card & Surface */
    --card-bg: rgba(30, 30, 30, 0.98);
    /* Augmenté de 0.8 à 0.98 pour rendre les cartes opaques */
    --card-bg-hover: rgba(40, 40, 40, 0.98);
    --glass-bg: rgba(20, 20, 20, 0.7);

    /* Borders */
    --border-color: rgba(255, 107, 0, 0.2);
    --border-color-light: rgba(255, 107, 0, 0.1);

    /* Shadows - Multi-layer for depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-orange: 0 8px 32px rgba(255, 107, 0, 0.3);
    --shadow-orange-glow: 0 0 40px rgba(255, 107, 0, 0.5);

    /* Glow Effects */
    --glow-orange: 0 0 20px rgba(255, 107, 0, 0.6);
    --glow-orange-strong: 0 0 30px rgba(255, 107, 0, 0.8);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme */
body.light-theme {
    --primary-bg: #F8F9FA;
    --secondary-bg: #FFFFFF;
    --tertiary-bg: #F0F0F0;

    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #6A6A6A;

    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --glass-bg: rgba(255, 255, 255, 0.8);

    --border-color: rgba(255, 107, 0, 0.15);
    --border-color-light: rgba(255, 107, 0, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Keep header dark in light theme */
    --header-bg: rgba(13, 13, 13, 0.95);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
header {
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

header:hover::after {
    opacity: 1;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-base);
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-img::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(10px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.logo:hover .logo-img::before {
    opacity: 0.6;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.3));
}

.logo-text h1 {
    font-size: 42px;
    letter-spacing: 1px;
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    flex-direction: column;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text h1 span:first-child {
    font-size: 58px;
    line-height: 0.9;
    font-weight: 900;
    font-style: italic;
    margin-bottom: -2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.6));
    animation: text-glow 2s ease-in-out infinite alternate;
}

.logo-text h1 .sub-text {
    font-size: 42px;
    font-weight: 700;
}

.logo-text p.ctc-text {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
    margin-top: 5px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all var(--transition-base);
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    position: relative;
    display: inline-block;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: transform var(--transition-bounce);
}

nav ul li a:hover::before,
nav ul li a.active::before {
    transform: translateX(-50%) scaleX(1);
}

nav ul li a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 0, 0.4));
}

nav ul li a.active {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Light theme nav adjustments */
body.light-theme nav a {
    color: #F0F0F0;
}

body.light-theme nav a:hover,
body.light-theme nav a.active {
    color: var(--accent-orange);
}

/* Mobile Menu Button */
.mobile-only {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: var(--gradient-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-orange);
    z-index: 10001;
}

.mobile-menu-btn:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-orange-glow);
}

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

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 200px 0 140px;
    position: relative;
    overflow: hidden;
    background: var(--primary-bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 1;
    z-index: 0;
}

/* Animated background pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255, 107, 0, 0.03) 50px, rgba(255, 107, 0, 0.03) 51px);
    opacity: 0.5;
    animation: slide-pattern 20s linear infinite;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 107, 0, 0.15);
    border: 2px solid var(--accent-orange);
    border-radius: 50px;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-orange);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.5));
    animation: text-glow 2s ease-in-out infinite alternate;
}

.hero h2::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 5px;
    background: var(--gradient-primary);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: var(--glow-orange);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 18px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all var(--transition-base);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-orange);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--transition-base);
}

.cta-button:hover::after {
    opacity: 0.8;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-orange-glow);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-orange);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--accent-orange-light);
    box-shadow: var(--shadow-orange);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-orange);
    border-color: var(--accent-orange);
}

.stat-visual {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.stat-visual i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    filter: drop-shadow(var(--glow-orange));
}

.partner-logos {
    gap: 20px;
}

.partner-logos img {
    height: 60px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.partner-logos img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-orange);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
    text-shadow: var(--glow-orange);
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

.section-divider {
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 50px auto 0;
    border-radius: 3px;
    box-shadow: var(--glow-orange);
}

/* Light theme hero adjustments */
body.light-theme .hero {
    background: var(--secondary-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .hero h2 {
    color: var(--text-primary);
}

body.light-theme .hero p {
    color: var(--text-secondary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 107, 0, 0.8));
    }
}

@keyframes text-glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.4));
    }

    to {
        filter: drop-shadow(0 0 25px rgba(255, 107, 0, 0.9));
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slide-pattern {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.section-title h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.4));
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: var(--glow-orange);
}

/* ==================== FUSION SECTION ==================== */
.fusion-highlight {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.fusion-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.fusion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.fusion-text-content h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 35px;
    font-weight: 900;
}

.fusion-text-content h2 span {
    color: var(--accent-orange);
    text-shadow: var(--glow-orange);
    display: inline-block;
    animation: text-glow 2s ease-in-out infinite alternate;
}

.fusion-text-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 25px;
    line-height: 1.8;
}

.fusion-image-wrapper {
    position: relative;
}

.fusion-image-wrapper::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 120px;
    height: 120px;
    border-top: 5px solid var(--accent-orange);
    border-right: 5px solid var(--accent-orange);
    border-radius: 0 25px 0 0;
    z-index: 1;
    box-shadow: var(--glow-orange);
}

.fusion-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 120px;
    height: 120px;
    border-bottom: 5px solid var(--accent-orange);
    border-left: 5px solid var(--accent-orange);
    border-radius: 0 0 0 25px;
    z-index: 1;
    box-shadow: var(--glow-orange);
}

.image-frame {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}

.image-frame:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-orange-glow);
}

.image-frame img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.08);
}

/* ==================== SCORES SECTION ==================== */
.scores-section {
    padding: 100px 0;
    position: relative;
}

.scores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.score-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 10;
    /* Assurer que les scores sont au-dessus des autres éléments */
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: var(--glow-orange);
}

.score-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-orange);
    border-color: var(--accent-orange);
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    background: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 18px;
    border: 3px solid var(--accent-orange);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.team-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-orange);
}

.logo-tnt {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.logo-tnt img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    min-height: 2.8rem;
    /* Alignement: Force la hauteur pour 2 lignes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs {
    font-weight: 900;
    color: var(--accent-orange);
    font-size: 1.5rem;
    background: rgba(255, 107, 0, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
    box-shadow: var(--glow-orange);
    flex-shrink: 0;
}

.score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

.score span {
    min-width: 90px;
    text-align: center;
}

.winner {
    color: var(--accent-orange);
    text-shadow: var(--glow-orange);
    animation: pulse-glow 2s ease-in-out infinite;
}

.match-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 15px;
}

/* New Vertical Layout Styles */
.teams-score-layout {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.team-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 15px;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 75px;
    /* Augmenté pour aligner le séparateur avec les chiffres */
}

.team-score {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    margin-top: 5px;
    line-height: 1;
}

.team-score.winner {
    color: var(--accent-orange);
    text-shadow: var(--glow-orange);
    animation: pulse-glow 2s ease-in-out infinite;
}

.score-separator {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-tertiary);
    margin-top: 10px;
}

.match-comment-box {
    text-align: center;
    margin: 15px 0 20px;
}

.match-comment {
    color: var(--accent-orange);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.4;
}

.next-match-info {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px dashed var(--border-color) !important;
    font-size: 0.9rem !important;
}

/* ==================== CAROUSEL STYLES ==================== */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.carousel-btn {
    background: rgba(255, 107, 0, 0.1);
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.1);
}

.carousel-cards-grid {
    display: grid;
    gap: 20px;
    flex: 1;
    width: auto;
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section {
    padding: 100px 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 0, 0.06) 0%, transparent 60%);
}

.gallery-container {
    display: block;
}

.gallery-item {
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 2px solid var(--border-color-light);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-orange-glow);
    border-color: var(--accent-orange);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 30px 25px 20px;
    transition: all var(--transition-base);
}

.gallery-item-overlay p {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.add-photo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 0, 0.08);
    border: 3px dashed var(--accent-orange);
    border-radius: 20px;
    height: 280px;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-direction: column;
    gap: 20px;
}

.add-photo-btn:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--accent-orange-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-orange);
}

.add-photo-btn i {
    font-size: 3.5rem;
    color: var(--accent-orange);
    filter: drop-shadow(var(--glow-orange));
}

.add-photo-btn p {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ==================== TEAMS SECTION ==================== */
.teams-section {
    padding: 100px 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 107, 0, 0.06) 0%, transparent 60%);
}

.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-orange-glow);
    border-color: var(--accent-orange);
}

.team-card-header {
    background: var(--gradient-primary);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg);
    transition: all var(--transition-slow);
}

.team-card:hover .team-card-header::before {
    left: 100%;
}

.team-card-header h3 {
    color: white;
    font-size: 2rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-card-body {
    padding: 35px;
}

.team-info {
    margin-bottom: 30px;
}

.team-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.team-info-item:hover {
    padding-left: 10px;
    border-color: var(--accent-orange);
}

.team-info-item span:first-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.team-info-item span:last-child {
    color: var(--accent-orange);
    font-weight: 700;
}

.team-players {
    list-style: none;
}

.team-players li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.team-players li:hover {
    background: rgba(255, 107, 0, 0.08);
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 -15px;
    border-radius: 8px;
}

.team-players li:last-child {
    border-bottom: none;
}

/* ==================== CLUB LOGOS ==================== */
.club-logo-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-base);
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.club-logo-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-orange);
}

.club-logo-card img {
    height: 120px;
    border-radius: 15px;
    background: white;
    padding: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.club-logo-card:hover img {
    transform: scale(1.05) rotate(3deg);
}

.club-logo-card h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.club-logos-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 60px 0;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--secondary-bg);
    padding: 90px 0 35px;
    border-top: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: var(--glow-orange);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo .logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
}

.footer-section h3 {
    color: var(--accent-orange);
    margin-bottom: 30px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 800;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
    box-shadow: var(--glow-orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li i {
    color: var(--accent-orange);
    width: 22px;
    font-size: 1.1rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--accent-orange);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    color: var(--accent-orange);
    font-size: 1.3rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-8px) rotate(10deg);
    box-shadow: var(--shadow-orange);
    border-color: var(--accent-orange-light);
}

.copyright {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==================== THEME TOGGLE ==================== */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.theme-switch {
    display: inline-block;
    height: 38px;
    position: relative;
    width: 70px;
}

.theme-switch input {
    display: none;
}

.slider {
    background: linear-gradient(135deg, #555, #333);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: var(--transition-base);
    border-radius: 40px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.slider::before {
    background: white;
    bottom: 5px;
    content: "";
    height: 26px;
    left: 5px;
    position: absolute;
    transition: var(--transition-bounce);
    width: 26px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

input:checked+.slider {
    background: var(--gradient-primary);
    box-shadow: var(--glow-orange);
}

input:checked+.slider::before {
    transform: translateX(32px);
}

.theme-switch-wrapper span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .hero h2 {
        font-size: 3.5rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .fusion-grid {
        gap: 60px;
    }
}

/* Tablet Landscape */
@media (max-width: 1100px) {
    .hero h2 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .fusion-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .fusion-text-content p {
        border-left: none;
        border-top: 4px solid var(--accent-orange);
        padding-left: 0;
        padding-top: 20px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {

    /* Header Mobile */
    .mobile-menu-btn {
        display: block;
    }

    .mobile-only {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 50vh;
        left: 50vw;
        transform: translate(-50%, -55%) scale(0.95);
        width: 90%;
        max-width: 450px;
        max-height: 85vh;
        overflow-y: auto;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 70px 30px 50px;
        gap: 8px;
        border-radius: 35px;
        border: 2px solid var(--accent-orange);
        box-shadow: var(--shadow-xl), var(--shadow-orange-glow);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-bounce);
        z-index: 10002;
        display: none;
    }

    nav ul::before {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        z-index: -1;
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    nav ul.active {
        display: flex !important;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    nav ul.active::before {
        opacity: 1;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        font-size: 1.3rem;
        color: white !important;
        background: white;
        -webkit-background-clip: text;
        background-clip: text;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
    }

    /* Hero Mobile */
    .hero {
        padding: 160px 0 100px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    /* Sections Mobile */
    .content-section,
    .scores-section,
    .gallery-section,
    .teams-section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    /* Cards Mobile */
    .scores-container,
    .teams-container {
        grid-template-columns: 1fr;
    }

    /* Carousel Adjustment Mobile */
    .carousel-wrapper {
        gap: 8px !important;
    }

    .carousel-btn {
        width: 32px !important;
        height: 32px !important;
        border-width: 1px !important;
    }

    .carousel-btn i {
        font-size: 0.8rem;
    }

    .carousel-cards-grid {
        gap: 10px !important;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .gallery-item,
    .add-photo-btn {
        height: 220px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 576px) {

    /* Header Mobile Compact */
    header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 15px;
        gap: 12px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 0.75rem;
        line-height: 1.1;
    }

    .logo-text h1 span:first-child {
        font-size: 1.9rem;
    }

    .logo-text h1 .sub-text {
        font-size: 0.75rem;
    }

    .logo-text p.ctc-text {
        font-size: 15px !important;
        margin-top: 0 !important;
    }

    .mobile-menu-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .search-btn.mobile-only {
        font-size: 18px;
    }

    /* Hero Mobile Compact */
    .hero {
        padding: 140px 0 80px;
    }

    .hero h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero h2::after {
        width: 100px;
        height: 4px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 8px 18px;
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .stat-item {
        min-width: 100%;
        padding: 15px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .partner-logos img {
        height: 50px;
    }

    /* Sections Mobile Compact */
    .content-section,
    .scores-section,
    .gallery-section,
    .teams-section,
    .fusion-highlight {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 1.8rem;
        padding-bottom: 15px;
    }

    .section-title h2::after {
        width: 80px;
        height: 4px;
    }

    .fusion-text-content h2 {
        font-size: 2rem;
    }

    /* Cards Mobile Compact */
    .score-card,
    .team-card-body {
        padding: 15px 12px;
    }

    /* Réduire le padding du bloc parent des résultats sur l'accueil */
    .fade-in[style*="padding: 40px"] {
        padding: 20px 10px !important;
    }

    .match-title {
        margin-bottom: 12px !important;
    }

    .match-title h3 {
        font-size: 1.1rem !important;
    }

    .teams-score-layout {
        margin-bottom: 15px !important;
        gap: 10px !important;
    }

    .team-column {
        gap: 8px !important;
    }

    .team-score {
        font-size: 2.2rem !important;
    }

    .center-column {
        gap: 15px !important;
        padding-top: 2px !important;
    }

    .score-separator {
        font-size: 1.5rem !important;
        margin-top: 5px !important;
    }

    .match-comment-box {
        margin: 10px 0 15px !important;
    }

    .match-comment {
        font-size: 0.85rem !important;
    }

    .team-logo {
        width: 48px !important;
        height: 48px !important;
        font-size: 14px !important;
    }

    .team-logo img {
        width: 80% !important;
        height: 80% !important;
    }

    .team-name {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .match-info {
        font-size: 0.85rem;
    }

    .match-comment {
        font-size: 0.8rem !important;
        margin-top: 5px !important;
    }

    .next-match-info {
        margin-top: 10px !important;
        padding-top: 10px !important;
        font-size: 0.8rem !important;
    }

    /* Gallery Mobile Compact */
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-item,
    .add-photo-btn {
        height: 200px;
    }

    /* Club Logos Mobile */
    .club-logos-container {
        flex-direction: column;
        gap: 25px;
    }

    .club-logo-card {
        max-width: 100%;
    }

    /* Footer Mobile Compact */
    footer {
        padding: 60px 0 25px;
    }

    .footer-content {
        gap: 35px;
        margin-bottom: 40px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.85rem;
        padding-top: 25px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .logo-text h1 span:first-child {
        font-size: 1.6rem;
    }

    .logo-text h1 .sub-text {
        font-size: 0.65rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

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

.bg-gradient {
    background: var(--gradient-primary);
}

.glow {
    box-shadow: var(--glow-orange);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .mobile-menu-btn,
    .theme-switch-wrapper {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==================== SEARCH BUTTON ==================== */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 0, 0.1);
    border: 2px solid var(--accent-orange);
    border-radius: 12px;
    color: var(--accent-orange);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.search-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.search-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange);
    border-color: var(--accent-orange-light);
}

.search-btn:hover::before {
    opacity: 1;
}

.search-btn:hover svg {
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.search-btn:active {
    transform: translateY(-1px) scale(0.95);
}

/* ==================== SEARCH MODAL ==================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    border: 2px solid var(--accent-orange);
    box-shadow: var(--shadow-xl), var(--shadow-orange-glow);
    padding: 40px;
    transform: translateY(-30px) scale(0.95);
    transition: all var(--transition-bounce);
    max-height: 80vh;
    overflow-y: auto;
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

.search-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 0, 0.1);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    color: var(--accent-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.search-close-btn svg {
    width: 20px;
    height: 20px;
}

.search-close-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-orange);
}

.search-header {
    text-align: center;
    margin-bottom: 35px;
}

.search-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

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

/* Search Input */
.search-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 60px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all var(--transition-base);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1), var(--shadow-orange);
    background: var(--primary-bg);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 107, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--accent-orange);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.search-clear-btn.visible {
    display: flex;
}

.search-clear-btn svg {
    width: 18px;
    height: 18px;
}

.search-clear-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Search Results */
.search-results {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange-light);
}

/* Suggestions */
.search-suggestions {
    text-align: center;
}

.search-suggestions-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.search-tag {
    padding: 10px 20px;
    background: rgba(255, 107, 0, 0.1);
    border: 2px solid var(--accent-orange);
    border-radius: 50px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange);
}

/* Search Result Item */
.search-result-item {
    padding: 20px;
    background: var(--secondary-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
}

.search-result-item:hover {
    border-color: var(--accent-orange);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.search-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
}

.search-result-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.search-result-badge {
    padding: 4px 12px;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 50px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.8rem;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.search-no-results-icon {
    width: 80px;
    height: 80px;
    color: var(--text-tertiary);
    margin: 0 auto 20px;
    opacity: 0.5;
}

.search-no-results h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.search-no-results p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal {
        padding: 60px 15px 15px;
    }

    .search-modal-content {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .search-header h2 {
        font-size: 1.8rem;
    }

    .search-header p {
        font-size: 1rem;
    }

    .search-input {
        padding: 16px 55px 16px 55px;
        font-size: 1rem;
    }

    .search-btn {
        width: 44px;
        height: 44px;
    }

    .search-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .search-header h2 {
        font-size: 1.5rem;
    }

    .search-tags {
        gap: 8px;
    }

    .search-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .search-result-item {
        padding: 15px;
    }

    .search-result-title {
        font-size: 1.1rem;
    }
}

/* Styles pour les catégories de la galerie */
/* .gallery-category-title REMOVED to avoid duplication with new block below */

/* Refined Gallery Styles */
.gallery-section-wrapper {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.external-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: all var(--transition-base);
}

.gallery-item:hover .external-icon {
    background: var(--accent-orange);
    transform: rotate(45deg);
}

.external-hint {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-weight: 400;
}

.gallery-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
    color: var(--accent-orange);
    position: relative;
}

.gallery-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-orange);
}