/* Configuration globale */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- EN-TÊTE & MENU GENERAL --- */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px; /* Légèrement agrandi pour le texte du logo */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Style du logo textuel */
.logo {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo span {
  color: #db2777; /* Rose/Magenta élégant et professionnel */
  font-weight: 600;
  display: inline-block;
}

.navbar a {
  color: #4b5563;
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar a:hover, 
.navbar a.active {
  color: #db2777;
}

/* Bouton hamburger mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- ZONE PRINCIPALE --- */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 130px 20px 60px 20px;
}

/* --- FORMULAIRE DE CONTACT --- */
.form-container {
  background-color: #ffffff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 600px;
}

h2 {
  color: #111827;
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
  width: 100%;
}

.form-group-row {
  display: flex;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  color: #111827;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #db2777;
  box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.12);
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: #db2777;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #be185d;
}

/* --- ACCORDÉONS DE STATUT --- */
.status-box {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.status-box.info { display: block; background-color: #fdf2f8; color: #9d174d; border: 1px solid #fbcfe8; }
.status-box.success { display: block; background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.status-box.error { display: block; background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- BAS DE PAGE (FOOTER) --- */
.main-footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 24px 0;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --- DESIGN DYNAMIQUE SMARTPHONE --- */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  .logo {
    font-size: 17px; /* Évite que le nom ne déborde sur petit écran */
  }

  .form-group-row {
    flex-direction: column;
    gap: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .navbar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    gap: 20px;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  .navbar.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar a {
    margin-left: 0;
    font-size: 18px;
    display: block;
    padding: 10px 0;
  }

  .main-content {
    padding-top: 110px;
  }

  .form-container {
    padding: 24px 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links a {
    margin: 0 10px;
  }
}
