/* =========================================================
   ACCUEIL — LA VOIE DU SUCCÈS
   Animation scientifique CSS uniquement.
   Aucun JavaScript ni bibliothèque externe.
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.07), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.07), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 50%, #ffffff 100%);
  color: #0f172a;
}

/* ---------- Champ scientifique ---------- */

.science-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.science-symbol {
  position: absolute;
  display: block;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
  color: #2563eb;
  opacity: 0.16;
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.18);
  animation-name: scienceFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

/* Positions volontairement très différentes afin que
   l'animation soit immédiatement visible. */

/* Chaque symbole possède une trajectoire, une taille et une durée
   légèrement différentes : l'ensemble donne une impression plus aléatoire. */

.s1  { left: 4%;  top: 12%; font-size: 54px; animation: scienceAppear1 9s infinite; }
.s2  { left: 16%; top: 73%; font-size: 46px; animation: scienceAppear2 12s 1s infinite; }
.s3  { left: 77%; top: 10%; font-size: 38px; animation: scienceAppear3 10s 2s infinite; }
.s4  { left: 66%; top: 69%; font-size: 29px; animation: scienceAppear4 14s 0.5s infinite; }
.s5  { left: 89%; top: 40%; font-size: 51px; animation: scienceAppear5 8s 3s infinite; }
.s6  { left: 29%; top: 18%; font-size: 43px; animation: scienceAppear6 11s 1.5s infinite; }
.s7  { left: 51%; top: 85%; font-size: 34px; animation: scienceAppear7 13s 4s infinite; }
.s8  { left: 7%;  top: 46%; font-size: 30px; animation: scienceAppear8 10s 2.5s infinite; }
.s9  { left: 43%; top: 6%;  font-size: 26px; animation: scienceAppear9 15s 1s infinite; }
.s10 { left: 92%; top: 83%; font-size: 39px; animation: scienceAppear10 9s 3.5s infinite; }
.s11 { left: 56%; top: 25%; font-size: 49px; animation: scienceAppear11 12s 2s infinite; }
.s12 { left: 26%; top: 89%; font-size: 41px; animation: scienceAppear12 10s 4.5s infinite; }

.s13 { left: 36%; top: 42%; font-size: 44px; animation: scienceAppear3 13s 1s infinite; }
.s14 { left: 3%;  top: 87%; font-size: 25px; animation: scienceAppear8 15s 5s infinite; }
.s15 { left: 72%; top: 53%; font-size: 32px; animation: scienceAppear5 11s 2s infinite; }
.s16 { left: 48%; top: 15%; font-size: 25px; animation: scienceAppear1 14s 4s infinite; }
.s17 { left: 14%; top: 31%; font-size: 42px; animation: scienceAppear6 9s 1s infinite; }
.s18 { left: 83%; top: 24%; font-size: 40px; animation: scienceAppear7 12s 5s infinite; }
.s19 { left: 61%; top: 91%; font-size: 35px; animation: scienceAppear2 16s 2s infinite; }
.s20 { left: 84%; top: 90%; font-size: 22px; animation: scienceAppear9 11s 3s infinite; }
.s21 { left: 23%; top: 8%;  font-size: 34px; animation: scienceAppear4 13s 5s infinite; }
.s22 { left: 45%; top: 61%; font-size: 29px; animation: scienceAppear10 10s 1s infinite; }
.s23 { left: 3%;  top: 58%; font-size: 20px; animation: scienceAppear11 15s 3s infinite; }
.s24 { left: 70%; top: 6%;  font-size: 27px; animation: scienceAppear12 9s 5s infinite; }
.s25 { left: 39%; top: 91%; font-size: 37px; animation: scienceAppear1 12s 6s infinite; }
.s26 { left: 94%; top: 15%; font-size: 35px; animation: scienceAppear3 14s 4s infinite; }
.s27 { left: 73%; top: 37%; font-size: 21px; animation: scienceAppear6 16s 1s infinite; }
.s28 { left: 19%; top: 55%; font-size: 28px; animation: scienceAppear5 11s 6s infinite; }

@keyframes scienceAppear1 {
  0%, 12% { opacity: 0; transform: translate(-30px, 25px) rotate(-12deg) scale(.72); }
  32%, 62% { opacity: .20; transform: translate(18px, -12px) rotate(5deg) scale(1); }
  82%, 100% { opacity: 0; transform: translate(48px, -45px) rotate(12deg) scale(1.12); }
}
@keyframes scienceAppear2 {
  0%, 18% { opacity: 0; transform: translate(35px, 30px) rotate(10deg) scale(.8); }
  40%, 65% { opacity: .17; transform: translate(-15px, -15px) rotate(-5deg) scale(1.05); }
  88%, 100% { opacity: 0; transform: translate(-45px, -55px) rotate(-14deg) scale(.75); }
}
@keyframes scienceAppear3 {
  0%, 15% { opacity: 0; transform: translate(-25px, -35px) rotate(8deg) scale(.7); }
  35%, 68% { opacity: .18; transform: translate(15px, 20px) rotate(-4deg) scale(1.04); }
  90%, 100% { opacity: 0; transform: translate(50px, 45px) rotate(13deg) scale(1.15); }
}
@keyframes scienceAppear4 {
  0%, 10% { opacity: 0; transform: translate(25px, 35px) rotate(-8deg) scale(.75); }
  35%, 64% { opacity: .16; transform: translate(-20px, -8px) rotate(6deg) scale(1); }
  86%, 100% { opacity: 0; transform: translate(-55px, -38px) rotate(-10deg) scale(1.1); }
}
@keyframes scienceAppear5 {
  0%, 20% { opacity: 0; transform: translate(30px, -20px) rotate(15deg) scale(.65); }
  42%, 67% { opacity: .22; transform: translate(-12px, 18px) rotate(-4deg) scale(1.06); }
  90%, 100% { opacity: 0; transform: translate(-35px, 50px) rotate(-15deg) scale(.8); }
}
@keyframes scienceAppear6 {
  0%, 14% { opacity: 0; transform: translate(-40px, 10px) rotate(-15deg) scale(.8); }
  38%, 66% { opacity: .18; transform: translate(12px, -20px) rotate(4deg) scale(1); }
  88%, 100% { opacity: 0; transform: translate(42px, -42px) rotate(14deg) scale(1.1); }
}
@keyframes scienceAppear7 {
  0%, 16% { opacity: 0; transform: translate(20px, 40px) rotate(7deg) scale(.7); }
  38%, 64% { opacity: .18; transform: translate(-18px, -10px) rotate(-5deg) scale(1.05); }
  87%, 100% { opacity: 0; transform: translate(-50px, -35px) rotate(11deg) scale(.85); }
}
@keyframes scienceAppear8 {
  0%, 11% { opacity: 0; transform: translate(-15px, -25px) rotate(12deg) scale(.75); }
  34%, 70% { opacity: .15; transform: translate(20px, 12px) rotate(-6deg) scale(1); }
  91%, 100% { opacity: 0; transform: translate(42px, 45px) rotate(10deg) scale(1.12); }
}
@keyframes scienceAppear9 {
  0%, 17% { opacity: 0; transform: translate(28px, 22px) rotate(-10deg) scale(.75); }
  39%, 66% { opacity: .15; transform: translate(-10px, -20px) rotate(5deg) scale(1.04); }
  89%, 100% { opacity: 0; transform: translate(-40px, -50px) rotate(-13deg) scale(.82); }
}
@keyframes scienceAppear10 {
  0%, 13% { opacity: 0; transform: translate(-30px, 15px) rotate(10deg) scale(.72); }
  36%, 63% { opacity: .19; transform: translate(15px, -18px) rotate(-5deg) scale(1); }
  88%, 100% { opacity: 0; transform: translate(45px, -45px) rotate(12deg) scale(1.13); }
}
@keyframes scienceAppear11 {
  0%, 19% { opacity: 0; transform: translate(40px, -20px) rotate(-13deg) scale(.75); }
  41%, 69% { opacity: .17; transform: translate(-15px, 15px) rotate(5deg) scale(1.05); }
  90%, 100% { opacity: 0; transform: translate(-48px, 48px) rotate(14deg) scale(.8); }
}
@keyframes scienceAppear12 {
  0%, 15% { opacity: 0; transform: translate(-20px, 35px) rotate(9deg) scale(.7); }
  37%, 67% { opacity: .18; transform: translate(18px, -12px) rotate(-5deg) scale(1.03); }
  91%, 100% { opacity: 0; transform: translate(52px, -40px) rotate(13deg) scale(1.1); }
}

/* ---------- Contenu ---------- */

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: min(1050px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 24px;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  margin-bottom: 42px;
}

.logo {
  display: block;
  width: min(280px, 82vw);
  height: 108px;
  padding: 10px 20px;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #1d4ed8;
  margin-bottom: 10px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.04em;
  color: #0f172a;
}

.subtitle {
  margin: 10px 0 0;
  font-size: clamp(16px, 2.5vw, 19px);
  color: #475569;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.choice-card {
  position: relative;
  min-height: 190px;
  padding: 32px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.choice-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

.choice-card h2 {
  margin: 0 0 9px;
  font-size: clamp(22px, 3vw, 29px);
  color: #0f172a;
}

.choice-card p {
  margin: 0;
  line-height: 1.5;
  color: #64748b;
}

.choice-badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: #eff6ff;
  color: #1d4ed8;
}

.repetitions .choice-badge {
  background: #ecfdf5;
  color: #047857;
}

.arrow {
  margin-left: auto;
  font-size: 30px;
  color: #2563eb;
  transition: transform 0.28s ease;
}

.choice-card:hover .arrow {
  transform: translateX(7px);
}

.repetitions .arrow {
  color: #059669;
}

footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  .page {
    width: min(100% - 24px, 560px);
    padding-top: 28px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .logo {
    width: min(240px, 78vw);
    height: 88px;
    padding: 8px 14px;
  }

  .choices {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .choice-card {
    min-height: 145px;
    padding: 24px;
  }

  .science-symbol {
    opacity: 0.15;
  }

  .s1  { font-size: 42px; }
  .s2  { font-size: 38px; }
  .s3  { font-size: 30px; }
  .s4  { font-size: 24px; }
  .s5  { font-size: 40px; }
  .s6  { font-size: 35px; }
  .s7  { font-size: 28px; }
  .s8  { font-size: 25px; }
  .s9  { font-size: 21px; }
  .s10 { font-size: 33px; }
  .s11 { font-size: 40px; }
  .s12 { font-size: 34px; }
}

/* Si l'utilisateur demande explicitement moins d'animation,
   le navigateur peut la désactiver automatiquement. */
@media (prefers-reduced-motion: reduce) {
  .science-symbol {
    animation: none;
  }

  .choice-card,
  .arrow {
    transition: none;
  }
}
