/*
 * BCDM Conseil — compléments visuels du thème enfant Twenty Twenty-Five.
 * Reproduit l'apparence de l'ancien site (Kleo + WPBakery) avec des blocs natifs.
 */

/* Icônes Font Awesome 4.7 (mêmes pictogrammes que l'ancien site). */
@font-face {
	font-family: "FontAwesome";
	src: url("../fonts/fontawesome-4.7.0.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

/* ---------- Structure générale ---------- */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
/* Les sections pleine largeur se touchent, comme les rangées WPBakery. */
.wp-block-post-content > .alignfull,
main > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}
main.wp-block-group {
	margin-block: -1px 0;
}
/* Listes compactes, comme sur l'ancien site. */
.wp-block-post-content .wp-block-list li {
	margin-block: 0;
}
/* Premier élément des sections : marge haute des titres Bootstrap (11 px). */
.wp-block-group.bcdm-carres > :first-child,
.wp-block-group.bcdm-turquoise .wp-block-heading {
	margin-block-start: 11px;
}
.wp-block-group.bcdm-turquoise .wp-block-heading + p {
	margin-block-start: 15px;
}
.wp-block-group.bcdm-turquoise .wp-block-heading + .wp-block-buttons {
	margin-block-start: 34px;
}

/* ---------- En-tête ---------- */
.wp-site-blocks > :has(> .bcdm-header) {
	position: sticky;
	top: 0;
	z-index: 100;
}
body.admin-bar .wp-site-blocks > :has(> .bcdm-header) {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > :has(> .bcdm-header) {
		top: 46px;
	}
}
.bcdm-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--accent-5);
}
.bcdm-header__inner {
	min-height: 80px;
}
.bcdm-header .wp-block-site-logo img {
	width: 130px;
	height: auto;
}

/* Menu principal (bureau) */
.bcdm-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
	gap: 0;
}
.bcdm-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	display: block;
	margin: 0 12px;
	padding: 0;
	line-height: 80px;
}
.bcdm-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	text-decoration: none;
}
.bcdm-nav .wp-block-navigation-item__content:hover,
.bcdm-nav .wp-block-navigation-item__content:focus {
	color: #777777;
	text-decoration: none;
}
.bcdm-nav .current-menu-item > .wp-block-navigation-item__content {
	box-shadow: inset 0 2px 0 0 var(--wp--preset--color--accent-3);
}
@media (min-width: 1200px) {
	.bcdm-nav {
		margin-right: 221px;
	}
}

/* ---------- Icônes ---------- */
.wp-block-navigation-item[class*="bcdm-ico-"] > .wp-block-navigation-item__content::before,
.wp-block-heading[class*="bcdm-ico-"]::before,
.is-style-bcdm-vertical .wp-block-tab-list button::before {
	font-family: "FontAwesome";
	font-weight: normal;
	font-style: normal;
	display: inline-block;
	margin-right: 0.35em;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}
.wp-block-navigation-item[class*="bcdm-ico-"] > .wp-block-navigation-item__content::before {
	margin-right: 1px;
}
.bcdm-ico-home > a::before { content: "\f015"; }
.bcdm-ico-briefcase > a::before, .wp-block-heading.bcdm-ico-briefcase::before { content: "\f0b1"; }
.bcdm-ico-star > a::before, .wp-block-heading.bcdm-ico-star::before { content: "\f005"; }
.bcdm-ico-chart > a::before, .wp-block-heading.bcdm-ico-chart::before { content: "\f080"; }
.bcdm-ico-rss > a::before { content: "\f09e"; }
.bcdm-ico-mail > a::before, .wp-block-heading.bcdm-ico-mail::before { content: "\f003"; }

/* ---------- Bannière de titre des pages ---------- */
.wp-block-cover.is-style-bcdm-banniere {
	min-height: 126px;
	padding: 40px 15px;
}
.wp-block-cover.is-style-bcdm-banniere .wp-block-heading {
	color: #ffffff;
	margin: 0;
}

/* ---------- Accueil ---------- */
.bcdm-hero .wp-block-heading,
.bcdm-hero p {
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	margin: 0;
}

@media (max-width: 600px) {
	.bcdm-hero .wp-block-heading.has-hero-font-size {
		font-size: 44px !important;
	}
	.bcdm-hero p.has-hero-sous-titre-font-size {
		font-size: 24px !important;
	}
}

/* Titres soulignés des bandes turquoise */
.bcdm-souligne {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Équipe ---------- */
.bcdm-equipe .wp-block-image img {
	border-radius: 4px;
}
.bcdm-equipe .bcdm-ombre img {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.bcdm-equipe > p.has-roboto-condensed-font-family {
	margin-block-start: 35px;
	line-height: 30px;
}
.bcdm-equipe .wp-block-columns {
	gap: 0;
	margin-block-start: 24px;
}
.bcdm-equipe .wp-block-column .wp-block-image {
	margin-block-end: 0;
}
.bcdm-equipe .wp-block-column .wp-block-heading {
	margin-block-start: 35px;
}
.bcdm-equipe .wp-block-column .wp-block-heading + p {
	margin-block-start: 35px;
}

/* ---------- Onglets verticaux (Réalisations) ---------- */
.wp-block-tabs.is-style-bcdm-vertical {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
}
/* Le cœur force « flex-basis: inherit !important » sur les boutons :
   la largeur de la liste passe donc par width, pas par flex-basis. */
.is-style-bcdm-vertical > .wp-block-tab-list {
	flex: 0 0 auto;
	width: 224px;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	margin: 0;
	border: 0;
}
.is-style-bcdm-vertical .wp-block-tab-list button {
	display: block;
	position: relative;
	flex: 0 0 auto;
	height: auto;
	width: 100%;
	margin: -1px 0 0;
	padding: 14px 20px;
	border: 1px solid #66a038;
	border-radius: 0;
	background: var(--wp--preset--color--accent-2) linear-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.01) 100%);
	color: #ffffff;
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	text-align: left;
	cursor: pointer;
}
.is-style-bcdm-vertical .wp-block-tab-list button:hover {
	background-color: #5f9a32;
}
.is-style-bcdm-vertical .wp-block-tab-list button[aria-selected="true"] {
	background: var(--wp--preset--color--accent-4);
	border-color: #f0f0f0;
	color: #666666;
}
/* Le bloc natif souligne l'onglet actif avec ::before : on le remplace par l'icône. */
.is-style-bcdm-vertical .wp-block-tab-list button::before,
.is-style-bcdm-vertical .wp-block-tab-list button[aria-selected="true"]::before {
	position: static;
	width: auto;
	border: 0;
}
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(1)::before { content: "\f299"; }
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(2)::before { content: "\f1b0"; }
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(3)::before { content: "\f1e6"; }
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(4)::before { content: "\f1bb"; }
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(5)::before { content: "\f002"; }
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(6)::before { content: "\f0e8"; }
.is-style-bcdm-vertical .wp-block-tab-list button:nth-child(7)::before { content: "\f067"; }
.is-style-bcdm-vertical > .wp-block-tab-panels {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 14px 20px;
	background: var(--wp--preset--color--accent-4);
	border: 1px solid #f0f0f0;
}
.is-style-bcdm-vertical .wp-block-tab-panel ul {
	margin: 0;
}
@media (max-width: 767px) {
	.wp-block-tabs.is-style-bcdm-vertical {
		flex-direction: column;
	}
	.is-style-bcdm-vertical > .wp-block-tab-list {
		width: 100%;
	}
}

/* ---------- Bouton gris carré ---------- */
.wp-block-button.is-style-bcdm-gris .wp-block-button__link {
	background: var(--wp--preset--color--bouton) linear-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.01) 100%);
	border: 1px solid var(--wp--preset--color--bouton);
	border-radius: 0;
	color: #666666;
	font-size: 12px;
	padding: 11px 16px;
}
.wp-block-button.is-style-bcdm-gris .wp-block-button__link:hover {
	background-color: #dcdcdc;
	color: #444444;
}

/* ---------- Galerie (liste des articles) ---------- */
.bcdm-galerie .wp-block-post {
	padding: 20px 0;
}
.bcdm-galerie .wp-block-post-title {
	font-size: 22px;
	line-height: 28px;
	margin: 0 0 6px;
}
.bcdm-galerie .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.bcdm-galerie .wp-block-columns {
	column-gap: 30px;
	margin-block: 0;
}
.bcdm-galerie .wp-block-post-featured-image img {
	width: auto;
	max-width: 100%;
	height: auto;
}
.bcdm-galerie .wp-block-read-more {
	display: block;
	text-align: right;
	font-size: 11px;
	color: #bbbbbb;
}

/* Colonnes de la page Contact (2 × 263 px, gouttière de 30 px). */
.wp-block-group.bcdm-carres .wp-block-columns {
	column-gap: 30px;
}

/* ---------- Formulaire de contact (Contact Form 7) ---------- */
.wpcf7 p {
	margin: 0 0 11px;
}
.wpcf7 label {
	display: block;
	color: #777777;
	font-size: 13px;
	line-height: 15px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: #f7f7f7;
	color: #555555;
	font: inherit;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	height: 30px;
	padding: 0 6px;
}
.wpcf7 textarea {
	height: 222px;
	padding: 6px;
}
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--bouton);
	border: 1px solid var(--wp--preset--color--bouton);
	border-radius: 0;
	color: #666666;
	font-size: 12px;
	line-height: 20px;
	padding: 13px 20px;
	cursor: pointer;
	text-transform: uppercase;
}
.wpcf7 input[type="submit"]:hover {
	background: #dcdcdc;
}

/* ---------- Pied de page ---------- */
.bcdm-socket {
	background: var(--wp--preset--color--accent-6);
	color: var(--wp--preset--color--pied-texte);
	padding: 21px 15px;
	text-align: center;
}
.bcdm-socket p {
	margin: 0;
}
.bcdm-socket a {
	color: var(--wp--preset--color--pied-texte);
	text-decoration: none;
}
.bcdm-socket a:hover {
	color: #777777;
}
