/*
 * Gorillaman – Landing page Le Barcarès
 * Direction artistique « Instinct » : noir, azur Barcarès, diagonales à 20°, photos en duotone noir et bleu.
 * Tout est préfixé .gml pour ne pas interférer avec le thème (Elementor, The7, thèmes blocs…).
 */

@font-face { font-family: "GML Unbounded"; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GML Unbounded"; src: url("../fonts/unbounded-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "GML Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GML Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "GML Jost"; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "GML Jost"; src: url("../fonts/jost-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Jetons */
.gml {
	--gml-accent: #5ce1e6;
	--gml-black: #000;
	--gml-forest: #04253a; /* bleu nuit du duotone */
	--gml-iron: #3a3a3a;
	--gml-panel: #0f0f0f;
	--gml-soft: #0d0d0d;
	--gml-line: #1f1f1f;
	--gml-white: #fff;
	--gml-t2: #d9d9d9;
	--gml-t3: #b3b3b3;
	--gml-t4: #8c8c8c;
	--gml-display: "GML Unbounded", "Arial Black", sans-serif;
	--gml-body: "GML Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
	--gml-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Socle isolé du thème */
.gml, .gml *, .gml *::before, .gml *::after { box-sizing: border-box; }
.gml {
	position: relative;
	background: var(--gml-black);
	color: var(--gml-white);
	font-family: var(--gml-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
}
.gml :where(h1, h2, h3, p, ul, ol, dl, dd, dt, figure, figcaption, blockquote) { margin: 0; padding: 0; }
.gml :where(ul, ol) { list-style: none; }
.gml :where(h1, h2, h3) { color: inherit; font-family: var(--gml-display); letter-spacing: 0; }
.gml img { max-width: 100%; height: auto; display: block; border: 0; border-radius: 0; box-shadow: none; }
.gml a { color: inherit; text-decoration: none; box-shadow: none; }
.gml a:focus-visible, .gml summary:focus-visible { outline: 3px solid var(--gml-white); outline-offset: 3px; }
.gml-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pleine largeur dans un contenu de page : les thèmes blocs et Elementor imposent leurs marges en !important. */
.gml.gml--breakout { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
body.gml-page { overflow-x: clip; }
body.gml-hide-title :is(.entry-title, .page-title, .wp-block-post-title, .elementor-page-title, .page-header) { display: none; }
body.gml-fullpage { margin: 0; background: #000; }

.gml-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Bandeau d'administration et emplacements à compléter */
.gml-adminbar { background: var(--gml-line); border-bottom: 2px solid var(--gml-accent); padding: 12px 24px; font-size: 14px; line-height: 1.5; }
.gml-adminbar a { color: var(--gml-accent); text-decoration: underline; }
.gml-slot {
	display: flex; flex-direction: column; justify-content: center; gap: 4px;
	min-height: 80px; padding: 16px;
	border: 1px dashed var(--gml-accent); background: rgba(92, 225, 230, .08);
	color: var(--gml-white); font-size: 15px; font-weight: 600; line-height: 1.35;
}
.gml-slot__hint { font-size: 12px; font-weight: 400; color: var(--gml-t3); }
.gml-slot--fill { position: absolute; inset: 0; align-items: center; text-align: center; z-index: 4; }
.gml-slot--small { min-height: 0; padding: 10px 12px; }

/* ---------- Boutons et liens */
.gml .gml-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 64px; padding: 0 44px;
	background: var(--gml-accent); color: #000;
	font-family: var(--gml-display); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .02em; text-align: center;
	clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	transition: transform .18s var(--gml-ease), filter .18s;
}
.gml .gml-btn:hover { color: #000; filter: brightness(1.08); transform: translateX(4px); }
.gml .gml-btn:focus-visible { outline: 3px solid #000; outline-offset: -8px; }
.gml .gml-btn--small { min-height: 48px; padding: 0 28px; font-size: 13px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.gml .gml-btn--dark { background: #000; color: var(--gml-white); }
.gml .gml-btn--dark:hover { color: var(--gml-white); }
.gml .gml-btn--dark:focus-visible { outline-color: var(--gml-white); }
.gml .gml-link { font-weight: 600; font-size: 18px; text-decoration: underline; text-underline-offset: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.gml .gml-link:hover { color: var(--gml-accent); }

/* ---------- En-tête */
.gml-header { position: relative; z-index: 5; border-bottom: 1px solid var(--gml-line); background: #000; }
.gml-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.gml-header__brand { display: inline-flex; align-items: center; min-height: 44px; }
.gml .gml-logo { height: 46px; width: auto; }
.gml-header__wordmark { font-family: var(--gml-display); font-weight: 900; font-size: 22px; }
.gml-header__nav { display: flex; align-items: center; gap: 32px; }

/* Sélecteur de langue */
.gml .gml-lang { display: flex; align-items: center; gap: 14px; }
.gml .gml-lang__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; font-size: 14px; opacity: .55; transition: opacity .15s; }
.gml .gml-lang__link:hover, .gml .gml-lang__link.is-active { opacity: 1; }
.gml-lang__flag { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; }
.gml-lang__flag svg { width: 22px; height: 22px; display: block; }
.gml-lang__link.is-active .gml-lang__flag { box-shadow: 0 0 0 2px var(--gml-white); }
.gml .gml-header__link { font-weight: 500; font-size: 16px; }
.gml .gml-header__link:hover { color: var(--gml-accent); }

/* ---------- Hero */
.gml-hero { position: relative; display: flex; align-items: center; min-height: 900px; }
.gml-hero__visual, .gml-hero__stripe { position: absolute; top: 0; bottom: 0; width: 52%; }
.gml-hero__visual { left: 48%; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); background: var(--gml-forest); z-index: 1; }
.gml-hero__stripe { left: 45%; clip-path: polygon(30% 0, 33% 0, 3% 100%, 0 100%); background: var(--gml-accent); z-index: 1; }
.gml-photo { isolation: isolate; overflow: hidden; }
.gml-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gml-hero__visual > img { object-position: 40% 60%; }
.gml--duo .gml-photo { background: var(--gml-accent); }
.gml--duo .gml-photo > img { filter: grayscale(1) contrast(1.15) brightness(1.1); mix-blend-mode: multiply; }
.gml--duo .gml-photo::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(35deg, rgba(0, 0, 0, .6) 0%, rgba(4, 37, 58, .45) 40%, rgba(4, 37, 58, 0) 75%);
	mix-blend-mode: multiply;
}
.gml-hero__badge { position: absolute; z-index: 2; width: 230px; right: 124px; top: 56px; pointer-events: none; }
.gml-hero__badge img { width: 100%; }
.gml .gml-caption { position: absolute; z-index: 3; background: #000; color: var(--gml-white); font-size: 15px; font-weight: 600; line-height: 1.3; padding: 10px 16px; }
.gml-hero__caption { right: 48px; bottom: 64px; }
.gml-hero__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 88px; }
.gml-hero__content { width: 56%; max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.gml .gml-chip {
	display: inline-block; background: var(--gml-accent); color: #000;
	font-size: 15px; font-weight: 600; line-height: 1.3; padding: 8px 24px;
	clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.gml .gml-h1 { font-family: var(--gml-display); font-weight: 900; font-size: clamp(30px, 4.1vw, 58px); line-height: 1.04; text-transform: uppercase; color: var(--gml-white); }
.gml .gml-h1 span { display: block; }
.gml .gml-tagline { color: var(--gml-accent); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; }
.gml .gml-intro { color: var(--gml-t2); font-size: 20px; max-width: 600px; }
.gml .gml-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 600; font-size: 17px; }
.gml .gml-meta li { display: flex; align-items: center; gap: 10px; }
.gml .gml-meta svg { color: var(--gml-accent); flex: none; }

/* Compte à rebours */
.gml .gml-cd__label { color: var(--gml-t3); font-weight: 500; font-size: 16px; margin-bottom: 12px; }
.gml-cd__boxes { display: flex; gap: 10px; }
.gml-cd__box { position: relative; width: 112px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.gml-cd__box::before, .gml-cd__box::after { content: ""; position: absolute; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); }
.gml-cd__box::before { inset: 0; background: var(--gml-accent); }
.gml-cd__box::after { inset: 2px; background: var(--gml-panel); }
.gml-cd__value { position: relative; z-index: 1; font-family: var(--gml-display); font-weight: 900; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gml-cd__unit { position: relative; z-index: 1; color: var(--gml-t3); font-size: 14px; font-weight: 500; }
.gml .gml-cd__end { font-family: var(--gml-display); font-weight: 900; font-size: 32px; color: var(--gml-accent); }
.gml-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.gml .gml-note { color: var(--gml-t4); font-size: 14px; }

/* ---------- Chiffres */
.gml-stats {
	background: var(--gml-accent); color: #000;
	clip-path: polygon(0 52px, 100% 0, 100% calc(100% - 52px), 0 100%);
	padding: 112px 0 120px; margin-top: 24px;
}
.gml-stats__grid { display: grid; grid-template-columns: 1.1fr .9fr 1.25fr 1fr; gap: 40px 64px; } /* colonnes fixes : le compteur animé ne fait pas bouger la mise en page */
.gml .gml-stat { display: flex; flex-direction: column; gap: 8px; }
.gml .gml-stat__value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .3em; font-family: var(--gml-display); font-weight: 900; font-size: clamp(32px, 3.8vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.gml .gml-stat__unit { font-weight: 700; font-size: .42em; white-space: nowrap; }
.gml .gml-stat__label { font-weight: 500; font-size: 17px; line-height: 1.4; max-width: 15em; }

/* ---------- Bandeau défilant */
.gml-marquee { overflow: hidden; padding: 44px 0 56px; }
.gml-marquee__track { display: flex; width: max-content; transform: rotate(-2deg); animation: gml-marquee 40s linear infinite; }
.gml-marquee:hover .gml-marquee__track { animation-play-state: paused; }
.gml-marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.gml-marquee__word { font-family: var(--gml-display); font-weight: 900; font-size: 64px; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.gml-marquee__word.is-accent { color: var(--gml-accent); }
.gml-marquee__sep { width: 34px; height: 70px; flex: none; background: var(--gml-accent); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); }

/* ---------- Sections */
.gml-section { padding: 96px 0; position: relative; }
.gml-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; align-items: end; }
.gml .gml-h2 { font-family: var(--gml-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.1; text-transform: uppercase; color: var(--gml-white); }
.gml .gml-h3 { font-family: var(--gml-display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.gml .gml-lead { color: var(--gml-t2); font-size: 19px; line-height: 1.55; }

/* Formats */
.gml-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: end; margin-top: 56px; }
.gml-card { position: relative; isolation: isolate; padding: 40px 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.gml-card::before, .gml-card::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); }
.gml-card::before { inset: 0; background: var(--gml-iron); }
.gml-card::after { inset: 1px; background: var(--gml-panel); }
.gml-card.is-highlight::before, .gml-card.is-highlight::after { background: var(--gml-accent); }
.gml-card.is-highlight { color: #000; padding-top: 52px; }
.gml .gml-card__name { font-family: var(--gml-display); font-weight: 900; font-size: 44px; line-height: 1; text-transform: uppercase; }
.gml-card__list { display: flex; flex-direction: column; gap: 14px; }
.gml-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gml .gml-card__row dt { display: flex; align-items: center; gap: 10px; color: var(--gml-t3); font-size: 15px; font-weight: 500; }
.gml .gml-card__row dt svg { color: var(--gml-accent); flex: none; }
.gml .gml-card__row dd { font-family: var(--gml-display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.gml-card.is-highlight .gml-card__row dt, .gml-card.is-highlight .gml-card__row dt svg { color: #000; }
.gml .gml-card__audience { border-top: 1px solid var(--gml-iron); padding-top: 18px; font-weight: 600; font-size: 16px; line-height: 1.4; }
.gml-card.is-highlight .gml-card__audience { border-top-color: rgba(0, 0, 0, .3); }
.gml-kids { position: relative; isolation: isolate; margin-top: 24px; padding: 26px 56px; display: flex; align-items: center; gap: 16px 40px; }
.gml-kids::before, .gml-kids::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
.gml-kids::before { inset: 0; background: var(--gml-iron); }
.gml-kids::after { inset: 1px; background: var(--gml-panel); }
.gml .gml-kids__title { font-family: var(--gml-display); font-weight: 900; font-size: 28px; text-transform: uppercase; color: var(--gml-accent); flex: none; }
.gml .gml-kids__text { font-weight: 500; font-size: 18px; }
.gml-formats .gml-note { margin-top: 20px; }

/* Esprit : galerie en biais */
.gml-gallery { position: relative; height: 520px; margin-top: 56px; }
.gml-gallery__item { position: absolute; top: 0; bottom: 0; background: var(--gml-forest); }
.gml-gallery__item:nth-child(1) { left: 0; width: 47%; clip-path: polygon(0 0, 100% 0, 83.9% 100%, 0 100%); }
.gml-gallery__item:nth-child(2) { left: 41.1%; width: 34.4%; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.gml-gallery__item:nth-child(3) { left: 69.6%; width: 30.4%; clip-path: polygon(24.9% 0, 100% 0, 100% 100%, 0 100%); }
.gml-gallery__item .gml-caption { left: 24px; bottom: 24px; }
.gml-gallery__item:nth-child(2) .gml-caption { left: 8%; }

/* Parcours */
.gml-course__intro { display: flex; align-items: center; gap: 64px; }
.gml-course__badge { width: 200px; flex: none; }
.gml-course__intro .gml-lead, .gml-course__intro .gml-slot { margin-top: 18px; max-width: 700px; }
.gml-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.gml-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 43px; border-top: 2px dashed var(--gml-accent); }
.gml-step { position: relative; }
.gml-step__num { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 124px; height: 88px; font-family: var(--gml-display); font-weight: 900; font-size: 40px; color: var(--gml-accent); }
.gml-step__num::before, .gml-step__num::after { content: ""; position: absolute; clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%); z-index: -1; }
.gml-step__num::before { inset: 0; background: var(--gml-accent); }
.gml-step__num::after { inset: 2px; background: #000; }
.gml-step { isolation: isolate; }
.gml-step.is-finish .gml-step__num { color: #000; }
.gml-step.is-finish .gml-step__num::after { background: var(--gml-accent); }
.gml-step__num svg { display: block; }
.gml .gml-step__title { font-family: var(--gml-display); font-weight: 700; font-size: 22px; line-height: 1.25; margin-top: 16px; }
.gml .gml-step__text, .gml-step .gml-slot { color: var(--gml-t2); font-size: 17px; margin-top: 8px; }

/* Infos pratiques */
.gml-infos { background: var(--gml-soft); }
.gml-infos__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 40px; margin-top: 44px; }
.gml-info::before { content: ""; display: block; width: 44px; height: 10px; margin-bottom: 14px; background: var(--gml-accent); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.gml .gml-info dt { color: var(--gml-t3); font-size: 15px; font-weight: 500; }
.gml .gml-info dd { font-size: 22px; font-weight: 600; line-height: 1.35; margin-top: 6px; }

/* FAQ */
.gml-faq__grid { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 32px 80px; align-items: start; }
.gml-faq .gml-h2 { font-size: clamp(26px, 2.8vw, 40px); }
.gml-faq__item { border-bottom: 1px solid var(--gml-iron); }
.gml .gml-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; font-weight: 600; font-size: 20px; line-height: 1.35; cursor: pointer; list-style: none; }
.gml .gml-faq__item summary::-webkit-details-marker { display: none; }
.gml .gml-faq__item summary:hover { color: var(--gml-accent); }
.gml-faq__icon { position: relative; flex: none; width: 48px; height: 40px; background: var(--gml-accent); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background-color .2s; }
.gml-faq__icon::before, .gml-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 3px; margin: -1.5px 0 0 -8px; background: #000; transition: transform .25s var(--gml-ease); }
.gml-faq__icon::after { transform: rotate(90deg); }
.gml-faq__item[open] .gml-faq__icon { background: var(--gml-white); }
.gml-faq__item[open] .gml-faq__icon::before { transform: rotate(45deg); }
.gml-faq__item[open] .gml-faq__icon::after { transform: rotate(135deg); }
.gml-faq__answer { padding: 0 68px 28px 0; color: var(--gml-t2); font-size: 18px; }
.gml-faq__answer p + p { margin-top: .6em; }
.gml-faq__answer a { color: var(--gml-accent); text-decoration: underline; }

/* Partenaires */
.gml-partners { padding-top: 16px; }
.gml-partners__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.gml-partner { min-height: 96px; display: flex; align-items: center; justify-content: center; background: var(--gml-soft); padding: 16px; }
.gml-partner a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.gml-partner img { max-height: 56px; width: auto; }
.gml-partner .gml-slot { width: 100%; }

/* Bloc final */
.gml-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--gml-accent); color: #000; clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%); padding: 150px 0 120px; }
.gml-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.gml-cta__badge { width: 330px; flex: none; pointer-events: none; }
.gml-cta__badge img { width: 100%; }
.gml .gml-cta__title { color: #000; max-width: 820px; font-size: clamp(28px, 4.2vw, 60px); margin-bottom: 30px; }
.gml .gml-cta__days { font-weight: 600; font-size: 22px; margin: -8px 0 30px; }

/* Offrir une inscription */
.gml-gift { position: relative; isolation: isolate; margin-top: 40px; padding: 36px 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; }
.gml-gift::before, .gml-gift::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
.gml-gift::before { inset: 0; background: var(--gml-accent); }
.gml-gift::after { inset: 2px; background: var(--gml-panel); }
.gml-gift__icon { color: var(--gml-accent); }
.gml .gml-gift__title { font-family: var(--gml-display); font-weight: 700; font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.gml .gml-gift__text p { color: var(--gml-t2); font-size: 16px; line-height: 1.5; }
.gml .gml-gift__text p + p { margin-top: 6px; }
.gml .gml-gift__note { color: var(--gml-t3); font-size: 14px; }
.gml-gift__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gml .gml-gift__mail { color: var(--gml-t3); font-size: 14px; text-decoration: underline; }

/* Vidéos */
.gml-videos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.gml-video { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gml-video--yt:first-child { grid-column: 1 / -1; }
.gml-video__facade, .gml-video__player, .gml-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--gml-forest); }
.gml-video__player { aspect-ratio: 5 / 4; object-fit: cover; }
.gml-video__facade { position: relative; overflow: hidden; background: linear-gradient(135deg, #000 0%, var(--gml-forest) 55%, var(--gml-accent) 140%); }
.gml-video__facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gml-video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; color: #000; background: var(--gml-accent); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); transition: transform .2s; }
.gml-video__facade:hover .gml-video__play, .gml-video__facade:focus-visible .gml-video__play { transform: scale(1.08); }
.gml .gml-video__caption { position: static; align-self: flex-start; padding: 0; background: none; }

.gml-routes-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gml-accent); font: inherit; font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 6px; cursor: pointer; }
.gml-routes-btn::after { content: "→"; text-decoration: none; }
.gml-routes-btn:hover { color: #fff; }
.gml-card.is-highlight .gml-routes-btn { color: #000; }
.gml-card.is-highlight .gml-routes-btn:hover { color: #fff; }
.gml-kids .gml-routes-btn { margin-left: auto; flex: none; }
.gml-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--gml-accent); background: #0b0b0b; color: #fff; overflow: auto; }
.gml-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.gml-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #0b0b0b; }
.gml .gml-dialog__title { margin: 0; font-family: var(--gml-display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.gml-dialog__close { width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.gml-dialog__close:hover { color: var(--gml-accent); }
.gml-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.gml-tabs [role="tab"] { min-height: 40px; padding: 8px 16px; border: 1px solid #3a3a3a; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.gml-tabs [aria-selected="true"] { border-color: var(--gml-accent); background: var(--gml-accent); color: #000; }
.gml-dialog__panel img { display: block; width: 100%; height: auto; }
.gml-dialog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
.gml-dialog__foot p { margin: 0; color: #d9d9d9; }
.gml-dialog__foot strong { color: #fff; }
.gml-dialog__foot .gml-btn { white-space: nowrap; }
@media (max-width: 760px) { .gml-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; } .gml-kids .gml-routes-btn { margin-left: 0; } }

/* Mentions légales */
.gml-legal { padding-top: 64px; }
.gml-legal__inner { max-width: 900px; }
.gml .gml-legal__back { font-size: 15px; }
.gml .gml-legal__title { margin: 24px 0 32px; font-size: clamp(30px, 3.6vw, 52px); }
.gml-legal__body { color: var(--gml-t2); font-size: 17px; line-height: 1.6; }
.gml .gml-legal__body h2 { font-family: var(--gml-display); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--gml-white); margin: 40px 0 12px; text-transform: none; }
.gml .gml-legal__body p + p { margin-top: 12px; }
.gml .gml-legal__body a { color: var(--gml-accent); text-decoration: underline; }
.gml .gml-todo { color: var(--gml-accent); font-weight: 600; }

/* Page d'accueil : choix de la course */
.gml-home__main { padding: 72px 0 96px; }
.gml-home__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.gml .gml-chip--light { background: var(--gml-white); clip-path: none; }
.gml-home .gml-intro { max-width: 720px; }
.gml-home__nav { gap: 0; }
.gml-home__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.gml-choice { position: relative; isolation: isolate; min-height: 540px; display: flex; align-items: flex-end; clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); background: var(--gml-forest); }
.gml-choice::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 40px; background: var(--gml-accent); clip-path: polygon(0 32px, 100% 0, 100% 6px, 0 38px); }
.gml-choice__photo { position: absolute; inset: 0; z-index: 0; }
.gml-choice__badge { position: absolute; z-index: 2; top: 44px; right: 28px; width: 140px; }
.gml-choice__badge img { width: 100%; }
.gml-choice__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px; }
.gml .gml-choice__label { color: var(--gml-accent); font-weight: 600; font-size: 16px; }
.gml .gml-choice__title { font-family: var(--gml-display); font-weight: 900; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.04; text-transform: uppercase; }
.gml .gml-choice__title span { display: block; }
.gml .gml-choice__text { color: var(--gml-t2); font-size: 18px; line-height: 1.5; max-width: 500px; }
.gml .gml-choice__btn { gap: 8px; }
.gml .gml-choice__note { color: var(--gml-t3); font-size: 13px; margin-top: -4px; }
.gml-home .gml-footer { border-top: 1px solid var(--gml-line); }
.gml .gml-footer__copy { color: var(--gml-t3); font-size: 15px; }

/* Pied de page */
.gml-footer { padding: 44px 0; }
.gml-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.gml-footer .gml-logo { height: 38px; }
.gml .gml-footer__town { display: inline-flex; align-items: center; gap: 12px; color: var(--gml-t3); font-size: 15px; text-decoration: none; }
.gml .gml-footer__town:hover { color: var(--gml-white); }
.gml-footer__town img { width: 60px; height: auto; }
.gml .gml-footer__sign p { color: var(--gml-t3); font-size: 15px; margin-top: 12px; }
.gml-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.gml .gml-footer__nav a { font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.gml .gml-footer__nav a:hover { color: var(--gml-accent); }

/* ---------- Animations */
@keyframes gml-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes gml-marquee { from { transform: rotate(-2deg) translateX(0); } to { transform: rotate(-2deg) translateX(-50%); } }
.gml-rise { animation: gml-rise .85s var(--gml-ease) both; animation-delay: var(--d, 0ms); }
.gml-js .gml-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s var(--gml-ease); }
.gml-js .gml-reveal.is-in { opacity: 1; transform: none; }
.gml--static .gml-rise, .gml--static .gml-marquee__track { animation: none; }
.gml--static .gml-reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.gml *, .gml *::before, .gml *::after { animation: none !important; transition: none !important; }
	.gml .gml-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive */
@media (max-width: 1240px) {
	.gml-header__nav { gap: 22px; }
}

@media (max-width: 1100px) {
	.gml-hero__badge { width: 190px; right: 40px; top: 40px; }
	.gml-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gml-steps::before { display: none; }
	.gml-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
	.gml-partners__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gml-faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	.gml { font-size: 17px; }
	.gml .gml-header__link { display: none; }
	/* Mobile : drapeaux seuls, posés en haut à gauche de la photo. */
	.gml-header__nav { gap: 0; }
	.gml .gml-lang { position: absolute; left: 16px; top: calc(100% + 10px); gap: 10px; z-index: 6; }
	.gml .gml-lang__code { display: none; }
	.gml .gml-lang__link { min-width: 44px; justify-content: center; }
	.gml-header__inner { min-height: 72px; }
	.gml .gml-logo { height: 36px; }

	.gml-hero { display: block; min-height: 0; --gml-hv: min(72vw, 440px); }
	.gml-hero__visual, .gml-hero__stripe { left: 0; right: 0; width: 100%; top: 0; bottom: auto; height: var(--gml-hv); }
	.gml-hero__visual { position: relative; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 94%); }
	.gml-hero__stripe { clip-path: polygon(0 96%, 100% 82%, 100% 86%, 0 100%); z-index: 2; }
	.gml-hero__badge { width: 124px; right: 16px; top: 16px; }
	.gml-hero__caption { left: 20px; right: auto; bottom: 22%; }
	.gml-hero__inner { padding-top: 28px; padding-bottom: 56px; }
	.gml-hero__content { width: 100%; gap: 22px; }
	.gml .gml-intro { font-size: 17px; }
	.gml .gml-meta { flex-direction: column; font-size: 15px; }
	.gml-cd__box { width: 80px; height: 76px; }
	.gml-cd__value { font-size: 22px; }
	.gml-cd__unit { font-size: 12px; }
	.gml-actions { width: 100%; }
	.gml-actions .gml-btn { width: 100%; }

	.gml-stats { clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%); padding: 72px 0; }
	.gml-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.gml .gml-stat__label { font-size: 14px; }

	.gml-marquee { padding: 28px 0 36px; }
	.gml-marquee__word { font-size: 34px; }
	.gml-marquee__group { gap: 18px; padding-right: 18px; }
	.gml-marquee__sep { width: 18px; height: 38px; }

	.gml-section { padding: 56px 0; }
	.gml-head { grid-template-columns: 1fr; gap: 16px; }
	.gml .gml-lead { font-size: 16px; }

	.gml-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
	.gml-card.is-highlight { order: -1; }
	.gml-kids { flex-direction: column; align-items: flex-start; padding: 22px 30px; }
	.gml .gml-kids__title { font-size: 22px; }
	.gml .gml-kids__text { font-size: 15px; }

	.gml-gallery { height: auto; display: grid; gap: 12px; margin-top: 32px; }
	.gml-gallery__item, .gml-gallery__item:nth-child(n) { position: relative; left: auto; width: 100%; height: 220px; clip-path: polygon(0 18px, 100% 0, 100% calc(100% - 18px), 0 100%); }
	.gml-gallery__item:first-child { height: 260px; }
	.gml-gallery__item .gml-caption, .gml-gallery__item:nth-child(2) .gml-caption { left: 16px; bottom: 30px; font-size: 13px; }

	.gml-course__intro { flex-direction: column; align-items: flex-start; gap: 24px; }
	.gml-course__badge { width: 120px; }
	.gml-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
	.gml-steps::before { display: none; }
	.gml-step { display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; align-items: center; }
	.gml-step__num { width: 84px; height: 60px; font-size: 28px; grid-row: span 2; }
	.gml .gml-step__title { margin-top: 0; font-size: 17px; }
	.gml .gml-step__text, .gml-step .gml-slot { font-size: 14px; margin-top: 4px; grid-column: 2; }

	.gml-infos__list { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
	.gml .gml-info dd { font-size: 19px; }

	.gml .gml-faq__item summary { font-size: 17px; padding: 22px 0; }
	.gml-faq__answer { padding-right: 0; font-size: 15px; }

	.gml-partners__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gml-partner { min-height: 80px; }

	.gml-cta { clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%); padding: 88px 0 72px; }
	.gml-cta__inner { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
	.gml-cta__badge { width: 140px; }
	.gml-cta__text { width: 100%; }
	.gml-legal { padding-top: 72px; }
	.gml .gml-cta__title { margin-bottom: 22px; }
	.gml .gml-cta__days { font-size: 17px; margin: -6px 0 24px; }
	.gml-cta .gml-btn { width: 100%; }

	.gml-footer__inner { flex-direction: column; align-items: flex-start; }
	.gml-home .gml-lang { position: static; }
	.gml-home__main { padding: 32px 0 48px; }
	.gml-home__intro { gap: 18px; }
	.gml-home__cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
	.gml-videos__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
	.gml-gift { grid-template-columns: 1fr; padding: 28px 28px; gap: 16px; }
	.gml-gift__cta { align-items: stretch; }
	.gml-video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
	.gml-choice { min-height: 460px; clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%); }
	.gml-choice::before { height: 28px; clip-path: polygon(0 20px, 100% 0, 100% 6px, 0 26px); }
	.gml-choice__badge { width: 96px; top: 32px; right: 16px; }
	.gml-choice__body { padding: 24px; gap: 12px; }
	.gml .gml-choice__text { font-size: 16px; }
	.gml-choice__btn { width: 100%; }
	.gml-footer__nav { flex-direction: column; gap: 0; }
}

/* Thème : le document entier suit la mise en page Gorillaman. */
html, body { margin: 0; background: #000; }

/* Liste des inscrits (Klikego) */
.gml .gml-cta__list { display: inline-block; margin-left: 28px; color: #000; font-weight: 600; }
@media (max-width: 760px) { .gml .gml-cta__list { display: block; margin: 18px 0 0; } }

.gml .gml-cta__list:hover, .gml .gml-cta__list:focus-visible { color: #fff; }

/* L'histoire du Gorillaman */
.gml-history { max-width: 820px; margin-top: 64px; padding-left: 28px; border-left: 3px solid var(--gml-accent); }
.gml .gml-history__title { margin: 0 0 16px; font-family: var(--gml-display); font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; }
.gml-history p { margin: 0 0 14px; color: #d9d9d9; font-size: 18px; line-height: 1.6; }
@media (max-width: 560px) { .gml-history { margin-top: 44px; padding-left: 18px; } .gml-history p { font-size: 16px; } }
