/* Site vitrine BUDGÉTUDIANT — piste « Néon campus » : nuit indigo profonde,
   lumières floutées, profondeur par cartes flottantes, bento asymétrique.
   Deux voix : l'énergie pour les étudiants, le calme pour les parents. */

:root {
  --night: #0e0b28;
  --night-2: #241b5e;
  --ink: #191631;
  --muted: #565271;
  --paper: #ffffff;
  --paper-2: #f6f5ff;
  --cream: #fffdf7;
  --violet: #7c5cff;
  --violet-2: #a34bf5;
  --teal: #0d9488;
  --teal-2: #2dd4bf;
  --amber: #f59e0b;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.65;
  overflow-x: clip;
}
h1, h2 { font-family: 'Unbounded', 'Figtree', sans-serif; line-height: 1.15; text-wrap: balance; }
h3 { font-family: 'Figtree', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

/* ------------------------------------------------------------- Dégradés de texte */
.grad, .grad-v, .grad-t, .grad-a { -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad   { background-image: linear-gradient(95deg, #a78bfa, #2dd4bf 55%, #fbbf24); }
.grad-v { background-image: linear-gradient(100deg, var(--violet), var(--violet-2)); }
.grad-t { background-image: linear-gradient(100deg, var(--teal), var(--teal-2)); }
.grad-a { background-image: linear-gradient(100deg, #d97706, #fbbf24); }

/* ------------------------------------------------------------- Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px; padding: 14px 24px;
  color: #fff; transition: background .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(14, 11, 40, .86); backdrop-filter: blur(14px); box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.nav-logo { text-decoration: none; font-size: 17px; }
.nav-logo b { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 14px; letter-spacing: 1px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: #cfc9f2; }
.nav-links a:hover { color: #fff; }
.nav .btn { white-space: nowrap; }
@media (max-width: 800px) { .nav-links { display: none; } .nav { justify-content: space-between; } .nav .btn { padding: 10px 16px; font-size: 14px; } }

/* ------------------------------------------------------------- Boutons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 15px;
  transition: transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: linear-gradient(110deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: 0 8px 30px rgba(124, 92, 255, .55); }
.btn-big { padding: 18px 36px; font-size: 18px; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.3); color: #fff; padding: 16px 26px; }
.btn-teal { background: linear-gradient(110deg, var(--teal), var(--teal-2)); color: #fff; box-shadow: 0 10px 34px rgba(13, 148, 136, .5); }

/* ------------------------------------------------------------- Lumières */
.blob { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; animation: glowpulse 8s ease-in-out infinite; }
.blob-a { width: 560px; height: 560px; background: var(--violet); opacity: .5; top: -180px; left: -140px; }
.blob-b { width: 420px; height: 420px; background: var(--teal-2); opacity: .3; top: 240px; right: -90px; animation-delay: -4s; }
.blob-c { width: 480px; height: 480px; background: var(--violet); opacity: .4; bottom: -220px; left: 50%; margin-left: -240px; }
.blob-t { width: 380px; height: 380px; background: var(--teal-2); opacity: .26; top: -80px; left: 30%; }
@keyframes glowpulse { 0%, 100% { opacity: .45; } 50% { opacity: .8; } }
@keyframes floaty  { 0%, 100% { transform: translateY(0) rotate(2deg); }  50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(-3deg); } }
@keyframes ticker  { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- Héros */
.hero {
  position: relative; overflow: clip; color: #fff;
  background: radial-gradient(110% 120% at 18% -10%, var(--night-2), var(--night) 62%);
  padding: 120px 0 0;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(124,92,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(124,92,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero-inner {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 20px 24px 60px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center;
}
.hero-inner > *, .section > *, .media-row > *, .split > * { min-width: 0; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
.hero-eyebrow {
  display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: #c7bfff; margin: 0;
  border: 1px solid rgba(199, 191, 255, .35); border-radius: 999px; padding: 7px 16px;
}
@media (max-width: 480px) { .hero-eyebrow { font-size: 10.5px; letter-spacing: 1.2px; padding: 6px 12px; } }
.hero h1 { font-size: clamp(34px, 5.8vw, 76px); font-weight: 900; margin: 24px 0 0; line-height: 1.04; }
.hero-sub { font-size: 19px; color: #cfc9f2; max-width: 30em; margin: 24px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-hint { font-size: 14px; color: #a8a3cc; }

/* Scène : téléphone + cartes flottantes */
.hero-stage { position: relative; height: 640px; }
@media (max-width: 900px) { .hero-stage { height: 560px; margin-top: 20px; } }
.phone {
  width: 270px; border-radius: 36px; padding: 10px; background: #0a081f;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(2.2deg);
}
.phone img { border-radius: 28px; }
.phone-s { width: 200px; transform: none; border-radius: 28px; }
.phone-s img { border-radius: 20px; }
.phone-hero {
  position: absolute; left: 50%; top: 20px; margin-left: -142px; width: 285px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.09), 0 50px 100px rgba(0,0,0,.6), 0 0 90px rgba(124,92,255,.35);
  animation: floaty 8s ease-in-out infinite;
}
.float {
  position: absolute; background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 18px; padding: 14px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: floaty2 7s ease-in-out infinite;
}
.float-rights { left: 0; top: 96px; display: grid; gap: 1px; }
.float-rights .float-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--violet); }
.float-rights b { font-family: 'Unbounded', sans-serif; font-size: 22px; color: #16a34a; }
.float-rights span:last-child { font-size: 11.5px; color: #666; }
.float-apl { right: 0; top: 330px; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 16px; font-size: 13px; font-weight: 700; animation-duration: 9s; }
.float-apl i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dcfce7; font-style: normal; font-size: 13px; }
.float-voice {
  left: 6px; bottom: 60px; background: rgba(20,17,58,.88); border: 1px solid rgba(124,92,255,.4); color: #d9d4f7;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; animation: none;
}
.float-voice span { font-size: 18px; }
.float-voice em { font-style: normal; font-size: 13px; font-weight: 600; }
@media (max-width: 480px) { .float-rights { left: -6px; } .float-apl { right: -6px; } }

/* Ruban */
.ticker { position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
.ticker-track {
  display: flex; gap: 44px; width: max-content; animation: ticker 26s linear infinite;
  font-family: 'Unbounded', sans-serif; font-weight: 500; font-size: 12.5px; letter-spacing: 1px;
  text-transform: uppercase; color: #b7aef2; white-space: nowrap;
}

/* ------------------------------------------------------------- Sections */
.section { position: relative; padding: 96px 24px; max-width: 1160px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--paper-2); }
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--violet); margin: 0 0 12px; }
.eyebrow-warm { color: #b45309; }
.section h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin: 0 0 18px; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 44em; }
.mini { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

/* Photos et empilements */
.photo { border-radius: 30px; box-shadow: 0 30px 70px rgba(25, 22, 49, .22); }
.photo-organic { border-radius: 34px 120px 34px 34px; }
.photo-organic-r { border-radius: 120px 34px 34px 34px; }
.media-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.media-row-flip { grid-template-columns: .8fr 1.2fr; margin-bottom: 40px; }
@media (max-width: 860px) { .media-row, .media-row-flip { grid-template-columns: 1fr; gap: 40px; } }
.stack { position: relative; justify-self: center; max-width: 480px; }
.stack .photo { transform: rotate(-1.2deg); }
.stack-phone { position: absolute; right: -26px; bottom: -40px; transform: rotate(3deg); width: 170px; }
.stack-phone-left { position: absolute; left: -30px; bottom: -30px; transform: rotate(-4deg); width: 180px; }
.stack-why .photo { transform: none; }
.stack-parent .photo { transform: none; }
.badge { position: absolute; right: -14px; top: -16px; background: #fff; border-radius: 999px; padding: 12px 20px; box-shadow: 0 14px 36px rgba(60,45,20,.18); font-weight: 800; font-size: 14px; }
/* Sur telephone, la photo est plus basse que le mobile penche qui la
   chevauche : on reduit ce dernier et on reserve la place au-dessus,
   sinon il recouvre la carte ou le bouton qui precede. */
@media (max-width: 860px) {
  .stack { margin: 90px auto 60px; }
  .stack-phone { right: 4px; bottom: -34px; width: 130px; }
  .stack-phone-left { left: 4px; bottom: -28px; width: 130px; }
  .badge { right: 8px; top: -14px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--paper-2); border-radius: 22px; padding: 22px; }
.stat b { font-family: 'Unbounded', sans-serif; font-size: 38px; display: block; font-weight: 900; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 13.5px; display: block; margin-top: 6px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 40px 0 60px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border-radius: var(--radius); padding: 30px 24px; box-shadow: 0 12px 34px rgba(25, 22, 49, .07); }
.step:nth-child(2) { transform: translateY(18px); }
@media (max-width: 800px) { .step:nth-child(2) { transform: none; } }
.step i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(120deg, var(--violet), var(--violet-2)); color: #fff;
  font-style: normal; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 19px;
}
.step h3 { margin: 16px 0 8px; font-size: 18.5px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Galerie */
.shots { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.shots figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; font-weight: 600; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 18px; margin-top: 38px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.cell { position: relative; overflow: hidden; background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: 0 12px 34px rgba(25, 22, 49, .07); transition: transform .2s; }
.cell:hover { transform: translateY(-4px); }
.cell-tall { grid-row: span 2; }
/* Les deux dernieres cases s'elargissent pour fermer la grille sans trou */
.cell-wide { grid-column: span 2; }
@media (max-width: 980px) { .cell-tall { grid-row: auto; } }
@media (max-width: 560px) { .cell-wide { grid-column: auto; } }
.cell-ico { font-size: 28px; }
.cell h3 { margin: 10px 0 4px; font-size: 17px; }
.cell p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cell-dark { background: linear-gradient(160deg, var(--night-2), var(--night)); color: #fff; }
.cell-dark p { color: #cfc9f2; }
.cell-dark h3 { font-family: 'Unbounded', sans-serif; font-size: 19px; }
.cell-dark::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--violet); filter: blur(80px); opacity: .5; bottom: -70px; right: -60px; }
.cell-teal { background: linear-gradient(140deg, var(--teal), #134e4a); color: #fff; }
.cell-teal p { color: #c9e8e4; }
.mini-right { position: relative; z-index: 1; background: rgba(255,255,255,.96); border-radius: 14px; padding: 12px 14px; margin-top: 18px; color: var(--ink); display: grid; gap: 2px; }
.mini-right small { font-size: 11px; font-weight: 800; color: #16a34a; text-transform: uppercase; letter-spacing: .4px; }
.mini-right b { font-size: 14px; }
.mini-right span { font-size: 11.5px; color: #666; }
.bars { display: grid; gap: 13px; margin-top: 18px; }
.bar-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.bar-top .ok { color: #16a34a; } .bar-top .warn { color: #d97706; }
.bar { height: 8px; border-radius: 99px; background: #edeaf9; margin-top: 5px; }
.bar-fill { height: 8px; border-radius: 99px; }
.bar-fill.ok { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bar-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Grille parents */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.cardf { background: var(--paper); border: 1px solid #f0e9da; border-radius: 20px; padding: 22px 20px; transition: transform .2s, box-shadow .2s; }
.cardf:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(60, 45, 20, .1); }
.cardf span { font-size: 28px; }
.cardf h3 { margin: 10px 0 5px; font-size: 16.5px; }
.cardf p { margin: 0; color: var(--muted); font-size: 14px; }

/* Coloc */
.section-teal { max-width: none; overflow: clip; color: #fff; background: radial-gradient(120% 130% at 82% 0%, #134e4a, #0c2b28 70%); }
.section-teal > .split { max-width: 1160px; margin: 0 auto; position: relative; }
.section-teal .eyebrow { color: #5eead4; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { display: grid; gap: 12px; margin: 26px 0 30px; color: #c9e8e4; font-size: 15.5px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: '✓'; color: var(--teal-2); font-weight: 900; }
.checks b { color: #fff; }

/* Parents */
.section-parents { max-width: none; background: var(--cream); }
.section-parents > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq { max-width: 760px !important; margin-top: 30px; }
.faq details { background: var(--paper); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; border: 1px solid #eceafb; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16.5px; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::after { content: '+'; position: absolute; right: 4px; font-size: 22px; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 16px; }

/* CTA final + pied */
.cta-final { position: relative; overflow: clip; text-align: center; color: #fff; background: radial-gradient(110% 140% at 50% 0%, var(--night-2), var(--night) 78%); padding: 100px 24px 40px; }
.cta-card { position: relative; display: inline-block; padding: 3px; border-radius: 34px; background: linear-gradient(120deg, var(--violet), var(--teal-2), #fbbf24); max-width: 100%; }
.cta-card-in { background: #100d2e; border-radius: 31px; padding: 54px clamp(24px, 6vw, 80px); }
.cta-card h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin: 0 0 30px; }
.cta-card .hero-hint { margin: 16px 0 0; }
.footer {
  position: relative; max-width: 1160px; margin: 80px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: #b9b4d9; font-size: 13.5px; text-align: left;
}
.footer b { color: #fff; font-family: 'Unbounded', sans-serif; font-size: 13px; }
.footer p { margin: 0; max-width: 40em; }
.footer-links { display: flex; gap: 22px; }

/* ------------------------------------------------------------- Animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .phone-hero, .float, .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Puces : une info par ligne, percutante */
.bullets { display: grid; gap: 10px; margin: 18px 0 0; font-size: 16.5px; color: var(--muted); max-width: 40em; }
.bullets li { position: relative; padding-left: 20px; line-height: 1.45; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(120deg, var(--violet), var(--teal-2)); }
.bullets b { color: var(--ink); }
.step .bullets { margin-top: 10px; font-size: 14.5px; gap: 7px; }
.hero-list { display: grid; gap: 10px; margin: 24px 0 30px; font-size: 18px; color: #cfc9f2; font-weight: 600; }
.hero-list li { display: flex; gap: 12px; align-items: center; }
.hero-list li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(120deg, #a78bfa, #2dd4bf); box-shadow: 0 0 12px rgba(45,212,191,.6); flex: 0 0 9px; }
