/**
 * ========================================
 * GESTION DES COOKIES RGPD - STYLES COMPLETS
 * ========================================
 */

/* ========================================
   STYLES POUR LA MODALE DE CONSENTEMENT
   ======================================== */

.cookie-panel {
    max-width: 600px;
    margin: 0 auto;
}

.cookie-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.cookie-item:last-child {
    border-bottom: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
}

.cookie-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.save-message {
    display: none;
}

/* Style pour la modale */
.w3-modal {
    padding-top: 40px;
}


/* ========================================
   STYLES POUR LE PLACEHOLDER YOUTUBE
   ======================================== */

.youtube-consent-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    /*background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);*/
	background: linear-gradient(135deg, #A1B5C0 0%, #F0F0F0 100%);
    /*cursor: pointer;*/
    border-radius: 8px;
    transition: opacity 0.3s;
    min-height: 0; /* Permet au padding-bottom de fonctionner */
}

.youtube-consent-placeholder:hover {
    opacity: 0.9;
}

.youtube-consent-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    /*color: white;*/
	color: #666;
    padding: 20px;
    max-width: 90%;
    width: 100%;
}

.youtube-consent-icon {
    width: 100px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.youtube-consent-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.youtube-consent-button {
    background: white;
    color: #FF0000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
    display: inline-block;
}

.youtube-consent-button:hover {
    transform: scale(1.05);
}

.youtube-consent-link {
    color: white;
    text-decoration: underline;
    font-size: 13px;
    display: block;
    margin-top: 15px;
}

/* Garde la structure originale */
.video-wrapper iframe,
.video-container iframe {
    border-radius: 8px;
}


/* ========================================
   RESPONSIVE - PETITS ÉCRANS
   ======================================== */


@media (max-width: 660px) {
	
	.video-container {
		padding:0px;
		margin:0px;
		min-height:450px;
	}
	.youtube-consent-placeholder {
		min-height:450px;
	}

    .youtube-consent-content {
        padding: 15px 10px;
		max-width: 95%;
    }
    
    .youtube-consent-icon {
        width: 80px;
        height: 55px;
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .youtube-consent-content h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .youtube-consent-content p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    .youtube-consent-button {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .youtube-consent-link {
        font-size: 12px;
        margin-top: 12px;
    }
}