/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: url("../Image/chimie.png") no-repeat center center fixed;
  background-size: cover;
  color: #333;
  position: relative;
  min-height: 100vh;
}

/* Images décoratives (personnes) */
.side-image {
  position: fixed;
  bottom: 0;
  width: 750px; /* ajuste la taille */
  max-height: 95vh; /* ✅ empêche de dépasser l’écran */
  object-fit: contain;
  z-index: 1;
}

.side-image.left {
  left: 0;
}

.side-image.right {
  right: 0;
}

/* Pour éviter que les formulaires passent derrière les images */
.ConnexionEtInscription {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9); /* léger fond blanc */
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  margin: 50px auto;
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a3d62;
  color: white;
  padding: 15px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 45px;
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.05);
}

.nav-icons a {
  color: white;
  margin-left: 20px;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-icons a:hover {
  color: #f9ca24;
}

/* Container principal */
.ConnexionEtInscription {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 50px 20px;
}

/* Carte formulaire */
.form-container {
  background: white;
  padding: 30px;
  width: 360px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 22px;
  color: #0a3d62;
}

/* Champs */
form label {
  display: block;
  margin: 8px 0 5px;
  font-weight: 600;
  font-size: 14px;
}

form input, 
form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form select:focus {
  border-color: #0a3d62;
  box-shadow: 0 0 6px rgba(10, 61, 98, 0.3);
}

/* Boutons */
form button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, rgb(15, 175, 238), rgba(224, 14, 231, 0.15));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

form button:hover {
  background: linear-gradient(135deg, rgba(15, 149, 238, 0.25), rgba(14, 188, 231, 0.15));
  transform: scale(1.02);
  
}

form button:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
  .ConnexionEtInscription {
    flex-direction: column;
    align-items: center;
  }
  
  .form-container {
    width: 90%;
  }
}
.hidden {
  display: none;
}

.switch-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.switch-link button {
  background: none;
  border: none;
  color: #0a3d62;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.switch-link button:hover {
  color: #1e6091;
}

.conditions {
  margin: 2px 0;
  font-size: 13px;
}

.conditions input {
  margin-right: 4px; /* réduit l'espace */
}

.conditions a {
  color: #0a3d62;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.conditions a:hover {
  color: #1e6091;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 4px; /* réduit l'espace entre la case et le texte */
  font-size: 14px;
  color: #333;
}

.checkbox-group input[type="checkbox"] {
  accent-color: #4facfe; /* couleur moderne */
  transform: scale(1.1); /* légèrement plus petit qu'avant */
  cursor: pointer;
  margin: 0; /* supprime marges par défaut */
}

.checkbox-group a {
  color: #4facfe;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}
.phone-input {
  display: flex;
  align-items: center;
  gap: 6px; /* espace entre select et input */
  max-width: 300px; /* largeur totale du champ téléphone */
}

.phone-input select {
  width: 80px; /* réduit la largeur du select */
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.phone-input input[type="tel"] {
  flex: 1; /* prend le reste de l'espace */
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

