/* ==========================================================================
   Air Libre — Base commune aux deux univers
   ========================================================================== */

:root {
	--ease: cubic-bezier(.7, 0, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--corp-bg: #f5f3ee;
	--corp-ink: #121417;
	--corp-accent: #00b9f2;
	--cine-bg: #050608;
	--cine-ink: #ecebe6;
	--cine-accent: #00b9f2;
	--logo-air: #00b9f2;
	--logo-libre: #939598;
	--cine-cyan: #5cf2ff;
	--gutter: clamp(16px, 4vw, 56px);
	--maxw: 1440px;
	--header-h: 84px;
	--f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-serif: "Instrument Serif", Georgia, serif;
	--f-display: "Big Shoulders Display", "Anton", Impact, sans-serif;
	--f-poster: "Anton", Impact, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, video, svg, iframe { 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, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 10000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--bg);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Univers : jetons -------------------------------------------------------- */
body.u-corporate, body.u-gateway {
	--bg: var(--corp-bg);
	--bg-2: #ebe7de;
	--ink: var(--corp-ink);
	--muted: #5f6368;
	--line: rgba(18, 20, 23, .12);
	--accent: var(--corp-accent);
	--card: #fff;
}
body.u-cinema {
	--bg: var(--cine-bg);
	--bg-2: #0c0e12;
	--ink: var(--cine-ink);
	--muted: #8b8f98;
	--line: rgba(236, 235, 230, .12);
	--accent: var(--cine-accent);
	--card: #0d0f13;
}

/* Logo ------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__img { height: 42px; width: auto; }
.logo__svg { display: block; height: 32px; width: auto; }
.logo__air { fill: var(--logo-air); }
.logo__libre { fill: var(--logo-libre); }

/* En-tête ---------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	transition: transform .5s var(--ease-out);
}
/* Fond flouté sur un pseudo-élément : un backdrop-filter sur le header lui-même
   enfermerait le menu mobile (position: fixed) dans la hauteur du header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s; pointer-events: none; }
.site-header.is-scrolled::before { opacity: 1; }
.is-menu-open .site-header { transform: none; }
.is-menu-open .site-header::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
	height: 100%; display: flex; align-items: center; gap: 24px;
	max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
}
.site-header .logo { margin-right: auto; position: relative; z-index: 2; }

.nav__list { display: flex; gap: 6px; }
.nav__list a {
	position: relative; display: block; padding: 8px 14px; font-size: 14px; font-weight: 600;
	letter-spacing: .02em; border-radius: 99px; transition: background-color .3s, color .3s;
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a, .nav__list .current-menu-ancestor > a { background: var(--line); }
.nav__mobile-extra { display: none; }

/* Bouton changement d'univers */
.switch {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: 10px;
	height: 44px; padding: 0 8px 0 16px; border-radius: 99px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	white-space: nowrap; overflow: hidden;
	transition: transform .4s var(--ease-out), box-shadow .4s;
}
.switch:hover { transform: translateY(-1px); }
.switch, .site-header .logo, .burger { flex-shrink: 0; }
/* Écrans moyens : menu resserré pour que tout tienne sur une ligne (le bouton d'univers ne doit jamais être écrasé) */
@media (min-width: 961px) and (max-width: 1180px) {
	.site-header__inner { gap: 16px; }
	.nav__list { gap: 2px; }
	.nav__list a { padding-inline: 10px; }
	.switch__pre { display: none; }
}
.switch__pre { opacity: .55; font-weight: 500; }
.switch__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; animation: pulse 2s infinite; }
.switch__arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.switch__arrow .icon { width: 16px; height: 16px; }
.switch:hover .switch__arrow { transform: rotate(45deg); }

.u-corporate .switch { background: var(--cine-bg); color: var(--cine-ink); box-shadow: 0 8px 30px -10px rgba(0, 185, 242, .55); }
.u-corporate .switch__dot { background: var(--cine-accent); box-shadow: 0 0 12px var(--cine-accent); }
.u-corporate .switch__arrow { background: var(--cine-accent); color: #000; }
.u-cinema .switch { background: var(--corp-bg); color: var(--corp-ink); }
.u-cinema .switch__dot { background: var(--corp-accent); }
.u-cinema .switch__arrow { background: var(--corp-ink); color: var(--corp-bg); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.burger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--line); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.is-menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.is-menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 960px) {
	:root { --header-h: 70px; }
	.burger { display: block; }
	.site-header__inner { gap: 10px; }
	.switch__pre { display: none; }
	.switch { height: 40px; padding-left: 12px; font-size: 12px; }
	.switch__arrow { width: 26px; height: 26px; }
	.nav {
		position: fixed; inset: 0; z-index: 1;
		background: var(--bg); padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
		display: flex; flex-direction: column; justify-content: space-between;
		clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
		visibility: hidden;
	}
	.is-menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { font-size: clamp(32px, 9vw, 54px); font-weight: 700; padding: 6px 0; border-radius: 0; background: none !important; letter-spacing: -.02em; }
	.nav__mobile-extra { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
	.is-menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
	.logo__svg { height: 26px; }
	.switch__label { font-size: 11px; }
}

/* Boutons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 14px;
	height: 56px; padding: 0 10px 0 26px; border-radius: 99px;
	font-weight: 700; font-size: 15px; letter-spacing: .02em;
	transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}
.btn .icon { width: 36px; height: 36px; padding: 9px; border-radius: 50%; transition: transform .5s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px) rotate(-45deg); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary .icon { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost .icon { background: var(--ink); color: var(--bg); }

/* Réseaux sociaux -------------------------------------------------------- */
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.social .icon { width: 18px; height: 18px; }
.social:hover { background: var(--ink); color: var(--bg); }

/* Pied de page ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(60px, 10vw, 140px); }
.site-footer__cta { padding-block: clamp(50px, 9vw, 120px); }
.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-cta__title { font-size: clamp(44px, 9vw, 150px); line-height: .92; font-weight: 600; letter-spacing: -.045em; }
.footer-cta__arrow { flex: none; width: clamp(64px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .6s var(--ease-out); }
.footer-cta__arrow .icon { width: 40%; height: 40%; }
.footer-cta:hover .footer-cta__arrow { transform: rotate(45deg) scale(1.05); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 50px; border-top: 1px solid var(--line); }
.site-footer__brand p { margin-top: 18px; color: var(--muted); max-width: 34ch; font-size: 15px; }
.site-footer__h { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; align-items: flex-start; }
.site-footer__col a:hover { color: var(--accent); }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-switch { margin-top: 18px; font-weight: 700; border-bottom: 1px solid currentColor; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 24px 30px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer__bottom > span { margin-right: auto; }
.footer-legal { display: flex; gap: 20px; }
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* Formulaire ------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.field__input {
	width: 100%; font: inherit; color: inherit; background: transparent;
	border: 0; border-bottom: 1px solid var(--line); padding: 10px 0 12px; border-radius: 0;
	transition: border-color .3s;
}
.field__input:focus { outline: none; border-color: var(--accent); }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field__input option { color: #111; }
textarea.field__input { resize: vertical; }
.form .btn { justify-self: start; }
.form__notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 26px; font-weight: 600; }
.form__notice--ok { background: color-mix(in srgb, #1fbf75 18%, transparent); }
.form__notice--err { background: color-mix(in srgb, #ff3b3b 18%, transparent); }

/* Transitions entre univers --------------------------------------------- */
.transition { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.transition__layer { position: absolute; inset: 0; clip-path: circle(0% at var(--tx, 100%) var(--ty, 0%)); }
.transition__layer--corporate { background: var(--corp-bg); }
.transition__layer--cinema { background: var(--cine-bg); }
html.is-leaving-corporate .transition__layer--corporate,
html.is-leaving-cinema .transition__layer--cinema {
	transition: clip-path .9s var(--ease); clip-path: circle(150% at var(--tx, 100%) var(--ty, 0%));
}
html.is-arriving.arriving-corporate .transition__layer--corporate,
html.is-arriving.arriving-cinema .transition__layer--cinema {
	animation: al-arrive 1s var(--ease) .05s both;
}
@keyframes al-arrive {
	from { clip-path: inset(0 0 0 0); }
	to { clip-path: inset(0 0 100% 0); }
}

/* Apparition au scroll --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Bandeau défilant -------------------------------------------------------- */
.marquee { display: flex; overflow: hidden; user-select: none; --dur: 40s; }
.marquee__group { display: flex; flex: none; align-items: center; animation: marquee var(--dur) linear infinite; }
/* Avec JS : défilement piloté en JS (glisser à la souris / au doigt, élan au lâcher). Sans JS : animation CSS. */
.js .marquee { cursor: grab; touch-action: pan-y; }
.js .marquee.is-dragging { cursor: grabbing; }
.js .marquee__group { animation: none; will-change: transform; }
.marquee img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Contenu éditorial (the_content) --------------------------------------- */
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose img { border-radius: 12px; }

.embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* Petits téléphones : logo + bouton d'univers + menu doivent tenir sur une ligne. */
@media (max-width: 420px) {
	.site-header :is(.logo__img, .logo__svg) { height: 21px; }
	.switch { padding-left: 10px; gap: 8px; }
}
.nobr { white-space: nowrap; display: inline-block; }

/* Pied de page tactile : liens d'au moins ~36 px de haut sur téléphone. */
@media (max-width: 700px) {
	.site-footer__col { gap: 0; }
	.footer-nav { gap: 0; }
	.site-footer__col > a:not(.social):not(.footer-switch), .footer-nav a, .footer-legal a { display: inline-block; padding-block: 7px; }
}
