/* assets/css/styles.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #333;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1em 0;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 2em;
}

main {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
}

.presentation {
  margin-bottom: 2em;
  text-align: justify;
}

.presentation h2 {
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.presentation p {
  line-height: 1.6;
  margin-bottom: 1em;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1em;
}

button {
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #333; 
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #555;
}

footer {
  text-align: center;
  padding: 1em 0;
  background-color: #eee;
  color: #777;
  margin-top: 2em;
}

/* Modal (fenêtre de contact) caché par défaut */
.modal {
  display: none; /* Caché par défaut */
  position: fixed; /* Fixé pour éviter qu'il bouge avec le scroll */
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond sombre transparent */
  display: flex;
  align-items: center;
  justify-content: center; /* Centrage parfait */
}

/* Contenu du modal */
.modal-content {
  background-color: #fff;
  padding: 2em;
  max-width: 500px;
  width: 90%; /* Adaptatif sur mobile */
  border-radius: 8px;
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

/* Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bouton de fermeture (X) */
.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 1.5em; /* Plus grand pour mobile */
  background: none;
  border: none;
  cursor: pointer;
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
}
form label {
  margin-top: 1em;
}
form input, form textarea {
  padding: 0.5em;
  margin-top: 0.5em;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button[type="submit"] {
  margin-top: 1.5em;
  padding: 0.7em;
  background-color: #2ecc71;
  color: white;
  font-size: 1em;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
form button[type="submit"]:hover {
  background-color: #218838;
}

/* ?? Ajustement pour mobile */
@media screen and (max-width: 600px) {
  .modal-content {
    width: 95%; /* Prend plus d’espace sur mobile */
    max-width: 350px; /* Réduction max */
    padding: 1.5em;
  }
  .close-btn {
    font-size: 1.3em; /* Taille du X réduite */
  }
}