@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

body {
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

.container {
    position: relative; /* Très important pour positionner les pseudo-éléments */
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pour desktop/grand écran, pousse le contenu vers le bas */
    align-items: center;
    overflow: hidden;
}

/* Pseudo-élément pour l'image de fond floue */
.container::before {
    content: ""; /* Obligatoire pour les pseudo-éléments */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('cdn/image_314abe.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2; /* Place le pseudo-élément encore plus bas que l'overlay */
    filter: blur(5px);
}

/* Pseudo-élément pour l'overlay d'assombrissement net */
.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.overlay-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-top: 5vh;
    flex-grow: 1; /* Permet à ce bloc de prendre l'espace restant, poussant les icônes vers le bas */
    position: relative;
    z-index: 1;
}

.logo {
    margin-left: 5%;
}

.logo img {
    max-width: 400px;
    height: auto;
    display: block;
}

.text-content {
    color: white;
    font-size: 2em;
    text-align: right;
    margin-right: 5%;
    max-width: 50%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
}

.text-content h1 {
    margin: 0;
    font-weight: bold;
    line-height: 1;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 10vh; /* Adjust this value for the desired positioning (e.g., 5vh, 80px) */
    position: relative;
    z-index: 1;
}

.icon-link {
    margin: 0 20px;
    display: inline-flex;
    justify-content: center;
    align-items: flex-end; /* Aligns link content (image or span) to the bottom of the link's height */
    height: 50px;
    transition: transform 0.2s ease-in-out;
}

.icon-link img {
    height: 40px; /* Height of the icon images themselves */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Specific styles for the PLUS button */
.plus-button {
    background-color: transparent; /* No background for the button */
    border: none;
    cursor: pointer;
    color: white;
    display: flex; /* Uses flexbox to center the + */
    justify-content: center;
    align-items: flex-end; /* Aligns content (the + sign) to the bottom of the button */
    height: 50px; /* Same height as other icons */
    width: 50px; /* Width for the + button */
    border-radius: 50%; /* For a round look if desired, or leave square */
    text-decoration: none; /* Removes underline from the link */
}

.plus-button .plus-icon { /* Targets the span of the "+" sign directly */
    font-size: 40px; /* Adjust font size to visually match image height */
    line-height: 1; /* Maintains minimal line height to avoid extra space */
    display: block; /* Ensures the span behaves like a block for vertical alignment */
    font-weight: bold; /* Makes the "+" sign bold */
}

.plus-button:hover {
    transform: translateY(-5px);
}

/* Container for the dropdown, for relative positioning */
.dropdown-container {
    position: relative;
    display: inline-flex; /* Allows it to be on the same line as other icons */
    align-items: flex-end; /* Aligns the dropdown container with other icons */
    height: 50px; /* Maintains the same height as .icon-link */
}

/* Dropdown menu styles */
.dropdown-menu {
    position: absolute;
    bottom: calc(100% + 10px); /* Positions 10px above the "+" button */
    right: 0; /* Aligns to the right of the "+" button */
    background-color: rgba(30, 30, 30, 0.9); /* Dark semi-transparent background */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.6);
    border-radius: 8px; /* Rounded corners */
    padding: 10px 0;
    z-index: 10; /* Ensures it is above everything else */
    list-style: none; /* Removes default bullets if it was a list */
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1em;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.dropdown-menu a:hover {
    background-color: rgba(50, 50, 50, 0.9);
}

.icon-link:hover {
    transform: translateY(-5px);
}

/* ========================================= */
/* MEDIA QUERIES POUR MOBILE */
/* ========================================= */

@media (max-width: 768px) { /* Applique ces styles pour les écrans de 768px de large ou moins */
    .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        height: auto;
        min-height: 100vh;
    }

    .overlay-content {
        flex-direction: column;
        width: 95%;
        margin-top: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-grow: 0;
        padding-top: 5vh;
    }

    .logo {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .logo img {
        max-width: 250px;
    }

    .text-content {
        font-size: 1em;
        text-align: center;
        margin-right: 0;
        max-width: 90%;
        margin-bottom: 40px;
    }

    .text-content h1 {
        line-height: 1.2;
    }

    .social-icons {
        flex-direction: row;
        flex-wrap: wrap; /* Permet aux icônes de passer à la ligne si l'écran est trop étroit */
        justify-content: center;
        align-items: center;
        padding-bottom: 20px;
        margin-top: 20px;
        width: 95%;
    }

    .icon-link {
        margin: 0 10px 15px 10px; /* Ajuste l'espacement sur mobile, et ajoute marge basse */
        height: 40px;
    }

    .icon-link img {
        height: 30px;
    }

    /* Ajustement du dropdown pour mobile */
    .dropdown-menu {
        bottom: calc(100% + 5px); /* Un peu moins de distance sur mobile */
        right: 50%; /* Centre le menu par rapport au bouton "+" */
        transform: translateX(50%); /* Déplace de moitié de sa largeur pour un centrage parfait */
        min-width: 140px; /* Largeur minimale ajustée */
        padding: 5px 0;
    }

    .dropdown-menu a {
        padding: 8px 12px; /* Espacement réduit pour les éléments du menu sur mobile */
        font-size: 0.9em;
    }
}

/* Optionnel: Media Query pour les tablettes (entre mobile et desktop si besoin d'un niveau intermédiaire) */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        max-width: 300px;
    }
    .text-content {
        font-size: 1.5em;
    }
    .social-icons {
        padding-bottom: 15vh;
    }
    .dropdown-menu {
        bottom: calc(100% + 15px);
        right: 0;
        transform: none;
    }
} 

/* ========================================= */
/* NOUVEAUX STYLES POUR LE BOUTON DE MUSIQUE */
/* ========================================= */
.music-control-button {
    position: fixed; /* Fixes the button in the viewport */
    bottom: 20px; /* Distance from bottom */
    right: 20px; /* Distance from right */
    background-color: rgba(30, 30, 30, 0.7); /* Dark semi-transparent background */
    border: none;
    border-radius: 50%; /* Round button */
    width: 48px; /* Button width */
    height: 48px; /* Button height */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Slight shadow */
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 100; /* Ensures it is on top of everything */
    color: white; /* Sets the SVG icon color via currentColor */
}

.music-control-button:hover {
    background-color: rgba(50, 50, 50, 0.9);
    transform: translateY(-2px); /* Slight hover effect */
}

.music-control-button .speaker-icon {
    width: 24px; /* SVG icon size */
    height: 24px;
    fill: currentColor; /* The icon inherits the color of its parent */
}


/* ========================================= */
/* MEDIA QUERIES POUR MOBILE */
/* ========================================= */

@media (max-width: 768px) { /* Applique ces styles pour les écrans de 768px de large ou moins */
    /* ... (styles du reste du site pour mobile) ... */

    /* Ajustement du bouton de musique pour mobile */
    .music-control-button {
        bottom: 10px; /* Moins de distance du bas sur mobile */
        right: 10px; /* Moins de distance de la droite sur mobile */
        width: 40px; /* Plus petit sur mobile */
        height: 40px;
    }

    .music-control-button .speaker-icon {
        width: 20px; /* Plus petite icône sur mobile */
        height: 20px;
    }
}