

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}




/* Fenêtre modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);

    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    display:flex;
    opacity: 1;

}

.modal-container {
    background: rgba(224, 141,24,.85);
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 25px 50px rgba(224, 141,24, 0.5);
    overflow: hidden;
    position: relative;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(3px);
}

/* En-tête de la modale */
.modal-header {
    padding: 20px;
    background: rgba(224, 141,24,.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(224, 141,24, 0.1);
    flex-shrink: 0;
}

.modal-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Conteneur vidéo responsive - CRITIQUE */
.video-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 200px;
    overflow: hidden;
    flex-flow:column nowrap;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La vidéo elle-même - S'ADApte toujours à l'écran */
.responsive-video {
    /* Toujours centrée et limitée à 96% en portrait */
    max-width: 96%;
    max-height: 96%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Zone des boutons sous la vidéo */
.video-footer {
    height:36px;
    max-height:36px;
    width:100%;
    background-color:transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position:relative;
}

#closevideo{
    margin:0;
    font-family: 'Montserrat', sans-serif;
    font-size:14px;
    font-weight:600;
    display:flex;
    flex-flow:row nowrap;
    align-items: center;
    justify-content: center;
    width:110px;
    height:28px;
    color:var(--color-white);
    background-color:var(--color-orange);
    border-radius:23px;

    cursor:pointer;
}

#closevideo img{
    width:16px;
    height:16px;
    margin-right:8px;
}

#closevideo span{
    line-height:18px;
}


/* Media Queries pour le responsive */
@media (max-width: 768px) {

    .modal-container {
	border-radius: 12px;
	max-height: 90vh;
    }

    .modal-header {
	padding: 15px;
    }

    .modal-title {
	font-size: 1.2rem;
    }

    .video-container {
	padding: 10px;
    }



}

@media (max-width: 480px) {

    .modal-container {
	max-height: 85vh;
	border-radius: 8px;
    }

    .modal-header {
	padding: 12px;
    }

    .modal-title {
	font-size: 1rem;
    }

}

/* Styles spécifiques pour l'orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-container {
	max-height: 98vh;
	flex-direction: row;
	max-width: 95vw;
    }

    .modal-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
    }

    .video-container {
	width: 70%;
	height: 100%;
	padding: 60px 20px 80px 20px;
    }

    .responsive-video {
	max-width: 100%;
	max-height: 100%;
    }

}

/* Styles spécifiques pour l'orientation portrait */
@media (orientation: portrait) {
    .responsive-video {
	/* En portrait, la vidéo est limitée à 96% de la largeur OU hauteur */
	max-width: 96%;
	max-height: 96%;
    }

    .modal-container {
	max-height: 90vh;
    }
}

/* Pour les très petits écrans en portrait */
@media (max-height: 600px) and (orientation: portrait) {
    .modal-container {
	max-height: 95vh;
    }

    .video-container {
	padding: 10px;
    }

    .responsive-video {
	max-width: 98%;
	max-height: 98%;
    }

    .video-footer {
	padding: 10px 12px;
    }
}

/* Pour les tablettes en portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .responsive-video {
	max-width: 90%;
	max-height: 90%;
    }
}