/*
 * « Tuiles de renvoi » — link tiles towards the sub-pages of a section. Loaded
 * only when a group carries .is-style-gb-renvoi; the mosaic itself (native grid,
 * joined tiles, breakpoints) comes with .is-style-gb-mosaique (grille.css).
 *
 * The tile is drawn like a mosaic tile (grille.css, .is-style-gb-tuile), with a
 * heading that is the link. The whole tile answers to the pointer over it and to
 * the keyboard focus inside it (:focus-within), but only the link is focusable:
 * one tile, one destination, one tab stop.
 * Hover changes ink only — never the geometry of the container.
 */

/* ──────────────────────────────────────────────────── one tile ── */
.is-style-gb-renvoi { position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.2rem;
	min-block-size: clamp(15rem, 22vw, 20rem); padding: clamp(1.4rem, 2.6vw, 2.4rem); }
.is-style-gb-renvoi > * { margin-block-start: 0; margin-block-end: 0; }

/* The ghost index (grille.css). */
.is-style-gb-renvoi > .gb-tuile__n { font-family: var(--wp--preset--font-family--heading); font-weight: 900;
	font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 0.9; letter-spacing: -0.06em; opacity: 0.78;
	font-feature-settings: "tnum"; transition: opacity 0.3s, translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-style-gb-renvoi:hover > .gb-tuile__n,
.is-style-gb-renvoi:focus-within > .gb-tuile__n { opacity: 1; translate: 0 -0.12em; }

/* The title is the link: pinned to the bottom, the arrow drawn after it. */
.is-style-gb-renvoi > .gb-renvoi__t { align-self: end; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.05;
	letter-spacing: -0.02em; max-inline-size: 22ch; }
.is-style-gb-renvoi > .gb-renvoi__t a { color: inherit; text-decoration: none; }
.is-style-gb-renvoi > .gb-renvoi__t a::after { content: "\2009\2192"; display: inline-block;
	transition: translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-style-gb-renvoi:hover > .gb-renvoi__t a,
.is-style-gb-renvoi > .gb-renvoi__t a:focus-visible { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 3px; }
.is-style-gb-renvoi:hover > .gb-renvoi__t a::after,
.is-style-gb-renvoi:focus-within > .gb-renvoi__t a::after { translate: 0.3em 0; }

/* The line under the title, reading width — full ink: on blue, white starts at 4.63:1,
   and any opacity would take it under 4.5 (Lighthouse, 07/09). */
.is-style-gb-renvoi > .gb-renvoi__l { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.34; max-inline-size: 36ch; }

/* The rule (grille.css): structural, grows to the full width under the pointer. */
.is-style-gb-renvoi::after { content: ""; display: block; block-size: 3px; inline-size: 3.4rem;
	background: currentColor; opacity: 0.3; transition: inline-size 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-style-gb-renvoi:hover::after,
.is-style-gb-renvoi:focus-within::after { inline-size: 100%; }

/* The icon cropped by the corner (grille.css). */
.is-style-gb-renvoi > .gb-icone { position: absolute; z-index: -1; inset-block-end: -14%; inset-inline-end: -6%;
	inline-size: clamp(9rem, 17vw, 15rem); block-size: auto; aspect-ratio: 1; fill: none;
	stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.3;
	transition: rotate 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; pointer-events: none; }
.is-style-gb-renvoi:hover > .gb-icone,
.is-style-gb-renvoi:focus-within > .gb-icone { rotate: -9deg; opacity: 0.48; }

/* ─────────────────────────────────────────────────── breakpoints ── */
@media (max-width: 760px) {
	.is-style-gb-renvoi { min-block-size: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
	.is-style-gb-renvoi > .gb-tuile__n, .is-style-gb-renvoi::after, .is-style-gb-renvoi > .gb-icone,
	.is-style-gb-renvoi > .gb-renvoi__t a::after { transition: none; }
	.is-style-gb-renvoi:hover > .gb-tuile__n, .is-style-gb-renvoi:focus-within > .gb-tuile__n { translate: none; }
	.is-style-gb-renvoi:hover > .gb-icone, .is-style-gb-renvoi:focus-within > .gb-icone { rotate: none; }
}
