/* ======= Variables de couleurs ======= */
:root {
  --primary-color: #3f51b5;
  --primary-hover: #303f9f;
  --secondary-color: #1a237e;
  --background-gradient-start: #f3f6fb;
  --background-gradient-end: #e8f0fe;
  --text-color-dark: #222;
  --text-color-light: #fff;
  --shadow-color: rgba(0, 0, 0, 0.15);
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #1ebe5d;
  --border-radius: 15px;
  --font-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ======= Reset & Body ======= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: linear-gradient(to bottom right, var(--background-gradient-start), var(--background-gradient-end));
  color: var(--text-color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Navbar Contact === */
.navbar {
  background-color: #457b9d !important; /* même bleu que ton style */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1.5rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1100;
  position: sticky;
  top: 0;
  width: 100%;
}

.navbar-brand,
.navbar .nav-link {
  color: #fff !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-toggler {
  border: none;
  outline: none;
  color: #fff;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffd166 !important;
}

/* Bouton du nav */
.navbar .btn-contact {
  font-weight: 600;
  border-radius: 30px;
  padding: 0.4rem 1.3rem;
  background-color: #ffd166;
  color: #1d3557;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 1rem;
}

.navbar .btn-contact:hover {
  background-color: #f1c40f;
  color: #1d3557;
  text-decoration: none;
}

/* === Header Contact === */
.header-bg-contact {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('photo.jpg') no-repeat center top;
  background-size: cover;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 1rem;
}

.header-bg-contact h1 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.header-bg-contact p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* === Responsive Header & Nav === */
@media (max-width: 575.98px) {
  .header-bg-contact {
    min-height: 300px;
    padding: 0 0.5rem;
  }
  
  .header-bg-contact h1 {
    font-size: 2rem;
  }
  
  .header-bg-contact p {
    font-size: 1rem;
  }
  
  .navbar .btn-contact {
    margin-left: 0.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
  }
}


/* ======= Section Contact ======= */
.contact-section {
  padding: 5rem 1rem 7rem;
  background: #fff;
}

.contact-card {
  background-color: #fafafa;
  border-radius: var(--border-radius);
  box-shadow: 0 12px 25px var(--shadow-color);
  padding: 3.5rem 3rem 3rem;
  transition: box-shadow 0.4s ease;
  border: 1px solid #e3e9f0;
}

.contact-card:hover {
  box-shadow: 0 20px 40px rgba(63, 81, 181, 0.3);
}

.contact-card h2 {
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.contact-card p {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.5;
}

/* ======= Form Elements ======= */
.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.35rem;
  letter-spacing: 0.015em;
}

.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #d7dcef;
  padding: 14px 18px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  font-family: var(--font-base);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(63, 81, 181, 0.25);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-base);
}

/* ======= Bouton Envoyer ======= */
.btn-custom {
  background: var(--primary-color);
  border: none;
  padding: 14px 35px;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 50px;
  color: var(--text-color-light);
  cursor: pointer;
  transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 25px rgba(63, 81, 181, 0.3);
  display: inline-block;
  user-select: none;
}

.btn-custom:hover,
.btn-custom:focus {
  background: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(48, 63, 159, 0.5);
  outline: none;
}

.btn-custom:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(48, 63, 159, 0.4);
}

/* ======= Info Box ======= */
.info-box {
  background: #eef1fc;
  border-radius: var(--border-radius);
  padding: 2rem 2.5rem;
  box-shadow: inset 0 0 25px rgba(63, 81, 181, 0.1);
  max-width: 480px;
  margin: 3rem auto 0;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: 0.015em;
  user-select: none;
}

.info-box p {
  margin: 0.5rem 0;
}

.whatsapp-button {
  margin-top: 1.5rem;
  display: inline-block;
  background-color: var(--whatsapp-green);
  color: var(--text-color-light);
  padding: 0.65rem 1.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.whatsapp-button:hover,
.whatsapp-button:focus {
  background-color: var(--whatsapp-green-hover);
  box-shadow: 0 14px 30px rgba(30, 190, 93, 0.7);
  transform: translateY(-3px);
  outline: none;
}

/* ======= Map Container ======= */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ======= Animations ======= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos][data-aos][data-aos][data-aos][data-aos] {
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* ======= Responsive ======= */
@media (max-width: 992px) {
  .contact-card {
    padding: 3rem 2rem 2rem;
  }

  .info-box {
    max-width: 100%;
    padding: 1.8rem 2rem;
  }
}

@media (max-width: 576px) {
  
  .btn-custom {
    width: 100%;
    padding: 15px 0;
  }

  .contact-card {
    padding: 2.5rem 1.5rem 2rem;
  }
}
