/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --f1-red: #e10600;
    --f1-dark: #15151e;
    --f1-carbon: #1f1f27;
    --f1-light: #f4f4f4;
    --white: #ffffff;
    --gray: #d0d0d2;
    
    --font-main: 'Montserrat', sans-serif;
    --font-numbers: 'Teko', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--f1-light);
    color: var(--f1-dark);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red { color: var(--f1-red); }
.text-center { text-align: center; }

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

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-down {
    opacity: 0;
    animation: fadeInDown 0.6s forwards ease-out;
}

/* =========================================
   NAVIGATION & HEADER
========================================= */
.top-red-line {
    height: 4px;
    width: 100%;
    background-color: var(--f1-red);
}

.navbar {
    background-color: var(--f1-dark);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checker-pattern {
    width: 20px;
    height: 20px;
    background-image: 
      linear-gradient(45deg, #fff 25%, transparent 25%), 
      linear-gradient(-45deg, #fff 25%, transparent 25%), 
      linear-gradient(45deg, transparent 75%, #fff 75%), 
      linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    opacity: 0.8;
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.brand-text em {
    color: var(--f1-red);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--white);
    border-bottom: 2px solid var(--f1-red);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    padding: 60px 0 40px 0;
}

.profile-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--f1-red);
    box-shadow: 0 10px 20px rgba(225, 6, 0, 0.2);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.profile-avatar img:hover {
    transform: scale(1.05);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--f1-dark);
}

.page-title span {
    font-style: italic;
}

.subtitle {
    color: #666;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* =========================================
   TITRES DE SECTIONS (Style Pro)
========================================= */
.section-header {
    margin: 40px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2 {
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header em {
    font-style: italic;
    color: var(--f1-red);
}

.line-decorator {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gray) 0%, transparent 100%);
}

/* =========================================
   TÉLÉMÉTRIE (Les stats)
========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--f1-dark);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.highlight-card {
    border-left-color: var(--f1-red);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-number {
    font-family: var(--font-numbers);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 500;
    color: var(--f1-dark);
}

.stat-number small {
    font-size: 1.5rem;
}

/* =========================================
   CLASSEMENTS
========================================= */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.board-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
}

.board-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--f1-red);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.placeholder-img {
    height: 250px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

/* =========================================
   MÉDIA / VIDÉO
========================================= */
.video-wrapper {
    position: relative;
    background: var(--f1-carbon);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.video-wrapper:hover {
    box-shadow: 0 20px 40px rgba(225, 6, 0, 0.15);
}

.video-overlay-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--f1-red);
    color: var(--white);
    font-weight: 800;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

.video-placeholder {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #15151e 0%, #2a2a35 100%);
}

.video-placeholder span {
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-smooth);
}

.video-placeholder:hover span {
    background: var(--f1-red);
    border-color: var(--f1-red);
    transform: scale(1.05);
}

/* =========================================
   PIED DE PAGE
========================================= */
.footer {
    background-color: var(--f1-dark);
    color: var(--white);
    padding: 30px 0;
    border-top: 4px solid var(--f1-red);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-weight: 800;
    font-style: italic;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--f1-red);
}

/* =========================================
   RESPONSIVE (Mobiles)
========================================= */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-title { font-size: 2.2rem; }
    
    .video-placeholder { height: 250px; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}