/*
 * « Divers » — three generic library patterns that share one stylesheet:
 *   .is-style-gb-chiffres  (core/columns)  key figures      patterns/chiffres-cles.php
 *   .is-style-gb-citation  (core/group)    testimonial box  patterns/citation.php
 *   .is-style-gb-logos     (core/group)    logo row         patterns/logos.php
 * Loaded only when a block carries one of the three styles (inc/block-styles/divers.php).
 * Colours: currentColor and presets only. Rules: structural 22 %, accent = full ink.
 */

/* ───────────────────────────────────────── key figures ── */
/* Each column starts under a structural rule; the figure is Unbounded 900 with
   tabular numerals so a bound value that grows (7 → 12 ports) keeps its column. */
.is-style-gb-chiffres { margin-block-start: clamp(2rem, 4vw, 3.4rem); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem); }
.is-style-gb-chiffres > .wp-block-column { border-block-start: 3px solid color-mix(in oklab, currentColor 22%, transparent);
	padding-block-start: clamp(1rem, 2vw, 1.6rem); }
.is-style-gb-chiffres > .wp-block-column > * { margin-block-start: 0; }
.is-style-gb-chiffres .gb-chiffres__n { font-family: var(--wp--preset--font-family--heading); font-weight: 900;
	font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: -0.05em; font-feature-settings: "tnum";
	overflow-wrap: anywhere; }
.is-style-gb-chiffres .gb-chiffres__n + * { margin-block-start: 0.9rem; }

/* ─────────────────────────────────────── testimonial ── */
/* The box is the « témoin » frame of the mockup: 4 px of full ink, generous padding. */
.is-style-gb-citation { border: 4px solid currentColor; padding: clamp(1.6rem, 3.4vw, 3rem); }
.is-style-gb-citation .wp-block-columns { gap: clamp(1.5rem, 3vw, 2.8rem) clamp(2rem, 4vw, 4rem); }
.is-style-gb-citation .wp-block-columns > .wp-block-column > * { margin-block-start: 0; }
/* The native quote block ships no border here: the frame is the section's. */
.is-style-gb-citation .wp-block-quote { border: 0; margin: 0; padding: 0; }
.is-style-gb-citation .wp-block-quote p { font-family: var(--wp--preset--font-family--body); font-weight: 300;
	font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.25; letter-spacing: -0.012em; font-style: normal;
	max-inline-size: 30ch; }
.is-style-gb-citation .wp-block-quote p + p { margin-block-start: 0.8em; }
/* An attribution typed in the quote block's own « citation » slot gets the same look as the author lines. */
.is-style-gb-citation .wp-block-quote cite { display: block; font-style: normal; font-size: var(--wp--preset--font-size--medium);
	margin-block-start: 1.4rem; }
.is-style-gb-citation .gb-citation__auteur { margin-block-start: 1.4rem; }
.is-style-gb-citation .gb-citation__auteur > * { margin-block-start: 0; }
.is-style-gb-citation .gb-citation__auteur > * + * { margin-block-start: 0.35rem; }
/* Small square image, hard shadow (socle .is-style-gb-porte), hugging the right edge. */
.is-style-gb-citation .wp-block-image { margin: 0 0 10px auto; max-inline-size: 22rem; }
.is-style-gb-citation .wp-block-image img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1; object-fit: cover; }

/* ────────────────────────────────────────── logo row ── */
/* Same row as the footer partners: equal height, wrapping, secondary to the Interreg block.
   Its height is `--gb-logo-page` (greenbay.css) — the EU flag's height DOUBLED since 22/09.

   ⚠️ This row therefore no longer respects the ceiling the Pôle Europe stated on 17/09
   (« les logos des partenaires doivent être de taille égale ou inférieure à celle du
   drapeau européen »). It is a deliberate call by Kevin, taken after the constraint was
   restated to him with the figures, because the row read as four stamps lost in a corner.
   The footer row still sits exactly at the flag (`--gb-drapeau`) — that is where the
   integrated block and the partner logos share a page fold.

   Never write a number here either way: one value governs, in greenbay.css, so the row
   goes back under the ceiling by changing a single factor. See technique.md §18.21. */
/* Centrée, répartie sur 80 % de la rive, et largement respirée (Kevin, 22/09) : à la
   hauteur imposée par le drapeau UE, une rangée calée à gauche avec de petits écarts
   donnait quatre vignettes tassées dans un coin. La hauteur, elle, ne peut pas bouger —
   c'est le plafond ci-dessus. `space-between` ancre le premier logo à 10 % et le dernier
   à 90 % de la rive : la rangée tient la largeur du titre au-dessus d'elle. */
/* L'air autour de la rangée est un PADDING, pas une marge — la règle du 15/09 (arbitrage
   n°34), redécouverte ici en la mesurant : le cœur pose son blockGap par
   `.wp-container-… > *` et remet à zéro la marge du dernier enfant, deux sélecteurs à
   spécificité égale à la nôtre mais écrits après. En marge, le haut tombait à 24 px et le
   bas à 0. Un padding ne se dispute avec personne. */
.wp-block-group.is-style-gb-logos { margin-block: 0;
	padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem);
	max-inline-size: 80%; margin-inline: auto;
	justify-content: space-between; align-items: center;
	gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
/* Sous 760 px la rangée reprend toute la largeur et se groupe au centre : répartir
   quatre logos sur 80 % d'un écran de téléphone les sépare de leur propre titre. */
@media (max-width: 760px) {
	/* Deux classes ici aussi, sinon la règle générale ci-dessus l'emporte. */
	.wp-block-group.is-style-gb-logos { max-inline-size: 100%; justify-content: center;
		padding-block: clamp(3rem, 9vw, 4rem) clamp(2.5rem, 8vw, 3.5rem);
		gap: clamp(1.25rem, 5vw, 2rem) clamp(1.5rem, 6vw, 2.5rem); }
}
.is-style-gb-logos > .wp-block-image { margin: 0; }
/* `!important`: the editor writes style="height:auto" on every image (05/09). */
.is-style-gb-logos .wp-block-image img { display: block; block-size: var(--gb-logo-page) !important; inline-size: auto; max-inline-size: none; }
.is-style-gb-logos .wp-block-image a { display: block; min-block-size: 24px; transition: opacity 0.18s; }
.is-style-gb-logos .wp-block-image a:hover { opacity: 0.7; }

@media (max-width: 430px) {
	.is-style-gb-chiffres .gb-chiffres__n { font-size: 2.5rem; }
	.is-style-gb-citation { padding: 1.4rem; }
	/* Under 430 px the cap is already at its floor (330 px block → 21 px): nothing to lower. */
}
