/* =========================================================
   ARES – Accueil animé
   Couleurs du logo : bleu, jaune, vert, rouge + bleu nuit
   ========================================================= */
:root {
	--navy: #1d1a6e;
	--navy-2: #2c27a3;
	--blue: #0b45d6;
	--yellow: #ffc400;
	--green: #5fb80b;
	--red: #e8230e;
	--ink: #17173a;
	--muted: #5d5d7a;
	--line: #e6e7f2;
	--tint: #f4f5fc;
	--white: #fff;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(29, 26, 110, .12);
	--shadow-lg: 0 24px 60px rgba(29, 26, 110, .22);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--ease-back: cubic-bezier(.34, 1.56, .64, 1);
	--header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body.ares-home {
	margin: 0;
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
body.ares-home.is-loading { overflow: hidden; }
.ares-home img, .ares-home video { max-width: 100%; display: block; }
:where(.ares-home) a { color: inherit; text-decoration: none; }
.ares-home button { font: inherit; cursor: pointer; }
.ares-home h1, .ares-home h2, .ares-home h3 { line-height: 1.15; margin: 0 0 .5em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Bulles A R E S ---------- */
.bubble {
	display: inline-grid; place-items: center;
	width: 1em; height: 1em; border-radius: 50% 50% 50% 12%;
	color: #fff; font-weight: 900; line-height: 1;
}
.bubble--blue { background: var(--blue); }
.bubble--yellow { background: var(--yellow); }
.bubble--green { background: var(--green); }
.bubble--red { background: var(--red); }

/* ---------- Écran de chargement ---------- */
.preloader {
	position: fixed; inset: 0; z-index: 9999;
	display: grid; place-content: center; justify-items: center; gap: 18px;
	background: var(--navy);
	transition: clip-path .9s var(--ease) .1s, visibility 0s 1s;
	clip-path: circle(150% at 50% 50%);
	animation: preloader-out .4s ease 3.5s forwards; /* sécurité si le JavaScript ne se charge pas */
}
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }
.ares-home.is-loading { animation: unlock 0s 3.5s forwards; }
@keyframes unlock { to { overflow: auto; } }
.preloader__bubbles { display: flex; gap: 12px; font-size: 64px; }
.preloader__bubbles .bubble { animation: pl-bounce 1.1s var(--ease-back) infinite; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.preloader__bubbles .bubble:nth-child(2) { animation-delay: .12s; }
.preloader__bubbles .bubble:nth-child(3) { animation-delay: .24s; }
.preloader__bubbles .bubble:nth-child(4) { animation-delay: .36s; }
.preloader__text { color: #fff; font-weight: 700; letter-spacing: .04em; opacity: .85; margin: 0; animation: pulse 1.4s ease-in-out infinite; }
body:not(.is-loading) .preloader { clip-path: circle(0% at 50% 50%); visibility: hidden; }
@keyframes pl-bounce { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-26px) scale(1.08) rotate(-6deg); } }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Barre de progression ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1001; pointer-events: none; }
.scroll-progress span {
	display: block; height: 100%; width: 100%;
	transform-origin: 0 50%; transform: scaleX(var(--p, 0));
	background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--red) 75%);
}
.admin-bar .scroll-progress { top: 32px; }

/* ---------- En-tête ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	height: var(--header-h);
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	transition: height .35s var(--ease), box-shadow .35s, transform .4s var(--ease);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { --header-h: 64px; box-shadow: 0 6px 24px rgba(29, 26, 110, .1); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: calc(var(--header-h) - 22px); width: auto; transition: height .35s var(--ease), transform .4s var(--ease-back); }
.brand:hover img { transform: rotate(-4deg) scale(1.06); }
.main-nav { position: relative; margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.main-nav .has-sub:hover > a::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ares-sub {
	position: absolute; top: 100%; left: 0; z-index: 5; min-width: 250px; margin: 6px 0 0; padding: 8px; list-style: none;
	background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.ares-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.main-nav .has-sub:hover > .ares-sub, .main-nav .has-sub:focus-within > .ares-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.main-nav .ares-sub a { padding: 10px 12px; font-size: 15px; white-space: nowrap; }
.main-nav .ares-sub a:hover { background: var(--tint); color: var(--blue); }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: 10px;
	font-weight: 800; font-size: 15px; color: var(--navy);
	transition: color .25s, background .25s;
}
.main-nav a:hover { background: var(--tint); }
.main-nav a.is-active { color: var(--blue); }
.main-nav__indicator {
	position: absolute; bottom: -2px; height: 4px; border-radius: 4px;
	left: 0; width: 0; background: var(--c, var(--blue));
	transition: transform .45s var(--ease-back), width .45s var(--ease-back), background .3s;
}
.user-btn {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: var(--navy); color: #fff;
	transition: transform .35s var(--ease-back), background .3s;
}
.user-btn:hover { transform: scale(1.12) rotate(8deg); background: var(--blue); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--navy); transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font-weight: 900; font-size: 16px; letter-spacing: .01em;
	transition: transform .3s var(--ease-back), box-shadow .3s, background .3s, color .3s;
	will-change: transform;
}
.btn:hover { box-shadow: var(--shadow-lg); }
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .3s var(--ease-back); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--shine::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
	transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite 2s;
}
.btn--light.btn--shine::after { background: linear-gradient(110deg, transparent 30%, rgba(11,69,214,.18) 50%, transparent 70%); }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.play-mini { font-size: 11px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232,35,14,.6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(232,35,14,0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--navy); }
.link-arrow span { display: inline-block; transition: transform .3s var(--ease-back); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- HERO ---------- */
.hero {
	position: relative;
	display: grid; grid-template-columns: minmax(340px, 40%) 1fr;
	min-height: clamp(600px, 100vh, 880px); padding-top: var(--header-h);
	background: var(--navy);
	overflow: hidden;
}
.hero__panel { position: relative; display: flex; align-items: center; padding: 60px clamp(24px, 4vw, 70px); color: #fff; z-index: 2; }
.hero__panel::after {
	content: ""; position: absolute; top: 0; bottom: 0; right: -80px; width: 160px;
	background: var(--navy); transform: skewX(-6deg); z-index: -1;
}
.hero__content { position: relative; max-width: 520px; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 800; font-size: 14px; letter-spacing: .03em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95,184,11,.7); animation: ping-green 1.8s infinite; }
@keyframes ping-green { 70%, 100% { box-shadow: 0 0 0 10px rgba(95,184,11,0); } }
.hero__title { font-size: clamp(40px, 5.2vw, 72px); font-weight: 900; letter-spacing: -.01em; margin-bottom: 18px; }
.hero__title .hl { position: relative; display: inline-block; color: var(--yellow); }
.hero__line { display: block; width: 90px; height: 5px; border-radius: 5px; background: #fff; margin-bottom: 22px; transform-origin: left; animation: grow-x 1s var(--ease) 1.1s both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.hero__subtitle { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; margin: 0 0 32px; opacity: .95; }
.rotator { position: relative; display: inline-block; color: var(--yellow); font-weight: 900; }
.rotator__word { display: inline-block; }
.rotator__word::after { content: "|"; margin-left: 2px; color: #fff; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__floaters { position: absolute; inset: 0; pointer-events: none; }
.floater {
	position: absolute; display: grid; place-items: center;
	width: 64px; height: 64px; border-radius: 50% 50% 50% 14%;
	font-weight: 900; font-size: 28px; color: #fff; opacity: .16;
	transition: transform .6s var(--ease);
}
.floater--blue { background: var(--blue); top: 9%; right: 26%; animation: float 7s ease-in-out infinite; }
.floater--yellow { background: var(--yellow); top: 34%; right: 3%; width: 44px; height: 44px; font-size: 20px; animation: float 6s ease-in-out infinite -2s; }
.floater--green { background: var(--green); bottom: 6%; left: 46%; width: 52px; height: 52px; animation: float 8s ease-in-out infinite -4s; }
.floater--red { background: var(--red); bottom: 24%; right: 8%; animation: float 6.5s ease-in-out infinite -1s; }
@keyframes float { 50% { translate: 0 -18px; rotate: 8deg; } }

.hero__media { position: relative; overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
	background-size: cover; background-position: center;
	opacity: 0; transform: scale(1.12);
	transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,26,110,.55), transparent 35%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); pointer-events: none; }
.hero__dots { position: absolute; z-index: 3; bottom: 28px; left: 50%; translate: -50% 0; display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; padding: 0; border-radius: 99px; border: 2px solid #fff; background: transparent; transition: width .4s var(--ease), background .3s; }
.hero__dots button.is-active { width: 34px; background: #fff; }
.hero__pip {
	position: absolute; z-index: 3; right: 28px; bottom: 28px;
	width: clamp(180px, 22vw, 300px); aspect-ratio: 16 / 9;
	border-radius: 16px; overflow: hidden; border: 4px solid #fff;
	box-shadow: var(--shadow-lg);
	transform: rotate(-3deg); transition: transform .4s var(--ease-back);
	animation: float 6s ease-in-out infinite;
}
.hero__pip:hover { transform: rotate(0) scale(1.06); }
.hero__pip video { width: 100%; height: 100%; object-fit: cover; }
.hero__pip-label { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
.scroll-hint { position: absolute; z-index: 4; left: 20%; bottom: 26px; width: 28px; height: 46px; border: 3px solid rgba(255,255,255,.7); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: translateY(0); opacity: 0; } 100% { opacity: 1; } }

/* titre découpé mot par mot */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-word > span { display: inline-block; transform: translateY(110%) rotate(6deg); transition: transform .9s var(--ease); transition-delay: calc(.25s + var(--i) * .09s); }
.is-ready .split-word > span { transform: none; }

/* ---------- Chiffres ---------- */
.stats { position: relative; z-index: 3; margin-top: -1px; padding: 0 0 20px; background: linear-gradient(var(--navy) 50%, #fff 50%); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
	position: relative; overflow: hidden;
	padding: 24px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
	transition: transform .35s var(--ease-back), box-shadow .35s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.stat strong { display: block; font-size: 44px; font-weight: 900; color: var(--c); line-height: 1; margin-bottom: 6px; }
.stat > span { font-weight: 700; color: var(--muted); font-size: 15px; }
.stat--blue { --c: var(--blue); } .stat--yellow { --c: #e0a800; } .stat--green { --c: var(--green); } .stat--red { --c: var(--red); }

/* ---------- Bandeau défilant ---------- */
.marquee { padding: 34px 0 10px; overflow: hidden; transform: rotate(-1.5deg); }
.marquee__row { display: flex; overflow: hidden; padding: 6px 0; }
.marquee__track { display: flex; gap: 14px; flex-shrink: 0; animation: marquee 45s linear infinite; padding-right: 14px; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 55s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 20px; border-radius: 999px; background: var(--tint); font-weight: 800; color: var(--navy); }
.marquee__row--reverse .marquee__item { background: var(--navy); color: #fff; }
.marquee__item i { width: 10px; height: 10px; border-radius: 50%; }
.marquee__item i.c0 { background: var(--blue); } .marquee__item i.c1 { background: var(--yellow); } .marquee__item i.c2 { background: var(--green); } .marquee__item i.c3 { background: var(--red); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-title {
	position: relative; display: inline-block;
	font-size: clamp(32px, 3.6vw, 46px); font-weight: 900; color: var(--navy);
	text-transform: uppercase; letter-spacing: .04em; padding-bottom: 14px;
}
.section-title::after {
	content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0;
	width: 120px; height: 5px; border-radius: 5px;
	background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--red) 75%);
	transform: scaleX(0); transition: transform 1s var(--ease) .3s;
}
.is-in .section-title::after, .section-title.is-in::after { transform: scaleX(1); }
.section-title--left::after { left: 0; translate: 0 0; transform-origin: left; }
.section-title--light { color: #fff; }
.section-lead { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 18px; }

/* ---------- Orientation ---------- */
.orient-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; }
.orient-photo { overflow: hidden; }
.orient-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.orient-photo:hover img { transform: scale(1.1); }
.orient-card {
	position: relative; display: flex; flex-direction: column; justify-content: center;
	padding: 34px; background: var(--navy); color: #fff;
	overflow: hidden; isolation: isolate;
}
.orient-card__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.orient-card:hover .orient-card__bg { transform: scale(1.12); }
.orient-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(29,26,110,.94) 30%, rgba(29,26,110,.72)); }
.orient-card--2::after { background: linear-gradient(160deg, rgba(44,39,163,.94) 30%, rgba(44,39,163,.72)); }
.orient-card h3 { font-size: 24px; font-weight: 900; }
.orient-card p { font-size: 15.5px; opacity: .92; margin: 0 0 18px; }
.orient-card .link-arrow { color: var(--yellow); }
.orient-card__num {
	display: inline-grid; place-items: center; align-self: flex-start; flex: none;
	width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50% 50% 50% 14%;
	background: var(--c, var(--blue)); color: #fff; font-weight: 900; font-size: 26px; line-height: 1;
	box-shadow: 0 8px 20px rgba(0,0,0,.25);
	transition: transform .4s var(--ease-back);
}
.orient-card:hover .orient-card__num { transform: rotate(-8deg) scale(1.08); }
.orient-card--1 { --c: var(--blue); }
.orient-card--2 { --c: var(--yellow); }
.orient-card--2 .orient-card__num { color: var(--navy); }
.orient-card--3 { --c: var(--green); }
.orient-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 45%);
	opacity: 0; transition: opacity .3s;
}
.orient-card:hover::before { opacity: 1; }

/* ---------- Mini-quiz ---------- */
.quiz-section { position: relative; overflow: hidden; padding: 100px 0; background: var(--navy); color: #fff; }
.quiz-section__bg span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: blob 14s ease-in-out infinite; }
.quiz-section__bg span:nth-child(1) { width: 340px; height: 340px; background: var(--blue); top: -80px; left: -60px; }
.quiz-section__bg span:nth-child(2) { width: 260px; height: 260px; background: var(--yellow); bottom: -80px; left: 30%; opacity: .25; animation-delay: -4s; }
.quiz-section__bg span:nth-child(3) { width: 300px; height: 300px; background: var(--green); top: 10%; right: -80px; opacity: .3; animation-delay: -8s; }
.quiz-section__bg span:nth-child(4) { width: 200px; height: 200px; background: var(--red); bottom: 10%; right: 25%; opacity: .25; animation-delay: -2s; }
@keyframes blob { 33% { transform: translate(60px, 40px) scale(1.15); } 66% { transform: translate(-40px, 30px) scale(.9); } }
.quiz-wrap { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--yellow); color: var(--navy); font-weight: 900; font-size: 14px; margin: 0 0 18px; }
.quiz-intro h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; }
.quiz-intro p { opacity: .9; font-size: 18px; }
.quiz { position: relative; background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.quiz__progress { height: 8px; border-radius: 8px; background: var(--tint); overflow: hidden; margin-bottom: 24px; }
.quiz__progress span { display: block; height: 100%; width: var(--qp, 0%); background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 8px; transition: width .6s var(--ease); }
.quiz__stage { display: grid; }
.quiz__step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(60px); transition: opacity .45s, transform .55s var(--ease), visibility 0s .55s; }
.quiz__step.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .1s, transform .55s var(--ease) .1s; }
.quiz__step.is-leaving { transform: translateX(-60px); }
.quiz__count { margin: 0 0 6px; font-weight: 800; color: var(--blue); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.quiz__step h3 { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 20px; }
.quiz__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__answers button {
	display: flex; align-items: center; gap: 12px; text-align: left;
	padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
	font-weight: 800; color: var(--ink); font-size: 15px;
	transition: transform .25s var(--ease-back), border-color .25s, background .25s, box-shadow .25s;
}
.quiz__answers button span {
	flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--tint); color: var(--navy); font-weight: 900; font-size: 16px;
	transition: background .25s, color .25s, transform .35s var(--ease-back);
}
.quiz__answers button:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.quiz__answers button:hover span { background: var(--blue); color: #fff; transform: scale(1.1); }
.quiz__answers button.is-picked { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(.97); }
.quiz__answers button.is-picked span { background: #fff; color: var(--navy); }
.quiz__result { text-align: center; }
.quiz__result-emoji { font-size: 64px; animation: pl-bounce 1.2s var(--ease-back) infinite; }
.quiz__result-title { color: var(--blue) !important; }
.quiz__result-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 10px; }
.quiz__note { font-size: 13px; color: var(--muted); margin: 0; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* ---------- Métiers ---------- */
.metiers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.metier {
	display: grid; grid-template-columns: 46% 1fr; gap: 22px; align-items: center;
	padding: 14px; border-radius: var(--radius); background: #fff;
	transition: transform .4s var(--ease), box-shadow .4s;
}
.metier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.metier__img { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.metier__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.metier:hover .metier__img img { transform: scale(1.12) rotate(1deg); }
.metier__img::after { content: ""; position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: 0; transition: opacity .4s; }
.metier:hover .metier__img::after { opacity: .25; }
.metier__icon {
	position: absolute; z-index: 2; left: 10px; bottom: 10px;
	display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 14%;
	background: var(--c); box-shadow: var(--shadow);
	transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-back) .1s;
}
.metier.is-in .metier__icon { transform: none; }
.metier__body h3 { color: var(--navy); font-size: 21px; font-weight: 900; }
.metier__body p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.metier--green { --c: var(--green); } .metier--yellow { --c: var(--yellow); } .metier--blue { --c: var(--blue); } .metier--red { --c: var(--red); }

/* ---------- Vidéos ---------- */
.videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-card { display: block; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.video-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); transition: transform .45s var(--ease-back), box-shadow .45s; }
.video-card:hover .video-card__media, .video-card:focus-visible .video-card__media { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.video-card__media img, .video-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1s var(--ease); }
.video-card__media video { opacity: 0; }
.video-card.is-playing video { opacity: 1; }
.video-card:hover img { transform: scale(1.08); }
.video-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,8,50,.7), transparent 50%); }
.video-card__play {
	position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
	display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
	background: var(--c); color: #fff; animation: ping-c 2.2s infinite;
	transition: transform .35s var(--ease-back);
}
.video-card__play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-card:hover .video-card__play { transform: scale(1.18); }
@keyframes ping-c { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
.video-card__time { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 800; }
.video-card__title { display: block; margin-top: 14px; font-weight: 900; font-size: 19px; color: var(--navy); }
.video-card__sub { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.video-card--green { --c: var(--green); } .video-card--yellow { --c: #e5ab00; } .video-card--blue { --c: var(--blue); } .video-card--red { --c: var(--red); }

/* ---------- Formations ---------- */
.formations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.formation {
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
	transform-style: preserve-3d; transition: box-shadow .4s;
}
.formation:hover { box-shadow: var(--shadow-lg); }
.formation::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.formation:hover::after { transform: scaleX(1); }
.formation__img { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.formation__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.formation:hover .formation__img img { transform: scale(1.1); }
.formation__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 24px; flex: 1; }
.formation__meta { align-self: flex-start; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--muted); font-size: 13px; font-weight: 800; }
.formation__title { font-weight: 900; font-size: 19px; color: var(--navy); line-height: 1.25; }
.formation__go { margin-top: auto; padding-top: 8px; font-weight: 900; color: var(--c); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.formation:hover .formation__go { opacity: 1; transform: none; }
.formation--blue { --c: var(--blue); } .formation--yellow { --c: #e0a800; } .formation--green { --c: var(--green); } .formation--red { --c: var(--red); }

/* ---------- Crée ton espace ---------- */
.espace { position: relative; overflow: hidden; padding: 110px 0; color: #fff; }
.espace__bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.espace::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, rgba(29,26,110,.96) 35%, rgba(29,26,110,.75)); }
.espace__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.espace__text p { font-size: 18px; opacity: .92; }
.espace__perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.espace__perks li { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.espace__perks li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,196,0,.2); }
.espace__perks li:nth-child(2)::before { background: var(--green); box-shadow: 0 0 0 4px rgba(95,184,11,.2); }
.espace__perks li:nth-child(3)::before { background: var(--red); box-shadow: 0 0 0 4px rgba(232,35,14,.2); }
.signup { background: #fff; color: var(--ink); padding: 34px; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.field { position: relative; margin-bottom: 18px; }
.field input, .field select {
	width: 100%; padding: 22px 16px 8px; border-radius: 12px;
	border: 2px solid var(--line); background: var(--tint);
	font: inherit; font-weight: 700; color: var(--ink); outline: none; appearance: none;
	transition: border-color .25s, background .25s, box-shadow .25s;
}
.field--select::after { content: "▾"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.field label { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); font-weight: 700; pointer-events: none; transition: top .25s var(--ease), font-size .25s, color .25s; }
.field input:focus, .field select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 5px rgba(11,69,214,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 14px; font-size: 12px; color: var(--blue); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.field--check .signup__consent { position: static; translate: none; pointer-events: auto; top: auto; left: auto; }
.field--check input[type="checkbox"] { width: 18px; padding: 0; border: 0; background: none; box-shadow: none; appearance: auto; }
.signup__consent { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.45; cursor: pointer; transition: border-color .25s; }
.signup__consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.signup__consent a { color: var(--blue); font-weight: 800; }
.field--check.is-invalid .signup__consent { border-color: var(--red); animation: shake .4s; }
.signup__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__login { margin: 10px 0 0; text-align: center; font-weight: 700; color: var(--muted); }
.signup__login a { color: var(--blue); font-weight: 900; }
.signup button:disabled { opacity: .6; cursor: wait; }
.signup--hello { text-align: center; }
.signup__hello { font-size: 28px; font-weight: 900; color: var(--navy); margin: 0 0 8px; }
.signup--hello p { color: var(--muted); }
.signup__msg { margin: 14px 0 0; text-align: center; font-weight: 800; color: var(--green); min-height: 1.4em; }

/* ---------- À propos ---------- */
.apropos__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.apropos__text p { font-size: 18px; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 32px; }
.value { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.value span {
	display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50% 50% 50% 14%;
	background: var(--c); color: #fff; font-weight: 900; font-size: 28px;
	transition: transform .4s var(--ease-back);
}
.value:hover span { transform: translateY(-8px) rotate(-10deg) scale(1.08); }
.value strong { font-size: 14px; color: var(--navy); }
.value--blue { --c: var(--blue); } .value--yellow { --c: var(--yellow); } .value--green { --c: var(--green); } .value--red { --c: var(--red); }
.apropos__photos { position: relative; min-height: 520px; }
.ph { position: absolute; margin: 0; border-radius: 20px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--1 { top: 0; left: 0; width: 72%; aspect-ratio: 4 / 3; rotate: -4deg; }
.ph--2 { right: 0; bottom: 0; width: 48%; aspect-ratio: 3 / 4; rotate: 5deg; }
.ph-bubble { position: absolute; left: 10%; bottom: 12%; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50% 50% 50% 14%; background: var(--yellow); font-size: 36px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--navy); color: #fff; padding: 40px 0 26px; margin-top: 120px; }
.site-footer__wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 110px; }
.site-footer__wave .w1 { fill: var(--navy-2); opacity: .5; animation: wave 8s ease-in-out infinite alternate; }
.site-footer__wave .w2 { fill: var(--navy); animation: wave 10s ease-in-out infinite alternate-reverse; }
@keyframes wave { to { transform: translateX(-40px) scaleY(1.15); } }
.site-footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: center; }
.site-footer__logo { display: inline-block; padding: 14px 24px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .4s var(--ease-back); }
.site-footer__logo:hover { transform: translateY(-4px) rotate(-2deg); }
.site-footer__logo img { height: 86px; width: auto; }
.site-footer__brand p { opacity: .85; margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: 520px; }
.site-footer__nav a { font-weight: 800; opacity: .85; transition: opacity .2s, color .2s; }
.site-footer__nav a:hover { opacity: 1; color: var(--yellow); }
.site-footer__copy { text-align: center; margin: 30px 0 0; opacity: .6; font-size: 14px; }

/* ---------- Retour en haut ---------- */
.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 900;
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	background: #fff; color: var(--navy); font-weight: 900; font-size: 20px; box-shadow: var(--shadow-lg);
	opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
	transition: opacity .3s, transform .4s var(--ease-back);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 4; }
.to-top__track { stroke: var(--tint); }
.to-top__ring { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); }

/* ---------- Lecteur vidéo ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 50, .85); backdrop-filter: blur(6px); animation: fade-in .3s; }
.lightbox__box { position: relative; width: min(960px, 100%); animation: pop-in .45s var(--ease-back); }
.lightbox__box video { width: 100%; border-radius: 16px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__title { color: #fff; font-weight: 900; font-size: 20px; text-align: center; margin: 14px 0 0; }
.lightbox__close { position: absolute; right: -10px; top: -50px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-weight: 900; font-size: 18px; transition: transform .3s var(--ease-back); }
.lightbox__close:hover { transform: rotate(90deg) scale(1.1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(30px); } }

/* =========================================================
   Animations d'apparition au défilement
   (seulement si le JavaScript est actif)
   ========================================================= */
.ares-js [data-reveal] {
	opacity: 0;
	transition: opacity .8s ease, transform 1s var(--ease), clip-path 1.1s var(--ease);
	transition-delay: var(--d, 0s);
}
.ares-js [data-reveal="fade-up"] { transform: translateY(50px); }
.ares-js [data-reveal="fade-right"] { transform: translateX(-70px); }
.ares-js [data-reveal="fade-left"] { transform: translateX(70px); }
.ares-js [data-reveal="zoom"] { transform: scale(.85); }
.ares-js [data-reveal="pop"] { transform: scale(.3); transition-timing-function: ease, var(--ease-back); }
.ares-js [data-reveal="flip"] { transform: perspective(900px) rotateY(-70deg); transform-origin: left center; }
.ares-js [data-reveal="rotate-in"] { transform: rotate(-14deg) scale(.8); }
/* « rideau » : on masque le contenu (la photo), pas la case elle-même,
   sinon le navigateur ne détecte jamais que la case est à l'écran et la photo reste cachée */
.ares-js [data-reveal^="wipe"] { opacity: 1; clip-path: none; }
.ares-js [data-reveal^="wipe"] > * { transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
.ares-js [data-reveal="wipe-right"] > * { clip-path: inset(0 100% 0 0); }
.ares-js [data-reveal="wipe-left"] > * { clip-path: inset(0 0 0 100%); }
.ares-js [data-reveal="wipe-up"] > * { clip-path: inset(100% 0 0 0); }
.ares-js [data-reveal^="wipe"].is-in > * { clip-path: inset(0 0 0 0); }
.ares-js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.ares-js .orient-card[data-reveal].is-in, .ares-js .formation[data-reveal].is-in { transition: opacity .8s ease, transform .25s ease-out; transition-delay: var(--d, 0s), 0s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.main-nav a { padding: 8px 8px; font-size: 14px; }
	.videos-grid, .formations-grid { grid-template-columns: repeat(2, 1fr); }
	.metiers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	:root { --header-h: 68px; }
	.burger { display: block; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		background: #fff; box-shadow: var(--shadow-lg);
		clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { clip-path: inset(0 0 0 0); }
	.main-nav > ul { flex-direction: column; padding: 14px 20px 24px; max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto; }
	.main-nav a { font-size: 18px; padding: 12px; }
	.ares-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 0 0 6px 14px; padding: 0 0 0 10px; min-width: 0; border-left: 3px solid var(--tint); border-radius: 0; }
	.main-nav .ares-sub a { font-size: 16px; padding: 8px 12px; white-space: normal; }
	.main-nav .has-sub > a::after { display: none; }
	.main-nav__indicator { display: none; }
	.user-btn { margin-left: auto; }
	.hero { grid-template-columns: 1fr; grid-template-rows: auto clamp(320px, 56vh, 520px); min-height: 0; }
	.hero__panel::after { display: none; }
	.scroll-hint { display: none; }
	.stats { background: #fff; padding-top: 30px; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.orient-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
	.orient-photo { aspect-ratio: 1; }
	.quiz-wrap, .espace__inner, .apropos__inner { grid-template-columns: 1fr; gap: 36px; }
	.apropos__photos { min-height: 420px; }
}
@media (max-width: 600px) {
	body.ares-home { font-size: 16px; }
	.section { padding: 70px 0; }
	.orient-grid { grid-template-columns: 1fr; }
	.metier { grid-template-columns: 1fr; }
	.videos-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.formations-grid { grid-template-columns: 1fr; }
	.quiz { padding: 22px; }
	.quiz__answers { grid-template-columns: 1fr; }
	.values { grid-template-columns: repeat(2, 1fr); }
	.hero__pip { width: 150px; right: 14px; bottom: 14px; }
	.stat strong { font-size: 34px; }
	.preloader__bubbles { font-size: 48px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .scroll-progress { top: 46px; } }

/* Respect des préférences « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	html { scroll-behavior: auto; }
}
