/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Space Grotesk', sans-serif;
  background-color: #f2f4f8;
  color: #1a1a1a;
}

main {
  flex: 1;
}

/* ========== HEADER ========== */
header {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-bottom: 1px solid #1a1a1a;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #cccccc;
}

.cta-buttons {
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(145deg, #6a5acd, #7b68ee);
  color: white;
  padding: 1.875rem 1.75rem;
  margin: 0.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0.25rem rgba(255, 255, 255, 0.3), 0 8px 16px rgba(75, 0, 130, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease-in-out;
}

.btn:hover::before {
  left: 120%;
}



.btn:hover {
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.6), 0 4px 20px rgba(106, 90, 205, 0.4);
  transform: scale(1.05);
}


/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar img {
  height: 40px;
}

.btn-login {
  background-color: #4f46e5;
  color: white;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background-color: #374151;
}

/* ========== SECTIONS GENERIQUES ========== */
section {
  padding: 5rem 2rem;
  text-align: center;
}

section h2 {
  font-size: 2.25rem;
  margin-bottom: 3rem;
  color: #111827;
  font-weight: 700;
}

/* ========== FONCTIONNALITÉS EN DIVS ========== */
.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 70rem;
  margin: 0 auto;
}

.feature-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-box h3 {
  font-size: 1.5rem;
  color: #6d28d9;
  margin-bottom: 1rem;
  text-align: left;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  text-align: left;
  margin: 0.5rem 0;
}

/* ========== FORMULAIRE DE CONTACT ========== */
#contact-section {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 4rem 2rem;
  text-align: center;
  background: #f9fafb;
}

#contact-section.active {
  display: block;
  opacity: 1;
}

form {
  max-width: 500px;
  margin: auto;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

button[type="submit"] {
  background-color: #4f46e5;
  color: white;
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #4338ca;
}

/* ========== FOOTER ========== */
footer {
  background-color: #111827;
  color: #d1d5db;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9em;
  margin-top: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2em;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95em;
  }

  .features-container {
    flex-direction: column;
    align-items: center;
  }

  .feature-box {
    width: 90% !important;
    max-width: 100%;
  }
}