/* COOCKPIT Thermolaquage : motifs, composants et compatibilité.
   Couleurs et typographie : theme.json. Référence : charte graphique COOCKPIT Thermolaquage. */

:root {
	--thq-rail: linear-gradient(90deg, #f86400 0, #f86400 38%, rgba(248, 100, 0, 0) 88%);
	--thq-brosse: repeating-linear-gradient(0deg, rgba(48, 48, 48, .022) 0, rgba(48, 48, 48, .022) 1px, transparent 1px, transparent 3px);
	--thq-alu: linear-gradient(135deg, #fff 0%, #f7f8fa 52%, #eceef2 100%);
	--thq-trame: radial-gradient(circle, #f86400 1.3px, transparent 1.8px);
	--thq-focus: 0 0 0 3px rgba(248, 100, 0, .45);
}

html { scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: none;
	box-shadow: var(--thq-focus);
	border-radius: 4px;
}

/* ---------- En-tête ---------- */
.thq-entete {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 10px 30px 0 rgba(82, 63, 105, .05);
}
.admin-bar .thq-entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .thq-entete { top: 46px; } }
.thq-entete::after {
	content: "";
	display: block;
	height: 3px;
	background: var(--thq-rail);
}
.thq-entete .thq-logo img { height: 48px; width: auto; display: block; }
@media (max-width: 600px) { .thq-entete .thq-logo img { height: 38px; } }

.thq-entete .wp-block-navigation .wp-block-navigation-item__content {
	padding: .5rem .125rem;
	border-bottom: 2px solid transparent;
}
.thq-entete .wp-block-navigation .wp-block-navigation-item__content:hover,
.thq-entete .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: #f86400;
	color: #b84a00;
}

/* Le lien « Demander une démo » du menu (classe cta-demo) devient le bouton principal. */
.wp-block-navigation .cta-demo mark { background: none !important; color: inherit !important; padding: 0; }
.wp-block-navigation .cta-demo > .wp-block-navigation-item__content {
	background: #b84a00;
	color: #fff !important;
	border-radius: 6px;
	border-bottom: 0 !important;
	padding: .65rem 1.25rem !important;
	transition: background .15s;
}
.wp-block-navigation .cta-demo > .wp-block-navigation-item__content:hover { background: #943b00; }
@media (min-width: 600px) { .thq-entete .wp-block-navigation .cta-demo { margin-left: 1rem; } }

/* Menu mobile ouvert */
.wp-block-navigation__responsive-container.is-menu-open { padding-top: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.125rem; }

/* ---------- Motifs signature ---------- */
.thq-rail { position: relative; }
.thq-rail::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--thq-rail);
	z-index: 1;
	pointer-events: none;
}
.thq-rail-terre-cuite::before { background: linear-gradient(90deg, #a9502c 0, #a9502c 38%, rgba(169, 80, 44, 0) 88%); }
.thq-rail-ocre::before { background: linear-gradient(90deg, #c28a1c 0, #c28a1c 38%, rgba(194, 138, 28, 0) 88%); }
.thq-rail-olive::before { background: linear-gradient(90deg, #718d30 0, #718d30 38%, rgba(113, 141, 48, 0) 88%); }

/* Trame de poudre : part d'un coin et s'efface, hors des zones de lecture. */
.thq-trame, .thq-trame-bas { position: relative; isolation: isolate; overflow: hidden; }
.thq-trame::after, .thq-trame-bas::after {
	content: "";
	position: absolute;
	width: min(520px, 60%);
	height: 420px;
	background-image: var(--thq-trame);
	background-size: 8px 8px;
	opacity: .5;
	pointer-events: none;
	z-index: -1;
}
.thq-trame::after {
	top: 0; right: 0;
	-webkit-mask-image: radial-gradient(ellipse 90% 85% at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
	mask-image: radial-gradient(ellipse 90% 85% at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
}
.thq-trame-bas::after {
	bottom: 0; left: 0;
	-webkit-mask-image: radial-gradient(ellipse 90% 85% at 0% 100%, #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
	mask-image: radial-gradient(ellipse 90% 85% at 0% 100%, #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
}

/* ---------- Styles de blocs (panneau « Styles » de l'éditeur) ---------- */
.is-style-fond-alu { background-color: #fff; background-image: var(--thq-brosse), var(--thq-alu); }

.is-style-carte-alu,
.is-style-carte {
	position: relative;
	overflow: hidden;
	border: 1px solid #e2e4e9;
	border-radius: 12px;
	background-color: #fff;
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: 0 0 20px 0 rgba(76, 87, 125, .02);
}
.is-style-carte-alu { background-image: var(--thq-brosse), var(--thq-alu); }
.is-style-carte-alu::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--thq-rail);
}
.is-style-carte-alu.thq-rail-terre-cuite::before { background: linear-gradient(90deg, #a9502c 0, #a9502c 38%, rgba(169, 80, 44, 0) 88%); }
.is-style-carte-alu.thq-rail-ocre::before { background: linear-gradient(90deg, #c28a1c 0, #c28a1c 38%, rgba(194, 138, 28, 0) 88%); }
.is-style-carte-alu.thq-rail-olive::before { background: linear-gradient(90deg, #718d30 0, #718d30 38%, rgba(113, 141, 48, 0) 88%); }

.is-style-bandeau-sombre {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #232427 !important;
	color: #c9cbd2;
}
.is-style-bandeau-sombre::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--thq-rail);
	z-index: 1;
}
.is-style-bandeau-sombre :where(h1, h2, h3, h4, h5, strong) { color: #fff; }
.is-style-bandeau-sombre :where(h6, .is-style-surtitre) { color: #ffb98a; }
.is-style-bandeau-sombre a:where(:not(.wp-element-button)) { color: #ffb98a; }
.is-style-bandeau-sombre a:where(:not(.wp-element-button)):hover { color: #ff8a3d; }
.is-style-bandeau-sombre .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: #6b6d74;
}
.is-style-bandeau-sombre .is-style-outline .wp-block-button__link:hover { border-color: #fff; }

/* Bloc teinté : en-tête dans la teinte du ton, titre dans le ton foncé, corps blanc. */
.is-style-teinte-ocre,
.is-style-teinte-terre-cuite,
.is-style-teinte-olive {
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
}
.is-style-teinte-ocre { border-color: #f8eed6; }
.is-style-teinte-terre-cuite { border-color: #f6e5dc; }
.is-style-teinte-olive { border-color: #eef3dd; }
:where(.is-style-teinte-ocre, .is-style-teinte-terre-cuite, .is-style-teinte-olive) > * { margin: 0 !important; padding: 1.25rem 1.5rem; }
:where(.is-style-teinte-ocre, .is-style-teinte-terre-cuite, .is-style-teinte-olive) > :first-child { padding: 1.1rem 1.5rem; }
:where(.is-style-teinte-ocre, .is-style-teinte-terre-cuite, .is-style-teinte-olive) > :last-child { padding-bottom: 1.5rem; }
.is-style-teinte-ocre > :first-child { background: #f8eed6; color: #775309; }
.is-style-teinte-terre-cuite > :first-child { background: #f6e5dc; color: #80391b; }
.is-style-teinte-olive > :first-child { background: #eef3dd; color: #4b611c; }
:where(.is-style-teinte-ocre, .is-style-teinte-terre-cuite, .is-style-teinte-olive) > :first-child :where(h2, h3, h4) { color: inherit; margin: 0; }
.is-style-teinte-ocre a { color: #775309; }
.is-style-teinte-terre-cuite a { color: #80391b; }
.is-style-teinte-olive a { color: #4b611c; }

/* Surtitre : petit trait orange, capitales espacées. */
.is-style-surtitre {
	display: flex;
	align-items: center;
	gap: .625rem;
	font-size: .8125rem !important;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #b84a00;
}
.is-style-surtitre::before { content: ""; flex: none; width: 12px; height: 2px; background: #f86400; }
.has-text-align-center.is-style-surtitre { justify-content: center; }

/* Capture d'écran encadrée */
.wp-block-image.is-style-capture img {
	border: 1px solid #e2e4e9;
	padding: 8px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(35, 36, 39, .14);
}

/* Photo d'atelier arrondie */
.wp-block-image.is-style-photo img {
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(35, 36, 39, .14);
}

/* Listes à coches et listes de problèmes */
.is-style-coches, .is-style-croix { list-style: none; padding-left: 0; }
.is-style-coches li, .is-style-croix li { position: relative; padding-left: 2.1rem; margin-bottom: .75rem; }
.is-style-coches li::before, .is-style-croix li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: .75rem;
}
.is-style-coches li::before {
	background-color: #eef3dd;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b611c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.is-style-croix li { color: #52566a; }
.is-style-croix li::before {
	background-color: #eceef2;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380391b' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* Puces de liens (« Les autres étapes du parcours ») */
.wp-block-navigation.is-style-puces .wp-block-navigation-item__content {
	padding: .6rem 1rem;
	border: 1px solid #e2e4e9;
	border-radius: 999px;
	background: #fff;
}
.wp-block-navigation.is-style-puces .wp-block-navigation-item__content:hover {
	border-color: #f86400;
	background: #fff6ef;
	color: #943b00;
}

/* ---------- Composants ---------- */
/* Barre de chiffres posée sous le héros */
.thq-chiffres { position: relative; z-index: 2; }
.thq-chiffres > .wp-block-columns { gap: 0 !important; }
.thq-chiffres .wp-block-column + .wp-block-column { border-left: 1px solid #e2e4e9; }
@media (max-width: 781px) { .thq-chiffres .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid #e2e4e9; } }

/* Logos clients : gris, en couleur au survol */
.thq-logos img { filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; max-height: 56px; width: auto; }
.thq-logos img:hover { filter: none; opacity: 1; }

/* Image du héros avec capture flottante */
.thq-heros-visuel { position: relative; padding: 0 0 3rem 2.5rem; }
.thq-heros-visuel > .wp-block-image:first-child img { box-shadow: 0 20px 50px rgba(35, 36, 39, .18); }
.thq-heros-visuel .thq-capture-flottante {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 58%;
	margin: 0;
}
.thq-heros-visuel .thq-capture-flottante img {
	background: #fff;
	border: 1px solid #e2e4e9;
	padding: 8px;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(35, 36, 39, .22);
}
@media (max-width: 600px) { .thq-heros-visuel { padding: 0; } .thq-heros-visuel .thq-capture-flottante { display: none; } }

/* FAQ : blocs Détails */
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-weight: 500;
	font-size: 1.0625rem;
	color: #181c32;
	padding: .35rem 0;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid #c9ccd6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b84a00;
	font-size: 1.25rem;
	line-height: 1;
	transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background: #fff6ef; border-color: #f86400; }
.wp-block-details > :not(summary) { color: #52566a; }

/* Citations */
.wp-block-quote { position: relative; }
.wp-block-quote.is-style-default::before,
.wp-block-quote:not([class*="is-style-"])::before {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f86400'%3E%3Cpath d='M4 18v-5c0-4 2-7 6-8l1 2c-2 1-3 2.5-3 5h3v6H4zm9 0v-5c0-4 2-7 6-8l1 2c-2 1-3 2.5-3 5h3v6h-7z'/%3E%3C/svg%3E") no-repeat;
}

/* Fil d'Ariane (texte simple ou extension) */
.thq-ariane { font-size: .875rem; color: #52566a; }
.thq-ariane a { color: #52566a; text-decoration: none; }
.thq-ariane a:hover { color: #b84a00; text-decoration: underline; }

/* Formulaires (Contact Form 7 compris) */
:where(.wpcf7, .wp-block-search) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], select, textarea) {
	width: 100%;
	min-height: 46px;
	padding: .65rem .9rem;
	border: 1px solid #e2e4e9;
	border-radius: 6px;
	background: #f5f8fa;
	font: inherit;
	font-weight: 500;
	color: #303030;
}
:where(.wpcf7, .wp-block-search) :where(input, select, textarea):focus { outline: none; border-color: #f86400; box-shadow: 0 0 0 2px rgba(248, 100, 0, .5); background: #fff; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { accent-color: #b84a00; }
.wpcf7 input[type="submit"] {
	background: #b84a00;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: .8rem 1.5rem;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: #943b00; }
.wpcf7-not-valid-tip { color: #c0392b; font-size: .875rem; }

/* Pied de page */
.thq-pied { position: relative; isolation: isolate; overflow: hidden; }
.thq-pied a { color: #c9cbd2; text-decoration: none; }
.thq-pied a:hover { color: #ffb98a; }
.thq-pied .wp-block-navigation .wp-block-navigation-item__content { padding: .2rem 0; }
.thq-pied .thq-cartouche {
	background: #fff;
	border-radius: 8px;
	padding: 10px 14px 8px;
	width: fit-content;
}
.thq-pied .thq-cartouche::after { content: ""; display: block; height: 3px; margin-top: 6px; background: var(--thq-rail); }
.thq-pied .thq-cartouche img { height: 44px; width: auto; display: block; }
.thq-pied .wp-block-button__link { color: #fff !important; }

/* Articles du blog en cartes */
.thq-cartes-articles .wp-block-post {
	border: 1px solid #e2e4e9;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
}
.thq-cartes-articles .wp-block-post:hover { box-shadow: 0 1.3px 13px 3.25px rgba(0, 0, 0, .05); transform: translateY(-2px); }
.thq-cartes-articles .wp-block-post-featured-image { margin: 0; }
.thq-cartes-articles .wp-block-post-featured-image img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.thq-cartes-articles .thq-carte-corps { padding: 1.25rem 1.5rem 1.5rem; }

/* ---------- Compatibilité avec les pages existantes ----------
   Les pages créées sous Twenty Twenty-Five portent encore des couleurs du site sombre.
   Ces règles les adaptent sans modifier leur contenu. À retirer page par page
   quand une page est remise en forme avec les compositions du thème. */

/* « Accent 3 » (ancien fond de carte sombre) : devient une carte claire. */
.has-accent-3-background-color {
	border: 1px solid #e2e4e9;
	border-radius: 12px;
}
.has-accent-3-background-color.has-base-color,
.has-accent-3-background-color :where(.has-base-color) { color: #303030 !important; }
.has-accent-3-background-color :where(h1, h2, h3, h4) { color: #181c32; }

/* Fond sombre écrit en dur dans 15 blocs : passe en fond clair. */
[style*="background-color:#1a1f2b"],
[style*="background-color: #1a1f2b"] {
	background-color: #f5f8fa !important;
	color: #303030 !important;
	border: 1px solid #e2e4e9;
	border-radius: 12px;
}
[style*="background-color:#1a1f2b"] :where(.has-base-color),
[style*="background-color: #1a1f2b"] :where(.has-base-color) { color: #303030 !important; }

/* Texte gris clair écrit en dur, prévu pour le fond sombre… sauf sur une photo de fond. */
[style*="color:#d7d7d7"], [style*="color: #d7d7d7"] { color: #52566a !important; }
:where([style*="background-image"], .wp-block-cover, .is-style-bandeau-sombre) :is([style*="color:#d7d7d7"], [style*="color: #d7d7d7"]) { color: #e8e9ee !important; }

/* Texte blanc (« base ») hors d'un fond sombre : passe en encre.
   Les classes de couleur de WordPress sont en !important : ces règles le sont aussi,
   plus précises que celles de WordPress ; à spécificité égale entre elles, la seconde (fonds sombres et photos) passe après et l'emporte. */
:where(main) .has-base-color.has-text-color:where(:not(.has-background, .wp-element-button, .wp-block-button__link)) { color: #303030 !important; }
:where(.is-style-bandeau-sombre, .has-anthracite-background-color, .wp-block-cover, [style*="background-image"]) .has-base-color.has-text-color { color: #fff !important; }

/* Ancien surlignage orange vif posé en fond de texte (page Démo) : orange de la charte, lisible. */
span[style*="background-color:#f97316"] { background-color: #b84a00 !important; color: #fff; }

/* Ancienne couleur de surlignage orange vif dans les textes. */
mark[style*="#f97316"] { background-color: transparent !important; color: #b84a00 !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Pastilles d'icône des cartes */
.thq-pastille-terre-cuite img, .thq-pastille-ocre img, .thq-pastille-olive img { padding: 12px; box-sizing: border-box; }
.thq-pastille-terre-cuite img { background: #f6e5dc; }
.thq-pastille-ocre img { background: #f8eed6; }
.thq-pastille-olive img { background: #eef3dd; }
.wp-block-group:where(.is-style-carte-alu) > .wp-block-image { flex: none; margin: 0; }

/* Vidéo dans un bandeau */
.thq-video video { border-radius: 12px; border: 1px solid #303136; box-shadow: 0 6.5px 19.5px rgba(0, 0, 0, .18); width: 100%; }

/* Parcours d'une commande (étapes en tons Terre) */
.thq-parcours > p { margin: 0 !important; }
.thq-pastille-famille { width: fit-content; }

/* Tableau comparatif (classe thq-comparatif sur le bloc Tableau) : dernière colonne = COOCKPIT */
.wp-block-table.thq-comparatif { overflow-x: auto; }
.thq-comparatif table { border-collapse: separate; border-spacing: 0; border: 1px solid #e2e4e9; border-radius: 12px; overflow: hidden; background: #fff; }
.thq-comparatif th, .thq-comparatif td { border: 0; padding: .8rem 1rem; text-align: left; }
.thq-comparatif thead th { background: #232427; color: #fff; font-weight: 600; }
.thq-comparatif thead th:last-child { background: #b84a00; }
.thq-comparatif tbody td { border-top: 1px solid #e2e4e9; color: #52566a; }
.thq-comparatif tbody td:first-child { color: #181c32; font-weight: 500; }
.thq-comparatif tbody td:last-child { background: #fff6ef; color: #943b00; }

/* Chiffres clés posés dans une carte sans marges propres */
.thq-chiffres .wp-block-column:not([style*="padding"]) { padding: .5rem 1.5rem; }

/* Logo d'un client dans une carte (page Résultats clients) */
.thq-logo-client { align-items: center; justify-content: center; min-height: 140px; }
.thq-logo-client img { max-height: 90px; width: auto; object-fit: contain; }

/* Ancienne colonne de formulaire à bordure bleue (page Démo) : aux couleurs de la charte */
.wp-block-column[style*="#3b82f6"] {
	border-color: #e2e4e9 !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 50px rgba(35, 36, 39, .10);
	padding: clamp(1.25rem, 3vw, 2rem);
}

/* Citation mise en avant */
.wp-block-pullquote { border: 0; border-top: 4px solid #f86400; padding: 2rem 0 0; text-align: left; }
.wp-block-pullquote blockquote p { font-size: 1.25rem; line-height: 1.5; color: #181c32; }
.wp-block-pullquote cite { color: #52566a; font-style: normal; font-size: .875rem; }

/* Formulaires Contact Form 7 : l'extrait CSS « Code Snippets » de l'ancien site sombre
   (variables --field-bg, --text…, classes .contact-form, .demo2-form, .wbtn-orange) est ramené à la charte. */
.wpcf7 .contact-form {
	--bg: #fff; --text: #303030; --muted: #7e8299; --blue: #b84a00; --orange: #b84a00;
	--border: #d6d9e0; --field-bg: #fff; --focus-ring: rgba(248, 100, 0, .22);
}
.wpcf7 .contact-form input:hover, .wpcf7 .contact-form textarea:hover { border-color: #b5b9c4; }
.wpcf7 :is(.contact-form, .demo2-form) :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	width: 100%; background: #fff; color: #303030; border: 1px solid #d6d9e0; border-radius: 6px;
}
.wpcf7 :is(.contact-form, .demo2-form) :is(input, textarea):focus-visible { border-color: #f86400; box-shadow: 0 0 0 3px rgba(248, 100, 0, .22); }
.wpcf7 :is(.contact-form, .demo2-form) ::placeholder { color: #7e8299; }
.wpcf7 :is(.contact-form input[type="submit"], .wbtn-orange) {
	background: #b84a00; color: #fff; font-size: 1rem; font-weight: 600; border-radius: 6px; box-shadow: none;
}
.wpcf7 :is(.contact-form input[type="submit"], .wbtn-orange):hover { background: #943b00; transform: none; box-shadow: none; }
.wpcf7 .demo2-form { margin-left: 0; }
.wpcf7 .demo2-form .rgpd-note { color: #52566a; }
.wpcf7 .demo2-form .rgpd-note a { color: #b84a00; }

/* Haut de page à deux colonnes (titre H1 + image) : une seule colonne sous 1024 px,
   sinon le titre se coupe au milieu des mots sur tablette. */
@media (max-width: 1024px) {
	.wp-block-columns:has(> .wp-block-column > h1, > .wp-block-column > .wp-block-group > h1) { flex-wrap: wrap !important; }
	.wp-block-columns:has(> .wp-block-column > h1, > .wp-block-column > .wp-block-group > h1) > .wp-block-column { flex-basis: 100% !important; }
}
