/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('../images/bgbody.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* HEADER AVEC VIDÉO */
header {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
}

header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 10px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
}

.logo {
    width: 100px;
}

.youtube-icon {
    width: 80px;
    transition: transform 0.3s ease;
}

.youtube-icon:hover {
    transform: scale(1.1);
}

/* MESSAGE DÉFILANT */
.marquee {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    text-align: center;
    font-size: 1.2rem;
}

.marquee span {
    display: inline-block;
    animation: scroll 10s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* CONTENU PRINCIPAL */
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* STYLE DU MENU PRINCIPAL */
.menu {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    text-align: center;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.menu li {
    position: relative;
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.menu a:hover {
    background: #ff6600;
    border-radius: 5px;
}

/* STYLE DU SOUS-MENU */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    display: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.submenu li {
    margin: 0;
}

.submenu a {
    padding: 10px;
    width: 100%;
    display: block;
}

/* Effet d'affichage */
.dropdown:hover .submenu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animation de fondu */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


article {
    text-align: center;
}

article h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.media {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.media img, .media video {
    max-width: 100%;
    border-radius: 10px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 20px;
}
/* BOUTONS DE PARTAGE */
.share-buttons {
    text-align: center;
    margin: 20px 0;
}

.share-buttons p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.share-buttons a img {
    width: 40px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.share-buttons a img:hover {
    transform: scale(1.2);
}

/* COMMENTAIRES */
.comments {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.comments h2 {
    margin-bottom: 10px;
}

#comment-list {
    margin-bottom: 15px;
    text-align: left;
}

#comment-input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    resize: none;
}

button {
    background: #ff6600;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #cc5500;
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacement entre image et vidéo */
    width: 100%;
    max-width: 800px; /* Largeur max pour rester homogène */
    margin: 20px auto;
}

.media-item {
    width: 100%;
    max-width: 230px; /* Ajuste selon ton design */
}

.media-item img,
.media-item video {
    width: 100%; /* Assure la même largeur pour l’image et la vidéo */
    height: auto; /* Préserve les proportions */
    display: block;
    border-radius: 10px;
}

.media-item video {
    object-fit: cover; /* Remplit l’espace sans distorsion */
}
