/* Page Édition Détaillée - Trophées de l'Innovation */

* {
    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;
}

header {
    height: 120px;
    width: 100%;
}

/* Bouton retour */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    color: #CC0303;
    border: 2px solid #CC0303;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 30px 60px;
}

.back-button:hover {
    background: #CC0303;
    color: white;
    transform: translateX(-5px);
}

.back-button::before {
    content: '←';
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.back-button:hover::before {
    transform: translateX(-5px);
}

/* Section édition */
.edition-section {
    padding: 40px 60px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

/* En-tête de l'édition */
.edition-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

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

.edition-year {
    display: inline-block;
    background: linear-gradient(135deg, #CC0303, #ff4444);
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(204, 3, 3, 0.3);
}

.edition-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.edition-header .date-location {
    color: #5a6c7d;
    font-size: 1.2em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.date-location span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edition-header .description {
    font-size: 1.15em;
    line-height: 1.9;
    color: #34495e;
    max-width: 900px;
    margin: 0 auto;
}

/* Affiche de l'édition */
.edition-poster {
    margin: 50px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.edition-poster img {
    max-width: 100%;
    max-height: 700px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.edition-poster img:hover {
    transform: scale(1.02);
}

/* Section lauréats */
.laureats-section {
    margin-top: 80px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.laureats-section h2 {
    color: #CC0303;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

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

/* Grille des lauréats */
.laureats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Carte lauréat */
.laureat-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.laureat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #CC0303, #ff4444);
}

.laureat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(204, 3, 3, 0.15);
}

.laureat-trophy {
    font-size: 3em;
    margin-bottom: 15px;
}

.laureat-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(204, 3, 3, 0.1), rgba(255, 68, 68, 0.1));
    color: #CC0303;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
}

.laureat-card h3 {
    color: #2c3e50;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.laureat-card .pft-name {
    color: #CC0303;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.laureat-card .project-description {
    color: #5a6c7d;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.laureat-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.laureat-details .detail-item {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 0.95em;
    color: #5a6c7d;
}

.laureat-details .detail-item strong {
    color: #2c3e50;
    min-width: 100px;
}

/* Section informations */
.edition-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;
}

.edition-info h2 {
    color: #CC0303;
    font-size: 2em;
    margin-bottom: 25px;
}

.edition-info p {
    font-size: 1.1em;
    line-height: 1.9;
    color: #34495e;
    margin-bottom: 15px;
}

.edition-info ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.edition-info ul li {
    font-size: 1.05em;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #34495e;
    line-height: 1.8;
}

.edition-info ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #CC0303;
    font-size: 1.3em;
    font-weight: bold;
}

/* Galerie photos */
.photo-gallery {
    margin-top: 80px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.photo-gallery h2 {
    color: #CC0303;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(204, 3, 3, 0.2);
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .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) {
    .back-button {
        margin: 20px 20px;
    }

    .edition-section {
        padding: 20px 20px 60px;
    }

    .edition-year {
        font-size: 2em;
        padding: 12px 30px;
    }

    .edition-header h1 {
        font-size: 2em;
    }

    .date-location {
        font-size: 1em !important;
    }

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

    .laureat-card {
        padding: 30px;
    }

    .edition-info,
    .photo-gallery {
        padding: 40px 25px;
    }

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

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

    .logo {
        width: 150px;
    }

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

    .edition-year {
        font-size: 1.8em;
    }

    .edition-header h1 {
        font-size: 1.7em;
    }
}

/* 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);
}