*{
    font-family: Arial, sans-serif;
    font-weight: 1em;
    color: black;
    text-decoration: none;
}

/* Structure de page pour maintenir le footer en bas */
html, body {
    height: 100%;
    margin: 0;
}

/* Pour masquer la scrollbar mais permettre le défilement */
body {
    background-color: #e9e9bb;
    overflow: auto; /* Permet le défilement */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none; /* Cache la scrollbar pour les navigateurs basés sur WebKit */
}

/* Style du Header */
header{
    background-color: #DAB30A;

    margin: auto;
    z-index:10;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    padding: 0px 20px;
    height: 70px;
}

header ul {
    margin-top: 0%;
    display: flex;
    align-items: center;
}

header ul li {
    display: inline;
    margin-right: 30px;
    width: 20%;
        
}

header ul li a {
    padding-right: 2% ;
    margin-right: 40px;
    margin-top: 25px ;
}

header img {
    width: 70px ;
    margin: 0px;
}


header a{
    color: darkslategray;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

header a:hover{

    animation-name: color_a;
    animation-duration: 0.5s;
}

@keyframes color_a{
    from{
        color: black;
    }
    to{
        color: black;
    }
}

#active{
    color: black;
}

/* Styles pour le menu utilisateur et photo de profil */
.user-profile {
    position: relative;
}

.profile-container {
    cursor: pointer;
    position: relative;
}

.profile-photo {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 100;
}

/* AJOUT DE CETTE RÈGLE IMPORTANTE */
.profile-container:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Style du main */
main{
    flex: 1;
    margin-top: 100px;
    margin-left: 15px;
    margin-right: 15px;
    padding-bottom: 20px;
}

main h1 {
    margin-left: 0px;
}

/* Style du footer */
footer{
    margin-top: auto; /* Pousse le footer en bas de la page */
    background-color: #DAB30A;
    font-size: 14px;
    height: auto; /* Permet au footer de s'adapter au contenu */
    min-height: 210px;

    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    padding: 20px;
    line-height: 1.5;
    font-weight:bolder;
}
footer > iframe {
    width: 50%; 
    height: 200px;
    border: none; 
}

#social {
    padding: 20px;
    display: flex;
    gap: 10px;
}

#social li {
    list-style: none;
}

#social img {
    width: 30px; 
    transition: transform 0.3s ease;
}

#social img:hover {
    transform: rotate(15deg); 
}


/* dans ce css, il faut juste adapter le header et le footer pour qu'ils soient responsive */
/* Responsive Design */
@media (max-width: 1024px) {
    header {
        height: 60px;
        padding-left: 0px;
        font-style: solid;
    }

    header ul {
        font-size: 0.6em;
    }

    header ul li {
        width: 100%;
        margin-right: 0px;
    }
    header img{
        width: 60px;
    }

    .profile-photo {
        width: 40px !important;
        height: 40px !important;
    }

    .dropdown-menu {
        top: 50px;
        min-width: 180px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    tr {
        flex-direction: column;
        margin-bottom: 30px;
    }

    td {
        width: 100%;
        padding: 10px;
    }

    img {
        width: 90%;
        margin: 0 auto;
    }
}

/* Responsive pour téléphones (moins de 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        height: 50px;
        padding-left: 0px;
    }

    header ul {
        font-size: 0.5em;
    }

    header ul li {
        width: 100%;
        margin-right: 0px;
    }
    header img{
        width: 50px;
    }

    .profile-photo {
        width: 35px !important;
        height: 35px !important;
    }

    .dropdown-menu {
        top: 45px;
        min-width: 160px;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 0.8em;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    main {
        margin-top: 80px;
    }

    img {
        width: 100%;
    }

    footer {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 10px;
    }

    footer > iframe {
        width: 100%;
        height: 150px;
    }

    #social {
        justify-content: center;
        padding: 10px 0;
    }

    #social img {
        width: 25px;
    }
}