/* Luminia — page d'accueil */
:root {
  --nuit: #060E2B; --nuit2: #091A4A; --bleu: #3B5BDB; --violet: #8A4FE0; --cyan: #3EC6F0; --ciel: #4AB0E0;
  --texte: #E9EEFB; --doux: #A9B6D8; --verre: rgba(255,255,255,.06); --bord: rgba(255,255,255,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.landing {
  min-height: 100vh; overflow-x: hidden; color: var(--texte);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 800px at 75% 10%, #13235e 0%, var(--nuit2) 35%, var(--nuit) 75%);
}

/* ---------- Fond : aurore, poussière de lumière, grain ---------- */
#lumieres { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aurore { position: fixed; inset: -20%; z-index: 0; filter: blur(80px); opacity: .55; pointer-events: none; }
.aurore span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurore .a1 { width: 46vw; height: 46vw; left: 8%;  top: 10%; background: var(--bleu);   animation: derive1 22s ease-in-out infinite; }
.aurore .a2 { width: 38vw; height: 38vw; left: 45%; top: 40%; background: var(--violet); animation: derive2 26s ease-in-out infinite; opacity: .7; }
.aurore .a3 { width: 30vw; height: 30vw; left: 62%; top: 0%;  background: var(--cyan);   animation: derive3 19s ease-in-out infinite; opacity: .55; }
@keyframes derive1 { 50% { transform: translate(12vw, 8vh) scale(1.15); } }
@keyframes derive2 { 50% { transform: translate(-14vw, -10vh) scale(.9); } }
@keyframes derive3 { 50% { transform: translate(-8vw, 14vh) scale(1.2); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Mise en page ---------- */
.scene { position: relative; z-index: 2; min-height: 100vh; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 64px; align-items: center; padding: 56px 40px 80px; }
@media (max-width: 960px) { .scene { grid-template-columns: 1fr; gap: 40px; padding: 40px 22px 90px; } }

/* ---------- Logo animé ---------- */
.marque { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.logo-anim { position: relative; width: 132px; height: 132px; flex: none; display: grid; place-items: center;
  opacity: 0; transform: scale(.6); animation: apparition 1.2s cubic-bezier(.2,.9,.25,1.2) .1s forwards; }
@keyframes apparition { to { opacity: 1; transform: scale(1); } }

.logo-anim .halo { position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,198,240,.45) 0%, rgba(138,79,224,.25) 40%, transparent 70%);
  animation: respire 4.5s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.18); opacity: .65; } }

.logo-anim .anneau { position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--cyan) 70%, var(--violet) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: tourne 6s linear infinite; opacity: .9; }
@keyframes tourne { to { transform: rotate(360deg); } }

.logo-anim .orbite { position: absolute; inset: -10px; border-radius: 50%; animation: tourne 9s linear infinite; }
.logo-anim .orbite.o2 { inset: 8px; animation-duration: 13s; animation-direction: reverse; }
.logo-anim .orbite i { position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 3px var(--cyan), 0 0 30px 6px rgba(62,198,240,.5); }
.logo-anim .orbite.o2 i { width: 5px; height: 5px; box-shadow: 0 0 10px 3px var(--violet); }

.logo-anim .symbole { position: relative; width: 96px; height: 96px; animation: flotte 6s ease-in-out infinite; }
.logo-anim .symbole img { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 6px 18px rgba(59,91,219,.55)) drop-shadow(0 0 22px rgba(62,198,240,.35)); }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* éclat de lumière qui balaie le ruban, découpé à la forme du logo */
.logo-anim .reflet { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.95) 48%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  -webkit-mask: url("img/logo-symbole-hd.png") center / contain no-repeat; mask: url("img/logo-symbole-hd.png") center / contain no-repeat;
  mix-blend-mode: overlay; animation: balaie 4.2s ease-in-out 1.4s infinite; }
@keyframes balaie { 0% { background-position: 150% 0; } 45%, 100% { background-position: -60% 0; } }

/* lettres du nom qui apparaissent une à une */
.mot { font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.mot span { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(6px);
  animation: lettre .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.55s + var(--i) * .07s); }
.mot .tld { color: var(--ciel); }
@keyframes lettre { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Textes ---------- */
.titre { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; font-weight: 750; letter-spacing: -.025em; margin-bottom: 20px;
  opacity: 0; animation: monte .9s ease-out 1.1s forwards; }
.titre em { font-style: normal; background: linear-gradient(90deg, #fff 0%, var(--cyan) 30%, var(--violet) 60%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brille 6s linear infinite; }
@keyframes brille { to { background-position: -250% 0; } }
.accroche { max-width: 600px; color: var(--doux); font-size: 17px; margin-bottom: 34px; opacity: 0; animation: monte .9s ease-out 1.3s forwards; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.chiffres { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; opacity: 0; animation: monte .9s ease-out 1.5s forwards; }
.chiffres li { min-width: 150px; padding: 14px 18px; border-radius: 14px; background: var(--verre); border: 1px solid var(--bord); backdrop-filter: blur(10px); }
.chiffres b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.chiffres span { font-size: 13px; color: var(--doux); }

.atouts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 600px; opacity: 0; animation: monte .9s ease-out 1.7s forwards; }
.atouts li { font-size: 14.5px; color: #D3DCF5; display: flex; align-items: center; gap: 10px; }
.atouts .ico { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 13px;
  background: linear-gradient(135deg, rgba(59,91,219,.5), rgba(138,79,224,.4)); border: 1px solid var(--bord); color: #fff; }
@media (max-width: 560px) { .atouts { grid-template-columns: 1fr; } .chiffres li { min-width: 0; flex: 1; } }

/* ---------- Carte de connexion ---------- */
.acces { opacity: 0; animation: monte 1s ease-out 1.2s forwards; }
.carte { position: relative; padding: 34px 32px 26px; border-radius: 22px; background: rgba(12, 22, 62, .55);
  border: 1px solid var(--bord); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
/* lisere lumineux qui tourne autour de la carte */
.carte::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--cyan) 80%, var(--violet) 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lisere 7s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lisere { to { --angle: 360deg; } }

.carte-tete h2 { font-size: 24px; letter-spacing: -.01em; margin: 14px 0 4px; }
.carte-tete p { color: var(--doux); font-size: 14.5px; margin-bottom: 22px; }
.pastille { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #CFE9F7; padding: 5px 11px 5px 9px;
  border-radius: 99px; background: rgba(62,198,240,.1); border: 1px solid rgba(62,198,240,.3); }
.pouls { width: 8px; height: 8px; border-radius: 50%; background: #3EE6A0; box-shadow: 0 0 0 0 rgba(62,230,160,.7); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(62,230,160,0); } 100% { box-shadow: 0 0 0 0 rgba(62,230,160,0); } }

.carte label { display: block; font-size: 13px; font-weight: 600; color: #C9D4F2; margin-bottom: 16px; }
.carte input { display: block; width: 100%; margin-top: 7px; padding: 13px 15px; border-radius: 12px; font: inherit; font-size: 15px;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: border-color .2s, box-shadow .2s, background .2s; }
.carte input:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(62,198,240,.18); }
.carte button { position: relative; overflow: hidden; width: 100%; margin-top: 6px; padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15.5px; color: #fff; display: flex; justify-content: center; align-items: center; gap: 10px;
  background: linear-gradient(90deg, var(--bleu), var(--violet) 55%, var(--cyan)); background-size: 200% 100%;
  box-shadow: 0 10px 30px rgba(59,91,219,.45); transition: background-position .5s, transform .15s, box-shadow .3s; }
.carte button:hover { background-position: 100% 0; box-shadow: 0 14px 40px rgba(62,198,240,.45); }
.carte button:active { transform: translateY(1px); }
.carte button i { font-style: normal; transition: transform .3s; }
.carte button:hover i { transform: translateX(4px); }
.carte button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-100%); animation: balaie-btn 3.8s ease-in-out 2s infinite; }
@keyframes balaie-btn { 40%, 100% { transform: translateX(100%); } }
.erreur { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: #FFD5D5;
  background: rgba(214,69,69,.18); border: 1px solid rgba(214,69,69,.4); animation: secoue .4s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mention { text-align: center; margin-top: 18px; font-size: 12px; color: #7F8DB5; letter-spacing: .04em; }

.pied { position: relative; z-index: 2; text-align: center; font-size: 12.5px; color: #6E7CA6; padding: 0 0 24px; margin-top: -60px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .mot span, .titre, .accroche, .chiffres, .atouts, .acces, .logo-anim { opacity: 1 !important; transform: none !important; filter: none !important; }
}
