/* ============================================================
   HERO DE L'ACCUEIL : terrain isométrique (3D), poteaux dorés, photo d'équipe
   Couleurs du club : bleu roi et or. 
   Le ballon réagit à la souris : il suit le curseur, et un survol le fait « kicker »
   entre les perches (voir hero.js).
   ============================================================ */


/* --- socle --- */
.hx { --bx: 0; --by: 0; --br: 0; position: relative; overflow: hidden; isolation: isolate; display: grid; min-height: clamp(580px, calc(100svh - 160px), 800px); }
.hx__layer { position: absolute; inset: -30px; pointer-events: none; }
.hx__content { position: relative; z-index: 5; }
.hx__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--rcm-head); text-transform: uppercase; letter-spacing: 0.28em; font-size: clamp(0.72rem, 1.6vw, 0.95rem); color: var(--gold-700); }
.hx__eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
.hx__title { margin: 0; font-family: var(--rcm-head); font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.02em; font-size: clamp(2.5rem, 7.4vw, 5.4rem); color: var(--blue-700); }
.hx__title span { display: block; margin-top: 0.12em; font-size: 0.5em; letter-spacing: 0.2em; color: var(--gold-700); }
.hx__lead { margin: 18px 0 0; max-width: 46ch; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); }
.hx__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.hx__ghost { display: inline-flex; align-items: center; padding: 6px 2px; color: var(--blue-700); font-family: var(--rcm-body); font-weight: 600; font-size: 0.98rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--gold-500); transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
.hx__ghost:hover { color: var(--blue-900); text-decoration-color: var(--blue-700); }

/* --- terrain isométrique --- */
.hx--iso { color: var(--ink); align-items: center; align-content: center; gap: clamp(8px, 3vw, 40px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	padding: clamp(28px, 4vw, 56px) max(20px, calc((100vw - var(--maxw)) / 2 + 20px));
	background:
		radial-gradient(55% 80% at 78% 45%, oklch(0.93 0.045 264), transparent 70%),
		radial-gradient(40% 50% at 8% 100%, oklch(0.93 0.05 88 / 0.7), transparent 70%),
		var(--paper); }
.hx--iso::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(oklch(0.35 0.14 264 / 0.16) 1.5px, transparent 1.6px); background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(60% 70% at 78% 48%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 78% 48%, #000, transparent 75%); }
.hx__scene { position: relative; z-index: 2; width: 100%; aspect-ratio: 900 / 820; }
.hx__scene .hx__layer { inset: 0; width: 100%; height: 100%; }
.hx__disc { inset: 6% auto auto 12% !important; width: 74% !important; height: auto !important; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, oklch(0.94 0.07 90), oklch(0.82 0.11 86)); opacity: 0.4; }
.hx__isoposts { z-index: 3; transition: filter 0.25s ease-out; }
.hx--scored .hx__isoposts { filter: brightness(1.3) drop-shadow(0 0 14px oklch(0.9 0.12 90)); }
.hx__word { position: absolute; z-index: -1; right: 2%; bottom: -0.16em; font-family: var(--rcm-head); font-weight: 700; line-height: 1; font-size: clamp(8rem, 24vw, 21rem); letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 2px oklch(0.35 0.14 264 / 0.11); pointer-events: none; user-select: none; }

/* --- ballon --- */
.hx__ballwrap { position: absolute; z-index: 4; left: 46%; top: 33%; width: 12.5%; aspect-ratio: 1; transform: translate3d(calc(var(--bx) * 1px), calc(var(--by) * 1px), 0); }
.hx__ballwrap.is-flying { z-index: 4; }
.hx__ballwrap.is-behind { z-index: 2; }
.hx__kick { position: relative; width: 100%; height: 100%; }
.hx__ball { display: block; width: 100%; height: auto; cursor: pointer; filter: drop-shadow(0 14px 18px oklch(0.15 0.07 264 / 0.5)); transform: rotate(calc(var(--br) * 1deg)); animation: hx-bob 3.2s ease-in-out infinite; }
.hx__shadow { position: absolute; left: 12%; right: 12%; top: 168%; height: 16%; border-radius: 50%; background: oklch(0.12 0.06 264 / 0.5); filter: blur(5px); animation: hx-shadow 3.2s ease-in-out infinite; }

/* --- encart prochain rendez-vous (bas droite) --- */
.hx__next { position: absolute; z-index: 6; right: max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); bottom: clamp(18px, 3vw, 40px); display: flex; flex-direction: column; gap: 2px; max-width: 290px; padding: 14px 18px 14px 20px; border-radius: 16px; text-decoration: none; color: var(--ink); background: oklch(1 0 0 / 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid oklch(0.35 0.14 264 / 0.12); box-shadow: var(--sh-md); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.hx__next:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.hx__next-label { font-family: var(--rcm-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--gold-700); }
.hx__next strong { font-family: var(--rcm-head); font-size: 1.15rem; line-height: 1.15; color: var(--blue-700); }
.hx__next span:not(.hx__next-label) { font-size: 0.88rem; color: var(--muted); }

/* --- photo d'équipe : carte inclinée sous le texte (sans effet au survol) --- */
.hx__team { position: relative; z-index: 5; width: clamp(250px, 24vw, 330px); margin: 34px 0 22px 6px; padding: 7px 7px 8px; background: var(--white); border-radius: 16px; box-shadow: var(--sh-lg); rotate: -3deg; }
.hx__team img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.hx__team figcaption { position: absolute; left: 18px; bottom: -13px; padding: 6px 16px; border-radius: 999px; background: var(--grad-gold); color: var(--blue-950); font-family: var(--rcm-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; box-shadow: var(--sh-gold); }

@media (min-width: 861px) {
	.hx__content { grid-column: 1; grid-row: 1; align-self: end; }
	.hx__team { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; }
	.hx__scene { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* --- animations --- */
@keyframes hx-bob { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -16px; rotate: 6deg; } }
@keyframes hx-shadow { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 0.82; opacity: 0.7; } }

/* --- mobile --- */
@media (max-width: 860px) {
	/* Mobile : tout le haut du hero (texte, boutons, photo) doit tenir avant le premier défilement */
	.hx--iso { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; padding-bottom: 28px; min-height: 0; }
	.hx__eyebrow { margin-bottom: 8px; font-size: 0.68rem; }
	.hx__title { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
	.hx__lead { margin-top: 10px; font-size: 0.98rem; line-height: 1.45; }
	.hx__cta { margin-top: 16px; }
	.hx__cta .rcm-btn--lg { padding: 14px 26px; font-size: 1rem; }
	.hx__content { order: 1; text-align: center; }
	.hx__eyebrow::before, .hx__eyebrow::after { content: ""; width: 18px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
	.hx__lead { margin-inline: auto; }
	.hx__cta { justify-content: center; }
	.hx__team { order: 2; width: min(100%, 400px); margin: 10px auto 30px; }
	.hx__team img { aspect-ratio: 16 / 10; object-position: 50% 62%; } /* recadrage sur l'équipe */
	.hx__scene { display: none; } /* pas de terrain sur téléphone */
	.hx__next { order: 3; position: relative; right: auto; bottom: auto; justify-self: center; width: min(100%, 360px); max-width: none; margin-top: -10px; }
}
/* Petits écrans (iPhone SE…) : photo un peu plus petite */
@media (max-width: 860px) and (max-height: 700px) {
	.hx__team { width: min(86%, 340px); }
	.hx__lead { font-size: 0.94rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hx *, .hx { animation: none !important; }
	.hx__ballwrap, .hx__ball, .hx__kick { transform: none !important; }
}
