/**
 * Bandeau cookies Barrere Academie - feuille de style.
 *
 * Reprise des styles d'origine du site (Cookies CK 3.5 : front + personnalisation), pour que le
 * bandeau et le panneau d'options soient identiques a ceux de la version Joomla 3.
 * Aucune dependance externe : l'icone est servie par ce plugin.
 */

/* ---- Bandeau bas de page ---- */
#cookiesck {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000000;
	min-height: 30px;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.5);
	text-align: center;
	font-size: 14px;
	line-height: 14px;
}

#cookiesck > div {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-direction: column;
}

#cookiesck_text {
	padding: 10px 0;
	display: inline-block;
}

#cookiesck_buttons {
	float: right;
}

.cookiesck_button,
#cookiesck_accept,
#cookiesck_decline,
#cookiesck_settings,
#cookiesck_readmore {
	float: left;
	padding: 10px;
	margin: 5px;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

#cookiesck_readmore {
	float: right;
}

#cookiesck_accept {
	background: #1176a6;
	border: 2px solid #1176a6;
	color: #f5f5f5;
}

#cookiesck_accept:hover {
	background: transparent;
	border: 2px solid darkturquoise;
	color: darkturquoise;
}

#cookiesck_decline {
	background: #000;
	border: 2px solid #000;
	color: #f5f5f5;
}

#cookiesck_decline:hover {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
}

#cookiesck_settings {
	background: #fff;
	border: 2px solid #fff;
	color: #000;
}

#cookiesck_settings:hover {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
}

/* ---- Icone de reprise du choix (bas a gauche) ---- */
#cookiesck_options {
	display: none;
	width: 30px;
	height: 30px;
	border-radius: 15px;
	box-sizing: border-box;
	position: fixed;
	bottom: 0;
	left: 0;
	margin: 10px;
	border: 1px solid #ccc;
	cursor: pointer;
	background: #fff url(../images/cookies-icon.svg) center center no-repeat;
	background-size: 80% auto;
	z-index: 1000000;
}

#cookiesck_options > .inner {
	display: none;
	width: max-content;
	margin-top: -40px;
	background: rgba(0, 0, 0, 0.7);
	position: absolute;
	font-size: 14px;
	color: #fff;
	padding: 4px 7px;
	border-radius: 3px;
}

#cookiesck_options:hover > .inner {
	display: block;
}


/* ---- Panneau « Options des cookies » ---- */
#cookiesck_interface {
	display: none;
	position: fixed;
	z-index: 1000000;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: #fff;
	border: 2px solid #ccc;
	margin: 10px;
	box-sizing: border-box;
}

#cookiesck_interface * {
	box-sizing: border-box;
}

.cookiesck-main {
	max-height: 100%;
	overflow: auto;
}

.cookiesck-main-title {
	font-size: 28px;
	text-align: center;
	padding: 20px;
}

.cookiesck-main-desc {
	padding: 10px 40px;
	font-size: 14px;
}

.cookiesck-category {
	padding: 20px;
	color: #333;
	border-top: 1px solid #eee;
}

.cookiesck-category-name {
	font-size: 24px;
	color: #111;
	line-height: 24px;
}

.cookiesck-category-desc {
	margin: 3px 0;
	color: #666;
}

.bc-legal,
.bc-cookies {
	font-size: 13px;
	color: #888;
	font-style: italic;
}

.bc-cat-boutons {
	display: flex;
	flex-wrap: wrap;
	margin: 5px 0;
}

.cookiesck-platform {
	padding: 10px;
	margin: 15px 0;
	color: #111;
	background: #f2f2f2;
	border-radius: 4px;
	display: flex;
	align-items: center;
}

.cookiesck-platform-name {
	font-size: 18px;
	color: #111;
	line-height: 24px;
}

.cookiesck-platform-desc {
	margin: 0 10px;
	color: #666;
	font-style: italic;
}

.cookiesck-main .cookiesck_button,
.cookiesck-main-buttons .cookiesck-button {
	background: #e5e5e5;
	border: 2px solid #ddd;
	color: #666;
	padding: 10px 20px;
	margin: 2px 5px;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cookiesck-main .cookiesck-accept:hover,
.cookiesck-main .cookiesck-accept.cookiesck-active {
	background: none;
	border: 2px solid green;
	color: green;
}

.cookiesck-main .cookiesck-decline:hover,
.cookiesck-main .cookiesck-decline.cookiesck-active {
	background: none;
	border: 2px solid orange;
	color: orange;
}

#cookiesck_readmore:hover {
	border: 2px solid #666;
	color: #222;
}

.cookiesck-main-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	padding: 10px 0 30px;
}

.cookiesck-main-close {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 10;
	padding: 20px;
	font-size: 20px;
	cursor: pointer;
	background: #e2e2e2;
	color: #666;
}

.cookiesck-main-close:hover {
	color: #000;
}

@media screen and (max-width: 640px) {
	.cookiesck-main-buttons,
	.cookiesck-platform {
		flex-direction: column;
	}

	.cookiesck-main-close {
		position: relative;
		text-align: center;
	}
}
