/* ==========================================================================
   BrainTouch — styles du site
   Fond bleu nuit #010626, lumières en dégradés de bleu, rouge de l’identité
   en accent. Titres en Bricolage Grotesque étroite, textes en Figtree.
   ========================================================================== */

:root {
	color-scheme: dark;

	/* Couleurs */
	--bg: #010626;               /* bleu nuit choisi par la cliente : fond de toute la page */
	--bg-deep: #00031A;
	--bg-raise: #040C3A;
	--line: rgba(170, 185, 255, .14);
	--line-strong: rgba(170, 185, 255, .32);
	--text: #F3F5FC;
	--text-soft: #C9D0EA;
	--muted: #98A2C6;            /* 7,4:1 sur #010626 */
	--accent: #FF3C1F;           /* Pantone Bright Red C : 5,6:1 sur #010626 */
	--accent-ink: #010626;
	--blue: #000F9F;             /* Pantone Blue 072 C */
	--glow-blue: 43, 69, 240;    /* RVB des halos bleus */
	--glow-red: 255, 60, 31;     /* RVB des halos rouges */

	/* Typographie : seul le hero reste spectaculaire */
	--f-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
	--f-text: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-hero: clamp(2.5rem, 0.9rem + 5.4vw, 6.75rem);
	--fs-h2: clamp(1.875rem, 1.35rem + 1.7vw, 3rem);
	--fs-h3: clamp(1.125rem, 1.02rem + .35vw, 1.3125rem);
	--fs-lead: clamp(1.1875rem, 1.05rem + .5vw, 1.5rem);
	--fs-body: 1rem;
	--fs-small: .875rem;
	--fs-xs: .75rem;

	/* Espaces et gabarit */
	--gutter: clamp(20px, 4vw, 64px);
	--max: 1320px;
	--header-h: clamp(68px, 6vw, 92px);
	--section-y: clamp(80px, 9vw, 144px);
	--radius: 6px;

	/* Mouvement : une seule courbe pour tout le site */
	--ease: cubic-bezier(.65, 0, .35, 1);
	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--dur: .9s;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-text);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

html.menu-open { overflow: hidden; }

img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

p, h1, h2, h3, h4, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--text);
	color: var(--bg);
	font-weight: 600;
	transform: translateY(-160%);
	transition: transform .2s;
}
.skip-link:focus { transform: none; }
.site-main:focus, section:focus { outline: none; }

/* Éléments communs ------------------------------------------------------ */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .75em;
	margin-bottom: 16px;
	font: 600 var(--fs-xs)/1.2 var(--f-text);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
/* Le point reprend celui du « i » du logotype. */
.eyebrow::before {
	content: "";
	flex: none;
	width: .55em;
	height: .55em;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 12px rgba(var(--glow-red), .8);
}

.section-title {
	max-width: 18ch;
	font-family: var(--f-display);
	font-weight: 700;
	font-stretch: 80%;
	font-variation-settings: "wdth" 80;
	font-size: var(--fs-h2);
	line-height: 1.02;
	letter-spacing: -.01em;
}

.section-head {
	display: grid;
	gap: 16px 64px;
	margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head__intro { max-width: 46ch; color: var(--muted); font-size: var(--fs-body); }
@media (min-width: 1024px) {
	.section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; }
}

.btn {
	--btn-bg: transparent;
	--btn-fg: var(--text);
	--btn-hover-bg: var(--text);
	--btn-hover-fg: var(--bg);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 46px;
	padding: .75em 1.4em;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 .9375rem/1.2 var(--f-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
	transition: color .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .5s var(--ease-out);
}
/* Remplissage qui monte depuis le bas au survol. */
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--btn-hover-bg);
	border-radius: inherit;
	transform: translateY(101%);
	transition: transform .55s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn__icon { display: inline-flex; }
.btn .arrow { width: 1.1em; height: 1.1em; transition: transform .5s var(--ease-out); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); box-shadow: 0 10px 30px -14px rgba(var(--glow-red), .9); }
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 14px 40px -12px rgba(var(--glow-red), .75); }
.btn--ghost { border-color: var(--line-strong); background: rgba(1, 6, 38, .25); }
.btn--light { --btn-bg: var(--text); --btn-fg: var(--blue); --btn-hover-bg: var(--accent); --btn-hover-fg: var(--accent-ink); }
.btn--lg { min-height: 52px; padding: .85em 1.6em; font-size: 1rem; }
input.btn:hover, input.btn:focus-visible { background: var(--btn-hover-bg); }

.editor-note {
	display: grid;
	gap: 6px;
	max-width: 560px;
	margin-block: 16px;
	padding: 16px 18px;
	border: 1px dashed var(--accent);
	border-radius: var(--radius);
	background: rgba(var(--glow-red), .07);
	font-size: .875rem;
	line-height: 1.5;
}
.editor-note strong { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.editor-note a { font-weight: 600; }

/* En-tête --------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	padding-top: env(safe-area-inset-top, 0px);
	border-bottom: 1px solid transparent;
	transition: transform .6s var(--ease-out), background-color .4s, border-color .4s;
}
.site-header.is-scrolled { background: rgba(1, 6, 38, .9); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: transparent; border-bottom-color: transparent; transform: none; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--header-h);
	padding-inline: var(--gutter);
}

.brand { display: inline-flex; flex: none; }
.brand__logo { height: clamp(28px, 2.5vw, 40px); width: auto; }

.site-header__actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }

.header-cta {
	display: none;
	padding: .6em 1.1em;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .4s var(--ease-out), color .4s var(--ease-out), opacity .3s;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--text); color: var(--bg); }
.menu-open .header-cta { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
	font: 600 .75rem/1 var(--f-text);
	letter-spacing: .18em;
	text-transform: uppercase;
	cursor: pointer;
}
.menu-toggle__icon {
	position: relative;
	display: grid;
	place-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 0 rgba(var(--glow-red), .5), 0 8px 24px -8px rgba(var(--glow-red), .9);
	transition: transform .5s var(--ease-out), background-color .4s, box-shadow .5s var(--ease-out);
}
.menu-toggle__icon i {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent-ink);
	transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.menu-toggle__icon i:last-child { width: 12px; justify-self: end; }
.menu-toggle:hover .menu-toggle__icon { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(var(--glow-red), .14), 0 8px 24px -8px rgba(var(--glow-red), .9); }
.menu-toggle:hover .menu-toggle__icon i:last-child { width: 18px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: var(--text); box-shadow: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i { width: 18px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Sans JavaScript : un lien ouvre le panneau via :target, les ancres restent normales. */
.menu-toggle--nojs, .menu-panel__close-nojs { display: none; }
html:not(.js) .menu-toggle[data-menu-toggle] { display: none; }
html:not(.js) .menu-toggle--nojs { display: inline-flex; text-decoration: none; }
html:not(.js) .menu-panel, html:not(.js) .menu-panel * { transition: none !important; }
html:not(.js) .menu-panel:target { visibility: visible; clip-path: none; }
html:not(.js) .menu-panel:target .menu-list__item,
html:not(.js) .menu-panel:target .menu-panel__aside,
html:not(.js) .menu-panel:target .menu-panel__symbol { opacity: 1; transform: none; }
html:not(.js) .menu-panel:target .menu-panel__close-nojs {
	position: absolute;
	top: calc(env(safe-area-inset-top, 0px) + 20px);
	right: var(--gutter);
	z-index: 2;
	display: inline-flex;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--text);
	color: var(--blue);
	font-weight: 600;
	text-decoration: none;
}
html:not(.js) .menu-panel:target ~ .site .site-header, html:not(.js) .site-header:has(~ .menu-panel:target) { visibility: hidden; }

/* Menu plein écran ------------------------------------------------------ */

.menu-panel {
	--mx: 100%;
	--my: 0%;
	--lx: 70%;
	--ly: 30%;
	position: fixed;
	inset: 0;
	z-index: 50;
	overflow: hidden auto;
	overscroll-behavior: contain;
	color: var(--text);
	background:
		radial-gradient(70% 60% at 88% 8%, rgba(var(--glow-blue), .55), transparent 62%),
		radial-gradient(45% 50% at 6% 100%, rgba(var(--glow-red), .22), transparent 68%),
		linear-gradient(155deg, var(--blue) 0%, #020A52 42%, var(--bg) 100%);
	visibility: hidden;
	clip-path: circle(0 at var(--mx) var(--my));
	transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
.menu-panel.is-open {
	visibility: visible;
	clip-path: circle(150vmax at var(--mx) var(--my));
	transition: clip-path .9s var(--ease), visibility 0s;
}
/* Lumière douce qui suit le pointeur. */
.menu-panel__light {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(38vmax circle at var(--lx) var(--ly), rgba(255, 255, 255, .07), transparent 60%);
}
/* Symbole « b+t » officiel, en filigrane lumineux. */
.menu-panel__symbol {
	position: absolute;
	right: -6vmax;
	bottom: -12vmax;
	width: min(70vmax, 900px);
	pointer-events: none;
	opacity: 0;
	transform: translateY(6%) rotate(-6deg) scale(.96);
	transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out);
}
.menu-panel__symbol svg { width: 100%; height: auto; }
.menu-panel__symbol path {
	fill: rgba(255, 255, 255, .035);
	stroke: rgba(255, 255, 255, .16);
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
}
.menu-panel.is-open .menu-panel__symbol { opacity: 1; transform: none; transition-delay: .2s; }

.menu-panel__inner {
	position: relative;
	display: grid;
	align-content: end;
	gap: 40px;
	min-height: 100%;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
	.menu-panel__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: end; gap: 64px; }
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list__link {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: clamp(12px, 1.6vw, 24px);
	padding-block: .06em;
	font-family: var(--f-display);
	font-weight: 800;
	font-stretch: 75%;
	font-variation-settings: "wdth" 75;
	font-size: min(clamp(2rem, 1rem + 3.4vh + 1.4vw, 4.25rem), 13vw);
	line-height: 1;
	letter-spacing: -.005em;
	text-transform: lowercase;
	text-decoration: none;
	transition: color .4s var(--ease-out), opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
.menu-list__num {
	min-width: 2.4em;
	font: 600 var(--fs-xs)/1 var(--f-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: .12em;
	color: rgba(243, 245, 252, .7);
}
.menu-list__text { position: relative; }
.menu-list__text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.02em;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .6s var(--ease-out);
}
@media (hover: hover) {
	.menu-list:has(.menu-list__link:hover) .menu-list__link:not(:hover) { opacity: .45; }
}
.menu-list__link:hover, .menu-list__link:focus-visible { color: var(--accent); transform: translateX(.2em); }
.menu-list__link:hover .menu-list__text::after, .menu-list__link:focus-visible .menu-list__text::after { transform: scaleX(1); }
.menu-list__link:focus-visible { outline-color: var(--text); }

.menu-panel__aside { display: grid; gap: 20px; justify-items: start; font-size: .9375rem; }
.menu-panel__tagline {
	max-width: 22ch;
	font-family: var(--f-display);
	font-weight: 600;
	font-stretch: 85%;
	font-variation-settings: "wdth" 85;
	font-size: 1.1875rem;
	line-height: 1.25;
	color: rgba(243, 245, 252, .86);
}
.menu-panel__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-panel__contact a { text-decoration: none; }
.menu-panel__contact a:hover { text-decoration: underline; }
.menu-panel .btn--light:focus-visible { outline-color: var(--text); }

/* Entrée échelonnée des liens. */
.menu-list__item, .menu-panel__aside {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.menu-panel.is-open .menu-list__item, .menu-panel.is-open .menu-panel__aside {
	opacity: 1;
	transform: none;
	transition-delay: calc(.28s + var(--i, 7) * .055s);
}

/* Réseaux sociaux ------------------------------------------------------- */

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.socials a { font-size: .875rem; font-weight: 600; text-decoration: none; }
.socials a:hover, .socials a:focus-visible { text-decoration: underline; }

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: max(560px, 100vh);
	min-height: max(560px, 100svh);
	overflow: hidden;
	background: var(--bg);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
/* Fond de scène en l’absence de poster : jamais d’écran vide. */
.hero--no-poster .hero__media {
	background:
		radial-gradient(60% 70% at 78% 12%, rgba(var(--glow-red), .24), transparent 60%),
		radial-gradient(55% 65% at 12% 30%, rgba(var(--glow-blue), .5), transparent 65%),
		linear-gradient(var(--bg-raise), var(--bg));
}
.hero__media picture, .hero__poster, .hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__video, .hero__vimeo { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero.is-playing .hero__video, .hero.is-playing .hero__vimeo { opacity: 1; }

/* Vimeo en mode « cover » : l’iframe 16:9 couvre toujours le hero. */
.hero__vimeo { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.hero__vimeo iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100cqw, 177.78cqh);
	height: max(100cqh, 56.25cqw);
	max-width: none;
	border: 0;
	/* Zoom de 14 % : masque les bandes noires de certains plans du showreel. */
	transform: translate(-50%, -50%) scale(1.14);
	pointer-events: none;
}

/* Contraste : le showreel alterne plans très sombres et plans blancs.
   Un voile #010626 assombrit toute la vidéo, renforcé en bas à gauche sous le texte. */
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	--scrim-text: radial-gradient(85% 65% at 15% 80%, rgba(1, 6, 38, .8) 0%, rgba(1, 6, 38, .74) 48%, rgba(1, 6, 38, .36) 72%, transparent 95%);
	background:
		var(--scrim-text),
		linear-gradient(180deg, rgba(1, 6, 38, .4) 0%, rgba(1, 6, 38, 0) 22%),
		linear-gradient(rgba(1, 6, 38, .5), rgba(1, 6, 38, .5));
}

.hero__content {
	display: grid;
	justify-items: start;
	gap: clamp(14px, 2.2vh, 24px);
	padding-top: calc(var(--header-h) + 56px);
	padding-bottom: clamp(36px, 7vh, 88px);
}
.hero__eyebrow { margin-bottom: 0; color: var(--text); text-shadow: 0 0 14px rgba(1, 6, 38, .9), 0 1px 2px rgba(1, 6, 38, .8); }
.hero__copy { position: relative; isolation: isolate; display: grid; justify-items: start; gap: inherit; width: fit-content; max-width: 100%; }


.hero__title {
	font-family: var(--f-display);
	font-weight: 800;
	font-stretch: 75%;
	font-variation-settings: "wdth" 75;
	font-size: var(--fs-hero);
	line-height: .88;
	letter-spacing: -.015em;
	text-shadow: 0 2px 30px rgba(1, 6, 38, .35);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--accent { color: var(--accent); }

.hero__title .line { white-space: nowrap; }
.hero__text { max-width: 33rem; font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.55; color: rgba(243, 245, 252, .92); text-shadow: 0 1px 18px rgba(1, 6, 38, .6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 599px) {
	.hero { min-height: max(540px, 100vh); min-height: max(540px, 100svh); }
	.hero__scrim { --scrim-text: radial-gradient(150% 55% at 30% 84%, rgba(1, 6, 38, .8) 0%, rgba(1, 6, 38, .74) 50%, rgba(1, 6, 38, .36) 74%, transparent 96%); }
	.hero__title .line { white-space: normal; }
	.hero__ctas { flex-wrap: nowrap; width: 100%; }
	.hero__ctas .btn { flex: 1 1 auto; min-height: 44px; padding: .65em 1em; font-size: .875rem; }
	.hero__ctas .btn__icon { display: none; }
}

.hero__controls {
	position: absolute;
	top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
	right: var(--gutter);
	display: flex;
	gap: 8px;
}
.hero__controls[hidden], .hero__start[hidden] { display: none; }
.hero__start {
	position: absolute;
	top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
	right: var(--gutter);
	background: var(--text);
	color: var(--bg);
	border-color: var(--text);
}
.hero__start:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hero__ctrl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: rgba(1, 6, 38, .55);
	color: var(--text);
	font: 600 .8125rem/1 var(--f-text);
	cursor: pointer;
	transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s;
}
.hero__ctrl:hover { background: rgba(1, 6, 38, .85); border-color: var(--text); }
.hero__ctrl--pause { width: 44px; padding: 0; }
.hero__ctrl--sound[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.icon-sound__mute { display: inline; }
.icon-sound__waves { display: none; }
.hero__ctrl--sound[aria-pressed="true"] .icon-sound__mute { display: none; }
.hero__ctrl--sound[aria-pressed="true"] .icon-sound__waves { display: inline; }
@media (max-width: 599px) {
	.hero__ctrl--sound { width: 44px; padding: 0; }
	.hero__ctrl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Icône pause (deux barres) ou lecture (triangle). */
.hero__toggle-icon { width: 11px; height: 13px; border-inline: 3.5px solid currentColor; }
.hero__ctrl--pause[aria-pressed="true"] .hero__toggle-icon {
	width: 0;
	height: 0;
	border: 0;
	border-left: 11px solid currentColor;
	border-block: 6.5px solid transparent;
	margin-left: 3px;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 18px;
	display: none;
	width: 22px;
	height: 36px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	transform: translateX(-50%);
}
.hero__scroll span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 2px;
	height: 7px;
	border-radius: 2px;
	background: var(--text);
	transform: translateX(-50%);
}
@media (min-width: 1100px) and (min-height: 760px) { .hero__scroll { display: block; } }

.hero .editor-note {
	position: absolute;
	top: calc(var(--header-h) + 16px);
	left: var(--gutter);
	z-index: 2;
	margin: 0;
	max-width: min(420px, calc(100% - 2 * var(--gutter) - 110px));
}

@media (prefers-reduced-motion: no-preference) {
	.hero__title .line > span { animation: bt-rise 1.2s var(--ease-out) both; }
	.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
	.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
	.hero__eyebrow, .hero__text, .hero__ctas { animation: bt-fade 1.1s var(--ease-out) .45s both; }
	/* Pendant le loader, l’entrée du hero attend. */
	.is-loading .hero__title .line > span, .is-loading .hero__eyebrow, .is-loading .hero__text, .is-loading .hero__ctas { animation-play-state: paused; }
	.hero__scroll span { animation: bt-scroll 2.2s var(--ease-out) infinite; }
}
@keyframes bt-rise { from { transform: translateY(105%); } }
@keyframes bt-fade { from { opacity: 0; transform: translateY(16px); } }
@keyframes bt-scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Loader ---------------------------------------------------------------- */
/* Invisible par défaut : n’apparaît qu’avec la classe .is-loading posée par le
   script du <head> (première visite de la session, sans mouvement réduit). */

.loader {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	background:
		radial-gradient(38% 38% at 50% 50%, rgba(var(--glow-blue), .38), transparent 70%),
		var(--bg);
	visibility: hidden;
	transform: translateY(-101%);
	pointer-events: none;
	transition: transform 1s var(--ease), visibility 0s linear 1s;
}
.is-loading .loader { visibility: visible; transform: none; transition: none; }
.loader__mark { position: relative; width: clamp(88px, 10vw, 140px); transition: transform 1s var(--ease), opacity .6s; }
/* Ligne de progression sous le symbole. */
.loader__mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% + clamp(28px, 3vw, 40px));
	width: clamp(120px, 12vw, 180px);
	height: 2px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, var(--accent), var(--accent)) no-repeat left / 0% 100%, rgba(243, 245, 252, .14);
}
.loader__mark::after { animation: bt-progress 1.15s var(--ease) forwards; }
@keyframes bt-progress { to { background-size: 100% 100%, auto; } }
.loader__symbol { width: 100%; height: auto; overflow: visible; }
.loader__symbol path {
	fill: transparent;
	stroke: var(--accent);
	stroke-width: 1.4px;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}
.loader__symbol path { animation: bt-draw .8s var(--ease) .05s forwards, bt-fill .4s var(--ease-out) .7s forwards; }
html:not(.is-loading) .loader__mark { transform: translateY(40px); opacity: 0; }
@keyframes bt-draw { to { stroke-dashoffset: 0; } }
@keyframes bt-fill { to { fill: var(--accent); stroke-width: 0; } }

/* Symbole « b+t » en filigrane, repris du menu (contour lumineux). */
.bt-watermark path, .agency__symbol path, .approach__symbol path, .expertises__stage-symbol path, .contact__symbol path, .site-footer__symbol path {
	fill: rgba(255, 255, 255, .025);
	stroke: rgba(170, 185, 255, .22);
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
}

/* Sections et lumières -------------------------------------------------- */
/* Toutes les sections partagent le fond #010626 ; chacune place ses halos
   (bleu discret, rouge plus rare) pour varier le rythme sans rupture. */

.section {
	--g1: 85% 0%;
	--g2: 0% 100%;
	position: relative;
	isolation: isolate;
	padding-block: var(--section-y);
}
.section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(55% 45% at var(--g1), rgba(var(--glow-blue), .16), transparent 70%),
		radial-gradient(38% 32% at var(--g2), rgba(var(--glow-red), .06), transparent 70%);
}
/* Séparateur lumineux entre deux sections. */
.section::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(1100px, 90%);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, rgba(170, 185, 255, .22), transparent);
}
.agency { --g1: 100% 20%; --g2: 0% 90%; }
.agency::after { display: none; }
.expertises { --g1: 0% 10%; --g2: 100% 100%; }
.approach { --g1: 90% 50%; --g2: 10% 0%; }
.projects { --g1: 15% 0%; --g2: 95% 60%; }
.references { --g1: 80% 100%; --g2: 0% 0%; }
.team { --g1: 0% 60%; --g2: 100% 10%; }
.contact { --g1: 70% 0%; --g2: 0% 100%; }

/* Boutons ronds (carrousel, défilement des logos) */

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: rgba(1, 6, 38, .4);
	color: var(--text);
	cursor: pointer;
	transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s, opacity .3s;
}
.round-btn .icon { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--text); color: var(--bg); border-color: var(--text); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* Signes graphiques */

.sign { width: 30px; height: 30px; }
.sign .acc { fill: var(--accent); stroke: none; }

/* Agence : texte court et composition photo */

.agency__grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 1024px) { .agency__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.agency__text-col { display: grid; gap: 20px; justify-items: start; }
.agency__text-col .eyebrow { margin-bottom: 0; }
.agency__lead {
	max-width: 30ch;
	font-family: var(--f-display);
	font-weight: 600;
	font-stretch: 88%;
	font-variation-settings: "wdth" 88;
	font-size: var(--fs-lead);
	line-height: 1.3;
}
.agency__text { max-width: 48ch; color: var(--text-soft); }

.values { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.values__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .04em;
}
.values__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.agency__visual { position: relative; min-height: clamp(360px, 44vw, 600px); }
.agency__symbol { position: absolute; left: -4%; top: 2%; width: 58%; pointer-events: none; }
.agency__symbol svg { width: 100%; height: auto; }
.agency__photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-raise); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.agency__photo img { width: 100%; height: 100%; object-fit: cover; }
.agency__photo--main { right: 0; top: 0; width: 70%; aspect-ratio: 4 / 5; }
.agency__photo--detail { left: 4%; bottom: 0; width: 40%; aspect-ratio: 1; border: 6px solid var(--bg); }
@media (max-width: 1023px) {
	.agency__visual { min-height: 0; aspect-ratio: 5 / 4; }
	.agency__photo--main { width: 66%; height: 100%; aspect-ratio: auto; }
	.agency__photo--detail { width: 42%; }
}

/* Expertise : image qui change et liste avec signes */

.expertises__layout { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 1024px) {
	.expertises__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.expertises__layout--no-media { grid-template-columns: minmax(0, 1fr); }
}
.expertises__stage {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	aspect-ratio: 4 / 5;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bg-raise);
}
@media (max-width: 1023px) { .expertises__stage { display: none; } }
.expertises__image { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out); }
.expertises__image.is-active { opacity: 1; transform: none; }
.expertises__image picture, .service__thumb picture { display: contents; }
.expertises__image img { width: 100%; height: 100%; object-fit: cover; }
.expertises__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(1, 6, 38, .55)); }
.expertises__stage-symbol { position: absolute; right: -12%; bottom: -10%; z-index: 1; width: 55%; }
.expertises__stage-symbol svg { width: 100%; height: auto; }

.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 4px 20px;
	padding-block: clamp(18px, 2vw, 26px);
	border-top: 1px solid var(--line);
	cursor: default;
}
.service__sign {
	grid-row: span 3;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	color: var(--text);
	transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .5s var(--ease-out);
}
.service__num { font: 700 var(--fs-xs)/1 var(--f-text); letter-spacing: .12em; color: var(--accent); padding-top: 4px; }
.service__title { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-variation-settings: "wdth" 85; font-size: var(--fs-h3); line-height: 1.2; transition: color .4s; }
.service__text { color: var(--muted); font-size: .9375rem; }
.service__thumb { grid-column: 1 / -1; margin: 12px 0 0; aspect-ratio: 5 / 2; overflow: hidden; border-radius: var(--radius); }
.service__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .service__thumb { display: none; } }
.service.is-active .service__sign { border-color: var(--accent); background: rgba(var(--glow-red), .08); box-shadow: 0 0 24px -6px rgba(var(--glow-red), .7); }

/* Approche : quatre temps, un signe par étape */

.approach { overflow: hidden; }
.approach__symbol { position: absolute; right: -8vw; top: 50%; z-index: -1; width: min(46vw, 560px); transform: translateY(-50%) rotate(-8deg); pointer-events: none; }
.approach__symbol svg { width: 100%; height: auto; }
.steps { --progress: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 35px; top: 36px; bottom: 36px; width: 2px; background: var(--line); }
.steps::after { background: linear-gradient(var(--accent), rgba(var(--glow-red), .4)); transform-origin: top; transform: scaleY(var(--progress)); }
.step { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 20px; align-items: center; }
.step__sign {
	grid-row: span 3;
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: radial-gradient(circle at 30% 20%, rgba(var(--glow-blue), .35), var(--bg) 70%);
}
.step__sign .sign { width: 34px; height: 34px; }
.step__num { font: 700 var(--fs-xs)/1 var(--f-text); letter-spacing: .14em; color: var(--accent); }
.step__title { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-variation-settings: "wdth" 85; font-size: var(--fs-h3); line-height: 1.15; }
.step__text { color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
	.steps::before, .steps::after { left: 36px; right: calc(25% - 36px); top: 36px; bottom: auto; width: auto; height: 2px; }
	.steps::after { background: linear-gradient(90deg, var(--accent), rgba(var(--glow-red), .4)); transform-origin: left; transform: scaleX(var(--progress)); }
	.step { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; align-items: start; }
	.step__sign { grid-row: auto; margin-bottom: 10px; }
}

/* Projets : filtres, mosaïque, chargement */

.filters { margin-bottom: clamp(24px, 3vw, 40px); }
.filters__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.filter:hover { border-color: var(--text); }
.filter[aria-current="true"], .filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (max-width: 767px) {
	.filters { margin-inline: calc(-1 * var(--gutter)); }
	.filters__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-inline: var(--gutter);
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
		mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent);
	}
	.filters__list::-webkit-scrollbar { display: none; }
	.filters__list li { scroll-snap-align: start; }
}

.projects__grid {
	--h: clamp(300px, 34vw, 520px);
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 22px);
	transition: opacity .4s var(--ease-out);
}
.projects__grid[aria-busy="true"] { opacity: .45; }
.projects__item--lg { grid-column: span 7; }
.projects__item--md { grid-column: span 5; }
.projects__item--wide { grid-column: 1 / -1; }
.projects__item.is-entering { animation: bt-fade .8s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 70ms); }

.project { height: 100%; }
.project__link { position: relative; display: block; height: var(--h); overflow: hidden; border-radius: var(--radius); color: var(--text); text-decoration: none; isolation: isolate; background: var(--bg-raise); }
.projects__item--wide .project__link { height: clamp(260px, 30vw, 460px); }
.project__media { position: absolute; inset: 0; margin: 0; }
.project__media img, .project__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__media img { transition: transform 1.4s var(--ease-out), filter .8s var(--ease-out); }
.project__media video { opacity: 0; transition: opacity .6s; }
.project__media.is-playing video { opacity: 1; }
/* Dégradé discret en bas seulement : la photo reste visible. */
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 6, 38, 0) 52%, rgba(1, 6, 38, .82) 100%); transition: opacity .6s var(--ease-out); }
/* Cadre fin qui se dessine au survol. */
.project__link::after { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(243, 245, 252, 0); border-radius: 4px; transform: scale(1.02); transition: border-color .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.project__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: clamp(20px, 2.4vw, 32px); transition: transform .8s var(--ease-out); }
.project__type { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 245, 252, .88); }
.project__type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.project__title { max-width: 26ch; font-family: var(--f-display); font-weight: 700; font-stretch: 82%; font-variation-settings: "wdth" 82; font-size: clamp(1.1875rem, 1rem + .8vw, 1.75rem); line-height: 1.12; text-shadow: 0 1px 18px rgba(1, 6, 38, .5); }
.project__client { font-size: .8125rem; color: rgba(243, 245, 252, .75); }
.project__open { position: absolute; top: 24px; right: 24px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--text); color: var(--bg); transform: scale(.5) rotate(-90deg); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s var(--ease-out), background-color .4s; }
.project__link:hover .project__media img, .project__link:focus-visible .project__media img { transform: scale(1.05); }
.project__link:hover::after, .project__link:focus-visible::after { border-color: rgba(243, 245, 252, .55); transform: none; }
.project__link:hover .project__overlay, .project__link:focus-visible .project__overlay { transform: translateY(-6px); }
.project__link:hover .project__open, .project__link:focus-visible .project__open { transform: none; opacity: 1; background: var(--accent); color: var(--accent-ink); }
.project__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 899px) {
	.projects__grid { grid-template-columns: minmax(0, 1fr); }
	.projects__item--lg, .projects__item--md, .projects__item--wide { grid-column: 1 / -1; }
	.project__link, .projects__item--wide .project__link { height: auto; aspect-ratio: 4 / 3; }
	.projects__item--lg .project__link { aspect-ratio: 4 / 5; }
	.project__open { opacity: 1; transform: none; width: 40px; height: 40px; top: 16px; right: 16px; background: rgba(243, 245, 252, .9); }
}

.projects__more { display: grid; justify-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
.projects__status { color: var(--muted); font-size: .875rem; }
.projects__load[hidden] { display: none; }
.projects__spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.projects__load[aria-busy="true"] .projects__spinner { display: inline-block; animation: bt-spin .8s linear infinite; }
.projects__load.is-error { border-color: #FF9B8A; color: #FFD0C8; }

/* Modale de projet */

html.modal-open { overflow: hidden; }
.project-modal { position: fixed; inset: 0; z-index: 90; display: block; }
.project-modal[hidden] { display: none; }
.project-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 3, 26, .86); opacity: 0; transition: opacity .5s var(--ease-out); }
.project-modal__panel {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background:
		radial-gradient(60% 40% at 100% 0%, rgba(var(--glow-blue), .28), transparent 70%),
		linear-gradient(170deg, #040C3A, var(--bg) 60%);
	opacity: 0;
	transform: translateY(28px) scale(.985);
	transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.project-modal.is-open .project-modal__backdrop { opacity: 1; }
.project-modal.is-open .project-modal__panel { opacity: 1; transform: none; }
.project-modal__panel { overflow: hidden; }
.project-modal__close {
	position: absolute;
	top: calc(16px + env(safe-area-inset-top, 0px));
	right: 16px;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(243, 245, 252, .4);
	border-radius: 50%;
	background: rgba(1, 6, 38, .72);
	color: var(--text);
	cursor: pointer;
	transition: background-color .4s var(--ease-out), color .4s, transform .5s var(--ease-out), border-color .4s;
}
.project-modal__close .icon { width: 22px; height: 22px; }
.project-modal__close:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.project-modal__close:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.project-modal__content { position: absolute; inset: 0; }
.project-modal__content:focus { outline: none; }
.project-modal__loading, .project-modal__error { display: grid; place-items: center; align-content: center; gap: 16px; height: 100%; color: var(--muted); text-align: center; }

/* Modale : slider + informations, tout tient dans l’écran. */
.pm { display: grid; height: 100%; grid-template-rows: minmax(0, 52%) minmax(0, 1fr); }
@media (min-width: 900px) { .pm { grid-template-rows: none; grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr); } }
.pm__slider { position: relative; min-height: 0; background: #000; }
.pm__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pm__track::-webkit-scrollbar { display: none; }
.pm__track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pm__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.pm__slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; overflow: hidden; }
.pm__slide img, .pm__slide video { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.pm__slide video { object-fit: contain; background: #000; }
.pm__slider::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(1, 6, 38, .75)); pointer-events: none; }
.pm__controls { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(20px, 3vw, 36px); z-index: 2; display: flex; align-items: center; gap: 12px; }
.pm__count { min-width: 3.5em; text-align: center; font: 600 .875rem/1 var(--f-text); font-variant-numeric: tabular-nums; color: var(--text); }
.pm__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(243, 245, 252, .18); }
.pm__progress span { display: block; height: 100%; background: var(--accent); transform: translateX(var(--x, 0%)); transition: transform .5s var(--ease-out); }
.pm__info {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-height: 0;
	overflow-y: auto;
	padding: clamp(24px, 3.4vw, 56px) clamp(20px, 3vw, 48px);
	background:
		radial-gradient(70% 45% at 100% 0%, rgba(var(--glow-blue), .35), transparent 70%),
		linear-gradient(170deg, #040C3A, var(--bg) 70%);
}
@media (max-width: 899px) { .pm__info { justify-content: flex-start; gap: 12px; } }
.pm__type { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pm__type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pm__title { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.75rem); line-height: 1.02; padding-right: 48px; }
@media (min-width: 900px) { .pm__title { padding-right: 32px; } }
.pm__lead { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.45; color: var(--text-soft); }
.pm__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 16px; margin: 0; border-top: 1px solid var(--line); }
.pm__facts > div { padding-block: 10px; border-bottom: 1px solid var(--line); }
.pm__facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pm__facts dd { font-size: .9375rem; }
.pm__text { font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.pm__text > * + * { margin-top: .8em; }
.pm__link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .875rem; font-weight: 600; color: var(--text-soft); text-decoration: none; }
.pm__link .arrow { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.pm__link:hover { color: var(--text); }
.pm__link:hover .arrow { transform: translateX(4px); }

/* Détail d’un projet (modale et page projet) */

.project-detail { display: grid; gap: clamp(24px, 3vw, 40px); }
.project-detail__media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-raise); }
.project-detail__media img, .project-detail__media video { width: 100%; max-height: 72vh; object-fit: cover; }
.project-detail__body { display: grid; gap: 28px 56px; }
@media (min-width: 1024px) { .project-detail__body { grid-template-columns: minmax(0, 1fr) 18rem; } .project-detail__content { grid-column: 1; } .project-detail__facts { grid-column: 2; grid-row: 1 / span 2; align-self: start; } }
.project-detail__head { display: grid; gap: 12px; }
.project-detail__type { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project-detail__type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.project-detail__title { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: clamp(1.875rem, 1.3rem + 1.8vw, 3rem); line-height: 1; }
.project-detail__lead { max-width: 52ch; font-size: var(--fs-lead); line-height: 1.4; color: var(--text-soft); }
.project-detail__facts { display: grid; margin: 0; border-top: 1px solid var(--line-strong); }
.project-detail__facts > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.project-detail__facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.project-detail__content { max-width: none; padding: 0; }
.project-detail__content > :not(.wp-block-gallery):not(.wp-block-image):not(.wp-block-video):not(.wp-block-embed) { max-width: 64ch; }
/* Galeries et médias des blocs, sans charger les styles de l’éditeur sur l’accueil. */
.project-detail__content .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 1.8em 0 0; padding: 0; list-style: none; }
.project-detail__content .wp-block-gallery figure, .project-detail__content .wp-block-image { margin: 0; }
.project-detail__content .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.project-detail__content .wp-block-gallery figcaption { margin-top: 6px; }
.project-detail__content .wp-block-video video, .project-detail__content .wp-block-image img { width: 100%; border-radius: var(--radius); }
@media (min-width: 1024px) { .project-detail__content .wp-block-gallery { width: calc(100% + 18rem + 56px); } }

/* Références : bandeau de logos */

.references__head { align-items: end; }
@media (min-width: 1024px) { .references__head { grid-template-columns: minmax(0, 1fr) auto; } }
.marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: bt-marquee calc(var(--count, 8) * 4.5s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes bt-marquee { to { transform: translateX(-50%); } }
.logos { list-style: none; margin: 0; padding: 0; display: flex; }
/* Logos dans leurs couleurs d’origine, sur tuiles claires (certains logos pleins
   comme AXA ou Holmarcom deviendraient des blocs blancs en monochrome). */
.marquee { border-block: 0; padding-block: 8px; }
.logos { gap: clamp(10px, 1.2vw, 16px); padding-right: clamp(10px, 1.2vw, 16px); }
.logos__item { display: grid; place-items: center; flex: none; width: clamp(150px, 14vw, 210px); height: clamp(84px, 7.5vw, 108px); padding: 14px clamp(16px, 1.8vw, 26px); border-radius: var(--radius); background: #F3F5FC; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); transition: transform .5s var(--ease-out), background-color .4s; }
.logos__item:hover { background: #FFFFFF; transform: translateY(-3px); }
.logos__item a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos__img { width: auto; max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(.15); opacity: .92; transition: opacity .4s, filter .4s; }
.logos__item:hover .logos__img, .logos__item a:focus-visible .logos__img { opacity: 1; filter: none; }
.marquee__icon-play { display: none; }
.marquee__toggle[aria-pressed="true"] .marquee__icon-play { display: inline; }
.marquee__toggle[aria-pressed="true"] .marquee__icon-pause { display: none; }
.marquee__toggle .icon { width: 18px; height: 18px; }

/* Équipe : carrousel horizontal */

.team__head { align-items: end; }
@media (min-width: 1024px) { .team__head { grid-template-columns: minmax(0, 1fr) auto; } }
.carousel__nav { display: flex; gap: 8px; }
.carousel__nav[hidden] { display: none; }
.team__track {
	--pad: max(var(--gutter), calc((100vw - var(--max)) / 2));
	list-style: none;
	margin: 0;
	padding: 4px var(--pad) 16px;
	display: flex;
	gap: clamp(14px, 1.8vw, 24px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	cursor: grab;
}
.team__track::-webkit-scrollbar { display: none; }
.team__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.team__track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.member { flex: 0 0 clamp(210px, 19vw, 270px); scroll-snap-align: start; display: grid; align-content: start; gap: 4px; }
.carousel__progress { position: relative; height: 2px; margin-top: 20px; overflow: hidden; border-radius: 2px; background: var(--line); }
.carousel__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 30%); background: var(--accent); transform: translateX(var(--x, 0%)); transition: transform .25s var(--ease-out), width .25s; }
@media (max-width: 599px) { .member { flex-basis: 70vw; } }
.member__photo {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	margin: 0 0 14px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(70% 55% at 80% 10%, rgba(var(--glow-blue), .45), transparent 70%),
		radial-gradient(60% 50% at 10% 100%, rgba(var(--glow-red), .18), transparent 70%),
		linear-gradient(165deg, var(--bg-raise), var(--bg));
}
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); -webkit-user-drag: none; }
.member:hover .member__photo img { filter: none; transform: scale(1.04); }
.member__initials { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: clamp(2.5rem, 1.5rem + 3vw, 4.25rem); color: rgba(243, 245, 252, .82); }
.member__name { font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-variation-settings: "wdth" 85; font-size: 1.125rem; line-height: 1.25; }
.member__role { color: var(--muted); font-size: var(--fs-small); }
.member__link { display: inline-grid; width: 36px; height: 36px; margin-top: 6px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-soft); }
.member__link .icon { width: 18px; height: 18px; }

/* Contact : coordonnées sur panneau bleu, formulaire, carte */

.contact__grid { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-areas: "info" "form" "map"; }
@media (min-width: 1024px) {
	.contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "info form" "map form"; align-items: start; }
	.contact__grid--form-only { grid-template-columns: minmax(0, 1fr); grid-template-areas: "form"; max-width: 860px; }
}
.contact__info { grid-area: info; }
.contact__form { grid-area: form; }
.map { grid-area: map; }
.contact__info {
	position: relative;
	overflow: hidden;
	padding: clamp(22px, 2.6vw, 34px);
	border-radius: var(--radius);
	background:
		radial-gradient(70% 60% at 100% 0%, rgba(var(--glow-blue), .5), transparent 65%),
		linear-gradient(155deg, var(--blue) 0%, #020A52 50%, var(--bg-raise) 100%);
}
.contact__symbol { position: absolute; right: -14%; bottom: -30%; width: 60%; pointer-events: none; }
.contact__symbol svg { width: 100%; height: auto; }
.contact__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; align-items: center; }
.contact__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(243, 245, 252, .12); color: var(--text); }
.contact__icon .icon { width: 20px; height: 20px; }
.contact__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 245, 252, .72); }
.contact__value { font-size: 1rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.contact__value:hover { text-decoration: underline; }
.contact__row--missing .contact__value { font-size: .8125rem; font-style: italic; color: rgba(243, 245, 252, .7); }
.contact__row--missing .contact__icon { background: transparent; border: 1px dashed rgba(243, 245, 252, .45); }

.map {
	position: relative;
	aspect-ratio: 16 / 10;
	max-width: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(50% 60% at 50% 45%, rgba(var(--glow-blue), .3), transparent 70%),
		repeating-linear-gradient(0deg, rgba(170, 185, 255, .05) 0 1px, transparent 1px 32px),
		repeating-linear-gradient(90deg, rgba(170, 185, 255, .05) 0 1px, transparent 1px 32px),
		var(--bg-raise);
}
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; }
.map__pin { color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--glow-red), .7)); }
.map__pin .icon { width: 30px; height: 30px; }
.map__note { max-width: 34ch; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.map__note a { color: var(--text-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(185deg) saturate(.7) brightness(.95); }

.contact__form {
	padding: clamp(24px, 3vw, 44px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(165deg, rgba(var(--glow-blue), .12), rgba(4, 12, 58, .4) 60%, rgba(1, 6, 38, .3));
}

/* Formulaire (Contact Form 7, sans sa feuille de styles) */

.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-form-control-wrap { position: relative; display: block; }

.cform__grid { display: grid; gap: 36px 28px; }
@media (min-width: 640px) { .cform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field > label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	width: 100%;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid rgba(170, 185, 255, .4);
	border-radius: 0;
	background: transparent;
	color: var(--text);
	font: 400 1rem/1.4 var(--f-text);
	transition: border-color .3s, background-color .3s;
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 ::placeholder { color: rgba(201, 208, 234, .55); }
.wpcf7 select {
	appearance: none;
	padding-right: 28px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F3F5FC' stroke-width='2'/%3E%3C/svg%3E") no-repeat right center / 18px;
}
.wpcf7 select option { color: var(--bg); background: var(--text); }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-bottom: 2px solid var(--text); background-color: rgba(170, 185, 255, .06); }
.wpcf7 input:focus-visible, .wpcf7 select:focus-visible, .wpcf7 textarea:focus-visible { box-shadow: 0 0 0 2px var(--text); }

.field--consent { font-size: .875rem; line-height: 1.5; }
.field--consent label { display: flex; gap: 12px; align-items: flex-start; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-soft); cursor: pointer; }
.field--consent input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.wpcf7-list-item { margin: 0; }

/* Message d’erreur hors du flux : sa disparition ne décale pas le formulaire
   (sinon un clic sur la case suivante peut tomber à côté). */
.wpcf7-not-valid-tip { position: absolute; top: calc(100% + 4px); left: 0; font-size: .8125rem; line-height: 1.3; font-weight: 600; color: #FF9B8A; }
.wpcf7 .wpcf7-not-valid { border-bottom-color: #FF9B8A; }

.cform__submit { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.cform__submit .btn:hover, .cform__submit .btn:focus-visible { background: var(--text); color: var(--bg); }
.cform__submit .btn:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7-spinner { display: none; width: 22px; height: 22px; border: 2px solid rgba(243, 245, 252, .35); border-top-color: var(--text); border-radius: 50%; }
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; animation: bt-spin .8s linear infinite; }
@keyframes bt-spin { to { transform: rotate(360deg); } }

.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .9375rem; font-weight: 600; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--text); background: rgba(243, 245, 252, .08); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #FF9B8A; }

/* Pied de page ---------------------------------------------------------- */

.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line); }
.site-footer__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(50% 80% at 90% 0%, rgba(var(--glow-blue), .22), transparent 70%),
		radial-gradient(30% 60% at 0% 100%, rgba(var(--glow-red), .08), transparent 70%);
}
.site-footer__symbol { position: absolute; right: -4vw; bottom: -18vw; z-index: -1; width: min(42vw, 520px); pointer-events: none; }
.site-footer__symbol svg { width: 100%; height: auto; }
.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-block: clamp(56px, 6vw, 88px) clamp(32px, 4vw, 48px);
}
.site-footer__brand { display: grid; gap: 16px; }
.site-footer__brand .brand__logo { height: 36px; }
.site-footer__text { max-width: 40ch; color: var(--muted); font-size: .9375rem; }
.site-footer__cta { display: grid; justify-items: start; gap: 20px; }
@media (min-width: 768px) { .site-footer__cta { justify-items: end; } }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	font-size: .8125rem;
	color: var(--muted);
}
.site-footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer__legal a { text-decoration: none; color: var(--text-soft); }
.site-footer__legal a:hover { color: var(--text); text-decoration: underline; }

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	color: var(--text);
	transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), transform .5s var(--ease-out);
}
.social .icon { width: 20px; height: 20px; }
a.social:hover, a.social:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.social--missing { border-style: dashed; color: var(--muted); cursor: help; }
.social--soon { opacity: .55; cursor: default; }
a.social--soon:hover, a.social--soon:focus-visible { background: transparent; border-color: var(--line-strong); color: var(--text); transform: none; }

/* Bouton WhatsApp flottant ---------------------------------------------- */
/* Masqué sur le hero et au niveau du formulaire et du pied de page (script),
   pour ne jamais couvrir les CTA, les commandes vidéo ou le formulaire. */

.wa-float {
	position: fixed;
	right: max(18px, env(safe-area-inset-right, 0px));
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
	transition: transform .6s var(--ease-out), opacity .4s var(--ease-out);
}
.wa-float__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	color: #FFFFFF;
	background: #25D366; /* vert WhatsApp d’origine */
	box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .8), 0 6px 18px -6px rgba(37, 211, 102, .55);
	transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
}
.wa-float__btn .icon { width: 30px; height: 30px; }
/* Anneau discret qui respire. */
.wa-float__btn::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 1px solid rgba(37, 211, 102, .55);
	border-radius: 50%;
	opacity: 0;
	animation: bt-wa-ring 3.2s var(--ease-out) infinite;
}
@keyframes bt-wa-ring { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.wa-float__label {
	padding: 10px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: rgba(1, 6, 38, .92);
	font: 600 .8125rem/1 var(--f-text);
	white-space: nowrap;
	opacity: 0;
	transform: translateX(12px);
	pointer-events: none;
	transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
.wa-float:hover .wa-float__btn, .wa-float:focus-visible .wa-float__btn { transform: scale(1.06); background: #20BD5A; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8), 0 0 0 6px rgba(37, 211, 102, .2); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float__btn { outline: 2px solid var(--text); outline-offset: 3px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; transition: transform .6s var(--ease-out), opacity .4s var(--ease-out), visibility 0s linear .4s; }
.wa-float--missing .wa-float__btn { color: var(--muted); background: transparent; border: 1px dashed #25D366; box-shadow: none; }
.wa-float--missing .wa-float__label { opacity: 1; transform: none; color: var(--muted); }
@media (max-width: 599px), (hover: none) {
	.wa-float__label { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.wa-float__btn { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float__btn::after { display: none; } }
.menu-open .wa-float, .modal-open .wa-float { opacity: 0; pointer-events: none; }

/* Select2 aux couleurs du site (formulaire, sur ordinateur seulement) ---- */

.select2-container--default .select2-selection--single {
	height: auto;
	padding: 10px 28px 10px 0;
	border: 0;
	border-bottom: 1px solid rgba(170, 185, 255, .4);
	border-radius: 0;
	background: transparent;
	transition: border-color .3s, background-color .3s;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--text); font: 400 1rem/1.4 var(--f-text); }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: rgba(201, 208, 234, .7); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; right: 0; height: 18px; width: 18px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F3F5FC' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 18px; transition: transform .4s var(--ease-out); }
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--open .select2-selection--single .select2-selection__arrow { transform: translateY(-50%) rotate(180deg); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-bottom: 2px solid var(--text); background: rgba(170, 185, 255, .06); outline: none; }
.select2-container--default .select2-selection--single:focus-visible { box-shadow: 0 0 0 2px var(--text); }
.select2-dropdown { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #040C3A; color: var(--text); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8); }
.select2-container--open .select2-dropdown--below { margin-top: 6px; border-top: 1px solid var(--line-strong); border-radius: var(--radius); }
.select2-results__option { padding: 11px 14px; font-size: .9375rem; }
.select2-container--default .select2-results__option[aria-selected="true"] { background: rgba(170, 185, 255, .14); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent); color: var(--accent-ink); }
.select2-container--default .select2-results > .select2-results__options { max-height: 320px; }
.wpcf7-not-valid + .select2-container .select2-selection--single { border-bottom-color: #FF9B8A; }

/* Page projet ----------------------------------------------------------- */

.single-project__inner { padding-block: calc(var(--header-h) + clamp(32px, 4vw, 64px)) clamp(56px, 7vw, 104px); display: grid; gap: clamp(24px, 3vw, 40px); }
.back-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.back-link .arrow { width: 1.1em; transform: rotate(180deg); transition: transform .5s var(--ease-out); }
.back-link:hover { color: var(--text); }
.back-link:hover .arrow { transform: rotate(180deg) translateX(4px); }

.next-project a { display: grid; gap: 6px; padding-top: 32px; border-top: 1px solid var(--line); text-decoration: none; }
.next-project__title {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	font-family: var(--f-display);
	font-weight: 700;
	font-stretch: 80%;
	font-variation-settings: "wdth" 80;
	font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.75rem);
	line-height: 1.05;
	transition: color .4s;
}
.next-project__title .arrow { width: .7em; height: .7em; flex: none; }
.next-project a:hover .next-project__title { color: var(--accent); }

/* Contenu éditorial (éditeur de blocs) ---------------------------------- */

.prose { max-width: calc(720px + 2 * var(--gutter)); font-size: 1.0625rem; line-height: 1.7; color: var(--text-soft); }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 {
	margin-top: 2em;
	color: var(--text);
	font-family: var(--f-display);
	font-weight: 700;
	font-stretch: 85%;
	font-variation-settings: "wdth" 85;
	line-height: 1.15;
}
.prose h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.prose h3 { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem); }
.prose a { color: var(--text); }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--accent); font-size: 1.1875rem; color: var(--text); }
.prose figure { margin-block: 2.2em; }
.prose img { border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.prose .alignwide { width: min(1320px, 100vw - 2 * var(--gutter)); max-width: none; margin-inline: calc(50% - min(1320px, 100vw - 2 * var(--gutter)) / 2); }
.prose .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.prose .alignfull img, .prose .alignwide img { width: 100%; }
.prose video { width: 100%; }
.prose .wp-block-gallery { gap: 12px; }

.page-simple { padding-block: calc(var(--header-h) + clamp(48px, 5vw, 88px)) clamp(64px, 7vw, 112px); }
.page-simple__head { margin-bottom: clamp(32px, 4vw, 56px); }
.page-simple__title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem); line-height: .95; }
.page-simple .prose { padding-inline: 0; margin-inline: 0; }

.page-404 { display: grid; align-items: center; min-height: 80vh; padding-block: calc(var(--header-h) + 48px) 96px; }
.page-404 .section-title { margin-bottom: 32px; }

/* Apparitions au défilement --------------------------------------------- */
/* Activées seulement quand le script a démarré (classe .reveal-ready),
   pour que le contenu reste lisible si le JavaScript échoue. */

@media (prefers-reduced-motion: no-preference) {
	.reveal-ready [data-reveal]:not([data-reveal="lines"]) {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity var(--dur) var(--ease-out), transform calc(var(--dur) + .2s) var(--ease-out);
		transition-delay: calc(var(--d, 0) * 90ms);
	}
	.reveal-ready [data-reveal].is-in:not([data-reveal="lines"]) { opacity: 1; transform: none; }
	/* Une fois apparue, la carte retrouve des transitions rapides pour le survol. */
	.reveal-ready .service.is-in, .reveal-ready .project.is-in { transition: border-color .5s var(--ease-out), transform .7s var(--ease-out), opacity var(--dur) var(--ease-out); transition-delay: 0s; }

	/* Images : ouverture du cadre, léger dézoom et fondu, avec la courbe du site. */
	.reveal-ready [data-reveal-img] {
		clip-path: inset(12% 8% 12% 8% round var(--radius));
		opacity: 0;
		transition: clip-path 1.4s var(--ease-out), opacity 1s var(--ease-out);
		transition-delay: calc(var(--d, 0) * 90ms);
	}
	.reveal-ready [data-reveal-img].is-in { clip-path: inset(0 round var(--radius)); opacity: 1; }
	.reveal-ready [data-reveal-img] img { scale: 1.18; transition: scale 1.8s var(--ease-out), transform 1.4s var(--ease-out), filter .8s var(--ease-out); }
	.reveal-ready [data-reveal-img].is-in img { scale: 1; }

	/* Parallaxe discrète (translate, indépendant des transform de survol). */
	[data-parallax] { translate: 0 var(--py, 0px); }
	.project__media[data-parallax-inner] img { top: -8%; height: 116%; translate: 0 var(--py, 0px); }

	.reveal-ready [data-reveal="lines"] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
	.reveal-ready [data-reveal="lines"] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 40ms); }
	.reveal-ready [data-reveal="lines"].is-in .w > span { transform: none; }
}

/* Mouvement réduit : image fixe à la place de la vidéo, pas d’animation. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
	.marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.logos { flex-wrap: wrap; justify-content: center; }
	.logos--clone, .marquee__toggle { display: none; }
	.marquee { mask-image: none; }
	/* Sauf si le visiteur a choisi « Lire le showreel ». */
	.hero:not(.is-user-started) .hero__video, .hero:not(.is-user-started) .hero__vimeo, .project__media video { display: none; }
}
