/* ======================
   GLOBAL
====================== */
body
{
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1F1F1E;
    color: #FFFFFF;
    padding-top: 130px; /* laisse la place au menu fixe */
}

html
{
    scroll-behavior: smooth;
}

/* ======================
   MENU FIXE DESKTOP
====================== */
.navbar
{
    position: fixed;
    top: 0;
    width: 100%;
    height: 130px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 1500;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: center;
}

.navbar a
{
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    padding: 14px 20px;
    font-weight: bold;
    font-size: 18px;
}

.navbar a:hover
{
    color: #8BBD38;
}

/* Hamburger caché en desktop */
.navbar .icon
{
    display: none;
    font-size: 40px;
    cursor: pointer;
    margin-left: auto;
}

/* Logo desktop */
.navbar .logo img
{
    height: 120px;
    margin-right: 200px;
    filter: drop-shadow(10px 10px 2px rgba(0,0,0,0.3));
}

/*/.section
{
    width: 100vw;
    overflow: hidden;
    margin: 0;
    
}*/

.contact-zone
{
    position: relative;
    width: 100%;
    height: 150px; /* tu adaptes */
    display: flex;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
    box-sizing: border-box;
    background-color: #404040;
    color: #BADE8A;
}
.contact-zone-content
{
    position: relative;
    z-index: 1; /* pour passer devant l'image */
    display: flex;
    justify-content: center;
    float: none; /* annule le float */
    
    max-width: 700px;
    position: relative; /* pour que le séparateur soit positionné par rapport à la section */
    justify-content: center;
    text-align: center;
    margin: 0;
    color: WHITE;
    font-size: 16px;
}
.maillink
{
    text-decoration: none;
    color: #BADE8A;
    font-size: 18px;
    font-weight:bold;
}

.maillink:hover
{
    color: white;
    transition:  0.3s;
}

.zone
{
    position: relative;
    width: 100%;
    height: 350px; /* tu adaptes */
    display: flex;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
    box-sizing: border-box;
    background-color: #EBFED4;
    color: #657A4C;
}

.zone-bg
{
    position: absolute;
    top: 0;
    left: 0;
    width: 600px; /* largeur de l'image à gauche */
    height: 100%;
    background-image: url('images/logo_long.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* 50% de transparence */
}

.zone-content
{
    position: relative;
    z-index: 1; /* pour passer devant l'image */

    width: 700px;
    position: relative; /* pour que le séparateur soit positionné par rapport à la section */
    justify-content: center;
    text-align: justify;
    margin: 0;
    color: #4A5933;
    font-size: 18px;
}
.zone::after
{
    content: "";
    position: absolute;
    bottom: -20px; /* chevauche l’item suivant */
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none; /* pour ne pas gêner le clic sur l’item suivant */
    z-index: 1010;
}

.header
{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 300px; /* hauteur à adapter */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background-color: #EBFED4;
    color: #657A4C;
    background-image: url('images/logo_long.png');
    background-size: cover;
    background-position: left;
    opacity: 0.5; /* 50% de transparence */
}
.headertext
{
    width: 700px;
    position: relative; /* pour que le séparateur soit positionné par rapport à la section */
    justify-content: center;
    text-align: center;
    margin: 0;
    background-color: #EBFED4;
    color: #657A4C;
    font-size: 20px;
   
}

.header_bg
{
    position: absolute;
    top: 0;
    left: 0;
    width: 40%; /* largeur de l'image à gauche */
    height: 100%;
    background-image: url('images/logo_long.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* 50% de transparence */
}

.section
{
    width: 100vw;
    position: relative; /* pour que le séparateur soit positionné par rapport à la section */
    justify-content: space-between;    
    margin: 0;
}


.header::after
{
    content: "";
    position: absolute;
    bottom: -20px; /* chevauche l’item suivant */
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none; /* pour ne pas gêner le clic sur l’item suivant */
    z-index: 1010;
}



/* séparateur intégré */
.section::after
{
    content: "";
    position: absolute;
    bottom: -20px; /* chevauche l’item suivant */
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none; /* pour ne pas gêner le clic sur l’item suivant */
    z-index: 1010;
}


.content
{
    display: flex;
    align-items: center;
    gap: 40px;
    transition: transform 0.2s ease-out;    
}

.section:nth-child(even) .content
/*.section:nth-child(odd) .content*/
{
    flex-direction: row;
    text-align: left;
}

.section:nth-child(odd) .content
/*.section:nth-child(even) .content*/
{
    flex-direction: row-reverse;
    text-align: right;
}

.content img
{
    width: 822px;
    flex-shrink: 0; /* taille fixe */
    height: auto;
    display: block;    
}

.text
{
    /*flex: 1;*/
    width: 550px;
}

.text h2
{    
    top: 0px;
    margin: 0 0 10px 0;
    
}

.text p
{
    margin: 0;
}

text_gametitle
{
    
}

.mobile-menu
{
    display: none; /* toujours caché en desktop */
}

.social-link
{
    position: relative;
    display: inline-block;
    height: 20px;
}

.social-link img
{
    position: absolute;
    top: 20;
    left: 0;
    height: 20px;
    transition: opacity 0.3s;
}

.social-link img.hover
{
    opacity: 0;
}

.social-link:hover img.hover
{
    opacity: 1;
}

.social-link:hover img.normal
{
    opacity: 0;
}

.game-title
{
    font-size: 36px;
    color: white;
    height: 70px;
    width: 500px;
    font-weight: bold;
    vertical-align: top;
}
.game-itemtitle
{
    font-size: 25px;
    font-weight: bold;
    height: 40px;
    width:500px;
    vertical-align: top;
}
.game-desc
{
    font-size: 16px;
    font-weight: 100;
    height: 100px;
    color: #CFC9BD;
    width:500px;
    vertical-align: top;
}
.game-screenshots
{
    font-size: 16px;
    font-weight: 100;
    height: 80px;
    color: #CFC9BD;
    width: 500px;
    vertical-align: top;
}
.game-buttons
{
    font-size: 16px;
    font-weight: 100;
    height: 80px;
    color: #CFC9BD;
    width: 500px;
    vertical-align: top;
}
.thumbnail
{
    display: block; /* pour éviter les petits décalages */
    border: 3px solid transparent; /* bordure invisible par défaut */
    transition: border 0.3s; /* effet doux */
    width: 109px;
    height: 61px;
    max-width: 109px; /* ne jamais dépasser la largeur du conteneur */
    max-height: 61px; /* ne jamais dépasser la largeur du conteneur */
    height: auto; /* garde les proportions */
}

.thumbnail:hover
{
    border: 3px solid; /* couleur du cadre au survol */
    border-color: var(--hover-color, #ffcc00);
}

.textlink
{
    text-decoration: none;
    color: var(--text-color, #ffcc00);
    font-size: 16px;
    font-weight: bold;
}

.textlink:hover
{
    color: white;
    transition: 0.3s;
}

.buttonlink
{
    display: block; /* pour éviter les petits décalages */
    border: 0px dotted transparent; /* bordure invisible par défaut */
    width: 170px;
    height: 44px;
    max-width: 170px; /* ne jamais dépasser la largeur du conteneur */
    max-height: 44px; /* ne jamais dépasser la largeur du conteneur */
    height: auto; /* garde les proportions */

    --icon-color: rgb(255, 100, 0); /* valeur par défaut rouge */
    background-color: var(--icon-color);
    padding: 0;
    margin: 0;
    text-align: center;
    text-decoration: none;
}

.buttonlinktext
{
    position: relative; 
    top: -30px; 
    left: 0px; 
    color: black; 
    font-weight: bold; 
    text-align: center; text-decoration: none;
}

.buttonlinktd
{
    display: block; /* pour éviter les petits décalages */
    border: 0px dotted transparent; /* bordure invisible par défaut */
    height: 44px;
    max-height: 44px; /* ne jamais dépasser la largeur du conteneur */
    height: auto; /* garde les proportions */

    --icon-color: rgb(255, 100, 0); /* valeur par défaut rouge */
    background-color: var(--icon-color);
    display: block;
    padding: 0;
    margin: 0;
    text-align: center;
    text-decoration: none;
}
.buttonlink:hover
{
    background-color: white;
    /*mix-blend-mode: normal;*/
}

.buttonlink a 
{
    text-decoration: none;
}

#cookie-banner
{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

#cookie-banner p
{
    display: inline;
    margin: 0;
    padding-right: 10px;
}

#cookie-banner a
{
    color: #8BBD38;
    text-decoration: underline;
}

#cookie-banner button
{
    background: #8BBD38;
    color: black;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}
.social-link_mobile
{
    display: none;
}

td.right-align
{
    display: table-cell; /* s’assure du comportement de cellule */
    float: right;
    
}

td.left-align
{
    display: table-cell; /* s’assure du comportement de cellule */
    float: left;
}

.social-link_content
{
    text-align: center;
    position: relative;
    display: inline-block;
    height: 30px;
    width: 35px;
}

.social-link_content img
{
    top: 0;
    left: 0;
    width: 33px;
    position: absolute;
    height: 30px;
    transition: opacity 0.3s;
    text-align: center;
}

.social-link_content img.hover
{
    opacity: 0;
    text-align: center;
}

.social-link_content:hover img.hover
{
    opacity: 1;
}

.social-link_content:hover img.normal
{
    opacity: 0;
}


/* ======================
   MEDIA QUERIES MOBILE
====================== */
@media screen and (max-width: 1000px)
{
    .zone-bg
    {
        display: none;
    }
    td.right-align
    {
        display: flex;
        justify-content: center;
        float: none; /* annule le float */
    }

    td.left-align
    {
        display: flex;
        justify-content: center;
        float: none; /* annule le float */
    }

    .buttonlinktext
    {
        position: relative;
        top: -50px;
        left: 0px;
        color: black;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
    }
    .social-link
    {
        display: none;        
    }
    .social-link_mobile
    {
        text-align: center;
        position: relative;
        display: inline-block;
        height: 30px;
        width: 35px;
    }
    .social-link_mobile img
    {
        top:0;
        left:0;
        width: 33px;
        position: absolute;
        height: 30px;
        transition: opacity 0.3s;
        text-align: center;
    }

    .social-link_mobile img.hover
    {
        opacity: 0;
        text-align: center;
    }

    .social-link_mobile:hover img.hover
    {
        opacity: 1;
    }

    .social-link_mobile:hover img.normal
    {
        opacity: 0;
    }

    .bottom-table
    {
        position: fixed; /* reste collée même quand tu scrolles */
        bottom: 0; /* en bas de l’écran */
        left: 0; /* alignée à gauche */
        width: 100%; /* pleine largeur */
        border-collapse: collapse;
        text-align: center;
    }

    .section
    {
        flex-direction: column;
        text-align: center;
    }

    .section img
    {
        transform: translateX(0);
        width: 100%;
    }

    .content
    {
        flex-direction: column !important; /* image au-dessus du texte */
        align-items: center; /* centre horizontalement */
        text-align: center; /* centre le texte */
        transform: none !important; /* annule le translateX du JS */
    }

    .content img
    {
        width: 100%; /* prend toute la largeur disponible */
        height: auto;
        margin-bottom: 20px; /* espace entre image et texte */
    }

    .text
    {
        width: 90%; /* texte pleine largeur */
        margin: 0 !important; /* annule les marges JS */
        text-align: center; /* centre le texte */
    }
    /* Navbar mobile */
    .navbar
    {
        justify-content: flex-start;
    }

    /* Cacher les items desktop */
    .navbar a.menu-item
    {
        display: none;
    }

    /* Hamburger visible */
    .navbar .icon
    {
        display: block;
    }

    /* Logo réduit dans navbar mobile */
    .navbar .logo img
    {
        height: 120px;
        margin-right: 10px;
    }

    /* Navbar responsive (optionnel si on utilise flex vertical) */
    .navbar.responsive
    {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .navbar.responsive a
    {
        display: block;
        width: 100%;
        padding: 12px 20px;
    }

    /* Overlay mobile */
    .mobile-menu
    {
        display: none; /* toujours caché en desktop */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #1F1F1E;
        z-index: 2000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Items overlay */
    .mobile-items
    {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .mobile-items a
    {
        color: white;
        font-size: 24px;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s;
    }

    .mobile-items a:hover
    {
        color: #8BBD38;
    }

    /* Croix fermeture overlay */
    .mobile-menu .close
    {
        position: absolute;
        top: 40px;
        right: 50px;
        font-size: 56px;
        color: white;
        cursor: pointer;
    }

    /* Logo overlay mobile */
    .mobile-menu .mobile-logo img
    {
        position: absolute;
        top: 20px;
        left: 20px;
        height: 120px;
        filter: drop-shadow(10px 10px 2px rgba(0,0,0,0.5));
        z-index: 2100;
    }

    /* Contenu des jeux mobile */
    .content
    {
        flex-direction: column;
        text-align: center;
        transform: translateX(0);
    }

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

    .description
    {
        text-align: center;
    }
}
