@import "../assets/css/variables.css";
@import "../assets/css/mediaqueries.css";
@import "../assets/css/reset.css";
@import "../assets/css/header.css";
@import "../assets/css/footer.css";

/* =======================
   BASE
======================= */
body {
  font-family: "Mulish", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

section {
  padding-top: 12rem;
  padding-bottom: 5rem;
  min-width: 375px;
}

.container {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* =======================
     TITRE
  ======================= */
h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1a1a1a;
}

/* =======================
     FORM
  ======================= */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-weight: 600;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 5px rgba(0, 119, 255, 0.3);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 0.6;
}

/* =======================
     BOUTON
  ======================= */

.btn-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0; /* padding dans les cubes */
  border: none;
  border-radius: 12px;
  overflow: hidden;

  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #0077ff, #00d4ff);
  background-size: 200% 200%;
  transition: background-position 0.5s ease, transform 0.2s;
}

.btn-send:hover {
  background-position: right center; /* le dégradé glisse */
}

/* Carrés gauche/droite */
.btn-left,
.btn-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-send:hover .btn-left {
  background-color: rgba(255, 255, 255, 0.25); /* léger éclaircissement */
}

.btn-send:hover .btn-right svg {
  transform: translateX(5px); /* léger déplacement vers la droite */
  transition: transform 0.3s ease;
}

.btn-text {
  flex: 1;
  text-align: center;
  transition: color 0.3s;
}

.btn-send:hover .btn-text {
  color: #e0f7ff; /* léger effet sur le texte */
}

/* =======================
     RESPONSIVE
  ======================= */
@media (max-width: 640px) {
  .container {
    margin: 40px 20px;
    padding: 20px;
  }
}

/* Le modal est caché par défaut */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  font-family: "Mulish", sans-serif;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
