/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --accent-bg: #222222;
    --primary-text: #ffffff;
    --secondary-text: #a0a0a0;
    --muted-text: #666666;
    --accent-gold: #ffd700;
    --accent-orange: #ff8c00;
    --border-color: #333333;
    --border-hover: #555555;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(255, 215, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}
h3 { 
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    color: var(--secondary-text);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Section Hero */
.hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    background: var(--card-bg);
    overflow: hidden;
    max-width: 1400px;
    margin: 120px auto;
    width: 100%;
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--secondary-text);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 80px auto;
    max-width: 1000px;
    width: 100%;
}

.stat {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 12px;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Boutons */
.cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(255, 215, 0, 0.4);
}

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

.btn-secondary:hover {
    background: var(--accent-bg);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--shadow);
}

/* Header */
header {
    position: relative;
    background: var(--card-bg);
    border-radius: 0 0 32px 32px;
    border: 1px solid var(--border-color);
    border-top: none;
    max-width: 1400px;
    margin: 0 auto 120px auto;
    width: 100%;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 2;
}

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

.tab:first-child {
    gap: 30px;
}

.tab:last-child ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.tab:last-child a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.tab:last-child a.active {
    border-radius: 0;
}

.tab:last-child a:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.tab:last-child a.active {
    color: var(--accent-gold);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

#logo-sup,
#logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

#logo-sup:hover,
#logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}


/* Sections */
.section {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 120px auto;
    width: 100%;
    background: var(--card-bg);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 32px 32px 0 0;
}

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

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Palmarès */
.palmares {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 80px 60px;
    margin: 120px auto;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    width: 100%;
}

.palmares::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 32px 32px 0 0;
}

.palmares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 auto;
    width: 100%;
}

.palmares-item {
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.palmares-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.palmares-item:hover::before {
    transform: scaleX(1);
}

.palmares-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.palmares-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    display: block;
}

.palmares-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.palmares-year {
    font-size: 0.875rem;
    color: var(--secondary-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grilles de contenu */
.grid {
    display: grid;
    gap: 40px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-gold);
    box-shadow: 0 24px 48px var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
    display: block;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.card-description {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.7;
}

/* Section deux colonnes */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin: 120px auto;
    padding: 80px 60px;
    max-width: 1400px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.two-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 32px 32px 0 0;
}

.two-column img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 24px 48px var(--shadow);
    transition: transform 0.3s ease;
}

.two-column img:hover {
    transform: scale(1.02);
}

.two-column h2 {
    margin-bottom: 32px;
    color: var(--primary-text);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
}

.two-column p {
    margin-bottom: 24px;
    color: var(--secondary-text);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }
    
    .hero {
        padding: 120px 0 80px;
        max-width: 1400px;
        margin: 80px auto;
    }
}

@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .palmares-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    /* Réorganiser l'ordre des éléments sur tablette */
    .two-column > div:first-child {
        order: 2; /* Image en bas */
    }
    
    .two-column > div:last-child {
        order: 1; /* Texte en haut */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    header {
        margin: 0 auto 80px auto;
    }
    
    /* Réorganiser l'ordre des éléments sur mobile - Images en bas */
    .two-column {
        display: flex;
        flex-direction: column;
    }
    
    .two-column > div:first-child {
        order: 2; /* Image en bas */
    }
    
    .two-column > div:last-child {
        order: 1; /* Texte en haut */
    }
    
    /* Animation automatique des éléments sur mobile */
    .auto-hover-active {
        transform: translateY(-8px) !important;
        box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3) !important;
        border-color: var(--accent-gold) !important;
        transition: all 0.6s ease !important;
    }
    
    .auto-hover-active .card-icon {
        transform: scale(1.1) !important;
        color: var(--accent-gold) !important;
    }
    
    .auto-hover-active .stat-number {
        transform: scale(1.1) !important;
    }
    
    .auto-hover-active .palmares-item {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2) !important;
    }
    
    nav {
        padding: 15px 30px;
        flex-direction: column;
        gap: 20px;
    }
    
    .tab:first-child {
        gap: 20px;
    }
    
    .tab:last-child ul {
        gap: 20px;
    }
    
    .tab:last-child a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    #logo-sup,
    #logo {
        height: 40px;
    }
    
    .hero {
        padding: 100px 0 60px;
        margin: 80px auto;
    }
    
    .section {
        padding: 60px 32px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta {
        flex-direction: column;
        align-items: center;
    }
    
    .palmares {
        padding: 60px 32px;
        margin: 80px auto;
        max-width: 1400px;
    }
    
    .two-column {
        margin: 80px auto;
        padding: 60px 32px;
        max-width: 1400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    header {
        margin: 0 auto 80px auto;
    }
    
    nav {
        padding: 12px 24px;
    }
    
    .tab:last-child ul {
        gap: 15px;
    }
    
    .tab:last-child a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    #logo-sup,
    #logo {
        height: 35px;
    }
    
    .btn {
        min-width: 160px;
        padding: 16px 24px;
    }
}

/* Accent color */
.yellow {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .stat, .palmares-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}