/*
Theme Name:   Idées Larges
Theme URI:    https://www.ideeslarges.com
Description:  Thème de l'agence Idées Larges
Author:       Idées Larges
Author URI:   https://www.ideeslarges.com
Template:     generatepress
Version:      1
*/


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body {
	overflow-x: hidden;
}

header {
	position: sticky !important;
	top: 0 !important;
	z-index: 999 !important;
}

.single-post .entry-header,
.single-post .entry-meta {
	display : none;
}

.menu-toggle, .main-navigation.sub-menu-right.toggled {
	background : transparent !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DÉCORATIONS SVG
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.deco-bleu-bas-droit:after {
	content: "";
	background: url("/wp-content/themes/ideeslarges_theme/content/deco-bleu-bas-droit.svg") center / cover;
	width: 90px;
	height: 60px;
	position: absolute;
	bottom: -30px;
	right: -12px;
}


.deco-bleu-bas-droit-actualite:after {
	right: -32px;
}


.deco-bleu-bas-gauche:after {
	content: "";
	background: url("/wp-content/themes/ideeslarges_theme/content/deco-bleu-bas-droit.svg") center / cover;
	width: 90px;
	height: 60px;
	position: absolute;
	bottom: -30px;
	left: -32px;
	transform: scaleX(-1);
}

.deco-bleu-haut-gauche:after {
	content: "";
	background: url("/wp-content/themes/ideeslarges_theme/content/deco-bleu-bas-droit.svg") center / cover;
	width: 115px;
	height: 66px;
	position: absolute;
	top: -37px;
	left: -41px;
	transform: scale(-1);
}

.carousel-histoire .gb-carousel-item.is-active:after {
	content: "";
	background: url("/wp-content/themes/ideeslarges_theme/content/deco-histoire.svg") center / cover;
	width: 50px;
	height: 34px;
	position: absolute;
	top: calc(50% - 34px);
	right: -23px;
}

.annonce-lieu:before {
	content: url("/wp-content/themes/ideeslarges_theme/content/territorial-bleu.svg");
	display: inline-block;
	position: absolute;
	width: 55px;
	left: -25px;
	top: -25px;
}

.carousel-temoignages .gb-carousel-item:after {
	content: "";
	background-size: cover;
	background-repeat: no-repeat;
	position: absolute;
	top: 0;
	left: 0;
}

.carousel-temoignages .gb-carousel-item:nth-child(3n+2):after {
	background-image: url("/wp-content/themes/ideeslarges_theme/content/deco_temoignage_1.svg");
	width: 82px;
	height: 50px;
	transform: translate(-2px, -50px);
}

.carousel-temoignages .gb-carousel-item:nth-child(3n+3):after {
	background-image: url("/wp-content/themes/ideeslarges_theme/content/deco_temoignage_2.svg");
	width: 82px;
	height: 78px;
	transform: translate(-35px, -50px);
}

.carousel-temoignages .gb-carousel-item:nth-child(3n+1):after {
	background-image: url("/wp-content/themes/ideeslarges_theme/content/deco_temoignage_3.svg");
	width: 82px;
	height: 78px;
	transform: translate(-35px, -51px);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FORMULAIRE CONTACT CF7
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.cf7-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.cf7-grid {
		grid-template-columns: 1fr;
	}
}

.wpcf7 p {
	margin : 0;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	background: rgba(173, 217, 237, 0.12);
	border : 0;
	padding: 18px 20px;
	color: var(--accent);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	outline: none;
	box-sizing: border-box;
	margin-bottom: 0px;
	appearance: none;
	border-left: 2px solid transparent;
	border-bottom: 2px solid transparent;
}

.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
	margin-bottom: 20px;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--bleu);
	opacity: 1;
}

.wpcf7 select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23009CDE' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	cursor: pointer;
}

.wpcf7 textarea {
	height: 200px;
	resize: vertical;
	border-style: dashed;
	margin-bottom: 0;
}
.wpcf7 .wpcf7-submit {
	background: var(--accent);
	color: #FFF;
	border: none;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 10px 30px;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s;
	display: block;
	margin-left: auto;
	margin-top: 20px;
}

.wpcf7 .wpcf7-submit:hover {
	background: var(--bleu);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-left: 2px solid var(--bleu-clair);
	border-bottom: 2px solid var(--bleu-clair);
}



/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BOUTONS FILTRES MÉTIERS ET ACTUALITÉS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Wrappers ── */
.metiers-entite-buttons,
.metiers-realisation-buttons,
.categories-actualites-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin: 0 15px;
}

/* ── Boutons ── */
.metiers-entite-btn,
.metiers-realisation-btn,
.categories-actualites-btn {
	transition: all 0.2s;
	align-items: center;
	border: solid 2px var(--bleu);
	color: #FFF;
	background: var(--bleu);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transform: skew(-35deg);
	border-radius: 5px;
	padding: 4px 20px;
}

.metiers-entite-btn strong,
.metiers-realisation-btn strong,
.categories-actualites-btn strong {
	transform: skew(35deg);
}

/* ── États ── */
.metiers-entite-btn:focus,
.metiers-entite-btn.active,
.metiers-realisation-btn:focus,
.metiers-realisation-btn.active,
.categories-actualites-btn:focus,
.categories-actualites-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #FFF;
}

.metiers-entite-btn:hover,
.metiers-realisation-btn:hover,
.categories-actualites-btn:hover {
	background: #FFF;
	color: var(--bleu);
}

.metiers-entite-btn.active:hover,
.metiers-realisation-btn.active:hover,
.categories-actualites-btn.active:hover {
	background: #FFF;
	color: var(--accent);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RÉALISATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


/* GRILLE */

@media screen and (min-width: 975px) {
	.grille-realisation .gb-loop-item:nth-child(4n+1),
	.grille-realisation .gb-loop-item:nth-child(4n+4) {
		width: calc(44% - 10px);
	}

	.grille-realisation .gb-loop-item:nth-child(4n+2),
	.grille-realisation .gb-loop-item:nth-child(4n+3) {
		width: calc(56% - 10px);
	}
}

/* SINGLE */

.text-realisation {
	column-count: 2;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MENU PRINCIPAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */


.btn-rejoindre a {
	align-items: center;
	border: solid 2px var(--bleu);
	color: #FFF !important;
	background: var(--bleu);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	transform: skew(-35deg);
	border-radius: 5px;
	padding: 4px 10px;
	transition: all 0.2s;
	cursor: pointer;
	margin-left: 20px;
}

.btn-rejoindre a strong {
	transform: skew(35deg);
}

.btn-rejoindre a:hover,
.btn-rejoindre a:focus {
	background: transparent;
	color: var(--bleu) !important;
}


#menu-menu-principal li.btn-rejoindre a {
	line-height: inherit;
}

@media screen and (min-width: 1230px) {

	#menu-menu-principal li a {
		line-height: inherit;
	}

	#menu-menu-principal li:not(.btn-rejoindre) > a {
		position: relative;
	}

	#menu-menu-principal li:not(.btn-rejoindre) > a::after {
		content: '';
		position: absolute;
		bottom: -6px;
		left: 50%;
		transform: translateX(-50%);
		width: 0;
		height: 2px;
		background: var(--bleu);
		transition: width 0.3s ease;
	}

	#menu-menu-principal li:not(.btn-rejoindre) > a:hover::after {
		width: 90%;
	}

	#menu-menu-principal li:not(.btn-rejoindre)[class*="current-menu-"] > a::after {
		width: 90%;
		background: var(--accent);
	}
}

@media (max-width: 1230px) {
	#menu-menu-principal li a {
		line-height: 3em;
	}

	.mobile-menu-open header {
		border-bottom : 2px solid var(--bleu)
	}

	#menu-menu-principal li.btn-rejoindre a {
		margin-left: -5px;
		margin-top: 10px;
	}

}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EXCEPTIONS PAR PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.page-id-776 .section-engagements .btn-risques {
	display: none;
}

.page-id-825 .footer-carriere {
	display: none;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UTILITAIRES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (min-width: 1300px) {
	.align-vw {
		margin-left: calc((100vw - 1300px) / 2 + 20px) !important;
	}
	.align-vw-droit {
		margin-right: calc((100vw - 1300px) / 2 + 20px) !important;
	}
}