/* ==========================================================================
   COSIPA : feuille de styles principale
   ========================================================================== */

/* Polices hébergées localement ------------------------------------------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
	src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
	src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap;
	src: url("../fonts/dm-sans-latin-wght-italic.woff2") format("woff2"); }

/* Jetons ------------------------------------------------------------------ */
:root {
	--c-primary: #04AFF5;
	--c-deep: #0383E2;
	--c-night: #04142E;

	--bg: #F3F8FC;
	--bg-2: #E7F1F9;
	--fg: #04142E;
	--muted: #4D5E77;
	--line: rgba(4, 20, 46, .12);
	--card: #FFFFFF;
	--accent: var(--c-primary);
	--accent-ink: var(--c-deep);
	--on-accent: #FFFFFF;
	--shadow: 0 30px 60px -30px rgba(3, 60, 120, .35);

	--f-display: "Outfit", ui-rounded, system-ui, sans-serif;
	--f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(16px, 4vw, 56px);
	--maxw: 1440px;
	--radius: 28px;
	--radius-sm: 14px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--header-h: 84px;
	color-scheme: light;
}

/* Mode sombre manuel et mode nuit au défilement partagent la même palette. */
html[data-theme="dark"],
body.is-night {
	--bg: var(--c-night);
	--bg-2: #071D40;
	--fg: #EAF6FF;
	--muted: #8FA8C8;
	--line: rgba(234, 246, 255, .13);
	--card: #0A2147;
	--accent-ink: var(--c-primary);
	--shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		--bg: var(--c-night);
		--bg-2: #071D40;
		--fg: #EAF6FF;
		--muted: #8FA8C8;
		--line: rgba(234, 246, 255, .13);
		--card: #0A2147;
		--accent-ink: var(--c-primary);
		--shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--f-body);
	font-size: clamp(16px, 1.05vw, 18px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	transition: background-color .9s var(--ease), color .9s var(--ease);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--c-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 4px; border-radius: 6px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; border-radius: 99px; background: var(--fg); color: var(--bg); transform: translateY(-200%); transition: transform .3s; }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1760px; }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 90px); }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--f-display); font-size: .78rem; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
	margin-bottom: 1.4rem;
}
.eyebrow--dot::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary);
	box-shadow: 0 0 0 0 rgba(4, 175, 245, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(4,175,245,.55); } 70% { box-shadow: 0 0 0 12px rgba(4,175,245,0); } 100% { box-shadow: 0 0 0 0 rgba(4,175,245,0); } }

.h-display { font-size: clamp(2.4rem, 5.6vw, 5.6rem); font-weight: 600; }

/* Lignes de titre masquées (animées par JS) */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: inline-block; will-change: transform; }

/* Boutons ----------------------------------------------------------------- */
.btn {
	--b-bg: transparent; --b-fg: var(--fg); --b-bd: var(--line);
	position: relative; display: inline-flex; align-items: center; gap: .7em;
	padding: 1.05em 1.6em; border-radius: 999px; border: 1px solid var(--b-bd);
	background: var(--b-bg); color: var(--b-fg);
	font-family: var(--f-display); font-weight: 500; font-size: .98rem; line-height: 1;
	overflow: hidden; isolation: isolate; white-space: nowrap;
	transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--fg); transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--bg); border-color: var(--fg); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .5s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { --b-bg: linear-gradient(120deg, var(--c-primary), var(--c-deep)); --b-fg: #fff; --b-bd: transparent; }
.btn--primary::before { background: var(--c-night); }
body.is-night .btn--primary::before, html[data-theme="dark"] .btn--primary::before { background: #fff; }
.btn--primary:hover { color: #fff; border-color: transparent; }
body.is-night .btn--primary:hover, html[data-theme="dark"] .btn--primary:hover { color: var(--c-night); }
.btn--sm { padding: .78em 1.25em; font-size: .9rem; }

.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-underline:hover { background-size: 100% 1px; }

.tag { display: inline-block; padding: .35em .85em; border-radius: 99px; border: 1px solid var(--line); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Médias et emplacements réservés --------------------------------------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); isolation: isolate; }
.media__inner { position: absolute; inset: -12% 0; will-change: transform; }
.media__inner > img, .media__inner > .ph, .media__img { width: 100%; height: 100%; object-fit: cover; }

.ph {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px;
	color: var(--c-primary); overflow: hidden;
	background:
		radial-gradient(120% 90% at 20% 10%, rgba(4,175,245,.28), transparent 55%),
		radial-gradient(90% 80% at 90% 100%, rgba(3,131,226,.32), transparent 60%),
		linear-gradient(160deg, #DDEFFB, #BFE3F8);
}
html[data-theme="dark"] .ph, body.is-night .ph {
	background:
		radial-gradient(120% 90% at 20% 10%, rgba(4,175,245,.25), transparent 55%),
		radial-gradient(90% 80% at 90% 100%, rgba(3,131,226,.35), transparent 60%),
		linear-gradient(160deg, #0A2752, #061936);
}
.ph::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(4,20,46,.10) 1px, transparent 1.4px);
	background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.ph__mol { width: min(46%, 220px); opacity: .55; transform: rotate(var(--ph-rot, 0deg)); animation: phfloat 9s ease-in-out infinite; }
@keyframes phfloat { 50% { transform: rotate(calc(var(--ph-rot, 0deg) + 8deg)) translateY(-6px); } }
.ph__label {
	position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 1;
	display: flex; flex-direction: column; gap: 2px;
	font-family: var(--f-display); font-size: .82rem; font-weight: 500; color: var(--c-night);
}
html[data-theme="dark"] .ph__label, body.is-night .ph__label { color: #EAF6FF; }
.media__inner > .ph .ph__label { bottom: calc(10% + 16px); }
.ph__label small { font-family: var(--f-body); font-weight: 400; opacity: .6; font-size: .72rem; }

/* En-tête ----------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	padding-inline: var(--gutter);
	transition: transform .6s var(--ease), background-color .5s, backdrop-filter .5s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.site-header.is-hidden { transform: translateY(-100%); }
.logo { display: block; }
.logo__img { width: auto; height: 46px; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .burger {
	height: 46px; border-radius: 99px; border: 1px solid var(--line);
	display: inline-flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--bg) 60%, transparent);
	transition: border-color .4s, background-color .4s;
}
.theme-toggle { width: 46px; }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon--sun, body.is-night .theme-toggle .icon--sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon--moon, body.is-night .theme-toggle .icon--moon { display: none; }
.theme-toggle:hover, .burger:hover { border-color: var(--c-primary); }

.burger { gap: 12px; padding: 0 8px 0 20px; font-family: var(--f-display); font-weight: 500; font-size: .92rem; }
.burger__lines { width: 30px; height: 30px; border-radius: 50%; background: var(--fg); display: grid; place-content: center; gap: 4px; transition: background-color .4s; }
.burger__lines i { display: block; width: 12px; height: 1.6px; background: var(--bg); transition: transform .5s var(--ease); }
.menu-open .burger__lines i:first-child { transform: translateY(2.8px) rotate(45deg); }
.menu-open .burger__lines i:last-child { transform: translateY(-2.8px) rotate(-45deg); }

/* Menu plein écran */
.menu-overlay { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.menu-open .menu-overlay { visibility: visible; pointer-events: auto; }
.menu-overlay__bg { position: absolute; inset: 0; background: var(--c-night); clip-path: circle(0% at calc(100% - 60px) 42px); }
.menu-overlay__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 20%, rgba(4,175,245,.25), transparent 70%); }
.menu-overlay__inner {
	position: relative; height: 100%; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end;
	padding: calc(var(--header-h) + 40px) var(--gutter) 56px; color: #EAF6FF;
}
.menu-overlay .menu { list-style: none; margin: 0; padding: 0; }
.menu-overlay .menu li { overflow: hidden; }
.menu-overlay .menu a {
	display: inline-flex; align-items: baseline; gap: .4em;
	font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 7vh, 5.6rem); line-height: 1.08; letter-spacing: -.03em;
	transition: color .4s, transform .6s var(--ease);
}
.menu-overlay .menu a:hover { color: var(--c-primary); transform: translateX(14px); }
.menu-overlay .menu li { counter-increment: menu; }
.menu-overlay .menu a::before { content: "0" counter(menu); font-size: .8rem; letter-spacing: .1em; color: var(--c-primary); transform: translateY(-1.6em); }
.menu-overlay__side { display: flex; flex-direction: column; gap: 14px; }
.menu-overlay__side .eyebrow { color: var(--c-primary); margin: 0; }
.menu-overlay__mail { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.6rem); }
.menu-overlay__tag { color: #8FA8C8; max-width: 30ch; }
.menu-overlay .menu li, .menu-overlay__side > * { opacity: 0; }

.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; opacity: .8; transition: opacity .3s, background-color .3s, color .3s; }
.socials a:hover { opacity: 1; background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.socials .icon { width: 18px; height: 18px; }

/* Préchargeur, voiles, curseur ------------------------------------------ */
.preloader {
	position: fixed; inset: 0; z-index: 200; background: var(--c-night); color: var(--c-primary);
	display: grid; place-items: center;
}
.no-preload .preloader, html:not(.js) .preloader { display: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__mol { width: min(260px, 60vw); }
.preloader__count { font-family: var(--f-display); font-size: .85rem; letter-spacing: .2em; color: #8FA8C8; }

.veil { position: fixed; inset: 0; z-index: 150; background: var(--c-night); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.js.is-entering .veil { transform: scaleY(1); }
.portal-veil { position: fixed; inset: 0; z-index: 140; pointer-events: none; background: radial-gradient(80% 80% at 50% 50%, #0A2A5C, var(--c-night)); clip-path: circle(0% at 50% 50%); }

.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
	position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
	background: var(--c-primary); transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s;
	mix-blend-mode: normal;
}
.cursor__label { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-display); font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .3s; letter-spacing: .04em; }
.cursor.is-link .cursor__dot { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(4,175,245,.22); }
.cursor.is-label .cursor__dot { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--c-primary); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden .cursor__dot { opacity: 0; }

/* Ouverture --------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 110px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow { position: absolute; z-index: 0; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(4,175,245,.22), transparent); filter: blur(10px); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.hero__title { font-size: clamp(3rem, 7.6vw, 8.4rem); font-weight: 600; letter-spacing: -.04em; line-height: .94; margin-bottom: 2rem; }
.hero__title .line:nth-child(2) .line__in { background: linear-gradient(100deg, var(--c-primary), var(--c-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__text { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 2.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 76vh; justify-self: end; width: 100%; }
.hero__media { position: absolute; inset: 0; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero__badge {
	position: absolute; z-index: 3; left: -12%; bottom: 12%;
	display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border-radius: 99px;
	background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .85rem; line-height: 1.25;
}
.hero__badge strong { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-deep)); color: #fff; font-family: var(--f-display); font-size: .95rem; }

.hero__scroll { position: absolute; left: var(--gutter); bottom: 30px; z-index: 2; display: flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--c-primary); transform: translateY(-100%); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 50% { transform: none; } 100% { transform: translateY(100%); } }

/* Qui sommes-nous --------------------------------------------------------- */
.manifesto__text { font-family: var(--f-display); font-size: clamp(1.7rem, 3.8vw, 3.8rem); line-height: 1.14; letter-spacing: -.02em; font-weight: 500; max-width: 22ch; max-width: none; }
.manifesto__text .w { opacity: .14; transition: none; }
.no-fx .manifesto__text .w, .manifesto__text:not([data-words-ready]) .w { opacity: 1; }
.manifesto__media { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: end; margin-top: clamp(60px, 9vw, 130px); }
.media--wide { aspect-ratio: 16 / 10; }
.media--tall { aspect-ratio: 4 / 5; transform: translateY(18%); }

.stats { list-style: none; margin: clamp(80px, 10vw, 160px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .95rem; }

/* Bandeau défilant -------------------------------------------------------- */
.marquee { overflow: hidden; padding-block: clamp(20px, 3vw, 40px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee span {
	font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 9vw, 9rem); letter-spacing: -.04em; line-height: 1; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 1.5px var(--fg); padding-right: .3em;
}
.marquee span:nth-child(even) { color: var(--c-primary); -webkit-text-stroke: 0; }
html:not(.js) .marquee__track, .no-fx .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Missions (horizontal) -------------------------------------------------- */
.missions { position: relative; }
.missions__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.missions__track { display: flex; gap: clamp(20px, 3vw, 44px); padding-inline: var(--gutter); align-items: stretch; width: max-content; will-change: transform; }
.missions__intro { width: min(40vw, 560px); flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: 3vw; }
.missions__hint { display: flex; align-items: center; gap: 10px; margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.missions__hint .icon { animation: nudge 1.8s var(--ease) infinite; color: var(--c-primary); }
@keyframes nudge { 50% { transform: translateX(8px); } }
.mission {
	flex: none; width: min(78vw, 820px); height: min(70vh, 620px);
	display: grid; grid-template-columns: 1fr 1fr; gap: 0;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.mission:hover { box-shadow: var(--shadow); }
.mission__media { border-radius: 0; height: 100%; }
.mission__media .media__inner { inset: 0 -15%; }
.mission__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.mission__num { font-family: var(--f-display); font-size: .85rem; color: var(--c-primary); letter-spacing: .14em; margin-bottom: auto; }
.mission__title { font-size: clamp(2.2rem, 4vw, 4rem); }
.mission__body p { color: var(--muted); margin: 0; }
.missions__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.missions__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-deep)); transform: scaleX(0); transform-origin: left; }

/* Portail ------------------------------------------------------------------ */
.portal__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.portal__btn { position: relative; width: clamp(180px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.portal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.portal__ring text { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .32em; fill: var(--fg); font-weight: 500; }
.portal__core {
	width: 52%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff;
	background: radial-gradient(circle at 30% 30%, var(--c-primary), var(--c-deep) 70%);
	box-shadow: 0 0 0 0 rgba(4,175,245,.45), 0 25px 60px -15px rgba(3,131,226,.7);
	animation: portalpulse 2.6s infinite; transition: transform .7s var(--ease);
}
.portal__core .icon { width: 34%; height: 34%; transition: transform .6s var(--ease); }
.portal__btn:hover .portal__core { transform: scale(1.12); }
.portal__btn:hover .portal__core .icon { transform: translateY(6px); }
@keyframes portalpulse { 0% { box-shadow: 0 0 0 0 rgba(4,175,245,.45), 0 25px 60px -15px rgba(3,131,226,.7); } 70% { box-shadow: 0 0 0 34px rgba(4,175,245,0), 0 25px 60px -15px rgba(3,131,226,.7); } 100% { box-shadow: 0 0 0 0 rgba(4,175,245,0), 0 25px 60px -15px rgba(3,131,226,.7); } }
@keyframes spin { to { transform: rotate(360deg); } }
.portal__label { font-size: clamp(2rem, 4.6vw, 4.4rem); max-width: 16ch; }

/* Mentions IPA (panneaux extensibles) ----------------------------------- */
.domaines { overflow: hidden; }
.domaines__stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s;
	background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent), radial-gradient(1.4px 1.4px at 38% 68%, var(--c-primary) 50%, transparent), radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent), radial-gradient(1.2px 1.2px at 22% 88%, #fff 50%, transparent), radial-gradient(1px 1px at 58% 38%, var(--c-primary) 50%, transparent);
	background-size: 420px 420px; }
body.is-night .domaines__stars, html[data-theme="dark"] .domaines__stars { opacity: .55; }
.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 90px); }
.section-head--row { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head--row > :last-child:not(:first-child) { justify-self: end; max-width: 460px; }
.section-head__text { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin-top: 1.6rem; }
.section-head--row .section-head__text { margin-top: 0; margin-bottom: 1.6rem; }

.panels { display: flex; gap: 12px; height: min(74vh, 640px); }
.panel {
	position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
	transition: flex-grow .9s var(--ease); background: #0A2147; outline-offset: 4px;
}
.panel.is-open { flex-grow: 4.2; cursor: default; }
.panel__media { position: absolute; inset: 0; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.panel.is-open .panel__media { transform: none; }
.panel__media img, .panel__media .ph { width: 100%; height: 100%; object-fit: cover; }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,20,46,.15) 0%, rgba(4,20,46,.88) 78%); transition: background .8s; }
.panel:not(.is-open) .panel__shade { background: rgba(4,20,46,.72); }
.panel__num { position: absolute; top: 22px; left: 22px; z-index: 2; font-family: var(--f-display); color: var(--c-primary); font-size: .85rem; letter-spacing: .14em; }
.panel__vtitle {
	position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(180deg);
	writing-mode: vertical-rl; font-size: 1.2rem; font-weight: 500; white-space: nowrap; color: #EAF6FF;
	transition: opacity .4s;
}
/* Titres verticaux (ordinateur) : taille réduite pour tenir dans la hauteur, sans couper le texte */
@media (min-width: 1024px) {
	.panel__vtitle { font-size: clamp(.95rem, 1.1vw, 1.15rem); }
}
.panel.is-open .panel__vtitle { opacity: 0; }
.panel__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 44px); color: #EAF6FF; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .8s var(--ease); max-width: 640px; }
.panel.is-open .panel__body { opacity: 1; transform: none; transition-delay: .35s; }
.panel__title { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: .6em; }
.panel__body p { color: #B8CCE4; margin: 0; }
.panel .ph__label { display: none; }
.panel.is-open .ph__label { display: flex; top: 20px; bottom: auto; left: auto; right: 20px; text-align: right; color: #EAF6FF; }

/* Ressources ------------------------------------------------------------ */
.domaines + .resources { padding-top: clamp(30px, 5vw, 80px); }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.res-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s; will-change: transform; }
.res-card:hover { border-color: var(--c-primary); }
.res-card__media { aspect-ratio: 4 / 4.2; overflow: hidden; }
.res-card__media img, .res-card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.res-card:hover .res-card__media img, .res-card:hover .res-card__media .ph { transform: scale(1.06); }
.res-card__body { position: relative; padding: 24px 70px 28px 24px; }
.res-card__body h3 { font-size: 1.45rem; margin-top: 14px; }
.res-card__arrow { position: absolute; right: 22px; bottom: 26px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .4s, color .4s, transform .6s var(--ease); }
.res-card:hover .res-card__arrow { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: rotate(45deg); }

/* Annuaire ----------------------------------------------------------------- */
.dir {
	--dir-h: min(78vh, 760px);
	display: grid; grid-template-columns: minmax(300px, 400px) 1fr; height: var(--dir-h);
	border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card);
	box-shadow: var(--shadow);
}
.dir__panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.dir__search { position: relative; margin: 18px 18px 10px; }
.dir__search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; }
.dir__q { width: 100%; padding: 14px 16px 14px 46px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: .95rem; outline: none; transition: border-color .3s, box-shadow .3s; }
.dir__q:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(4,175,245,.15); }
.dir__filters { padding: 0 18px 8px; display: flex; flex-direction: column; gap: 10px; }
.dir__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); font-size: .82rem; transition: all .3s var(--ease); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--c-primary)); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip:hover { border-color: var(--c-primary); }
.dir__select select { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: .88rem; }
.dir__meta { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 12px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.dir__count strong { color: var(--fg); font-family: var(--f-display); font-size: 1.05rem; }
.dir__locate { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font-size: .82rem; color: var(--accent-ink); transition: background-color .3s; }
.dir__locate:hover { background: rgba(4,175,245,.1); }
.dir__locate .icon { width: 16px; height: 16px; }
.dir__list { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; overscroll-behavior: contain; }
.dir__item { display: flex; gap: 14px; padding: 14px 12px; border-radius: 16px; cursor: pointer; transition: background-color .3s; align-items: flex-start; }
.dir__item:hover, .dir__item.is-active { background: rgba(4,175,245,.09); }
.dir__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-deep)); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.dir__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir__info { min-width: 0; }
.dir__name { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; }
.dir__sub { font-size: .84rem; color: var(--muted); margin: 2px 0 6px; line-height: 1.35; }
.dir__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dir__tags span { font-size: .7rem; padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.dir__dist { font-size: .75rem; color: var(--accent-ink); margin-left: auto; white-space: nowrap; }
.dir__empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.dir__mapwrap { position: relative; min-height: 0; }
.dir__map { position: absolute; inset: 0; background: var(--bg-2); z-index: 1; }
.dir__toggle { display: none; }

/* Marqueurs et infobulles Leaflet */
.leaflet-container { font-family: var(--f-body); }
.pin { position: relative; width: 22px; height: 22px; display: block; }
.pin i { position: absolute; inset: 4px; border-radius: 50%; background: var(--pin, var(--c-primary)); border: 2.5px solid #fff; box-shadow: 0 4px 12px rgba(3,60,120,.4); transition: transform .3s var(--ease); }
.pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pin, var(--c-primary)); opacity: .35; animation: pinpulse 2.4s infinite; }
.pin.is-active i { transform: scale(1.5); }
@keyframes pinpulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
.cluster { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .95rem;
	background: radial-gradient(circle at 30% 30%, var(--c-primary), var(--c-deep)); box-shadow: 0 0 0 6px rgba(4,175,245,.25), 0 8px 20px rgba(3,60,120,.35); transition: transform .3s var(--ease); }
.cluster:hover { transform: scale(1.1); }
.marker-cluster { background: none !important; }
.leaflet-popup-content-wrapper { border-radius: 18px; background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--card); }
.leaflet-popup-content { margin: 18px 20px; min-width: 220px; font-size: .9rem; line-height: 1.45; }
.pop__name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 2px; }
.pop__sub { color: var(--muted); margin-bottom: 8px; }
.pop__desc { margin: 8px 0; }
.pop__links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pop__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.pop__links .icon { width: 15px; height: 15px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); top: 8px; right: 8px; }
.leaflet-bar a { background: var(--card); color: var(--fg); border-color: var(--line) !important; }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--card) 80%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }

/* Actualités ------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.post-card { display: flex; flex-direction: column; }
.post-card__link { display: flex; flex-direction: column; height: 100%; }
.post-card__media { aspect-ratio: 16 / 11; margin-bottom: 22px; }
.post-card__media img, .post-card__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card__link:hover .post-card__media img, .post-card__link:hover .post-card__media .ph { transform: scale(1.05); }
.post-card__meta { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6em; }
.post-card__title { font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.15; margin-bottom: .6em; }
.post-card__excerpt { color: var(--muted); font-size: .95rem; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 500; font-size: .92rem; }
.post-card__more .icon { width: 18px; transition: transform .5s var(--ease); }
.post-card__link:hover .post-card__more .icon { transform: translateX(6px); }

/* Adhésion --------------------------------------------------------------- */
.join__title { font-size: clamp(3rem, 9vw, 10rem); letter-spacing: -.045em; line-height: .92; margin-bottom: clamp(50px, 6vw, 90px); }
.join__title .line:nth-child(2) .line__in { color: var(--c-primary); }
.join__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.join__media { aspect-ratio: 16 / 10; }
.join__copy p { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--muted); max-width: 40ch; margin-bottom: 2.4rem; }
.join__cta { position: relative; width: 200px; aspect-ratio: 1; display: grid; place-items: center; }
.join__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.join__ring text { font-family: var(--f-display); font-size: 11.2px; letter-spacing: .26em; fill: var(--fg); font-weight: 500; }
.join__core { width: 50%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary), var(--c-deep)); color: #fff; transition: transform .7s var(--ease); }
.join__core .icon { width: 36%; height: 36%; transition: transform .6s var(--ease); }
.join__cta:hover .join__core { transform: scale(1.15); }
.join__cta:hover .join__core .icon { transform: rotate(45deg); }

/* Pied de page ----------------------------------------------------------- */
.site-footer { position: relative; padding-top: clamp(70px, 9vw, 130px); overflow: hidden; border-top: 1px solid var(--line); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.logo--footer .logo__img { height: 64px; margin-bottom: 18px; }
.site-footer__brand p { color: var(--muted); max-width: 30ch; }
.site-footer .eyebrow { color: var(--c-primary); }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-menu a, .site-footer .menu a { color: var(--muted); transition: color .3s; }
.footer-menu a:hover, .site-footer .menu a:hover { color: var(--fg); }
.site-footer__addr { color: var(--muted); }
.site-footer .socials { margin-top: 18px; }
.site-footer__giant { overflow: hidden; margin-top: clamp(50px, 6vw, 100px); }
.site-footer__giant span {
	display: block; text-align: center; font-family: var(--f-display); font-weight: 700; letter-spacing: -.06em; line-height: .78;
	font-size: 25.5vw; background: linear-gradient(180deg, var(--c-primary), rgba(3,131,226,.12) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
	transform: translateY(12%);
}
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top .icon { transform: rotate(180deg); width: 16px; }

/* Pages intérieures ------------------------------------------------------ */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(60px, 10vw, 140px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 7rem); letter-spacing: -.04em; line-height: .95; max-width: 16ch; }
.page-hero__text { margin-top: 1.6rem; color: var(--muted); font-size: 1.15rem; max-width: 56ch; }
.page-hero--404 { min-height: 100svh; display: flex; align-items: center; }
.page-hero--404 .btn { margin-top: 1rem; }
.page-cover { aspect-ratio: 21 / 9; margin-bottom: clamp(50px, 6vw, 90px); }

.prose { max-width: 760px; margin-inline: auto; padding-bottom: clamp(60px, 8vw, 120px); font-size: 1.08rem; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 2em; }
.prose h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-top: 1.8em; }
.prose a { color: var(--accent-ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.prose a:hover { background-size: 0 1px; background-position: 100% 100%; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 1.4em; border-left: 3px solid var(--c-primary); font-family: var(--f-display); font-size: 1.4rem; line-height: 1.35; }
.prose img { border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--c-primary); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7em; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-button__link { background: linear-gradient(120deg, var(--c-primary), var(--c-deep)); color: #fff; border-radius: 99px; padding: .9em 1.5em; }
.alignwide { margin-inline: calc(50% - min(48vw, 600px)); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }

.post-nav { max-width: 760px; margin: 0 auto clamp(60px, 8vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav a { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 100%; transition: border-color .3s; }
.post-nav a:hover { border-color: var(--c-primary); }
.post-nav div:last-child a { text-align: right; align-items: flex-end; }
.post-nav .eyebrow { margin-bottom: .4rem; }
.pagination { margin-top: 60px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; }
.pagination .page-numbers.current { background: var(--fg); color: var(--bg); }

/* États initiaux des animations (seulement si JS actif) ------------------ */
.js:not(.no-fx-root) body:not(.no-fx) [data-lines] .line__in { transform: translateY(110%); }
.js:not(.no-fx-root) body:not(.no-fx) [data-fade] { opacity: 0; transform: translateY(30px); }
.js:not(.no-fx-root) body:not(.no-fx) [data-clip-grow] { clip-path: inset(12% 10% 12% 10% round var(--radius)); }
.js:not(.no-fx-root) body:not(.no-fx) .hero__visual { opacity: 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 460px; max-height: none; justify-self: center; margin-top: 40px; }
	.hero__badge { left: -4%; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.res-grid, .news-grid { grid-template-columns: 1fr 1fr; }
	.res-grid > :last-child, .news-grid > :last-child { display: none; }
}

@media (max-width: 1023px) {
	/* Missions : empilées verticalement */
	.missions__pin { height: auto; overflow: visible; padding-block: 80px; }
	.missions__track { width: auto; flex-direction: column; transform: none !important; }
	.missions__intro { width: auto; padding: 0 0 20px; }
	.missions__hint, .missions__progress { display: none; }
	.mission { width: 100%; height: auto; grid-template-columns: 1fr; }
	.mission__media { aspect-ratio: 16 / 10; height: auto; }
	.mission__media .media__inner { inset: -10% 0; }
	.mission__num { margin-bottom: 0; }

	.panels { flex-direction: column; height: auto; }
	.panel { flex: none; height: 92px; transition: height .8s var(--ease); }
	.panel.is-open { height: 460px; }
	.panel__vtitle { writing-mode: horizontal-tb; transform: translateY(-50%); left: 70px; right: 20px; bottom: auto; top: 50%; font-size: 1.1rem; white-space: normal; line-height: 1.25; }
	.panel__num { top: 50%; transform: translateY(-50%); }
	.panel.is-open .panel__num { top: 22px; transform: none; }

	.dir { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
	.dir__panel { border-right: 0; border-bottom: 1px solid var(--line); }
	.dir__list { max-height: 380px; }
	.dir__mapwrap { height: 60vh; min-height: 380px; order: -1; }
	.section-head--row { grid-template-columns: 1fr; }
	.section-head--row > :last-child:not(:first-child) { justify-self: start; }
}

@media (max-width: 760px) {
	:root { --header-h: 70px; --radius: 22px; }
	.logo__img { height: 38px; }
	.site-header__cta { display: none; }
	.burger { padding-left: 14px; }
	.menu-overlay__inner { grid-template-columns: 1fr; align-content: end; }
	.manifesto__media { grid-template-columns: 1fr; }
	.media--tall { transform: none; width: 70%; justify-self: end; margin-top: -30%; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.stat { padding-bottom: 24px; }
	.res-grid, .news-grid { grid-template-columns: 1fr; }
	.res-grid > :last-child, .news-grid > :last-child { display: flex; }
	.join__grid { grid-template-columns: 1fr; }
	.join__cta { width: 160px; }
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
	.post-nav { grid-template-columns: 1fr; }
	.hero { padding-bottom: 90px; }
	.hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js [data-lines] .line__in, .js [data-fade] { transform: none !important; opacity: 1 !important; }
	.js [data-clip-grow] { clip-path: none !important; }
	.js .hero__visual { opacity: 1 !important; }
	.manifesto__text .w { opacity: 1 !important; }
	.preloader { display: none; }
}

/* ==========================================================================
   Boîte à outils, actualités : barre de filtres, cartes, fiches
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 24px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.toolbar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar .chip, .toolbar__sub .chip { padding: 10px 18px; font-size: .9rem; font-family: var(--f-display); font-weight: 500; }
.chip small { opacity: .55; font-size: .78em; margin-left: 2px; }
.chip[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip--sm { padding: 7px 14px !important; font-size: .82rem !important; }
.toolbar__sub { display: flex; flex-wrap: wrap; gap: 6px; margin: -16px 0 32px; }
.toolbar__search { position: relative; flex: 0 1 320px; }
.toolbar__search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.toolbar__search input { width: 100%; padding: 13px 18px 13px 46px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: .95rem; outline: none; transition: border-color .3s, box-shadow .3s; }
.toolbar__search input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(4,175,245,.15); }
.tools__count { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.tool-card { display: flex; }
.tool-card__link { display: flex; flex-direction: column; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease); }
.tool-card__link:hover { border-color: var(--c-primary); transform: translateY(-6px); box-shadow: var(--shadow); }
.tool-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-2); }
.tool-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tool-card__link:hover .tool-card__media img, .tool-card__link:hover .tool-cover .icon { transform: scale(1.06); }
.tool-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--c-primary);
	background: radial-gradient(110% 90% at 20% 0%, rgba(4,175,245,.22), transparent 60%), linear-gradient(160deg, #DDEFFB, #BFE3F8); font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
html[data-theme="dark"] .tool-cover, body.is-night .tool-cover { background: radial-gradient(110% 90% at 20% 0%, rgba(4,175,245,.25), transparent 60%), linear-gradient(160deg, #0A2752, #061936); }
.tool-cover .icon { width: 64px; height: 64px; stroke-width: 1.2; transition: transform 1.2s var(--ease); }
.tool-cover--image { color: #7C5CFF; }
.tool-cover--link { color: #14B8A6; }
.tool-cover--text { color: var(--c-deep); }
.tool-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 99px; background: rgba(4,20,46,.78); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tool-badge .icon { width: 15px; height: 15px; }
.tool-badge--pdf .icon { color: #FF6B6B; }
.tool-badge--image .icon { color: #B9A6FF; }
.tool-badge--link .icon { color: #5EEAD4; }
.tool-badge--text .icon { color: var(--c-primary); }
.tool-badge--static { position: static; margin-bottom: 18px; }
.tool-card__body { position: relative; padding: 22px 70px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.tool-card__cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.tool-card__title { font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; }
.tool-card__excerpt { color: var(--muted); font-size: .92rem; margin: 0; }
.tool-card__arrow { position: absolute; right: 20px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .4s, color .4s, transform .6s var(--ease); }
.tool-card__arrow .icon { width: 18px; }
.tool-card__link:hover .tool-card__arrow { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: rotate(45deg); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state > .icon { width: 56px; height: 56px; color: var(--c-primary); stroke-width: 1.2; }

/* Fiche outil */
.tool-single { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 60px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.tool-single__side { position: sticky; top: calc(var(--header-h) + 20px); }
.tool-info { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tool-info dl { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .92rem; }
.tool-info dt { color: var(--muted); }
.tool-info dd { margin: 0; text-align: right; }
.btn--block { width: 100%; justify-content: center; }
.pdf-viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); margin-bottom: 40px; }
.pdf-viewer object { display: block; width: 100%; height: min(82vh, 1000px); }
.pdf-viewer__fallback { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; color: var(--muted); }
.pdf-viewer__fallback .icon { width: 56px; height: 56px; color: #FF6B6B; }
.tool-image { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.tool-image__img { width: 100%; height: auto; }
.prose--left { margin-inline: 0; max-width: 760px; padding-bottom: 0; }
.related { border-top: 1px solid var(--line); }
.related__title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 36px; }

/* Article */
.post-meta { max-width: 760px; margin: 0 auto 40px; display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.post-meta > span:last-child { display: flex; flex-direction: column; }
.post-meta > span:last-child > span { color: var(--muted); }
.post-meta__avatar img { width: 44px; height: 44px; border-radius: 50%; }
.page-cover + .prose, .post-meta + .prose { padding-top: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.4em !important; }
.prose .post-tags a.tag { background: none; color: var(--fg); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 2.4em !important; padding-top: 1.6em; border-top: 1px solid var(--line); }
.share .eyebrow { margin: 0 8px 0 0; }
.prose .share a, .share button { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: none; color: var(--fg); transition: background-color .3s, color .3s, border-color .3s; }
.prose .share a:hover, .share button:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.share .icon { width: 18px; height: 18px; }
.share__ok { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font-size: .75rem; padding: 4px 10px; border-radius: 99px; background: var(--fg); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.share button.is-copied .share__ok { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
	.tools-grid { grid-template-columns: 1fr 1fr; }
	.tools-grid--home > :nth-child(3) { display: none; }
	.news-grid--archive > :last-child { display: flex; }
}
@media (max-width: 900px) {
	.tool-single { grid-template-columns: 1fr; }
	.tool-single__side { position: static; }
}
@media (max-width: 760px) {
	.tools-grid { grid-template-columns: 1fr; }
	.tools-grid--home > :nth-child(3) { display: flex; }
	.toolbar { flex-direction: column; align-items: stretch; }
	.toolbar__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.toolbar__chips::-webkit-scrollbar { display: none; }
	.toolbar__chips .chip { flex: none; }
	.toolbar__search { flex: none; width: 100%; }
	.toolbar > * { min-width: 0; }
	.pdf-viewer object { height: 70vh; }
}

/* Crédit du pied de page */
.site-credit { padding-block: 0 22px; margin: 0; font-size: .74rem; color: var(--muted); opacity: .75; }
.site-credit span { margin-inline: 6px; }
.site-credit a:hover { color: var(--fg); }

/* Fenêtre « Masterclass » */
.site-credit__name { font: inherit; color: inherit; cursor: pointer; background-size: 100% 1px; }
.site-credit__name:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--fg); }
.credit-modal { padding: 0; border: 0; background: transparent; max-width: min(420px, calc(100vw - 32px)); width: 100%; overflow: visible; color: #EAF6FF; }
.credit-modal::backdrop { background: rgba(4, 20, 46, 0); backdrop-filter: blur(0); transition: background-color .35s, backdrop-filter .35s; }
.credit-modal.is-open::backdrop { background: rgba(4, 20, 46, .78); backdrop-filter: blur(6px); }
.credit-modal__card { position: relative; border-radius: var(--radius); overflow: hidden; background: #0B0B0C; box-shadow: 0 40px 90px -20px rgba(0,0,0,.8);
	opacity: 0; transform: scale(.9) rotate(-2deg) translateY(20px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.credit-modal.is-open .credit-modal__card { opacity: 1; transform: none; }
.credit-modal__img { width: 100%; height: auto; max-height: 58vh; object-fit: cover; object-position: top; }
.credit-modal__body { padding: 20px 24px 26px; font-size: .95rem; line-height: 1.55; color: #C9D3DE; }
.credit-modal__body p { margin: 0 0 .7em; }
.credit-modal__body p:last-child { margin: 0; }
.credit-modal__title { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: #fff; line-height: 1.3; }
.credit-modal__body strong { color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.credit-modal__body a { color: var(--c-primary); white-space: nowrap; }
.credit-modal__body a:hover { text-decoration: underline; }
.credit-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); transition: background-color .3s, transform .4s var(--ease); }
.credit-modal__close:hover { background: var(--c-primary); transform: rotate(90deg); }
.credit-modal__close .icon { width: 18px; height: 18px; }
