/* ==========================================================================
   Habillage tarteaucitron.js aux couleurs Saphir Industrie
   Bleu principal : #4e8fc7 · Bleu nuit : #1d2b3a
   Bandeau foncé, panneau de gestion clair.
   Sélecteurs préfixés « html body #tarteaucitronRoot » pour passer
   devant tarteaucitron.css et les styles de The7.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Bandeau (première visite) — fond bleu nuit
   ----------------------------------------------------------------------- */
html body #tarteaucitronRoot #tarteaucitronAlertBig {
	background: #1d2b3a !important;
	color: #fff !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	padding: 20px 30px !important;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}

html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert * {
	color: #fff !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig button {
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 9px 18px !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	cursor: pointer;
}

/* Accepter / Personnaliser */
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2,
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize {
	background: #4e8fc7 !important;
	color: #fff !important;
	border: 1px solid #4e8fc7 !important;
}

/* Refuser / Personnaliser */
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2,
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronCloseAlert {
	background: transparent !important;
	color: #fff !important;
	border: 1px solid #fff !important;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl {
	background: transparent !important;
	color: #fff !important;
	text-decoration: underline !important;
	border: 0 !important;
}

/* --------------------------------------------------------------------------
   2. Panneau de gestion — version claire
   ----------------------------------------------------------------------- */

/* Titre « Panneau de gestion des cookies » */
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronH1 {
	color: #1d2b3a !important;
	font-size: 26px !important;
	font-weight: 300 !important;
	line-height: 1.3 !important;
	margin: 10px 0 15px !important;
}

/* Texte d'information */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronInfo,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronInfo * {
	background: transparent !important;
	border: 0 !important;
	color: #4a5562 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
}

/* Lien « Politique de confidentialité » */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronPrivacyUrlDialog {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #4e8fc7 !important;
	font-size: 14px !important;
	text-decoration: underline !important;
	padding: 0 !important;
	margin: 10px 0 0 !important;
}

/* Ligne « Préférences pour tous les services » : bandeau gris clair */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine {
	background: #f3f5f8 !important;
	border: 0 !important;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronH2,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronName {
	color: #1d2b3a !important;
	font-size: 17px !important;
	font-weight: 600 !important;
}

/* Bloc « cookies nécessaires » : moins appuyé */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices_mandatory .tarteaucitronH3 {
	color: #4a5562 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
}

/* Titres et descriptions des catégories */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronH3 {
	color: #1d2b3a !important;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronDetails,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronTitle button {
	color: #4a5562 !important;
}

/* --------------------------------------------------------------------------
   3. Boutons du panneau
   ----------------------------------------------------------------------- */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronAllow,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronDeny,
html body #tarteaucitronRoot button#tarteaucitronSaveButton {
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 9px 18px !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	text-shadow: none !important;
	opacity: 1 !important;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

/* Par défaut : neutres */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronAllow,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronDeny {
	background: #fff !important;
	color: #1d2b3a !important;
	border: 1px solid #c5ccd4 !important;
}

/* « Tout accepter » et « Enregistrer » : toujours bleus */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed,
html body #tarteaucitronRoot button#tarteaucitronSaveButton {
	background: #4e8fc7 !important;
	color: #fff !important;
	border: 1px solid #4e8fc7 !important;
}

/* « Tout refuser » : contour bleu nuit */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied {
	background: #fff !important;
	color: #1d2b3a !important;
	border: 1px solid #1d2b3a !important;
}

/* Choix actif par catégorie */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronIsAllowed .tarteaucitronAllow {
	background: #4e8fc7 !important;
	color: #fff !important;
	border-color: #4e8fc7 !important;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronIsDenied .tarteaucitronDeny,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllDenied.tarteaucitronIsSelected {
	background: #5c6773 !important;
	color: #fff !important;
	border-color: #5c6773 !important;
}

/* Survol */
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronAllow:hover,
html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices .tarteaucitronDeny:hover {
	border-color: #4e8fc7 !important;
}

html body #tarteaucitronRoot #tarteaucitron #tarteaucitronServices #tarteaucitronAllAllowed:hover,
html body #tarteaucitronRoot button#tarteaucitronSaveButton:hover {
	background: #3c78ad !important;
	border-color: #3c78ad !important;
}

/* Cases ☐ / ☑ masquées : l'état est indiqué par la couleur du bouton */
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronCheck,
html body #tarteaucitronRoot #tarteaucitron .tarteaucitronCross {
	display: none !important;
}

/* Bouton « Fermer » */
html body #tarteaucitronRoot #tarteaucitronClosePanel {
	background: #1d2b3a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px 3px 0 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 6px 14px !important;
}

/* Icône de rappel (bas gauche) */
html body #tarteaucitronIcon #tarteaucitronManager {
	background: #4e8fc7 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2) !important;
}

/* --------------------------------------------------------------------------
   4. Vidéos YouTube dans l'élément Vidéo WPBakery
      (conserve le ratio 16:9 du conteneur .wpb_video_wrapper)
   ----------------------------------------------------------------------- */
.wpb_video_wrapper .youtube_player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

.wpb_video_wrapper .youtube_player iframe {
	width: 100% !important;
	height: 100% !important;
}

/* Encart « Activer la vidéo » avant consentement */
.youtube_player .tac_activate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #1d2b3a !important;
	color: #fff !important;
	text-align: center;
	padding: 20px;
}

.youtube_player .tac_activate .tac_float,
.youtube_player .tac_activate * {
	color: #fff !important;
}

.youtube_player .tac_activate .tarteaucitronAllow {
	background: #4e8fc7 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px !important;
	padding: 8px 18px !important;
	margin-top: 10px;
}
