/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* Header unifié */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo img {
  height: 60px;
  max-height: 60px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
}

nav a:hover {
  color: #1d4ed8;
}

/* Hero Section */
.hero {
  background-color: #0c1b35;
  color: white;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.hero .btn {
  background-color: #1d4ed8;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.hero .btn:hover {
  background-color: #2563eb;
}

/* À propos */
.about {
  padding: 60px 20px;
  text-align: center;
}
.about h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}
.about p {
  max-width: 800px;
  margin: 0 auto;
  color: #444;
}

/* Services */
.services {
  padding: 60px 20px;
  background-color: #0c1b35;
  text-align: center;
}
.services h2 {
  font-size: 1.8em;
  margin-bottom: 40px;
    color: #ffffff;

}
.service-card {
  display: inline-block;
  width: 280px;
  margin: 20px;
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.service-card h3 {
  margin-bottom: 10px;
  color: #111;
}
.service-card p {
  font-size: 0.95em;
  color: #444;
}

/* Contact */
.contact {
  background-color: #0c1b35;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.contact h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact input,
.contact textarea {
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  font-size: 1em;
}
.contact button {
  background-color: #1d4ed8;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.contact button:hover {
  background-color: #2563eb;
}

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

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.service-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Section bleue */
.blue-section {
  background-color: #0c1b35; /* ✅ Bleu foncé cohérent */
  color: white;
  
  padding: 60px 20px;
  text-align: center;
}


.blue-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.blue-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.blue-section p {
  color: white !important;
}

.carousel {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1000px; /* ✅ Effet 3D */
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.slide img {
  width: 100%;
  max-width: 750px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform 0.5s, opacity 0.5s;
  opacity: 0.6;
}

.slide.active img {
  transform: scale(1) translateZ(50px);
  opacity: 1;
}

.portfolio {
  padding: 60px 20px;
  text-align: center; /* ✅ Centre le titre et les sous-éléments */
}
.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #111;
}


/* Boutons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Dots */
.carousel-dots {
  text-align: center;
  margin-top: 15px;
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  margin: 5px;
  border-radius: 50%;
  border: none;
  background: #bbb;
  cursor: pointer;
}
.carousel-dots button.active { background: #1d4ed8; }



.project-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.03);
}

.btn {
  display: inline-block;
  margin-top: 25px;
  background-color: #1d4ed8;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.btn:hover {
  background-color: #2563eb;
}

.cta-devis {
  background-color: #0c1b35;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.cta-devis h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-devis p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-devis .btn {
  background-color: #1d4ed8;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.cta-devis .btn:hover {
  background-color: #2563eb;
}

.white-section {
  background-color: #ffffff;
  color: #111;
  padding: 60px 20px;
  text-align: center;
}
.white-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
}
.white-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.blue-section .service-card {
  background-color: #ffffff;
  color: #111;
}

.blue-section .service-card h3 {
  color: #111 !important;
}

.blue-section .service-card p {
  color: #444 !important;
}

.fondateur-section {
  padding: 60px 20px;
  color: white;
}

.fondateur {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 30px auto 0;
  text-align: center;
  gap: 25px;
}

.fondateur img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.fondateur .bio p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: white;
}

.fondateur .bio span {
  font-size: 0.95rem;
  color: #c0c0c0;
}

@media (min-width: 768px) {
  .fondateur {
    flex-direction: row;
    text-align: left;
  }

  .fondateur .bio {
    flex: 1;
  }
}

/* Menu hamburger responsive */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
}

/* Pour éviter que le menu déborde */
.nav-links {
  transition: max-height 0.3s ease-out;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px; /* en-dessous du header */
    right: 40px;
    background-color: white;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: none;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  nav.nav-links {
    display: none; /* Cache le menu horizontal sur mobile */
  }

  nav.nav-links.active {
    display: flex; /* Affiche le menu seulement si actif */
    flex-direction: column;
    position: absolute;
    top: 80px; /* Ajuste si nécessaire */
    right: 40px;
    background-color: white;
    gap: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 999;
  }
}

/* Centrage global de la section */
.blue-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement si hauteur définie */
  text-align: center;
}

/* Centre le texte */
.blue-section p {
  max-width: 800px;
  margin: 0 auto 40px auto; /* Ajoute un espace sous le paragraphe */
}

/* Grille centrée */
.expertise-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tarifs-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9fafb; /* gris clair pour contraste */
}

.tarifs-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #111;
}

.tarifs-section p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 30px;
}

.grille-tarifaire {
  max-width: 700px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-section {
  background-color: #0c1b35;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.stats-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: scale(1.05); /* ✅ petit zoom au survol */
}

.counter {
  font-size: 3rem;
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.counter.animate {
  transform: scale(1.2); /* ✅ effet de "pulse" lors de l'animation */
}

@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    gap: 30px;
  }
}

.testimonials {
  background-color: #ffffff; /* ✅ Fond blanc */
  color: #111;
  padding: 60px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.testimonials-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: #f9fafb;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 10px;
}

.client-name {
  font-weight: bold;
  color: #1d4ed8;
  font-size: 0.9rem;
}

.footer {
  background: #f2f2f2;
  color: #111;
  padding: 40px 20px 20px 20px;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-about h3 {
  color: #0c1b35;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  color: #0c1b35;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #1d4ed8;
}

.footer-contact a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #1d4ed8;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #444;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* ✅ Pour que ça passe sur mobile */
}

.form-actions .g-recaptcha {
  transform: scale(0.95); /* ✅ Légère réduction si nécessaire */
  transform-origin: left center;
}

.form-actions button {
  flex-shrink: 0;
}

/* ✅ Version mobile : captcha centré au-dessus du bouton */
@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  .form-actions .g-recaptcha {
    transform-origin: center;
  }
}

