/* ======================
   RESET
   ====================== */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #0a0a0a;
}

/* ======================
   HEADER
   ====================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #ffffff;
}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #0a2a66;
  font-weight: bold;
}

.btn {
  background: #e6392f;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
}

/* LOGO + SLOGAN */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-block img {
  height: 130px; /* ajuste si besoin */
  width: auto;
}

.logo-slogan {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #0a2a66;
  text-transform: uppercase;
}

/* ======================
   HERO
   ====================== */
.hero {
  background: #0a2a66;
  color: white;
  padding: 80px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 20px;
  animation: heroFade 0.8s ease forwards;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
}

.hero-image img {
  max-width: 400px;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   SERVICES
   ====================== */
.services {
  padding: 60px 40px;
  background: #f5f7fa;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service img {
  width: 130px;
  height: auto;
  margin-bottom: 15px;
}

/* ======================
   REALISATIONS – GRILLE CENTRÉE (2 LIGNES)
   ====================== */
.realisations {
  padding: 60px 40px;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 20px;
}

.realisations-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ======================
   CONTACT
   ====================== */
.contact {
  background: #0a2a66;
  color: white;
  padding: 60px 40px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.contact button {
  background: #e6392f;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* WhatsApp */
.whatsapp-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin: 30px auto 0;
  background: #25D366;
  color: #ffffff;
  padding: 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  background: #1ebc5a;
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ======================
   FOOTER
   ====================== */
footer {
  text-align: center;
  padding: 20px;
  background: #0a2a66;
  color: white;
}

/* ======================
   RESPONSIVE MOBILE
   ====================== */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    text-align: center;
  }

  header nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header nav a {
    margin: 8px 0;
  }

  .hero {
    flex-direction: column;
    padding: 50px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 16px;
    margin: 0 auto 20px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .logo-slogan {
    font-size: 11px;
    margin-top: 1px;
  }
}
/* Animation apparition Hero Réassurance */
.hero-reassurance {
  margin: 15px 0 40px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  transform: translateY(12px);
  animation: reassuranceFadeIn 0.8s ease forwards;
  animation-delay: 0.5s; /* apparaît après le titre et le texte */
}

/* Keyframes animation */
@keyframes reassuranceFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

}
@media (max-width: 768px) {
  .hero-reassurance {
    font-size: 13px;
    line-height: 1.5;
  }
}
/* Décor discret sous le logo dans le header */
.logo-block {
  position: relative;
  padding-bottom: 6px;
}

.logo-block::after {
  content: "";
  display: block;
  width: 320px;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(10,42,102,0),
    rgba(10,42,102,0.6),
    rgba(10,42,102,0)
  );
  margin: 6px auto 0;
}
/* Décor central élégant dans l’espace vide du header */
header {
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 210px;
  background: linear-gradient(
    to right,
    rgba(10, 42, 102, 0),
    rgba(10, 42, 102, 0.8),
    rgba(10, 42, 102, 0)
  );
  z-index: 5;
  pointer-events: none;
}
/* ===============================
   DÉCOR HEADER – VERSION DESKTOP
   =============================== */
header {
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 210px;
  background: linear-gradient(
    to left,
    rgba(10, 42, 102, 0),
    rgba(10, 42, 102, 0.8),
    rgba(10, 42, 102, 0)
  );
  z-index: 5;
  pointer-events: none;
}

/* ===============================
   DÉCOR HEADER – VERSION MOBILE
   =============================== */
@media (max-width: 768px) {
  header::after {
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(
      to right,
      rgba(10, 42, 102, 0),
      rgba(10, 42, 102, 0.8),
      rgba(10, 42, 102, 0)
    );
  }
}

