/* Page Trophées de l'Innovation - Style harmonisé */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: "Google Sans Code", monospace;
    overflow-x: hidden;
    color: #2c3e50;
    line-height: 1.8;
}



/* ------------------------- écart header ---------------------- */
header {
    height: 120px;
    width: 100%;
}

/* ----------------------- section trophées -------------------- */
.trophees-section {
    padding: 80px 60px 100px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Titre principal */
.page-title {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInUp 0.8s ease-out;
}

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

.page-title h1 {
    color: #CC0303;
    font-size: 2.8em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #CC0303, #ff4444);
    border-radius: 2px;
}

.page-title .subtitle {
    font-size: 1.3em;
    color: #34495e;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.page-title .intro {
    font-size: 1.1em;
    color: #5a6c7d;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Grille des éditions */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

/* Carte édition */
.edition-card {
    position: relative;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.edition-card:nth-child(1) { animation-delay: 0.1s; }
.edition-card:nth-child(2) { animation-delay: 0.2s; }
.edition-card:nth-child(3) { animation-delay: 0.3s; }
.edition-card:nth-child(4) { animation-delay: 0.4s; }
.edition-card:nth-child(5) { animation-delay: 0.5s; }

.edition-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(204, 3, 3, 0.25);
}

/* Badge année */
.edition-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #CC0303, #ff4444);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(204, 3, 3, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.edition-badge.current {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    }
}

.edition-badge.current::before {
    content: '🏆 ';
}

/* Image de l'affiche */
.edition-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.edition-card:hover .edition-image {
    transform: scale(1.1);
}

/* Overlay gradient */
.edition-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 40px 30px 30px;
    transition: all 0.4s ease;
}

.edition-card:hover .edition-overlay {
    background: linear-gradient(to top, rgba(204, 3, 3, 0.95) 0%, rgba(204, 3, 3, 0.6) 50%, transparent 100%);
}

/* Contenu de la carte */
.edition-content h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.edition-content .edition-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edition-content .edition-date::before {
    content: '📅';
}

.edition-content .edition-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.edition-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 1em;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.edition-card:hover .edition-cta {
    background: white;
    color: #CC0303;
    transform: translateX(5px);
}

.edition-cta::after {
    content: '→';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.edition-card:hover .edition-cta::after {
    transform: translateX(5px);
}

/* Section info supplémentaire */
.trophees-info {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.05) 0%, rgba(255, 68, 68, 0.05) 100%);
    padding: 60px;
    border-radius: 30px;
    border: 2px solid rgba(204, 3, 3, 0.1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.trophees-info h2 {
    color: #CC0303;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.trophees-info p {
    font-size: 1.1em;
    line-height: 1.9;
    color: #34495e;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive */
@media screen and (max-width: 1800px) {
    .navbar a {
        font-size: 1em;
    }
    .logo {
        width: 250px;
    }
}

@media screen and (max-width: 1500px) {
    .navbar a {
        font-size: 0.9em;
    }
    .navbar .nav-links ul {
        gap: 10px;
    }
    .navbar .nav-links ul li {
        margin: 0 8px;
    }
}

@media screen and (max-width: 1200px) {
    .editions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .trophees-section {
        padding: 60px 40px;
    }

    .navbar {
        padding: 15px 30px;
    }

    .navbar .menu-hamburger {
        display: block;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        width: 200px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 20px;
    }

    .navbar .nav-links ul li {
        margin: 20px 0;
    }

    .navbar a {
        font-size: 1.8em;
        color: white;
    }

    .navbar a::after {
        background: linear-gradient(90deg, #fff, #CC0303);
    }

    .navbar a:hover {
        color: #ff4444;
    }

    .mobile-menu {
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .trophees-section {
        padding: 40px 20px;
    }

    .page-title h1 {
        font-size: 2em;
    }

    .page-title .subtitle {
        font-size: 1.1em;
    }

    .page-title .intro {
        font-size: 1em;
    }

    .edition-image {
        height: 300px;
    }

    .edition-content h2 {
        font-size: 1.5em;
    }

    .trophees-info {
        padding: 40px 30px;
    }

    .trophees-info h2 {
        font-size: 1.6em;
    }

    .trophees-info p {
        font-size: 1em;
    }
}

@media screen and (max-width: 600px) {
    .navbar {
        padding: 10px 20px;
    }

    .logo {
        width: 150px;
    }

    .navbar .menu-hamburger {
        right: 20px;
        width: 30px;
    }

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

    .edition-badge {
        top: 15px;
        right: 15px;
        padding: 8px 20px;
        font-size: 1em;
    }

    .edition-overlay {
        padding: 30px 20px 20px;
    }
}

/* Scrolling manuel */
html {
    scroll-behavior: smooth;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #CC0303, #ff4444);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #990202, #CC0303);
}