/* --- Variables de Design --- */
:root {
  --primary-color: #0f172a; /* Sombre / Bleu nuit profond (style tonnerre) */
  --accent-color: #3b82f6; /* Bleu électrique pour les boutons/liens */

  /* MODIFICATION : Intégration de tes deux couleurs de dégradé */
  --bg-dark: #040507; /* Le plus sombre (en bas à gauche) */
  --bg-light: #0a0b0e; /* Le plus clair (en haut à droite) */

  --text-main: #f1f5f9; /* AJUSTÉ : Texte principal clair (Gris très clair) pour le fond sombre */
  --text-light: #94a3b8; /* AJUSTÉ : Texte secondaire plus doux */
  --white: #111827; /* AJUSTÉ : Devient un gris/bleu très sombre pour détacher le bloc contact */
  --success: #22c55e;
  --error: #ef4444;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  /* 1. Couleur de sécurité */
  background-color: #040507;

  /* 2. Superposition du masque sombre et de ton image */
  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(4, 5, 7, 0.95) 0%,
      rgba(4, 5, 7, 0.4) 100%
    ),
    url("../images/fond_ecran.png");

  /* 3. Comportement par défaut (Mobile d'abord) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Sur mobile, l'image défile normalement pour éviter les bugs */

  color: var(--text-main);
  line-height: 1.6;
}

/* 4. Amélioration uniquement pour les ordinateurs (écrans de plus de 1024px) */
@media (min-width: 1024px) {
  body {
    background-attachment: fixed; /* L'effet figé haut de gamme s'active uniquement ici */
  }
}

/* --- Section Contact --- */
#contact {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background: rgba(
    17,
    24,
    39,
    0.7
  ); /* Modifié pour être légèrement transparent et laisser passer les lueurs du fond */
  backdrop-filter: blur(8px); /* Effet verre dépoli très moderne */
  border-radius: 12px;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.7),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
  border: 1px solid #1f2937;
}

#contact h2 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

/* --- Formulaire --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #374151;
  border-radius: 6px;
  background-color: #030712;
  color: var(--text-main);
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* --- Bouton --- */
.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.btn-submit:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

/* --- Alertes de statut --- */
.alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.alert.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
