/* Site de Campus : noir profond et une seule palette à la fois (celle du thème choisi : clair --a1, accent --a2, foncé --a3). */
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #05070a; --ink: #f5f7fa; --muted: #a3acb6; --line: rgba(255, 255, 255, 0.1); --surface: rgba(255, 255, 255, 0.045);
  --a1: #79d7be; --a2: #4da1a9; --a3: #2e5077; --teal: var(--a1); --violet: var(--a2); --pink: var(--a3); --grad: linear-gradient(100deg, var(--a1), var(--a2));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
.grad { color: var(--a1); transition: color 0.4s; }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.fine { font-size: 0.85rem; color: var(--muted); }

/* ---------- barre du haut ---------- */
.top { position: fixed; z-index: 10; top: 12px; left: 50%; translate: -50% 0; width: min(1080px, calc(100% - 24px)); display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 16px;
  border-radius: 99px; border: 1px solid transparent; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.top.scrolled { background: rgba(12, 15, 20, 0.72); border-color: var(--line); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem "Poppins", sans-serif; }
.logo img { border-radius: 9px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { padding: 10px 14px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.top nav a:hover { color: var(--ink); background: var(--surface); }
.btn { display: inline-grid; place-items: center; min-height: 52px; padding: 0 26px; border-radius: 99px; background: var(--ink); color: #05070a; font-weight: 700; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px color-mix(in srgb, var(--a2) 35%, transparent); }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; background: rgba(255, 255, 255, 0.09); }
@media (max-width: 720px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- ouverture ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 30px; max-width: 1180px; margin: 0 auto; padding: 130px 24px 70px; min-height: 100dvh; }
.aurora { position: absolute; inset: -10% -30% 0; z-index: -1; filter: blur(90px); opacity: 0.38; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; animation: drift 16s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46%; aspect-ratio: 1; left: 2%; top: 4%; background: var(--a2); }
.aurora span:nth-child(2) { width: 40%; aspect-ratio: 1; right: 6%; top: 18%; background: var(--a3); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30%; aspect-ratio: 1; right: 26%; bottom: 0; background: color-mix(in srgb, var(--a3) 60%, #000); animation-delay: -11s; }
@keyframes drift { to { transform: translate(6%, 8%) scale(1.15); } }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); margin: 16px 0 22px; }
.hero h1 span { display: block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.enter { animation: enter 0.95s var(--ease) both; }
.hero-copy .enter:nth-child(2), h1 .enter:nth-child(2) { animation-delay: 0.1s; }
.hero-copy .lead { animation-delay: 0.22s; } .hero-copy .actions { animation-delay: 0.32s; } .hero-copy .fine { animation-delay: 0.42s; }
.stage.enter { animation-delay: 0.2s; animation-duration: 1.2s; }
@keyframes enter { from { opacity: 0; transform: translateY(26px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

.stage { position: relative; display: grid; justify-items: center; gap: 26px; perspective: 1400px; }
.glow { position: absolute; inset: 8% 4% 16%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a1) 34%, transparent), color-mix(in srgb, var(--a2) 20%, transparent) 55%, transparent); filter: blur(30px); }
.phone { --rx: 4deg; --ry: -14deg; position: relative; width: min(318px, 74vw); aspect-ratio: 603 / 1311; padding: 11px; border-radius: 58px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease);
  background: linear-gradient(145deg, #c9c5be, #6e6b67 30%, #a8a49e 55%, #55524f); box-shadow: 0 50px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.35), inset 0 0 0 4px #1a1a1c; }
.phone.live { transition: transform 0.12s linear; }
.phone img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); object-fit: cover; border-radius: 47px; background: #0b0d10; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.phone img.next { opacity: 0; transform: scale(1.03); }
.phone.swap img.next { opacity: 1; transform: none; }
.island { position: absolute; z-index: 2; top: 22px; left: 50%; translate: -50% 0; width: 30%; height: 3.6%; border-radius: 99px; background: #000; }
.switch { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 0.9rem "Inter", sans-serif; cursor: pointer; transition: color 0.2s, background 0.25s; }
.switch button:hover { color: var(--ink); }
.switch button[aria-selected="true"] { background: var(--ink); color: #05070a; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; } .lead { margin: 0 auto; } .actions { justify-content: center; } .phone { --ry: 0deg; --rx: 0deg; } }

/* ---------- sections ---------- */
.band { max-width: 1180px; margin: 0 auto; padding: 90px 24px; }
.band > h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); text-align: center; }
.sub { color: var(--muted); font-size: 1.15rem; text-align: center; max-width: 36em; margin: 16px auto 0; }
.sub.left { text-align: left; margin-left: 0; }
.reveal { opacity: 0; transform: translateY(34px); filter: blur(10px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin-top: 90px; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 14px; }
.feature p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.ticks li { padding-left: 32px; position: relative; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--a1) 16%, transparent); color: var(--teal); font-size: 0.8rem; }
.feature-shots { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.feature-shots img { width: min(250px, 42vw); height: auto; border-radius: 34px; border: 6px solid #1d1f24; box-shadow: 0 40px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.14); transition: transform 0.7s var(--ease); }
.feature-shots img:first-child { transform: rotate(-5deg) translate(8%, 2%); z-index: 1; }
.feature-shots img:last-child { transform: rotate(6deg) translate(-8%, 9%); }
.feature-shots:hover img:first-child { transform: rotate(-8deg) translate(-2%, 0); }
.feature-shots:hover img:last-child { transform: rotate(9deg) translate(2%, 6%); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; text-align: center; margin-top: 70px; } .feature.flip .feature-text { order: 0; } .ticks { justify-items: center; } .ticks li { text-align: left; } }

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 90px; }
.tile, .sim, .web { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
/* Lumière qui suit le pointeur sur les cartes. */
.tile::before, .sim::before, .web::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--a2) 20%, transparent), transparent 70%); }
.tile:hover::before, .sim:hover::before, .web:hover::before { opacity: 1; }
.tile { padding: 24px; display: grid; gap: 8px; align-content: start; }
.tile-icon { font-size: 1.7rem; }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); font-size: 0.98rem; }

.sim { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; max-width: 860px; margin: 50px auto 0; padding: 34px; }
.sim-controls { display: grid; gap: 12px; }
.sim-controls label { display: flex; justify-content: space-between; font-weight: 600; }
.sim-controls output { color: var(--teal); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 44px; margin: 0 0 10px; background: none; accent-color: var(--violet); cursor: pointer; }
.sim-result { text-align: center; padding: 26px 16px; border-radius: 22px; background: linear-gradient(135deg, #2c4f74, #4e9aa6); }
.sim-result .eyebrow { color: rgba(255, 255, 255, 0.8); }
.sim-number { font: 700 clamp(3rem, 8vw, 4.2rem)/1.1 "Poppins", sans-serif; font-variant-numeric: tabular-nums; }
.sim-number small { font: 600 1.1rem "Inter", sans-serif; opacity: 0.7; margin-left: 4px; }
.sim-delta { display: inline-block; margin-top: 6px; padding: 5px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .sim { grid-template-columns: 1fr; padding: 24px; } }

.web { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: clamp(26px, 5vw, 56px); }
.web h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin: 12px 0 0; }
.shield { list-style: none; display: grid; gap: 14px; margin: 26px 0 0; color: var(--muted); }
.shield li { padding-left: 34px; position: relative; }
.shield li::before { content: "🔒"; position: absolute; left: 0; top: 0; }
.shield strong { color: var(--ink); }
.browser { border-radius: 20px; border: 1px solid var(--line); background: #0d1014; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); transition: transform 0.7s var(--ease); }
.web:hover .browser { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f47; }
.browser-bar span { margin-left: 10px; flex: 1; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 0.8rem; }
.browser-body { padding: 16px; display: grid; gap: 10px; }
.mini-hero { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #2c4f74, #4e9aa6); display: grid; gap: 2px; }
.mini-hero small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.75; }
.mini-hero strong { font: 700 2rem "Poppins", sans-serif; }
.mini-hero em { font: 600 0.8rem "Inter", sans-serif; opacity: 0.7; margin-left: 4px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.mini-row b { width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--a1) 30%, transparent); }
.mini-row:nth-child(3) b { background: color-mix(in srgb, var(--a3) 30%, transparent); } .mini-row:nth-child(4) b { background: color-mix(in srgb, var(--a2) 35%, transparent); }
.mini-row span { flex: 1; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
@media (max-width: 820px) { .web { grid-template-columns: 1fr; } .browser { transform: none; } }

.foot { max-width: 1180px; margin: 0 auto; padding: 40px 24px 60px; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot nav a { padding: 10px 4px; font-weight: 600; color: var(--ink); }
.foot nav a:hover { color: var(--teal); }

/* ---------- v2 : barre de lecture, bandeau, Premium, questions, fin ---------- */
.progress { position: fixed; z-index: 30; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.marquee { overflow: hidden; padding: 10px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
.feature-shots img { will-change: transform; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; max-width: 900px; margin: 50px auto 0; }
.plan { position: relative; padding: 30px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.plan h3 { font-size: 1.5rem; }
.plan .ticks { margin-top: 8px; }
.plan .ticks li { font-weight: 500; color: var(--muted); }
.plan.featured { border-color: transparent; background: linear-gradient(#0c0f14, #0c0f14) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px color-mix(in srgb, var(--a2) 18%, transparent); }
.plan.featured .ticks li { color: var(--ink); }
.band.narrow { max-width: 820px; }
.faq { display: grid; gap: 10px; margin-top: 40px; }
.faq details { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); transition: background 0.25s; }
.faq details[open] { background: rgba(255, 255, 255, 0.07); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--teal); font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--muted); }
.faq a { color: var(--teal); text-decoration: underline; }
.final { position: relative; max-width: 1180px; margin: 30px auto 90px; padding: 80px 24px; text-align: center; display: grid; gap: 22px; justify-items: center; border-radius: 40px; overflow: hidden;
  background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--a2) 28%, transparent), transparent), radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--a1) 20%, transparent), transparent), radial-gradient(50% 80% at 100% 100%, color-mix(in srgb, var(--a3) 18%, transparent), transparent), var(--surface); border: 1px solid var(--line); }
.final img { border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); animation: bob 5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-10px); } }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.final .actions { justify-content: center; margin: 6px 0 0; }
@media (max-width: 1228px) { .final { margin-left: 24px; margin-right: 24px; } }

/* ---------- thèmes et icônes ---------- */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 50px; }
.custom > div { padding: 28px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 16px; align-content: start; }
.custom h3 { font-size: 1.4rem; }
.custom p { color: var(--muted); }
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.palette { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: none; color: var(--ink); font: 600 0.92rem "Inter", sans-serif; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.palette:hover { background: rgba(255, 255, 255, 0.06); }
.palette[aria-pressed="true"] { border-color: var(--a1); background: color-mix(in srgb, var(--a2) 18%, transparent); }
.palette i { display: flex; width: 34px; height: 20px; border-radius: 99px; overflow: hidden; flex: none; }
.palette i b { flex: 1; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 12px; }
.icon-choice { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; outline-offset: 4px; transition: transform 0.25s var(--ease); }
.icon-choice img { display: block; width: 100%; height: auto; border-radius: 22%; }
.icon-choice:hover { transform: translateY(-3px) scale(1.05); }
.icon-choice[aria-pressed="true"] { outline: 2px solid var(--a1); }
.icon-stage { display: flex; align-items: center; gap: 16px; }
.icon-stage img { width: 84px; height: 84px; border-radius: 22%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease); }
.icon-stage img.pop { transform: scale(1.12) rotate(-4deg); }
.icon-stage strong { font: 700 1.2rem "Poppins", sans-serif; }
@media (max-width: 820px) { .custom { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .phone { --rx: 0deg; --ry: 0deg; }
}
@media (prefers-reduced-transparency: reduce) { .top.scrolled { background: #0c0f14; backdrop-filter: none; -webkit-backdrop-filter: none; } }

.center { text-align: center; margin-top: 22px; }
