/*
 * En-tete COAPTA (header.php).
 * Valeurs reprises a l'identique de l'ancien en-tete Elementor (modele 11742).
 */

.co-header, .co-header *, .co-header *::before, .co-header *::after { box-sizing: border-box; }
.co-header { position: relative; }
.co-header a { text-decoration: none; }
.co-header img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
.co-header__inner { display: flex; max-width: 1336px; margin: 0 auto; }

/* ---- Menu (commun aux deux barres ordinateur) ---- */
.co-menu { display: flex; justify-content: flex-end; height: 100%; margin: 0; padding: 0; list-style: none; }
.co-menu li { position: relative; margin: 0; }
.co-menu > li > a {
	display: flex; align-items: center; height: 100%;
	font-family: "Work Sans", sans-serif; font-weight: 400; line-height: 1.5;
	text-transform: none; letter-spacing: normal;
	transition: all .4s ease;
}
.co-menu__chevron { display: flex; align-items: center; justify-content: center; }
.co-menu__chevron svg { width: auto; margin: 0; fill: none; pointer-events: none; }

.co-menu__sub {
	position: absolute; top: 100%; left: 0; z-index: 99999;
	margin: 0; padding: 20px; min-width: 300px; list-style: none;
	background: #DD2200; border: 1px solid #dadada; border-radius: 8px;
	box-shadow: 0 10px 30px 0 rgba(45, 45, 45, .2);
	visibility: hidden; opacity: 0; pointer-events: none;
	transform: translateY(-10px);
	transition: transform .4s ease;
}
.co-menu > li:hover > .co-menu__sub,
.co-menu > li:focus-within > .co-menu__sub {
	visibility: visible; opacity: 1; pointer-events: auto;
	transform: translateY(0);
}
.co-menu__sub > li > a {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%; padding: 10px;
	font-family: "Work Sans", sans-serif; font-size: 15px; font-weight: 400;
	line-height: 17px; letter-spacing: 0; text-transform: none;
	color: #fff;
	transition: color .1s ease-in-out, background-color .1s ease-in-out;
}
.co-menu__sub > li > a:hover,
.co-menu__sub > li > a:focus,
.co-menu__sub > li:hover > a { color: #fff; background-color: #EF2500; }

/* ---- Bouton « Contact » (effet de texte qui glisse au survol) ---- */
.co-header .co-btn, .co-footer .co-btn {
	position: relative; z-index: 0; display: inline-block; max-width: 100%; overflow: hidden;
	border: 2px solid #DD2200; border-radius: 12px;
	background: #DD2200; color: #fff;
	font-family: "Work Sans", sans-serif; font-size: 18px; font-weight: 600; line-height: 1;
	text-align: center;
	transition: all .3s;
}
.co-header .co-btn:visited { color: #fff; }
.co-header .co-btn:hover, .co-header .co-btn:active, .co-header .co-btn:focus { background: #fff; border-color: #DD2200; color: #DD2200; }
.co-btn > span, .co-btn::after {
	transition: transform .3s, opacity .3s;
	transition-timing-function: cubic-bezier(.2, 1, .3, 1);
}
.co-btn > span { display: block; vertical-align: middle; }
.co-btn::after {
	content: attr(data-text);
	position: absolute; top: 0; left: 0;
	background: #fff; opacity: 0;
	transform: translate(0, 25%);
}
.co-btn:hover > span { opacity: 0; transform: translate(0, -25%); }
.co-btn:hover::after { opacity: 1; transform: translate(0, 0); }

.co-header__lang img { transition-duration: .3s; transition-property: transform; }
.co-header__main .co-header__lang a:hover img,
.co-header__main .co-header__lang a:focus img { transform: scale(1.1); }

/* =========================================================
   Ordinateur (1025px et plus)
   ========================================================= */
@media (min-width: 1025px) {

	.co-header { height: 70px; }
	.co-header__mobile { display: none; }

	/* --- Barre blanche --- */
	.co-header__main { position: relative; z-index: 99; height: 103px; padding: 15px 0 20px; background: #fff; }
	.co-header__main .co-header__inner { height: 68px; }
	.co-header__main .co-header__logo {
		display: flex; align-items: center; justify-content: center;
		width: 21.93%; padding: 10px;
	}
	.co-header__main .co-header__right { display: flex; width: 78.07%; }
	.co-header__main .co-header__nav { width: 74.654%; height: 62px; margin-top: 3px; }
	.co-header__main .co-menu > li > a { padding: 0 30px; font-size: 18px; color: #000; background: transparent; }
	.co-header__main .co-menu > li > a:hover,
	.co-header__main .co-menu > li > a:focus,
	.co-header__main .co-menu > li:hover > a,
	.co-header__main .co-menu > li.current-menu-item > a,
	.co-header__main .co-menu > li.current-menu-ancestor > a { color: #DD2200; }
	.co-header__main .co-menu__chevron { padding: 5px 0 0 10px; }
	.co-header__main .co-menu__chevron svg { height: 11.3px; color: #fff; }
	.co-header__main .co-menu > li > a:hover .co-menu__chevron svg { color: #DD2200; }

	.co-header__main .co-header__lang {
		display: flex; align-items: center; justify-content: center;
		width: 8.551%; padding-right: 10px;
	}
	.co-header__main .co-header__lang img { width: 40px; height: 40px; }
	.co-header__main .co-header__cta { width: 16.096%; padding: 9px 10px 0 0; text-align: right; line-height: 0; }
	.co-header__main .co-btn > span, .co-header__main .co-btn::after { padding: 15px 35px; }

	/* --- Barre bleue collante --- */
	.co-header__sticky {
		position: fixed; top: 0; left: 0; right: 0; z-index: 100;
		height: 57px; background: #244CA7;
		visibility: hidden;
		transform: translateY(-80px);
		transition: all .3s ease;
	}
	.co-header.is-revealed .co-header__sticky { visibility: visible; animation: co-fade-in 1.25s; }
	.co-header.is-stuck .co-header__sticky { transform: translateY(0); }
	.co-header__sticky .co-header__inner { height: 57px; }
	.co-header__sticky .co-header__logo { width: 16.778%; padding-top: 16.8px; text-align: center; line-height: 0; }
	.co-header__sticky .co-header__logo img { width: 65%; }
	.co-header__sticky .co-header__nav { width: 65.649%; height: 57px; padding: 7px 20px 0; }
	.co-header__sticky .co-menu { height: 50px; }
	.co-header__sticky .co-menu > li > a { padding: 0 30px 14px; font-size: 16px; color: #fff; background: transparent; }
	.co-header__sticky .co-menu > li > a:hover,
	.co-header__sticky .co-menu > li > a:focus,
	.co-header__sticky .co-menu > li:hover > a,
	.co-header__sticky .co-menu > li.current-menu-item > a,
	.co-header__sticky .co-menu > li.current-menu-ancestor > a { color: #6EC0E7; }
	.co-header__sticky .co-menu__chevron { padding: 2px 0 0 10px; }
	.co-header__sticky .co-menu__chevron svg { height: 10px; color: #fff; }
	.co-header__sticky .co-menu > li > a:hover .co-menu__chevron svg { color: #6EC0E7; }
	.co-header__sticky .co-menu__sub { border: 1px solid #DD2200; }

	.co-header__sticky .co-header__right { display: flex; width: 17.237%; }
	.co-header__sticky .co-header__lang { width: 32.057%; padding-top: 11.5px; text-align: center; line-height: 0; }
	.co-header__sticky .co-header__lang img { width: 30px; height: 30px; }
	.co-header__sticky .co-header__cta { width: 67.941%; padding: 9px 10px 0 0; text-align: right; line-height: 0; }
	.co-header__sticky .co-btn > span, .co-header__sticky .co-btn::after { padding: 8px 25px; }
}

@keyframes co-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Tablette et mobile (1024px et moins)
   ========================================================= */
@media (max-width: 1024px) {
	.co-header__main, .co-header__sticky { display: none; }
	.co-header__mobile { padding: 5px 0; background: #fff; }
	.co-header__mobile .co-header__inner { align-items: flex-start; justify-content: space-between; }
	.co-header__mobile .co-header__logo { width: 33.333%; padding: 10px 10px 10px 20px; text-align: center; }
	.co-header__mobile .co-header__burger { width: 33.333%; padding: 10px 20px 10px 10px; text-align: end; }
	.co-header__mobile .co-header__burger img { width: 14%; }
}
@media (max-width: 767px) {
	.co-header__mobile { padding: 10px 10px 10px 5px; }
	.co-header__mobile .co-header__inner { align-items: center; }
	.co-header__mobile .co-header__logo { width: 50%; }
	.co-header__mobile .co-header__burger { width: 25%; padding: 0 10px 0 0; }
	.co-header__mobile .co-header__burger img { width: 27px; }
}
