/*
Theme Name: Cobalt Vitrine
Template: twentytwentyfive
Author: COBALT-ERGONOMIE
Description: Thème enfant de Twenty Twenty-Five, habillé à la charte graphique COBALT.
Version: 0.9.15
*/

/* Logo COBALT dans le header (remplace le titre texte) */
.cobalt-logo {
	display: block;
	line-height: 0;
}

.cobalt-logo img,
header .cobalt-logo img {
	height: 48px;
	width: auto;
	max-height: 48px;
	display: block;
	max-width: 100%;
}

/* Header : menu décalé en centre-gauche (près du logo), sans le centrer.
   margin-right:auto RÉSERVE l'espace à droite pour un futur bouton CTA réel
   (aucun lien mort ajouté ici). */
.cobalt-header > .wp-block-navigation {
	margin-left: clamp(2rem, 8vw, 7rem);
	margin-right: auto;
}

/* Mobile (≤ breakpoint nav WP) : le burger revient à droite, pas de chevauchement avec le logo. */
@media (max-width: 781px) {
	.cobalt-header > .wp-block-navigation {
		margin-left: auto;
		margin-right: 0;
	}
}

/* --- Onglet actif du menu : pilule pleine (inversion), comme le bouton primaire --- */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content,
.wp-block-navigation a[aria-current="page"],
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	background-color: var(--wp--preset--color--petrole);
	color: var(--wp--preset--color--blanc);
	font-weight: 600;
	border-radius: 999px;
	padding: 6px 16px;
	text-decoration: none;
}

/* Survol/focus de l'onglet actif : conserve la pilule (pétrole foncé), texte blanc */
.wp-block-navigation .current-menu-item > a:hover,
.wp-block-navigation .current-menu-item > a:focus,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__content:focus,
.wp-block-navigation a[aria-current="page"]:hover,
.wp-block-navigation a[aria-current="page"]:focus,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"]:hover,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"]:focus {
	background-color: var(--wp--preset--color--petrole-fonce);
	color: var(--wp--preset--color--blanc);
}

/* --- Héros COBALT : texte à gauche, panneau pétrole en diagonale à droite --- */
.hero-cobalt {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--papier);
}

/* Panneau pétrole coupé en diagonale (desktop), texturé par la trame de points
   + voile pétrole (~18 %) pour garder l'unité de la charte */
.hero-cobalt::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 46%;
	background-color: var(--wp--preset--color--petrole);
	background-image:
		linear-gradient(rgba(30, 90, 100, 0.18), rgba(30, 90, 100, 0.18)),
		url("https://etude-de-poste.fr/wp-content/themes/cobalt-vitrine/assets/logo/Background-cobalt_1-opt.jpg");
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-cobalt__inner {
	position: relative;
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 2.5rem;
	padding: var(--wp--preset--spacing--80, 4rem) 1.5rem;
}

.hero-cobalt__text {
	text-align: left;
}

/* Le visuel est tiré de 14 % sur sa gauche (cf. .hero-cobalt__img) et mord donc
   d'une trentaine de pixels dans cette colonne. Le sous-titre est le seul texte
   assez long pour l'atteindre : on le borne à 87,5 % pour lui rendre une
   gouttière d'environ 40 px face à l'image, soit le gap de la grille. */
.hero-cobalt__lead {
	max-width: 87.5%;
}

.hero-cobalt__visual {
	position: relative;
	align-self: stretch;
	min-height: 480px;
}

/* Consultante agrandie, ancrée au bas du héros (compense le padding bas de l'inner) */
.hero-cobalt__img {
	position: absolute;
	left: -14%;
	right: -2%;
	bottom: calc(-1 * var(--wp--preset--spacing--80, 4rem));
	margin: 0;
}

.hero-cobalt__img img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	filter: drop-shadow(0 24px 40px rgba(21, 46, 52, 0.28));
}

/* Mobile : texte en haut, visuel dessous, diagonale simplifiée */
@media (max-width: 781px) {
	.hero-cobalt::before {
		display: none;
	}

	.hero-cobalt__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-bottom: 0;
	}

	.hero-cobalt__visual {
		min-height: 0;
		background-color: var(--wp--preset--color--petrole);
		background-image:
			linear-gradient(rgba(30, 90, 100, 0.18), rgba(30, 90, 100, 0.18)),
			url("https://etude-de-poste.fr/wp-content/themes/cobalt-vitrine/assets/logo/Background-cobalt_1-opt.jpg");
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
		clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
		margin: 0 -1.5rem;
		padding: 3rem 1.5rem 0;
	}

	/* Colonne unique : l'image passe dessous, le sous-titre reprend toute la largeur */
	.hero-cobalt__lead {
		max-width: none;
	}

	.hero-cobalt__img {
		position: static;
	}

	.hero-cobalt__img img {
		width: 100%;
		filter: drop-shadow(0 12px 24px rgba(21, 46, 52, 0.25));
	}
}

/* --- Page Fonctionnalités : héros 2 colonnes (texte à gauche, visuel à droite) --- */
.feat-hero__img {
	margin: 0;
}

.feat-hero__img img {
	display: block;
	width: 100%;
	max-width: 600px;
	height: auto;
	margin-inline: auto;
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(21, 46, 52, 0.14);
}

/* Mobile : les colonnes s'empilent (image sous le texte), visuel pleine largeur */
@media (max-width: 781px) {
	.feat-hero__img {
		margin-top: 1.5rem;
	}

	.feat-hero__img img {
		max-width: none;
	}
}

/* --- Page Fonctionnalités : pastille d'icône pétrole dans les cartes --- */
.feat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--wp--preset--color--brume);
	color: var(--wp--preset--color--petrole);
	margin-bottom: 0.75rem;
}

.feat-icon svg {
	width: 26px;
	height: 26px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Page Tarifs : héros centré + deux cartouches d'offre --- */

/* Overline (sur-titre) au-dessus du H1 */
.tarifs-overline {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--wp--preset--color--petrole);
	margin-bottom: 0.5rem;
}

.tarifs-hero h1 {
	margin-top: 0;
}

/* Grille des deux offres : côte à côte (desktop), empilées (mobile) */
/* margin-top : rythme serré sous le sous-titre → un seul bloc continu, pas de bande vide */
.tarifs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem;
	max-width: 880px;
	margin-top: 2.75rem;
	margin-inline: auto;
	align-items: stretch;
}

@media (max-width: 781px) {
	.tarifs-grid {
		grid-template-columns: 1fr;
		max-width: 460px;
	}
}

/* Cartouche d'offre : colonne flex → le CTA se cale en bas, cartes de même hauteur */
.tarifs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--brume);
	border-radius: 20px;
	padding: 2.25rem 2rem;
	box-shadow: 0 12px 30px rgba(21, 46, 52, 0.08);
}

/* Neutralise les marges de flux injectées par le layout WP : on maîtrise l'espacement au cas par cas */
.tarifs-card > * {
	margin-block: 0;
}

.tarifs-card__label {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--wp--preset--color--texte-secondaire);
	margin-bottom: 0.75rem;
}

.tarifs-price {
	font-size: clamp(1.8rem, 3.4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--encre);
	margin-bottom: 0.35rem;
	overflow-wrap: anywhere;
}

.tarifs-price__period {
	display: inline-block;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--texte-secondaire);
}

.tarifs-note {
	font-size: 0.95rem;
	color: var(--wp--preset--color--texte-secondaire);
	margin-bottom: 1.5rem;
}

/* Liste de bénéfices : coche pétrole en pastille */
.tarifs-features {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.tarifs-features li {
	position: relative;
	padding-left: 1.85rem;
	line-height: 1.4;
}

.tarifs-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.2rem;
	height: 1.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 700;
	border-radius: 50%;
	background: var(--wp--preset--color--petrole);
	color: var(--wp--preset--color--blanc);
}

/* CTA calé en bas de carte, pleine largeur */
.tarifs-cta {
	margin-top: auto;
}

.tarifs-cta .wp-block-button {
	width: 100%;
}

.tarifs-cta .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}

/* Micro-texte de réassurance sous le bouton */
.tarifs-cta-note {
	margin-top: 0.7rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--texte-secondaire);
}

.tarifs-card--featured .tarifs-cta-note {
	color: rgba(255, 255, 255, 0.8);
}

/* Ligne équipe + mention légale, sous la rangée de cartes */
.tarifs-team {
	margin-top: 2.5rem;
	font-size: 1rem;
	color: var(--wp--preset--color--encre);
}

.tarifs-team a {
	color: var(--wp--preset--color--petrole);
	font-weight: 600;
	text-decoration: underline;
}

.tarifs-legal {
	margin-top: 0.85rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--texte-secondaire);
}

/* Badge de la carte mise en avant */
.tarifs-badge {
	position: absolute;
	top: -0.85rem;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	background: var(--wp--preset--color--argile);
	color: var(--wp--preset--color--blanc);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(21, 46, 52, 0.2);
}

/* Carte Annuel : mise en avant pétrole, visuellement dominante */
.tarifs-card--featured {
	background: var(--wp--preset--color--petrole);
	border-color: var(--wp--preset--color--petrole);
	box-shadow: 0 24px 48px rgba(21, 46, 52, 0.28);
}

@media (min-width: 782px) {
	.tarifs-card--featured {
		transform: scale(1.03);
	}
}

.tarifs-card--featured .tarifs-card__label,
.tarifs-card--featured .tarifs-price__period,
.tarifs-card--featured .tarifs-note,
.tarifs-card--featured .tarifs-features li {
	color: rgba(255, 255, 255, 0.85);
}

.tarifs-card--featured .tarifs-price {
	color: var(--wp--preset--color--blanc);
}

.tarifs-card--featured .tarifs-features li::before {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--petrole);
}

/* CTA inversé (blanc) pour ressortir sur le fond pétrole */
.tarifs-card--featured .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--petrole);
}

.tarifs-card--featured .wp-block-button__link:hover {
	background: var(--wp--preset--color--brume);
	color: var(--wp--preset--color--petrole-fonce);
}

/* --- Accueil : ruban de logos clients (« Ils nous font confiance ») --- */
.cobalt-clients {
	padding: var(--wp--preset--spacing--60, 3rem) 0;
	background: var(--wp--preset--color--papier);
	text-align: center;
	overflow: hidden; /* garde-fou : rien ne déborde en X */
}

.cobalt-clients__overline {
	margin: 0 0 1.75rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.78rem;
	color: var(--wp--preset--color--texte-secondaire);
}

/* Fenêtre : masque le hors-champ + dégradés latéraux pour une entrée/sortie douce */
.cobalt-clients__viewport {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* Rail animé = 2 pistes identiques ; translateX(-50%) fait défiler d'exactement 1 piste */
.cobalt-clients__lane {
	display: flex;
	width: max-content;
	animation: cobalt-clients-scroll 40s linear infinite;
}

/* Pause au survol de la souris */
.cobalt-clients__viewport:hover .cobalt-clients__lane {
	animation-play-state: paused;
}

.cobalt-clients__track {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 4.5rem);
	margin: 0;
	padding: 0 clamp(1.25rem, 3vw, 2.25rem);
	list-style: none;
}

.cobalt-clients__item {
	flex: 0 0 auto;
	margin: 0;
}

.cobalt-clients__item img {
	height: 44px;
	width: auto;
	display: block;
	/* Couleur pétrole de la charte par défaut — aucun changement au survol/clic */
}

@keyframes cobalt-clients-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Accessibilité : mouvement réduit → défilement figé, logos en grille statique centrée */
@media (prefers-reduced-motion: reduce) {
	.cobalt-clients__viewport {
		-webkit-mask-image: none;
		        mask-image: none;
	}
	.cobalt-clients__lane {
		animation: none;
		width: 100%;
	}
	.cobalt-clients__lane .cobalt-clients__track[aria-hidden="true"] {
		display: none; /* on ne montre qu'une piste */
	}
	.cobalt-clients__track {
		flex-wrap: wrap;
		justify-content: center;
		gap: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
	}
}

/* --- P118 : « Les fonctions phares, en détail » ---------------------------
   Case média de taille FIXE et identique pour les 3 blocs media-text.
   Scopé à .phares-detail pour ne pas toucher aux autres media-text du site. */
.phares-detail .wp-block-media-text__media {
	aspect-ratio: 3 / 2;   /* même hauteur pour les 3, quel que soit le fichier */
	align-self: start;     /* pas d'étirement vertical si le texte est plus haut */
	border-radius: 16px;   /* arrondi comme le héros */
	overflow: hidden;      /* le recadrage reste dans les coins arrondis */
}
.phares-detail .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;     /* remplit la case, recadré centré, jamais déformé */
	display: block;
}

/* --- P129 : page Webinaire, visuel du programme ----------------------------
   Même verrouillage de ratio que les blocs phares (case média fixe, arrondie,
   recadrage centré). Sur mobile, l'image passe SOUS le texte des 4 points.
   Scopé à .webinaire-media pour ne pas toucher aux autres media-text. */
.webinaire-media .wp-block-media-text__media {
	aspect-ratio: 3 / 2;
	align-self: start;
	border-radius: 16px;
	overflow: hidden;
}
.webinaire-media .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Mobile (< 600px, seuil d'empilement du bloc media-text) : texte puis image */
@media (max-width: 600px) {
	.webinaire-media.is-stacked-on-mobile > .wp-block-media-text__content {
		grid-row: 1;
	}
	.webinaire-media.is-stacked-on-mobile > .wp-block-media-text__media {
		grid-row: 2;
		margin-top: 1.5rem;
	}
}

/* --- P120 : formulaire de contact ------------------------------------------
   « Envoyez-nous un message » sous les coordonnées. Champs et bouton arrondis,
   bouton pétrole comme les CTA du site. Scopé à .cobalt-contact-form. */
.cobalt-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
	text-align: left;
}
.cobalt-contact-form__row {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
}
.cobalt-contact-form label {
	font-weight: 600;
	color: var(--wp--preset--color--encre);
}
.cobalt-contact-form input[type="text"],
.cobalt-contact-form input[type="email"],
.cobalt-contact-form textarea {
	width: 100%;
	padding: 0.85rem 1.1rem;
	font: inherit;
	color: var(--wp--preset--color--texte);
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--brume);
	border-radius: 16px;      /* champs arrondis, cohérents avec les cartes */
	box-shadow: inset 0 1px 2px rgba(21, 46, 52, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cobalt-contact-form textarea {
	border-radius: 20px;
	resize: vertical;
	min-height: 8rem;
}
.cobalt-contact-form input:focus,
.cobalt-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--petrole);
	box-shadow: 0 0 0 3px rgba(30, 90, 100, 0.15);
}
/* Ligne de consentement RGPD : case + libellé alignés */
.cobalt-contact-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0;
}
.cobalt-contact-form__consent input {
	margin-top: 0.2rem;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--wp--preset--color--petrole);
	flex: 0 0 auto;
}
.cobalt-contact-form__consent label {
	font-weight: 400;
	color: var(--wp--preset--color--texte-secondaire);
}
/* Bouton d'envoi = pilule pétrole comme les CTA */
.cobalt-contact-form__submit {
	align-self: flex-start;
	padding: 0.85rem 2rem;
	font: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--blanc);
	background: var(--wp--preset--color--petrole);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
}
.cobalt-contact-form__submit:hover,
.cobalt-contact-form__submit:focus-visible {
	background: var(--wp--preset--color--petrole-fonce);
}
.cobalt-contact-form__submit:active {
	transform: translateY(1px);
}
.cobalt-contact-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}
/* Message de statut (succès / erreur) */
.cobalt-contact-form__status {
	padding: 0.85rem 1.1rem;
	border-radius: 14px;
	font-weight: 500;
}
.cobalt-contact-form__status:empty {
	display: none;
}
.cobalt-contact-form__status.is-success {
	color: var(--wp--preset--color--petrole-fonce);
	background: var(--wp--preset--color--brume);
	border: 1px solid var(--wp--preset--color--petrole-doux);
}
.cobalt-contact-form__status.is-error {
	color: var(--wp--preset--color--argile-foncee);
	background: var(--wp--preset--color--argile-douce);
	border: 1px solid var(--wp--preset--color--argile);
}
/* Honeypot : invisible à l'œil et au lecteur d'écran, hors flux */
.cobalt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- P122 : page Contact, bandeau foncé (coordonnées + CTA) ----------------
   Section pétrole pleine largeur sous le formulaire. Texte/liens clairs,
   bouton « Réserver une démo » inversé (blanc) pour ressortir — reprend
   exactement le traitement de la carte Annuel (.tarifs-card--featured). */
.contact-fonce h2 {
	color: var(--wp--preset--color--blanc);
}
/* Adresse en blanc adouci (rôle secondaire, comme sur fond clair) */
.contact-fonce .contact-adresse {
	color: rgba(255, 255, 255, 0.8);
}
/* Liens tél/email : clairs et soulignés sur le pétrole (pas le bouton) */
.contact-fonce a:not(.wp-element-button) {
	color: var(--wp--preset--color--blanc);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.contact-fonce a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--argile-douce);
}
/* CTA inversé (blanc sur pétrole) — cohérent avec la carte Annuel */
.contact-fonce .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--petrole);
}
.contact-fonce .wp-block-button__link:hover {
	background: var(--wp--preset--color--brume);
	color: var(--wp--preset--color--petrole-fonce);
}

/* ==========================================================================
   BLOG — liste en vignettes (home.html) + gabarit article (single.html)
   ========================================================================== */

/* --- En-tête de la liste : overline + titre + accroche, centrés --- */
.cobalt-blog-head {
	text-align: center;
	max-width: 640px;
	margin-inline: auto;
	margin-bottom: 3rem;
}
.cobalt-blog-overline {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--wp--preset--color--petrole);
	margin-bottom: 0.5rem;
}
.cobalt-blog-title {
	margin-top: 0;
	margin-bottom: 0.75rem;
}
.cobalt-blog-lead {
	color: var(--wp--preset--color--texte-secondaire);
	font-size: 1.05rem;
	margin: 0;
}

/* --- Grille responsive : 3 colonnes desktop / 2 tablette / 1 mobile --- */
.cobalt-blog-grid.is-layout-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
}
@media (max-width: 1024px) {
	.cobalt-blog-grid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.cobalt-blog-grid.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Carte article : image + corps, coins 16px, ombre légère --- */
.cobalt-blog-grid > li {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--brume);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(21, 46, 52, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cobalt-blog-grid > li:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(21, 46, 52, 0.14);
}

/* Image à la une : ratio uniforme 16:9, recadrée centrée, jamais déformée */
.cobalt-blog-card__img {
	margin: 0;
}
.cobalt-blog-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
/* Placeholder si pas d'image à la une : bandeau pétrole doux */
.cobalt-blog-card__img:not(:has(img)) {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--wp--preset--color--petrole-doux), var(--wp--preset--color--brume));
}

.cobalt-blog-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.35rem 1.4rem 1.6rem;
	flex: 1;
}
.cobalt-blog-card__body > * {
	margin-block: 0;
}
.cobalt-blog-card__date {
	font-size: 0.8rem;
	color: var(--wp--preset--color--texte-secondaire);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.cobalt-blog-card__title {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0;
}
.cobalt-blog-card__title a {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}
.cobalt-blog-card__title a:hover {
	color: var(--wp--preset--color--petrole);
}
.cobalt-blog-card__excerpt {
	color: var(--wp--preset--color--texte);
	font-size: 0.95rem;
	line-height: 1.55;
}
.cobalt-blog-card__more {
	margin-top: auto;
	padding-top: 0.4rem;
	font-weight: 600;
	color: var(--wp--preset--color--petrole);
	text-decoration: none;
}
.cobalt-blog-card__more:hover {
	color: var(--wp--preset--color--petrole-fonce);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cobalt-blog-empty {
	text-align: center;
	color: var(--wp--preset--color--texte-secondaire);
	padding: 3rem 0;
}
.cobalt-blog-pagination {
	margin-top: 3rem;
	gap: 0.5rem;
}
.cobalt-blog-pagination a,
.cobalt-blog-pagination .current {
	color: var(--wp--preset--color--petrole);
	text-decoration: none;
	font-weight: 600;
}
.cobalt-blog-pagination .current {
	color: var(--wp--preset--color--encre);
}

/* ==========================================================================
   GABARIT ARTICLE (single.html)
   ========================================================================== */

.cobalt-back-link a {
	display: inline-block;
	color: var(--wp--preset--color--petrole);
	font-weight: 600;
	text-decoration: none;
}
.cobalt-back-link a:hover {
	color: var(--wp--preset--color--petrole-fonce);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cobalt-article__head {
	margin-top: 1.75rem;
	margin-bottom: 1.5rem;
}
.cobalt-article__meta {
	gap: 0.75rem;
	align-items: center;
	font-size: 0.85rem;
	color: var(--wp--preset--color--texte-secondaire);
	margin-bottom: 0.75rem;
}
.cobalt-article__meta .cobalt-article__date {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.cobalt-article__meta .cobalt-article__cat a {
	color: var(--wp--preset--color--petrole);
	text-decoration: none;
	font-weight: 600;
}
.cobalt-article__title {
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1.15;
}
.cobalt-article__img {
	margin: 0 auto 2.25rem;
	border-radius: 16px;
	overflow: hidden;
}
.cobalt-article__img img {
	border-radius: 16px;
	width: 100%;
	object-fit: cover;
}

/* Largeur de lecture confortable (~700px) + rythme typographique */
.cobalt-article__body {
	max-width: 700px;
	margin-inline: auto;
	font-size: 1.075rem;
	line-height: 1.75;
	color: var(--wp--preset--color--texte);
}
.cobalt-article__body > * {
	max-width: 700px;
	margin-inline: auto;
}
.cobalt-article__body h2 {
	font-size: 1.6rem;
	line-height: 1.25;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}
.cobalt-article__body h3 {
	font-size: 1.3rem;
	line-height: 1.3;
	margin-top: 2rem;
	margin-bottom: 0.6rem;
}
.cobalt-article__body p {
	margin-bottom: 1.35rem;
}
.cobalt-article__body ul,
.cobalt-article__body ol {
	margin-bottom: 1.35rem;
	padding-left: 1.4rem;
}
.cobalt-article__body li {
	margin-bottom: 0.4rem;
}
.cobalt-article__body img,
.cobalt-article__body .wp-block-image {
	border-radius: 12px;
	margin-block: 2rem;
}
.cobalt-article__body blockquote {
	border-left: 4px solid var(--wp--preset--color--petrole);
	background: var(--wp--preset--color--brume);
	margin: 2rem auto;
	padding: 1rem 1.5rem;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: var(--wp--preset--color--encre);
}
.cobalt-article__body blockquote p:last-child {
	margin-bottom: 0;
}
.cobalt-article__body a:not(.wp-element-button) {
	color: var(--wp--preset--color--petrole);
	text-underline-offset: 2px;
}

.cobalt-article__foot {
	max-width: 700px;
	margin: 3rem auto 0;
	padding-top: 1.75rem;
	border-top: 1px solid var(--wp--preset--color--brume);
}

/* ==========================================================================
   PAGE À PROPOS (page 11) — « Qui sommes-nous » : texte encadré + silhouette
   ========================================================================== */

/* Section pleine largeur, fond gris très clair de la charte */
.apropos-section {
	background: var(--wp--preset--color--brume);
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

/* Colonnes : silhouette calée en bas, même ligne de sol que le texte */
.apropos-cols.apropos-cols {
	gap: clamp(2rem, 5vw, 4rem);
	align-items: end;
}

/* --- Boîte texte (cadre à crochets retiré) : texte aligné sans encadrement --- */
.apropos-textbox__inner {
	padding: 0;
}

.apropos-textbox__inner > * {
	margin-block: 0;
}
.apropos-overline {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--wp--preset--color--petrole);
	margin-bottom: 0.6rem;
}
.apropos-title {
	margin: 0 0 1.25rem;
	line-height: 1.12;
}
.apropos-textbox__inner p:not(.apropos-overline) {
	color: var(--wp--preset--color--texte);
	line-height: 1.7;
	margin-bottom: 1rem;
}
.apropos-textbox__inner p:last-child {
	margin-bottom: 0;
}

/* --- Silhouette détourée (PNG transparent) : pas de fond, pas de recadrage --- */
.apropos-figure-col {
	align-self: end;
}
/* Flex + justify-end : l'image agrandie reste ancrée au bord DROIT de la colonne
   et déborde vers la gauche (sur la zone transparente), sans scroll horizontal. */
.apropos-silhouette {
	margin: 0;
	display: flex;
	justify-content: flex-end;
}
.apropos-silhouette img {
	display: block;
	flex: 0 0 auto;
	height: auto;               /* ratio naturel préservé */
	width: auto;
	max-height: 720px;          /* +50 % (480 → 720) */
	max-width: none;            /* peut dépasser la largeur de colonne pour grandir */
	border-radius: 0;           /* jamais d'arrondi */
	object-fit: initial;        /* jamais de recadrage */
}

/* --- Responsive : empiler → texte puis silhouette centrée --- */
@media (max-width: 781px) {
	.apropos-cols.apropos-cols {
		align-items: stretch;
	}
	.apropos-silhouette {
		justify-content: center;
	}
	.apropos-silhouette img {
		max-height: 540px;      /* +50 % (360 → 540) */
		max-width: 100%;        /* ne déborde pas sur mobile */
		margin-top: 1.5rem;
	}
}

/* --- P136 : icônes SVG en tête des titres de cartes (accueil « Un aperçu des fonctionnalités ») --- */
.carte-icone {
	vertical-align: -3px;
	margin-right: 8px;
	flex-shrink: 0;
}
