/* Reset de base */
body {
    margin: 0;
    padding: 0;
    background-color: white;
    overflow-x: hidden;
}

/* Menu */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Quantico', sans-serif;
}

.logo {
    width: 200px;
    margin-top: 50px;
}

/* Section principale */
.content {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 80px;
}

.title {
    font-size: 40x;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #000000;
}

.services {
    display: flex;
    flex-wrap: wrap;        /* permet aux mots de passer à la ligne automatiquement */
    gap: 15px 15px;         /* espace vertical et horizontal entre les mots */
    justify-content: center; /* centre les mots sur la ligne */
    margin: 20px 0;
    margin-top: 30px;
}

.services span {
    background-color: #ff6262;
    color: white;  /* style type “badge” */
    padding: 17px 17px;
    border-radius: 5px;
    font-size: 17px;
    text-align: center;
    /* Animation pour le hover */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet au survol */
.services span:hover {
    transform: scale(1.1);       /* agrandit légèrement */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* optionnel : ombre pour plus de relief */
}



/* Conteneur principal */
.content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image */
.image-container {
    flex: 1;
}

.image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Texte */
.text-container {
    font-family: "Quicksand", monospace;
    font-size: 20px;
    text-align: left;
    max-width: 500px;
    line-height: 1.6;
}

/* Section vidéo */
.video-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.video-section video {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    object-position: center;
    background-color: white;
    pointer-events: none;

}

video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Section à deux colonnes */
.three-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.section-subtitle {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 30px;
    text-align: center;
}

.columns-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.column {
    padding: 20px;
    text-align: center;
    background-color: transparent;
    border: none;
}

.column h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.column p {
    font-size: 16px;
    color: #555;
}

/* Section des liens YouTube */
.video-links {
    text-align: center;
    margin: 60px 0;
}

.video-links .section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Container des vidéos */
.video-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card pour chaque vidéo */
.video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    background-color: #fff;
}


.video-title {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #000; /* ou autre couleur selon ton fond */
    z-index: 2;
}

.video-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.video-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* force le bon format vidéo */
    object-fit: cover;    /* remplit la zone sans bandes noires */
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
    display: block;
}



.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: auto;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* Container des vidéos */
.video-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-container-modal {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0 auto;
}

.video-container-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container {
        padding: 0 15px; /* espace sur les côtés */
        grid-template-columns: 1fr; /* une seule colonne */
        box-sizing: border-box;
    }

    .close-btn {
        font-size: 24px;
        top: 5px;
        right: 5px;
    }

    .modal-content {
        width: 100%;
        max-width: 90%;
    }

    .video-container-modal {
        padding-bottom: 56.25%;
    }

    .video-container-modal iframe {
        max-width: 100%;
        max-height: 100%;
    }

    .filter-btn {
        flex: 1 1 45%;
        margin-bottom: 10px;
    }
        .video-section video {
        height: auto;
        max-height: 50vh;
        object-position: top;
    }
    .video-container {
        grid-template-columns: 1fr;
        margin-left: 20px;
        margin-right: 20px;
    }

    .video-card {
        margin-left: 0;
        margin-right: 0;
    }

    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .text-container {
        text-align: center;
        max-width: 90%;
        font-size: 16px;
    }

    .title {
        font-size : 15px;
        line-height: 1.4;         /* ajustement si besoin */
        text-align: center;       /* centrer le texte */
        max-width: 8ch;           /* limite la largeur pour ~2 mots par ligne */
        margin: 0 auto;           /* centrer le bloc */
        word-wrap: break-word;    /* couper si nécessaire */
    }

    .services {
        display: grid;
        grid-template-columns: repeat(2, auto); /* chaque bulle garde sa taille naturelle */
        justify-content: center;                /* centre les 2 bulles sur la ligne */
        gap: 10px 15px;                         /* espace vertical et horizontal */
        margin-top: 30px;
    }

    .services span {
        background-color: #ff6262;
        color: white;
        padding: 10px 20px;   /* réduit légèrement l’espace intérieur */
        border-radius: 5px;
        font-size: 15px;    /* réduit la taille du texte */
        text-align: center;
        display: inline-block; /* conserve le design “bulle” */
    }
}

.filters {
    text-align: center;
    margin: 40px 0 30px 0;
  }
  
  .filter-btn {
    padding: 50px 100px;
    margin: 0 10px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .filter-btn.active,
  .filter-btn:hover {
    background-color: black;
    color: white;
  }

 .gallery {
    margin-bottom: 50px;
}