/**
 * Cookie Consent Banner - Tortuga Security
 * Couleur alignée avec la charte (Kelly Green #4cbb17)
 */
.cookie-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--wp--preset--color--senary, #2f2f2f);
	color: #ffffff;
	padding: 1rem;
	z-index: 999999;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
	border-top: 2px solid var(--wp--preset--color--primary, #4cbb17);
	animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}
.cookie-consent-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.cookie-consent-text {
	flex: 1;
	font-size: 0.9rem;
	line-height: 1.5;
}
.cookie-consent-text a {
	color: var(--wp--preset--color--primary, #4cbb17);
	text-decoration: underline;
}
.cookie-consent-text a:hover {
	text-decoration: none;
}
.cookie-consent-buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.cookie-btn {
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.3s ease;
}
.cookie-btn-accept {
	background: var(--wp--preset--color--primary, #4cbb17);
	color: white;
}
.cookie-btn-accept:hover {
	background: var(--wp--preset--color--primary-dark, #2d7a0e);
	transform: translateY(-2px);
}
.cookie-btn-necessary {
	background: transparent;
	color: #ffffff;
	border: 1px solid var(--wp--preset--color--quaternary, #e7e7e7);
}
.cookie-btn-necessary:hover {
	background: rgba(255, 255, 255, 0.1);
}
.cookie-btn-preferences {
	background: transparent;
	color: #ffffff;
	text-decoration: underline;
}
.cookie-btn-preferences:hover {
	color: var(--wp--preset--color--primary, #4cbb17);
}
.cookie-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.2s ease;
}
.cookie-modal-content {
	background: var(--wp--preset--color--background, #ffffff);
	color: var(--wp--preset--color--base, #333333);
	max-width: 500px;
	width: 90%;
	border-radius: 10px;
	padding: 1.5rem;
	position: relative;
	max-height: 80vh;
	overflow-y: auto;
}
.cookie-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	cursor: pointer;
	color: #999;
	background: none;
	border: none;
}
.cookie-modal-close:hover {
	color: var(--wp--preset--color--primary, #4cbb17);
}
.cookie-preference {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}
.cookie-preference label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	cursor: pointer;
}
.cookie-preference input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}
.cookie-preference p {
	margin: 0.5rem 0 0 1.8rem;
	font-size: 0.8rem;
	color: #666;
}
.cookie-modal-buttons {
	margin-top: 1.5rem;
	text-align: center;
}
.cookie-btn-save {
	background: var(--wp--preset--color--primary, #4cbb17);
	color: white;
	width: 100%;
}
.cookie-btn-save:hover {
	background: var(--wp--preset--color--primary-dark, #2d7a0e);
	transform: translateY(-2px);
}
.gdpr-footer-links {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.8rem;
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.gdpr-footer-links a {
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}
.gdpr-footer-links a:hover {
	opacity: 1;
	text-decoration: underline;
}
@media (max-width: 768px) {
	.cookie-consent-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-consent-buttons {
		justify-content: center;
	}
	.cookie-btn {
		width: 100%;
	}
	.gdpr-footer-links {
		flex-direction: column;
		gap: 0.5rem;
	}
}