/* Page de secours (README), d'après la maquette « Univers flottant, Paris en bas de page » du 02/11/2026. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/fonts/plex-sans-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(/fonts/plex-sans-600-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-display: swap; src: url(/fonts/plex-sans-700-latin.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --bg: #f7f9fc; --fg: #0a1628; --fg2: #2a3a52; --fg3: #44546a; --accent: #2559a0;
  --line: #d8e0ea; --rule: #dfe6ef; --surface: #fff; --glow: rgba(59, 130, 214, 0.08);
  --btn: #0a1628; --btn-fg: #fff; --btn-shadow: 0 10px 24px -12px rgba(10, 22, 40, 0.5); --shine: rgba(255, 255, 255, 0.22);
  --logo-line: #2f6fc0; --logo-bg: #fff; --logo-fg: #0a1628; --logo-shadow: 0 2px 8px rgba(10, 22, 40, 0.06);
  --ico-bg: #fff; --ico-line: #e2e8f0; --ico-shadow: 0 8px 20px -10px rgba(10, 22, 40, 0.18);
  --bubble: #fff; --bubble-line: #dce4ee; --foot: rgba(247, 249, 252, 0.94); --foot-0: rgba(247, 249, 252, 0); --foot-fg: #2a3a52;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #031024; --fg: #eef4fb; --fg2: #d3deec; --fg3: #a9b8cb; --accent: #7cc4f5;
  --line: rgba(92, 192, 245, 0.28); --rule: rgba(92, 192, 245, 0.18); --surface: rgba(7, 26, 54, 0.7); --glow: rgba(52, 126, 255, 0.16);
  --btn: #8ccbf6; --btn-fg: #031024; --btn-shadow: 0 0 0 1px rgba(140, 203, 246, 0.3), 0 10px 30px -10px rgba(92, 192, 245, 0.55); --shine: rgba(255, 255, 255, 0.55);
  --logo-line: #5cc0f5; --logo-bg: #071a36; --logo-fg: #5cc0f5; --logo-shadow: 0 0 0 1px rgba(92, 192, 245, 0.18), 0 0 18px rgba(92, 192, 245, 0.45);
  --ico-bg: rgba(92, 192, 245, 0.06); --ico-line: rgba(92, 192, 245, 0.22); --ico-shadow: 0 0 22px -6px rgba(92, 192, 245, 0.5);
  --bubble: #0b1f3e; --bubble-line: rgba(92, 192, 245, 0.3); --foot: rgba(3, 16, 36, 0.9); --foot-0: rgba(3, 16, 36, 0); --foot-fg: #c3cfde;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; transition: background-color 0.7s ease, color 0.7s ease; }
:focus-visible { outline: 2px solid #3b82d6; outline-offset: 3px; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.page { container-type: inline-size; position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(ellipse 46% 52% at 70% 40%, var(--glow), transparent 70%), radial-gradient(ellipse 80% 40% at 50% 100%, var(--glow), transparent 70%); }
.page > * { position: relative; }
.deco { transition: opacity 0.34s ease; }
.swap .deco { opacity: 0; }

/* Ciel : étoiles la nuit, nuages en transparence qui traversent et s'envolent. */
.stars { position: absolute; inset: 0; pointer-events: none; display: none; animation: twinkle 6s ease-in-out infinite;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, rgba(190, 220, 255, 0.7), transparent), radial-gradient(1px 1px at 34% 8%, rgba(190, 220, 255, 0.5), transparent), radial-gradient(1.4px 1.4px at 58% 14%, rgba(190, 220, 255, 0.6), transparent), radial-gradient(1px 1px at 82% 22%, rgba(190, 220, 255, 0.5), transparent), radial-gradient(1.2px 1.2px at 92% 9%, rgba(190, 220, 255, 0.6), transparent), radial-gradient(1px 1px at 46% 30%, rgba(190, 220, 255, 0.4), transparent), radial-gradient(1.2px 1.2px at 6% 44%, rgba(190, 220, 255, 0.5), transparent), radial-gradient(1px 1px at 70% 52%, rgba(190, 220, 255, 0.4), transparent); }
[data-theme='dark'] .stars { display: block; }
.sky { position: absolute; inset: 0; pointer-events: none; }
[data-theme='dark'] .sky { opacity: 0.55; }
.sky i { position: absolute; left: 0; top: var(--y); width: var(--w); aspect-ratio: 311 / 179; background: url(/img/nuage-jour.webp) center / contain no-repeat; filter: blur(var(--f)); opacity: 0;
  animation: fly var(--t) linear var(--d) infinite; }
[data-theme='dark'] .sky i { background-image: url(/img/nuage-nuit.webp); }

/* En-tête : logo, nom, langue, thème. */
.top { z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: clamp(18px, 2.2cqi, 30px) clamp(20px, 5.6cqi, 88px) 0; animation: fade 0.9s ease 0.1s both; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: clamp(42px, 3.4cqi, 50px); aspect-ratio: 1; border-radius: 7px; border: 1.5px solid var(--logo-line);
  background: var(--logo-bg); box-shadow: var(--logo-shadow); color: var(--logo-fg); font: 700 clamp(14px, 1.15cqi, 17px) / 1 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: 0.02em; transition: all 0.7s ease; }
.name { font-size: clamp(16px, 1.3cqi, 19px); font-weight: 700; letter-spacing: -0.005em; }
.tools { display: flex; align-items: center; gap: clamp(12px, 1.4cqi, 20px); }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang button { min-width: 36px; height: 28px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--fg3); font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.06em; transition: background 0.25s, color 0.25s; }
.lang button[aria-pressed='true'] { background: var(--btn); color: var(--btn-fg); }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); transition: transform 0.3s ease; }
.theme:hover { transform: rotate(-18deg); }
.theme .sun, [data-theme='dark'] .theme .moon { display: none; }
[data-theme='dark'] .theme .sun { display: block; }

/* Accueil : texte à gauche, éléments flottants à droite, quatre activités dessous. */
.hero { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(24px, 3cqi, 48px); padding: clamp(16px, 1.6cqi, 24px) clamp(20px, 5.6cqi, 88px) 0; }
.intro { flex: 1 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.2cqi, 18px); max-width: 560px; }
h1 { margin: 0; font-weight: 700; font-size: clamp(42px, 4.6cqi, 70px); line-height: 1.03; letter-spacing: -0.028em; animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
h1 span { display: block; }
.phrase { margin: 0; max-width: 21ch; font-size: clamp(19px, 1.6cqi, 23px); line-height: 1.38; color: var(--fg2); text-wrap: pretty; animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both; }
.city { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--fg3); animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: clamp(6px, 0.8cqi, 12px); animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both; }
.write { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 26px 0 24px; border-radius: 999px; background: var(--btn); color: var(--btn-fg);
  font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: var(--btn-shadow); transition: transform 0.25s, background-color 0.7s, color 0.7s; }
.write:hover { transform: translateY(-1px); }
.write::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; transform: translateX(-140%) skewX(-18deg); background: linear-gradient(90deg, transparent, var(--shine), transparent); animation: shine 6.5s ease-in-out 2.4s infinite; pointer-events: none; }
.write .arrow { margin-left: 6px; }
.mail { user-select: all; padding-left: 2px; font-size: 16px; color: var(--fg2); overflow-wrap: anywhere; }

/* Proportion fixe : tailles et positions des éléments sont des % de la scène, rien n'en déborde sur les activités. */
.scene { flex: 1.2 1 420px; position: relative; max-width: 640px; aspect-ratio: 2 / 1; margin-inline: auto; }
@media (max-width: 600px) { .scene { aspect-ratio: 4 / 3; } }
.float { position: absolute; inset: 0; }
.el { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar); rotate: var(--r, 0deg); z-index: var(--z, 1);
  background: var(--j) center / contain no-repeat; animation: pop var(--p, 1.1s) cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both, var(--b) var(--t) ease-in-out calc(var(--d) + var(--p, 1.1s)) infinite; }
[data-theme='dark'] .el { background-image: var(--n); }
.el.cloud { filter: opacity(0.8); }
[data-theme='dark'] .el.cloud { filter: opacity(0.22); }

/* Petit assistant : la mascotte du site vitrine (dépôt site-gds, web/src/mascotte.scss), en réduction. Il dit quelques phrases, puis s'endort ; un clic le réveille. */
.bot { position: absolute; right: 2%; top: 4%; z-index: 9; animation: pop 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s both; }
.bot button { position: relative; display: block; width: 40px; height: 36px; padding: 0; border: 0; background: none; border-radius: 50%; transition: transform 0.25s; }
.bot button:hover { transform: scale(1.08); }
.bot .corps { position: absolute; left: 0; top: 0; width: 64px; height: 58px; transform-origin: 0 0; scale: 0.625; }
.bot .flotte { position: absolute; inset: 0; transform-origin: 50% 100%; animation: mc-flotte 3.6s ease-in-out infinite; }
.bot img { position: absolute; left: 0; bottom: 0; width: 64px; height: auto; transform: scaleX(-1); filter: brightness(0.5) contrast(1.2) saturate(1.4); }
.bot .reflet { position: absolute; left: 0; bottom: 0; width: 64px; height: 50px; border-radius: 50% 50% 44% 44% / 62% 62% 38% 38%; mix-blend-mode: screen;
  background: radial-gradient(55% 55% at 32% 56%, rgba(52, 126, 255, 0.5), rgba(52, 126, 255, 0) 75%), radial-gradient(70% 60% at 0% 6%, rgba(120, 190, 255, 0.38), rgba(120, 190, 255, 0) 60%); }
.bot .eveil, .bot .sommeil { position: absolute; inset: 0; transition: opacity 0.3s; }
.bot .sommeil, .bot.dort .eveil { opacity: 0; }
.bot.dort .sommeil { opacity: 1; }
.bot .yeux, .bot .clos { position: absolute; left: 14px; top: 23px; display: flex; align-items: center; gap: 6px; }
.bot .yeux i { width: 5px; height: 12px; border-radius: 999px; animation: mc-cligne 4.2s infinite;
  background: radial-gradient(ellipse 60% 62% at 48% 46%, #f6fbff 0%, #cff3ff 30%, #78dfff 62%, #347eff 100%); box-shadow: 0 0 4px #78dfff, 0 0 11px rgba(52, 126, 255, 0.9); }
.bot .yeux i + i { width: 7px; height: 13px; }
.bot .clos { top: 31px; }
.bot .clos i { width: 8px; height: 2px; border-radius: 999px; background: #347eff; opacity: 0.75; }
.bot .clos i + i { width: 6px; }
.bot em { position: absolute; top: -10px; left: 2px; font: 700 15px / 1 'IBM Plex Sans', system-ui, sans-serif; font-style: normal; color: #78dfff; animation: mc-z 2.4s ease-out infinite; }
.bot em + em { left: 12px; font-size: 12px; animation-delay: 0.8s; }
.bubble { position: absolute; right: calc(100% + 10px); top: -4px; width: max-content; max-width: min(17rem, 62cqi); margin: 0; padding: 7px 12px; border-radius: 12px 12px 4px 12px;
  background: var(--bubble); border: 1px solid var(--bubble-line); box-shadow: 0 10px 24px -14px rgba(10, 22, 40, 0.35); color: var(--fg); font-size: 13.5px; line-height: 1.35;
  opacity: 0; transform: translateY(6px) scale(0.94); transform-origin: 100% 100%; transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2); pointer-events: none; }
.bubble.on { opacity: 1; transform: none; }

.services { position: relative; z-index: 2; list-style: none; margin: clamp(8px, 0.8cqi, 12px) auto 0; padding: 0 clamp(20px, 5.6cqi, 88px); width: 100%; max-width: 1060px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px clamp(16px, 2.4cqi, 40px); }
.services li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both; }
.services .ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ico-bg); border: 1px solid var(--ico-line); box-shadow: var(--ico-shadow); color: var(--accent); }
.services b { margin-top: 4px; font-size: 17px; font-weight: 600; }
.services span:last-child { max-width: 22ch; font-size: 14px; line-height: 1.45; color: var(--fg3); }

/* Mentions légales. */
.legal { z-index: 2; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(40px, 5cqi, 72px) clamp(20px, 5.6cqi, 88px) 0; display: flex; flex-direction: column; gap: clamp(32px, 3.6cqi, 48px);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.legal h1 { font-size: clamp(36px, 4cqi, 56px); line-height: 1.05; letter-spacing: -0.025em; animation: none; }
.legal section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.legal h2 { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.legal dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; font-size: 16.5px; line-height: 1.45; }
.legal dl div { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-top: 1px solid var(--rule); }
.legal dt { font-size: 13px; color: var(--fg3); }
.legal dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.legal p { margin: 0; max-width: 60ch; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
.legal p a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Paris en bas de page : oiseaux le jour, fenêtres qui s'allument la nuit. */
/* Assez de place pour que Paris (largeur / 3, haut fondu) passe sous le contenu, pas dessus. */
.spacer { flex: 1 0 auto; min-height: max(210px, min(100cqi, 960px) / 3 * 0.85); }
.paris { position: absolute; left: 50%; bottom: max(0px, calc(76px - 7cqi)); z-index: 1; width: min(100%, 960px); aspect-ratio: 3 / 1; pointer-events: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%), linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%), linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.paris > div { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
.paris .day::before { content: ''; position: absolute; inset: 0; background: url(/img/paris-jour.webp) center / 100% 100% no-repeat; opacity: 0.62; filter: saturate(0.75); }
.paris .night { display: none; background-image: url(/img/paris-nuit.webp); }
[data-theme='dark'] .paris .day { display: none; }
[data-theme='dark'] .paris .night { display: block; }
.flock { position: absolute; left: 0; top: 20%; width: 100%; height: 20%; animation: flock 38s linear -6s infinite; }
.flock svg { position: absolute; overflow: visible; animation: flap 0.55s ease-in-out infinite; }
.night i { position: absolute; margin: -3px 0 0 -3px; border-radius: 50%; mix-blend-mode: screen; animation: light 4s ease-in-out infinite;
  background: radial-gradient(circle, rgba(255, 236, 190, 0.95) 0%, rgba(255, 200, 120, 0.55) 35%, rgba(255, 200, 120, 0) 70%); }

.foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px;
  padding: 22px clamp(20px, 5.6cqi, 88px) clamp(12px, 1.4cqi, 18px); background: linear-gradient(to top, var(--foot) 40%, var(--foot-0)); font-size: 13.5px; line-height: 1.5; color: var(--foot-fg); animation: fade 1s ease 1.4s both; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { text-underline-offset: 3px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes bob-a { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(0.6deg); } }
@keyframes bob-b { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-13px) rotate(-0.8deg); } }
@keyframes fly { 0% { transform: translate(-45cqi, 0); opacity: 0; } 12%, 85% { opacity: var(--o); } 100% { transform: translate(140cqi, -6cqi); opacity: 0; } }
@keyframes flock { from { transform: translateX(-12%); } to { transform: translateX(112%); } }
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }
@keyframes light { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes shine { 0%, 72% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes mc-flotte { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes mc-cligne { 90%, 96% { transform: scaleY(1); } 93% { transform: scaleY(0.12); } }
@keyframes mc-z { 0% { transform: translate(0, 4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(7px, -14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sky i { opacity: var(--o); transform: translateX(var(--x0, 0)); }
}
