/*********************************
 RESET & BASE
**********************************/
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #333;
}

/*********************************
 HEADER
**********************************/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff7ed;
}

.logo {
  height: 42px;
}

.btn-login {
  text-decoration: none;
  font-weight: bold;
  color: #f97316;
}

/*********************************
 HERO — AFRO PREMIUM FULLSCREEN
**********************************/
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 60px 20px 40px; /* réduit en haut */
  color: white;

  background: linear-gradient(
    135deg,
    #f97316, /* orange */
    #f59e0b, /* amber */
    #22c55e, /* green */
    #16a34a, /* deeper green */
    #e11d48, /* red */
    #7c3aed  /* purple */
  );

  background-size: 600% 600%;
  animation: gradientMove 16s ease infinite;
}

/*********************************
 GRAIN / TEXTURE CINEMA
**********************************/
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/*********************************
 GRADIENT MOTION
**********************************/
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/*********************************
 HERO CONTENT
**********************************/
.hero-content {
  max-width: 760px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/*********************************
 ONBOARDING APPEAR
**********************************/
.onboarding {
  animation: onboarding 1.2s ease forwards;
  opacity: 0;
}

@keyframes onboarding {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*********************************
 HERO LOGO — SOFT FLOAT (MATCH CONSTRUCTION)
**********************************/
.hero-logo {
  width: 172px; /* taille doublée */
  margin-bottom: 10px;
  opacity: 0.98;
  animation: floatSoft 4.6s ease-in-out infinite, glowSoft 6.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatSoft {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-6px); }
  70%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes glowSoft {
  0%   { filter: drop-shadow(0 0 4px rgba(255,255,255,0.18)); }
  50%  { filter: drop-shadow(0 0 12px rgba(255,255,255,0.35)); }
  100% { filter: drop-shadow(0 0 4px rgba(255,255,255,0.18)); }
}

/*********************************
 TITLE
**********************************/
.hero h1 {
  font-size: clamp(30px, 4.8vw, 48px);
  font-weight: 900;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

/*********************************
 SUBTEXT
**********************************/
.hero-text {
  font-size: 16.5px;
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.65;
}

/*********************************
 BUTTONS
**********************************/
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  opacity: 0.95;
}

.primary {
  background: white;
  color: #f97316;
}

.secondary {
  border: 2px solid white;
  color: white;
  background: transparent;
}

/*********************************
 SIGNATURE TOPONIYO
**********************************/
.signature {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  color: rgba(255,255,255,0.9);
}

/*********************************
 FOOTER
**********************************/
.footer {
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: #777;
}

/*********************************
 MOBILE OPTIMIZATION
**********************************/
@media (max-width: 768px) {
  .hero {
    padding-top: 50px; /* réduit en haut */
  }

  .hero-logo {
    width: 132px;
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 15px;
  }
}