/* Styles de base */
.sexybody {
    margin: 0px;
    background-color: rgb(184, 182, 181);
    font-family: Arial, Helvetica, sans-serif;
}

.contenu {
    background-color: antiquewhite;
    background-image: url(assets/fond\ tbtmusic.jpg);
    color: var(--white);
    background-size: cover;
    margin-right: 100px;
    margin-left: 100px;
    margin-top: 50px;
}

.barnav {
    display: flex; /* Flexbox pour alignement horizontal */
    justify-content: space-between; /* Espacement entre le logo et le menu */
    align-items: center; /* Centrage vertical */
    background-color: #e9894d; /* Couleur de fond */
    padding: 10px 20px; /* Espacement interne pour une belle apparence */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour un effet pro */
}

.imglogo {
    display: flex; /* Assurez-vous que le conteneur reste flexible */
    align-items: center; /* Centrage vertical du logo */
}

.logo {
    width: 60px; /* Taille personnalisée pour le logo */
    height: auto; /* Maintenir le ratio d’aspect */
}

.menu {
    display: flex; /* Flexbox pour aligner les liens horizontalement */
    flex-direction: row; /* Menu horizontal */
    align-items: center; /* Centrer verticalement */
    gap: 20px; /* Espacement entre les liens */
    margin: 0; /* Enlever les marges par défaut */
    padding: 0;
    list-style: none; /* Pas de puces pour les listes */
}

.nav a {
    text-decoration: none; /* Pas de soulignement pour les liens */
    color: white; /* Couleur du texte */
    font-size: 16px; /* Taille de la police */
    font-weight: bold; /* Texte en gras */
    transition: color 0.3s, transform 0.3s; /* Effet lors du survol */
}

.nav a:hover {
    color: #ffcc99; /* Couleur lors du survol */
    transform: scale(1.1); /* Agrandissement lors du survol */
}


/* Conteneur principal */
.container {
    margin: 1px 50px 10px 50px;
    padding: 20px;
}

/* Titre */
.title1 {
    display: flex;
    justify-content: center;
    padding: 50px;
    background-image: url(assets/tBt\ music.png);
    background-size: contain;
    box-shadow: 0.5px 0.5px 1px 1px;
    border-radius: 5px;
}

.title1 :hover {
    box-shadow: 0.5px 0.5px 1px 1px;
    background-color: rgb(161, 161, 155);
}

.logo1{
    display: flex;
    justify-content: center;
    justify-items: center;
    width: 150px;
    height: 150px;
}

/* Content */
.content {
    margin-left: 25px;
    margin-right: 25px;
    padding: 0px;
    background-color: rgba(240, 248, 255, 0.644);
    border-radius: 5px;
}

.para1 {
    padding: 50px;
    margin-top: 50px;
    margin-bottom: 100px;
}

h3{
    margin: 10px;
    padding: 10px;
}

.single {
    display: grid;
    grid-template-columns: 350px 350px 350px;
    justify-content: center;
    justify-items: center;
    gap: 20px;
    
}

.single1,
.single2,
.single3 {
    display: flex;
    margin: 50px;
    width: 350px;
    height: 350px;
}

/* Lecture audio */
.singleplay {
    display: block;
    justify-items: center;
}

.iconplay {
    position: absolute;
    z-index: 10;
    width: 55px;
    height: 55px;
    margin-top: 150px;
    margin-left: 150px;
    cursor: pointer;
    opacity: 0.5; /* 50% de transparence */
}

.singleplay :hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.alert {
    display: flex;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: #796d66;
}

.mainFooter {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

/* Styles pour la page web lecteur audio */
.audio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Largeur maximale du conteneur */
    margin: 20px auto; /* Centrer le conteneur */
}

.audio-container img {
    display: flex;
    justify-content: center;
    max-width: 40%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.audio-container audio {
    display: flex;
    justify-content: center;
    width: 40%;
    margin-left: 20px;
}

/* Styles responsive pour les écrans moyens et petits */

/* Pour les tablettes et écrans plus petits (max-width: 768px) */
@media screen and (max-width: 768px) {
    .contenu {
        display: block;
        justify-content: center;
        justify-items: center;
        margin-left: 0px;
        margin-right: 0px;
    }

    .content {
        
        margin-left: 0px;
        margin-right: 0px;
    }

    .single1, .single2, .single3 {
        width: 100%; /* Les éléments prennent toute la largeur disponible */
        margin: 20px;
    }

    .audio-container {
        flex-direction: column; /* Empiler les éléments audio pour un meilleur ajustement */
        align-items: center;
        justify-content: center;
        justify-items: center;
    }

    .audio-container img {
        max-width: 60%;
    }

    .audio-container audio {
        width: 100%; /* L'audio prend toute la largeur disponible */
        margin-left: 0;
    }

    .para1 {
        padding: 20px;
        margin-top: 0px;
        margin-bottom: 10px;
        
    }

    .container{
        margin: 0px;
        padding: 0px;
    }

    .title1{
        margin-top: 0px
    }

    .single{
        display: block;
       
    }
}

/* Pour les smartphones (max-width: 480px) */
@media screen and (max-width: 480px) {
    .contenu {
        display: block;
        justify-content: center;
        justify-items: center;
        margin-left: 0px;
        margin-right: 0px;
    }

    .single1, .single2, .single3 {
        width: 100%; /* Pleine largeur pour les éléments */
        margin: 15px 0;
    }

    .audio-container {
        display: flex;
        justify-items: center;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        margin-top: 40px;
    }

    .audio-container img {
        max-width: 80%;
        margin-top:10px;
    }

    .audio-container audio {
        width: 100%;
        margin-left: 0;
    }


    .title1{
        margin-top: 0px
    }
    
    .content {
        
        margin-left: 0px;
        margin-right: 0px;
    }
}

/* Styles pour la barre de navigation */
.barnav {
    display: block;
    justify-items: right;
    background-color: #796d66;
    position: relative;
    padding: 10px;
}

.menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.nav {
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 10px;
    list-style: none;
    background-color: rgb(235, 153, 76);
    border-radius: 25px;
}

.nav a {
    text-decoration: none;
    color: white;
}

.nav:hover {
    background-color: rgb(94, 94, 86);
    padding: 0px;
    border-radius: 25px;
    box-shadow: 10px 10px 10px;
}

/* Menu burger pour les petits écrans */
.burger-menu {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    z-index: 20;
}

.burger-menu div {
    width: 100%;
    height: 4px;
    background-color: #e9894d;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Menu burger activé - animations */
.burger-menu.active div:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 10px;
}

.burger-menu.active div:nth-child(2) {
    opacity: 0;
}

.burger-menu.active div:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 10px;
}

/* Menu déroulant pour les petits écrans */
.menu-responsive {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #e9894d;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    list-style: none;
}

.menu-responsive li {
    padding: 10px;
    text-align: center;
}

.menu-responsive li a {
    color: white;
}

/* Afficher le menu lorsque le burger est activé */
.burger-menu.active + .menu-responsive {
    display: block;
}

/* Styles responsive pour les petits écrans (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Masquer le menu par défaut sur les petits écrans */
    .menu {
        display: none;
    }

    .burger-menu {
        display: block;
    }
}


