* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #021a43 0%, #02285f 40%, #013773 100%);
  color: white;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  background: rgba(0, 0, 20, 0.4);
  z-index: 10;
}

header img {
  height: 32px;
}

/* Correction alignement logo quand il est cliquable */
header .logo-link {
  display: flex;
  align-items: center;
}

header .logo-link img {
  display: block;
}


nav a {
  color: #c8d4f0;
  margin-left: 70px;
  text-decoration: none;
  font-size: 17px;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffffff;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(145deg, #021a43, #013773);
}

.hero h1 {
  font-size: 3.6rem;
  max-width: 800px;
  line-height: 1.3;
}

.hero p {
  margin-top: 38px;
  font-size: 1.3rem;
  color: #b8c7e0;
  max-width: 600px;
}

.cta-btn {
  margin-top: 50px;
  background: linear-gradient(90deg, #0077ff, #0056e0);
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  padding: 16px 190px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0, 120, 255, 0.4);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #3399ff, #0066ff);
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(0, 120, 255, 0.7);
}

/* LOGIN & TRUST */
.login-section {
  margin-top: 35px;
  text-align: center;
  color: #c8d4f0;
  font-size: 1.1rem;
}

.login-section a {
  color: #4da3ff;
  text-decoration: underline;
}

.trust-section {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* empêche le retour à la ligne */
  gap: 8px;
  font-size: 1.1rem;
  color: #c8d4f0;
  white-space: nowrap; /* garde le texte sur une seule ligne */
}

.trust-section img {
  height: 28px; /* légèrement réduit pour mobile */
  flex-shrink: 0;
}

.trust-section span {
  font-weight: 500;
}

/* RISK WARNING */
.risk-warning {
  background-color: #06366a;
  color: #bfcde3;
  padding: 35px 10%;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.risk-warning h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 10px;
}

.risk-warning h3::before {
  content: '\26A0';
  font-size: 20px;
  color: rgba(255,255,255,0.8);
}

.risk-warning a {
  color: #4da3ff;
  text-decoration: underline;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}


/* ===================== */
/* === BURGER MENU CSS === */
/* ===================== */

/* Icône du menu burger (3 barres) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.3s ease;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu mobile (panneau latéral droit) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 45%; /* ← Réduit ici */
  background: rgba(2, 25, 65, 0.97);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 30px;
  transition: right 0.4s ease;
  z-index: 15;
  backdrop-filter: blur(8px);
}

/* Liens du menu mobile */
.mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.3rem;
  margin: 15px 0;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #4da3ff;
}

/* Menu ouvert */
.mobile-menu.open {
  right: 0;
}

/* Animation du burger (croix ✖ quand ouvert) */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ========================= */
/* === RESPONSIVE RULES === */
/* ========================= */

/* Desktop → menu normal */
nav.desktop-menu {
  display: flex;
}

/* Mobile → on cache le menu normal, on affiche le burger */
@media (max-width: 900px) {
  nav.desktop-menu {
    display: none;
  }

  /* Affiche le burger et le centre verticalement */
  .burger {
    display: flex;
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Ajustement du header */
  header {
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: relative;
  }

  header img {
    height: 28px;
  }
}

/* Menu plus compact sur mobile très petit */
@media (max-width: 480px) {
  .mobile-menu {
    width: 60%; /* sur petits écrans, un peu plus large pour lisibilité */
    padding-left: 20px;
  }

  .mobile-menu a {
    font-size: 1.1rem;
  }
}





/* FOOTER */
footer {
  background: rgba(0, 0, 20, 0.3);
  text-align: center;
  font-size: 13px;
  color: #ffffff;
  padding: 12px 0;
  margin-top: 0;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav a {
    margin-left: 35px;
    font-size: 15px;
  }
  .hero h1 {
    font-size: 3rem;
    margin-top: -30px;
  }
  .cta-btn {
    padding: 17px 160px;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
    .hero h1 {
    margin-top: -30px;
  }
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 25px;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 0 15px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(100vh - 70px);
    padding: 20px 15px 50px;
  }

  .hero h1 {
    font-size: 2.4rem;
    max-width: 90%;
    margin-top: -150px;
    line-height: 46px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-top: 25px;
    line-height: 22px;
  }

  .cta-btn {
    padding: 17px 95px;
    font-size: 1.1rem;
  }

  .login-section {
    font-size: 1rem;
  }

  .trust-section {
    gap: 5px;
    font-size: 1rem;
  }

  .trust-section img {
    height: 25px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-btn {
    padding: 17px 95px;
    font-size: 1rem;
  }

  nav a {
    font-size: 13px;
    margin: 0 10px;
  }
    .trust-section {
    gap: 4px;
    font-size: 0.95rem;
  }

  .trust-section img {
    height: 22px;
  }
}
