/*
 * Bandeau de cookies (extension Cookie Notice, mode simple) aux couleurs du site : panneau bleu
 * nuit flottant à 16 px des bords, arrondi à 8 px, « Accepter » et « Refuser » strictement
 * identiques (aucun choix mis en avant). La croix de fermeture, qui valait acceptation, est
 * retirée côté serveur (functions.php). Les couleurs sont déclarées ici : l'extension pose
 * les siennes en attribut style, que le réglage « classe CSS » des boutons neutralise.
 */
#cookie-notice.cn-position-bottom {
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	min-width: 0;
	width: auto;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 8px;
	background-color: #000033 !important;
	box-shadow: 0 12px 32px rgba(0, 0, 30, .35);
	color: #fff;
	font-family: var(--wp--preset--font-family--titillium, "Titillium Web", system-ui, sans-serif);
	text-align: left;
}
/* Fermé ou jamais affiché : aucune boîte vide (seul le conteneur interne est masqué par l'extension). */
#cookie-notice.cookie-notice-hidden.cookie-revoke-hidden { display: none; }
#cookie-notice .cookie-revoke-container { display: none !important; }

#cookie-notice .cookie-notice-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	padding: 20px 24px;
	color: #fff !important;
	text-align: left;
}
#cookie-notice.cookie-notice-hidden .cookie-notice-container { display: none; }
#cookie-notice #cn-notice-text {
	display: block;
	flex: 1 1 420px;
	min-width: 0;
	margin: 0;
	color: #fff;
	font-size: 15.5px;
	line-height: 1.55;
	letter-spacing: 0;
}
#cookie-notice #cn-notice-text a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--orange, #FF9900);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#cookie-notice #cn-notice-text a:hover { color: var(--wp--preset--color--orange, #FF9900); }
#cookie-notice #cn-notice-buttons {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
}
#cookie-notice .cn-button.cp-cn-btn {
	min-width: 132px;
	margin: 0;
	padding: 13px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--orange, #FF9900);
	color: var(--wp--preset--color--navy, #000033);
	font: 700 15.5px/1.2 var(--wp--preset--font-family--titillium, "Titillium Web", system-ui, sans-serif);
	letter-spacing: 0;
	text-align: center;
	text-shadow: none;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
#cookie-notice .cn-button.cp-cn-btn:hover { background: #fff; color: var(--wp--preset--color--navy, #000033); }
#cookie-notice .cn-button.cp-cn-btn:focus-visible,
#cookie-notice #cn-notice-text a:focus-visible { outline: 2px solid var(--wp--preset--color--orange, #FF9900); outline-offset: 3px; }
/* Le bouton orange se détache du bleu nuit : le contour de focus passe en blanc. */
#cookie-notice .cn-button.cp-cn-btn:focus-visible { outline-color: #fff; }

@media (max-width: 600px) {
	#cookie-notice.cn-position-bottom { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
	#cookie-notice .cookie-notice-container { gap: 16px; padding: 18px; }
	#cookie-notice #cn-notice-text { flex-basis: 100%; font-size: 15px; }
	#cookie-notice #cn-notice-buttons { width: 100%; }
	#cookie-notice .cn-button.cp-cn-btn { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	#cookie-notice .cn-button.cp-cn-btn { transition: none; }
}

/* Lien « Gérer les cookies » du cartouche du pied : un bouton qui rouvre le bandeau. */
.cp-cell--legal .cp-cookies-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--cp-f-text-2, #C9CCE0);
	font: inherit;
	cursor: pointer;
}
.cp-cell--legal .cp-cookies-link:hover { color: var(--cp-f-orange, #FF9900); }
.cp-cell--legal .cp-cookies-link:focus-visible { outline: 2px solid var(--wp--preset--color--orange, #FF9900); outline-offset: 3px; }
