
:root {
    --section-color:#004570;
}

/* Paramètres pour le mode nuit */
[data-theme="light"] {
    --section-color:#ffffff;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 20px 10px ;
    border: 4px solid #3f4f6e;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.responsive-image {
    padding-top: 15px;
    padding-bottom: 15px;
    max-width: 80%;
}

.image-container {
    text-align: center; /* Centre l'image horizontalement */
    padding: 20px; /* Ajoute du padding autour de l'image */
}


.project-card {
    max-width: 800px;
    margin: 20px auto;
    background-color: var(--section-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.1);
}


.video-container .responsive-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.creation-date {
    font-size: 0.75em;
    color: #777777;
    margin-top: 10px;
    display: block;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.carousel img {
    width: 100%;
    display: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel img.active {
    display: block;
}

.carousel .prev, .carousel .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.carousel .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel .prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.carousel img {
    width: 100%; /* Assurez-vous que les images remplissent la largeur du conteneur */
    height: auto; /* Garantit que les images conservent leur proportion */
}

.container {
    display: flex;   
    justify-content: flex-start;
    align-items: center;
}

.badge-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.attribution {
    position: relative;
    bottom: 4px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.236);
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    max-width: calc(100% - 10px); /* Ensure it stays within the body dimensions */
    box-sizing: border-box; /* Include padding in the element's total width */
}

.button {
    background-color: #93a9d5 ;
}

/* menu déroulant */
.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position:absolute;
    background-color: rgba(0, 0, 0, 0.6);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10%;
    transform: translateX(-30px);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20%;
    padding: 5px 0px;
}

/* Styles pour la bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    background-color: rgba(51, 51, 51, 0.9); /* Couleur avec transparence */
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner p {
    margin: 0;      /* reduit un peu la marge */
}

.cookie-banner a {
    color: rgb(149, 149, 246);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner a:focus {
    color: #0056b3;
}

.cookie-banner button {
    background-color: rgb(77, 77, 203);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-left: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 20px; /* Coins arrondis */
}

.cookie-banner button:hover,
.cookie-banner button:focus {
    background-color: rgb(77, 77, 203);
}

/* Styles pour la personnalisation des cookies */
.cookie-customize {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(51, 51, 51, 0.9); /* Couleur avec transparence */
    color: #fff;
    padding: 20px;
    border: 1px solid #9f9f9f;
    z-index: 1001;
    text-align: center;
    border-radius: 20px; /* Coins arrondis */
}

.cookie-customize p {
    margin-bottom: 20px;
}

.cookie-customize label {
    display: block;
    margin: 10px 0;
}

.cookie-customize button {
    background-color: rgb(77, 77, 203);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px; /* Coins arrondis */
}

.cookie-customize button:hover,
.cookie-customize button:focus {
    background-color: rgb(77, 77, 203);
}


@media only screen and (max-width: 600px) {
    .profile-picture {
        width: 100px;
        height: 100px;
    }

    .responsive-image {
        max-width: 100%;
    }

    .project-card {
        padding: 10px;
    }

    .attribution {
        font-size: 10px;
    }

    .carousel .prev, .carousel .next {
        padding: 10px;
        font-size: 14px;
    }

    .cookie-banner {
        font-size: 14px; 
        display: inline-block;
        padding: 20px;
    }

    .cookie-banner button {
        margin: 5px;
    }

}
