@import url('https://fonts.googleapis.com/css2?family=Lato&family=Ubuntu&display=swap');

/* ==========================================
   RESET ET CONFIGURATION GLOBALE
   ========================================== */

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

body {
    background-image: url("./images/autre/fond-decran.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* ==========================================
   TYPOGRAPHIE ET UTILITAIRES
   ========================================== */

.bold {
    font-weight: bold;
    color: #faaf22;
}

.font_titre {
    font-family: "Ubuntu", sans-serif;
}

.font_titre2 {
    font-family: "Ubuntu", sans-serif;
}

p, li {
    font-family: "Lato", sans-serif;
    font-size: 22px;
}

li {
    padding-top: 10px;
}


/* ==========================================
   BOUTONS
   ========================================== */

.bouton_page {
    font-family: "Ubuntu", serif;
    text-align: center;
    width: fit-content;
    border-radius: 25px;
    padding: 10px 20px;
    border: none;
    color: white;
    background-color: #faaf22;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.bouton_page:hover {
    padding: 10px 30px;
    background-color: #faaf22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bouton_page:active {
    background-color: #ed1c24;
    transform: translateY(0);
}

.bouton_carrousel {
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bouton_carrousel:hover {
    transform: scale(1.1);
}


/* ==========================================
   HEADER ET NAVIGATION
   ========================================== */

header {
    display: flex;
    background-color: #ed1c24;
    height: 100px;
    width: 100vw;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

nav {
    display: flex;
    width: 60%;
}

nav a {
    text-align: center;
    width: 100%;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

nav a img {
    width: 30px;
    height: auto;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#Logo_retromania {
    margin-left: 40px;
    height: 70px;
    display: block;
}

/* Bouton menu hamburger */
#bouton_menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
}

#bouton_menu span {
    width: 35px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#bouton_menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#bouton_menu.active span:nth-child(2) {
    opacity: 0;
}

#bouton_menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


/* ==========================================
   BANNIÈRES
   ========================================== */

/* Bannière cosplayeurs */
#banniere_cosplayeurs {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background-image: url(./images/Cosplay/Team_Cosplayeur.JPG);
    background-size: cover;
    background-position: center;
    margin: 0;
}

#banniere_cosplayeurs h1 {
    color: white;
    text-align: center;
    font-size: 50px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Bannière de don (non utilisée) */
#total_don {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background-image: url(./images/total_don.jpg);
    background-size: cover;
    background-position: center;
}

#total_don h1 {
    color: white;
    text-align: center;
    font-size: 60px;
    width: 50%;
}


/* ==========================================
   SECTIONS PRINCIPALES
   ========================================== */

/* Section titre cosplayeurs */
#section_cosplayeurs {
    text-align: center;
    padding: 20px;
}

#section_cosplayeurs h1 {
    color: white;
    text-align: center;
    font-size: 40px;
}

/* Section concours cosplay */
#accueil,
#concours_cosplay {
    height: fit-content;
    color: white;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0 20px;
}

#accueil h2,
#concours_cosplay h2 {
    font-size: 30px;
    font-weight: bolder;
    margin-bottom: 20px;
}

#accueil p {
    padding-top: 10px;
    width: 100%;
    text-align: justify;
    line-height: 1.6;
}

#accueil ul {
    margin-left: 20px;
}

#Concours-Cosplay {
    display: flex;
    flex-direction: column;
    width: 85%;
    justify-self: center;
    background-color: rgba(0, 0, 0, 0.411);
    border-radius: 30px;
    padding: 30px;
}

#Cosplayeurs {
    display: flex;
    flex-direction: column;
    width: 85%;
    height: 92%;
    justify-self: center;
    background-color: rgba(0, 0, 0, 0.411);
    border-radius: 30px;
    padding: 20px 30px;
    justify-content: center;
}

#Concours-Cosplay a {
    margin-top: 30px;
    align-self: flex-end;
    font-size: 20px;
}

#Cosplayeurs a,
#accueil a {
    margin-top: 30px;
    align-self: center;
    font-size: 20px;
}


/* ==========================================
   TITRES DE SECTIONS
   ========================================== */

.titre_section {
    color: white;
    background-color: #faaf22;
    border-radius: 30px;
    padding: 15px 30px;
    width: 95%;
    margin: 50px auto 40px auto;
}

.titre_section2 {
    color: white;
    background-color: #faaf22;
    border-radius: 30px;
    padding: 15px 30px;
    width: 95%;
    margin: 50px auto 40px auto;
}


/* ==========================================
   SECTIONS COSPLAYEURS / JUGES / STAFF
   ========================================== */

#streamers,
#cosplayeurs,
#juges,
#le_staff {
    margin-bottom: 50px;
}

/* Grilles d'images */
#liste_streamers,
#liste_cosplayeurs,
#liste_juges,
#liste_staff {
    padding: 30px 0;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
}

/* Conteneurs d'icônes */
#icones_streamers,
#icones_cosplayeur,
#icones_juges,
#icones_staff {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    margin-left: 30px;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Conteneur de carte personne */
.carte_personne {
    display: flex;
    flex-direction: column;
    width: 180px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carte_personne:hover {
    transform: scale(1.05);
}

/* Images miniatures */
.img_streamers {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px 10px 0 0;
    border: 3px solid #faaf22;
    border-bottom: none;
    background-color: white;
}

/* Nom sous l'image */
.nom_personne {
    background-color: #faaf22;
    color: black;
    text-align: center;
    padding: 10px 8px;
    font-family: "Ubuntu", sans-serif;
    font-size: 13px;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    border: 3px solid #faaf22;
    border-top: none;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

/* Agrandissement des photos pour juges et staff */
#icones_juges .carte_personne,
#icones_staff .carte_personne {
    width: 220px;
}

#icones_juges .img_streamers,
#icones_staff .img_streamers {
    width: 220px;
    height: 220px;
}

.couronne {
    color: #ff8800;
    font-size: 35px;
    margin-left: 5px;
}

.legende_couronne {
    text-align: center;
    color: white;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Zone d'affichage grande image */
.infos_streamers {
    display: flex;
    flex-direction: column;
    color: white;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.conteneur_grande_carte {
    display: flex;
    flex-direction: column;
    width: 80%;
}

#carte_streamer,
.carte_affichage {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border: 3px solid #faaf22;
    border-bottom: none;
    background-color: white;
    transition: transform 0.3s ease;
}

.nom_grande_carte {
    background-color: #faaf22;
    color: black;
    text-align: center;
    padding: 15px 10px;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    border: 3px solid #faaf22;
    border-top: none;
}

.bouton_instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ed1c24;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-family: "Ubuntu", sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.bouton_instagram:hover {
    background-color: #faaf22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bouton_instagram:active {
    transform: translateY(0);
}

.bouton_instagram svg {
    stroke: white;
}

.infos_streamers a {
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.texte_carte_streamer {
    width: 90%;
    margin-top: 20px;
    text-align: center;
}


/* ==========================================
   SECTION VIDÉO
   ========================================== */

#video_cosplay {
    margin-bottom: 50px;
}

#liste_videos {
    padding: 30px 0;
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 20px;
}

#miniatures_videos {
    width: 90%;
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.carte_video {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carte_video:hover {
    transform: scale(1.05);
}

.carte_video img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border: 3px solid #faaf22;
    border-bottom: none;
    background-color: white;
}

.nom_video {
    background-color: #faaf22;
    color: black;
    text-align: center;
    padding: 10px 8px;
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    border: 3px solid #faaf22;
    border-top: none;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conteneur_video_affichage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px;
}

#video_principale {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    border: 4px solid #faaf22;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-color: black;
}

.titre_video_affichee {
    background-color: #faaf22;
    color: black;
    text-align: center;
    padding: 15px 10px;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 900px;
}

.conteneur_video {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.conteneur_video video {
    width: 80%;
    max-width: 900px;
    border-radius: 15px;
    border: 4px solid #faaf22;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-color: black;
    accent-color: #faaf22;
}

/* Personnalisation de la barre de progression vidéo */
.conteneur_video video::-webkit-media-controls-timeline {
    background-color: #faaf22;
}

.conteneur_video video::-webkit-media-controls-current-time-display,
.conteneur_video video::-webkit-media-controls-time-remaining-display {
    color: #faaf22;
}

.conteneur_video video::-webkit-slider-thumb {
    background-color: #faaf22;
}

.conteneur_video video::-moz-range-progress {
    background-color: #faaf22;
}

.conteneur_video video::-moz-range-thumb {
    background-color: #faaf22;
}


/* ==========================================
   SECTION SPONSORS
   ========================================== */

#sectionSponsors {
    margin-bottom: 50px;
}

.conteneur_sponsors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logos_sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
}

#sectionSponsors p {
    color: white;
    font-size: 40px;
    padding: 20px;
    text-align: center;
    margin: 0;
}

.logoHorizontal {
    width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.logoHorizontal:hover {
    transform: scale(1.05);
}

.logoCarre {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.logoCarre:hover {
    transform: scale(1.05);
}

#logoZaayko {
    width: 100px;
    padding: 0 10px;
    height: auto;
}


/* ==========================================
   SECTIONS NON UTILISÉES (Clips/Galerie)
   ========================================== */

#clipsWeekend {
    margin-top: 50px;
    margin-bottom: 50px;
}

#joursSemaine {
    margin: auto;
    display: flex;
    width: 50%;
    justify-content: space-around;
    margin-bottom: 30px;
}

#clipsVendredi {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#carrousel {
    margin: auto;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.videoContainer {
    width: 80%;
    height: 600px;
    margin: auto;
}

#videoTwitch {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.fondClip {
    margin: auto;
    padding: 20px;
    border-radius: 60px;
    width: 70%;
    background-color: rgba(0, 0, 0, 0.411);
    margin-bottom: 30px;
}

#sectionGallerie {
    width: 100%;
    margin-bottom: 50px;
}

#gallerie {
    background-color: #04160a;
    border-radius: 50px;
    padding: 50px;
    width: 70%;
    column-count: 2;
    margin: 30px auto;
    column-gap: 15px;
}

.taillePhoto {
    width: 100%;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.taillePhoto:hover {
    transform: scale(1.02);
}


/* ==========================================
   BOUTON HOME ET FOOTER
   ========================================== */

/* Bouton home fixé */
#homeFooter {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: fixed;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
}

#fondBoutonHome {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #faaf22;
    border: none;
    justify-content: center;
    align-items: center;
    margin: 0 20px 20px 0;
    transition: all 0.3s ease;
    pointer-events: all;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#fondBoutonHome:hover {
    background-color: #fccb06;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#fondBoutonHome:active {
    transform: scale(0.95);
}

#fondBoutonHome svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Footer */
footer {
    background-color: #ed1c24;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    width: 100vw;
    margin: 0;
    box-sizing: border-box;
}

footer img {
    width: 200px;
    height: auto;
}

footer p {
    color: white;
    font-size: 16px;
}

footer :nth-child(1) {
    padding-right: 20px;
}


/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablettes */
@media screen and (max-width: 1024px) {
    #accueil,
    #concours_cosplay {
        grid-template-columns: 1fr;
    }

    #liste_streamers,
    #liste_cosplayeurs,
    #liste_juges,
    #liste_staff {
        grid-template-columns: 1fr;
    }

    #liste_videos {
        grid-template-columns: 1fr;
    }

    #miniatures_videos {
        flex-direction: row;
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .carte_video {
        max-width: 200px;
    }

    #gallerie {
        width: 90%;
        column-count: 1;
    }

    .videoContainer {
        width: 90%;
        height: 400px;
    }

    .conteneur_video video {
        width: 90%;
    }
}

/* Petites tablettes et grands smartphones */
@media screen and (max-width: 768px) {
    #bouton_menu {
        display: flex;
    }

    #nav_menu {
        position: fixed;
        top: 100px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 100px);
        background-color: #ed1c24;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        transition: right 0.3s ease;
        z-index: 99;
    }

    #nav_menu.active {
        right: 0;
    }

    #nav_menu a {
        width: 100%;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #Logo_retromania {
        margin-left: 20px;
        height: 40px;
    }

    /* Ajustement des cartes pour mobile */
    .carte_personne {
        width: 150px;
    }

    .img_streamers {
        width: 150px;
        height: 150px;
    }

    #icones_juges .carte_personne,
    #icones_staff .carte_personne {
        width: 150px;
    }

    #icones_juges .img_streamers,
    #icones_staff .img_streamers {
        width: 150px;
        height: 150px;
    }

    #icones_streamers,
    #icones_cosplayeur,
    #icones_juges,
    #icones_staff {
        gap: 15px;
    }

    .nom_personne {
        font-size: 11px;
        padding: 8px 5px;
        min-height: 50px;
    }

    /* Ajustement des sections concours pour mobile */
    #Concours-Cosplay,
    #Cosplayeurs {
        width: 100%;
        padding: 18px 24px;
    }

    #Cosplayeurs {
        height: auto;
    }

    #Concours-Cosplay h2,
    #Cosplayeurs h2 {
        font-size: 22px;
    }

    #Concours-Cosplay p,
    #Cosplayeurs p,
    #Cosplayeurs ul li {
        font-size: 16px;
    }

    #sectionSponsors div {
        width: 90%;
    }

    .fondClip {
        width: 90%;
    }
}

/* Smartphones */
@media screen and (max-width: 480px) {
    header {
        height: 100px;
        flex-direction: row;
        padding: 0 10px;
    }

    #bouton_menu {
        display: flex;
    }

    #nav_menu {
        position: fixed;
        top: 100px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 100px);
        background-color: #ed1c24;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        transition: right 0.3s ease;
        z-index: 99;
    }

    #nav_menu.active {
        right: 0;
    }

    #nav_menu a {
        width: 100%;
        padding: 30px;
        border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    }

    #Logo_retromania {
        margin-left: 10px;
        height: 35px;
    }

    .titre_section,
    .titre_section2 {
        font-size: 20px;
        padding: 10px 20px;
    }

    /* Ajustement des cartes pour smartphone */
    .carte_personne {
        width: 140px;
    }

    .img_streamers {
        width: 140px;
        height: 140px;
    }

    #icones_juges .carte_personne,
    #icones_staff .carte_personne {
        width: 140px;
    }

    #icones_juges .img_streamers,
    #icones_staff .img_streamers {
        width: 140px;
        height: 140px;
    }

    #icones_streamers,
    #icones_cosplayeur,
    #icones_juges,
    #icones_staff {
        gap: 10px;
        margin-left: 10px;
    }

    .nom_personne {
        font-size: 10px;
        padding: 6px 4px;
        min-height: 45px;
    }

    .couronne {
        font-size: 25px;
    }

    /* Ajustement des sections concours pour smartphone */
    #Concours-Cosplay,
    #Cosplayeurs {
        width: 95%;
        padding: 13px 22px;
    }

    #Cosplayeurs {
        height: auto;
    }

    #Concours-Cosplay h2,
    #Cosplayeurs h2 {
        font-size: 18px;
    }

    #Concours-Cosplay p,
    #Cosplayeurs p,
    #Cosplayeurs ul li {
        font-size: 14px;
    }

    #concours_cosplay {
        padding: 0 10px;
    }
}
