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

body {
    font-family: 'Poppins', sans-serif; 
    overflow-x: hidden;
}

header {
    background-image: url('../img/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 105vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 110px;
    position: relative;
    z-index: 10;
    animation: neonFlicker 4s infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 100, 0.8));
}

.homepage-link img {
    display: block;
    width: 65px;
    height: auto;
    animation: neonFlicker 4s infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 100, 0.8));
}

@keyframes neonFlicker {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.4));
    }
    
    4% {
        opacity: 0.85;
        filter: drop-shadow(0 0 3px rgba(0, 255, 100, 0.35));
    }
    
    8% {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(0, 255, 100, 0.45));
    }
    
    10% {
        opacity: 0.75;
        filter: drop-shadow(0 0 2px rgba(0, 255, 100, 0.3));
    }
    
    45% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.4));
    }
    
    46% {
        opacity: 0.9;
        filter: drop-shadow(0 0 3.5px rgba(0, 255, 100, 0.38));
    }
    
    47% {
        opacity: 0.8;
        filter: drop-shadow(0 0 2.5px rgba(0, 255, 100, 0.32));
    }
    
    72% {
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(0, 255, 100, 0.45));
    }
    
    73% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.4));
    }
    
    85% {
        opacity: 0.7;
        filter: drop-shadow(0 0 2px rgba(0, 255, 100, 0.28));
    }
    
    86% {
        opacity: 0.92;
        filter: drop-shadow(0 0 3.5px rgba(0, 255, 100, 0.38));
    }
    
    87% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.4));
    }
}

.homepage-link img:hover {
    animation: none;
    text-shadow: 0 0 50px #ffffff, 0 0 60px #ffffff;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 11px rgb(118, 148, 130)) 
            drop-shadow(0 0 17px rgba(161, 223, 186, 0.8));
}

.menu nav {
    display: flex;
    gap: 60px;
}

.menu button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu button:hover {
    text-shadow: 0 0 10px #ffffff;
    transform: translateY(-2px);
}

@keyframes sprayReveal {
    0% {
        opacity: 0;
        filter: blur(25px);
        clip-path: circle(0% at 50% 50%);
    }
    40% {
        opacity: 0.5;
        filter: blur(10px);
        clip-path: circle(40% at 50% 50%);
    }
    80% {
        opacity: 0.9;
        filter: blur(3px);
        clip-path: circle(75% at 50% 50%);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        clip-path: circle(100% at 50% 50%);
    }
}

/* ============================================ */
/* MASCOTTE */
.mascot-container {
    position: absolute;
    bottom: 60px; 
    left: 100px;
    z-index: 15;
    pointer-events: none;
    transition: bottom 0.8s cubic-bezier(0.5, 0, 0.9, 1);
    will-change: left, top, transform;
    /* Support tactile amélioré */
    touch-action: none;
}

.mascot {
    width: 150px;
    height: auto;
    cursor: grab;
    pointer-events: all;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    will-change: left, top, transform;
    /* Support tactile */
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#mascot {
    will-change: background-image, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.mascot.dragging {
    cursor: grabbing;
}

/* ============================================ */
/* Poster SECTION */

.body-section {
    background-image: url('../img/Background.jpg');
    background-size: cover; 
    background-position: cover;
    background-repeat: no-repeat; 
    flex-grow: 1; 
    min-height: auto; 
    padding-bottom: 450px;
}

.posters-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 100px;
    min-height: 600px;
}

.posters-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
}

.poster {
    position: absolute;
    width: 200px;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.poster:hover {
    transform: translateY(-10px) scale(1.5) !important;
    z-index: 100;
}

.poster img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Disposition en grille décalée comme sur la maquette */
.poster:nth-child(1) { 
    left: -55px;
    top: 50px;
    zoom: 130%;
    transform: rotate(4deg);
}
.poster:nth-child(2) { 
    left: 210px;
    top: 10px;
    zoom: 100%;
    transform: rotate(1deg);
}
.poster:nth-child(3) { 
    left: 400px;
    top: 90px;
    zoom: 105%;
    transform: rotate(10deg);
}
.poster:nth-child(4) { 
    left: 650px;
    top: 45px;
    zoom: 100%;
    transform: rotate(-7deg);
}
.poster:nth-child(5) { 
    left: 200px;
    top: 220px;
    zoom: 100%;
    transform: rotate(-10deg);
}
.poster:nth-child(6) { 
    left: 550px;
    top: 220px;
    zoom: 100%;
    transform: rotate(6deg);
}

/* ============================================ */
/* PHOTOS SECTION */
/* ============================================ */

.photos-section {
    padding: 80px 20px 80px;
    position: relative;
    min-height: 300px;
}

.photos-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 200px;
}

.photo-item {
    position: absolute;
    width: 140px;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: rotate(var(--rotation, 0deg)) scale(1.15);
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.photo-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Positionnement des photos sur le fil comme sur la maquette */
.photo-item:nth-child(1) { 
    left: -30px; 
    top: 320px;
    scale: 1.2;
    --rotation: 10deg; 
}
.photo-item:nth-child(2) { 
    left: 330px; 
    top: 375px;
    scale: 1.6;
    --rotation: 8deg; 
}
.photo-item:nth-child(3) { 
    left: 690px; 
    top: 340px;
    scale: 1.2;
    --rotation: -5deg; 
}
.photo-item:nth-child(4) { 
    left: 1000px; 
    top: 410px;
    scale: 1.6;
    --rotation: -3deg; 
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

footer {
    background-color: #060606; 
    color: rgb(213, 213, 213);
    padding: 60px 0; 
    font-size: 14px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    padding: 0 110px; 
}

.footer-links {
    display: flex;
    gap: 120px; 
}

.footer-links .col {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.footer-links h3 {
    font-size: 14px;
    margin-bottom: 15px; 
    font-weight: bold; 
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.footer-links a:hover {
    text-shadow: 0 0 10px #ffffff;
    transform: translateY(-2px);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
    gap: 8px;
}

.footer-info .project-info {
    font-size: 14px;
    line-height: 1.2;
    margin-top: 1px; 
}

.footer-info .copyright {
    font-size: 12px;
    margin-top: 15px; 
    line-height: 1.2;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-top: 10px;
}

footer a:hover {
    text-shadow: 0 0 10px #ffffff;
    transform: translateY(-2px);
}

/* ============================================ */
/* RESPONSIVE - ÉCRANS MOYENS/LAPTOPS (max-width: 1400px) */
/* ============================================ */
@media (max-width: 1400px) {
    .menu {
        padding: 15px 60px;
    }
    
    .menu nav {
        gap: 40px;
    }
    
    .footer-content {
        padding: 0 60px;
    }
    
    .footer-links {
        gap: 80px;
    }
    
    /* Ajustement des photos pour écrans moyens */
    .photos-container {
        max-width: 1000px;
    }
    
    .photo-item:nth-child(1) { left: 20px; }
    .photo-item:nth-child(2) { left: 280px; }
    .photo-item:nth-child(3) { left: 580px; }
    .photo-item:nth-child(4) { left: 850px; }
}

/* ============================================ */
/* RESPONSIVE - PETITS LAPTOPS (max-width: 1200px) */
/* ============================================ */
@media (max-width: 1200px) {
    .menu {
        padding: 15px 40px;
    }
    
    .menu nav {
        gap: 30px;
    }
    
    .menu button {
        font-size: 18px;
    }
    
    .mascot-container {
        left: 50px;
        bottom: 50px;
    }
    
    .mascot {
        width: 120px;
    }
    
    /* Réduction des posters */
    .posters-container {
        max-width: 700px;
        height: 450px;
    }
    
    .poster {
        width: 170px;
    }
    
    .poster:nth-child(1) { 
        left: -45px;
        top: 40px;
        zoom: 120%;
    }
    .poster:nth-child(2) { 
        left: 180px;
        top: 10px;
    }
    .poster:nth-child(3) { 
        left: 350px;
        top: 80px;
    }
    .poster:nth-child(4) { 
        left: 560px;
        top: 35px;
    }
    .poster:nth-child(5) { 
        left: 170px;
        top: 200px;
    }
    
    /* Photos en grille plus serrée */
    .photos-container {
        max-width: 850px;
    }
    
    .photo-item {
        width: 120px;
    }
    
    .photo-item:nth-child(1) { 
        left: 20px; 
        top: 320px;
        scale: 1.1;
    }
    .photo-item:nth-child(2) { 
        left: 250px; 
        top: 360px;
        scale: 1.4;
    }
    .photo-item:nth-child(3) { 
        left: 500px; 
        top: 330px;
        scale: 1.1;
    }
    .photo-item:nth-child(4) { 
        left: 720px; 
        top: 380px;
        scale: 1.4;
    }
    
    .footer-content {
        padding: 0 40px;
    }
    
    .footer-links {
        gap: 60px;
    }
}

/* ============================================ */
/* RESPONSIVE - TABLETTES PAYSAGE (max-width: 1024px) */
/* ============================================ */
@media (max-width: 1024px) {
    .menu {
        padding: 12px 30px;
    }
    
    .menu nav {
        gap: 25px;
    }
    
    .menu button {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .homepage-link img {
        width: 55px;
    }
    
    .mascot-container {
        left: 30px;
        bottom: 40px;
    }
    
    .mascot {
        width: 100px;
    }
    
    /* Posters plus compacts */
    .posters-section {
        padding: 40px 20px 80px;
    }
    
    .posters-container {
        max-width: 600px;
        height: 400px;
    }
    
    .poster {
        width: 150px;
    }
    
    .poster:nth-child(1) { 
        left: -35px;
        top: 30px;
        zoom: 110%;
    }
    .poster:nth-child(2) { 
        left: 155px;
        top: 5px;
        zoom: 95%;
    }
    .poster:nth-child(3) { 
        left: 310px;
        top: 70px;
        zoom: 100%;
    }
    .poster:nth-child(4) { 
        left: 480px;
        top: 25px;
        zoom: 95%;
    }
    .poster:nth-child(5) { 
        left: 145px;
        top: 180px;
        zoom: 95%;
    }
    
    /* Photos adaptation */
    .photos-container {
        max-width: 700px;
    }
    
    .photo-item {
        width: 110px;
    }
    
    .photo-item:nth-child(1) { 
        left: 10px; 
        top: 300px;
        scale: 1.0;
    }
    .photo-item:nth-child(2) { 
        left: 200px; 
        top: 340px;
        scale: 1.3;
    }
    .photo-item:nth-child(3) { 
        left: 400px; 
        top: 310px;
        scale: 1.0;
    }
    .photo-item:nth-child(4) { 
        left: 580px; 
        top: 360px;
        scale: 1.3;
    }
    
    .footer-links {
        gap: 40px;
    }
}

/* ============================================ */
/* RESPONSIVE - TABLETTES PORTRAIT (max-width: 992px) */
/* ============================================ */
@media (max-width: 992px) {
    .menu {
        padding: 10px 20px; 
    }
    
    .menu nav {
        gap: 20px; 
    }
    
    .menu button {
        font-size: 15px;
        padding: 5px 10px;
    }
    
    .homepage-link img {
        width: 50px;
    }

    .mascot-container {
        bottom: 30px; 
        left: 20px; 
    }

    .mascot {
        width: 90px; 
    }
    
    /* Section des affiches en grille 2x3 */
    .posters-section {
        padding: 30px 10px;
        min-height: auto;
    }

    .posters-container {
        width: 100%; 
        height: auto; 
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; 
        position: static; 
        padding: 0 20px;
        max-width: 500px; 
        margin: 0 auto;
    }

    .poster {
        position: static; 
        width: 100%; 
        max-width: 200px; 
        margin: 0 auto; 
        transform: none !important; 
        zoom: 100% !important; 
    }
    
    .poster:nth-child(1), .poster:nth-child(2), .poster:nth-child(3), .poster:nth-child(4), .poster:nth-child(5), .poster:nth-child(6) { 
        left: auto;
        top: auto;
        transform: none;
    }

    /* Section des photos en grille 2x2 */
    .photos-section {
        padding: 30px 10px; 
        min-height: auto;
    }

    .photos-container {
        max-width: 500px; 
        margin: 0 auto; 
        height: auto; 
        overflow-x: hidden; 
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; 
        padding: 0 20px; 
    }
    
    .photo-item {
        position: static; 
        display: block; 
        width: 100%; 
        max-width: 200px; 
        margin: 0 auto; 
        transform: none !important; 
    }
    
    .photo-item:nth-child(1), .photo-item:nth-child(2), .photo-item:nth-child(3), .photo-item:nth-child(4) { 
        left: auto; 
        top: auto;
        scale: 1; 
    }

    /* Footer en colonne */
    .footer-content {
        flex-direction: column; 
        padding: 0 20px; 
        gap: 20px;
    }

    .footer-links {
        flex-direction: column; 
        gap: 15px;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE LARGE (max-width: 768px) */
/* ============================================ */
@media (max-width: 768px) {
    .menu button {
        font-size: 14px;
    }
    
    .mascot-container {
        bottom: 25px;
        left: 15px;
    }
    
    .mascot {
        width: 80px;
    }
    
    .posters-container {
        max-width: 400px;
        gap: 15px;
        padding: 0 15px;
    }
    
    .poster {
        max-width: 180px;
    }
    
    .photos-container {
        max-width: 400px;
        gap: 15px;
        padding: 0 15px;
    }
    
    .photo-item {
        max-width: 180px;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE MEDIUM (max-width: 600px) */
/* ============================================ */
@media (max-width: 600px) {
    .menu {
        padding: 10px 15px;
    }
    
    .menu nav {
        gap: 15px;
    }
    
    .menu button {
        font-size: 13px;
        padding: 4px 8px;
    }
    
    .homepage-link img {
        width: 45px;
    }
    
    .mascot-container {
        bottom: 20px;
        left: 10px;
    }
    
    .mascot {
        width: 75px;
    }
    
    .posters-container {
        max-width: 350px;
        gap: 12px;
    }
    
    .poster {
        max-width: 160px;
    }
    
    .photos-container {
        max-width: 350px;
        gap: 12px;
    }
    
    .photo-item {
        max-width: 160px;
    }
}

/* ============================================ */
/* RESPONSIVE - MOBILE SMALL (max-width: 480px) */
/* ============================================ */
@media (max-width: 480px) {
    .menu {
        padding: 10px 10px; 
    }
    
    .menu nav {
        gap: 10px; 
    }
    
    .menu button {
        font-size: 12px; 
        padding: 4px 6px;
    }
    
    .homepage-link img {
        width: 40px; 
    }

    .mascot-container {
        bottom: 15px;
        left: 10px;
    }

    .mascot {
        width: 70px; 
    }
    
    .posters-container {
        gap: 10px;
        max-width: 300px;
    }

    .poster {
        max-width: 140px; 
    }
    
    .photos-container {
        gap: 10px;
        max-width: 300px;
    }
    
    .photo-item {
        max-width: 140px; 
    }

    .footer-content {
        padding: 0 10px; 
    }
}