/* ------------------------------
   Police & configuration globale
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* ------------------------------
   Containers + sections
------------------------------ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 70px 0;
}

.section h2 {
  margin-bottom: 25px;
}

.section-sub {
  margin-bottom: 40px;
}

/* ------------------------------
   Header & navigation
------------------------------ */
.header {
  background: #0a2a4d;
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 60px;
  margin-right: 12px;
}

.header-title .site-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 15px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.nav a:hover {
  color: #ffd700;
}

/* bouton contact dans la nav */
.btn-nav {
  background: #ffd700;
  padding: 8px 14px;
  border-radius: 6px;
  color: #000 !important;
}

/* Menu mobile */
.nav-toggle {
  display: none;
  background: #ffd700;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 22px;
  cursor: pointer;
}

/* ------------------------------
   HERO section
------------------------------ */
.hero {
  background: url("images/realisation001.jpg") center/cover no-repeat;
  padding: 140px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-text {
  margin-bottom: 20px;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary,
.btn-outline {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: 0.25s;
}

/* bouton principal */
.btn-primary {
  background: #ffd700;
  color: #000;
}

.btn-primary:hover {
  background: #ffcb00;
}

/* bouton contour */
.btn-outline {
  border: 2px solid #ffd700;
  color: #ffd700;
}

.btn-outline:hover {
  background: #ffd700;
  color: #000;
}

/* ------------------------------
   Services grid
------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.card h3 {
  margin-bottom: 12px;
  color: #0a2a4d;
}

/* ------------------------------
   Réalisations (swiper)
------------------------------ */
.realisations-swiper {
  margin-top: 40px;
}

.realisations-swiper img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0a2a4d;
}

.swiper-pagination-bullet-active {
  background: #0a2a4d;
}

/* ------------------------------
   Avis clients
------------------------------ */
.avis-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-avis {
  padding: 10px 18px;
  color: white;
  text-decoration: none;
  background: #0a2a4d;
  border-radius: 6px;
  font-weight: 700;
}

.btn-avis:hover {
  background: #08305e;
}

.btn-avis-outline {
  background: white;
  border: 2px solid #0a2a4d;
  color: #0a2a4d;
}

.btn-avis-outline:hover {
  background: #0a2a4d;
  color: white;
}

/* ------------------------------
   Google Maps
------------------------------ */
.map iframe {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ------------------------------
   Contact form
------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.contact-form button {
  align-self: flex-start;
}

/* ------------------------------
   FAQ
------------------------------ */
#faq h3 {
  margin-top: 25px;
  font-size: 1.2rem;
  color: #0a2a4d;
}

/* ------------------------------
   Footer
------------------------------ */
.footer {
  background: #0a2a4d;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer p {
  margin: 8px 0;
}

/* ------------------------------
   Cookie banner
------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  padding: 18px;
  border-top: 2px solid #ddd;
  display: none;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.cookie-banner button {
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #0a2a4d;
  color: white;
}

.cookie-banner button:hover {
  background: #06203f;
}

/* ------------------------------
   Mobile Rules
------------------------------ */
@media (max-width: 820px) {

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: #0a2a4d;
    width: 60%;
    padding: 20px;
    display: none;
  }

  .nav.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .header-flex {
    gap: 20px;
  }

  .hero {
    padding: 110px 20px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
  .realisations-swiper img {
    height: 220px;
  }
.header {
  background: #0a2a4d;
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  width: 65px;
  height: auto;
  object-fit: contain;
}

.header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.header-title p {
  margin: 3px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
#avis .avis-texte {
  text-align: center;
  margin-top: 15px;
  font-size: 1.05rem;
  color: #444;
}
/* Bouton flottant WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  filter: invert(100%) brightness(100%);
}
/* Centrage des titres principaux */
.section h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 25px;
}

/* Centrage des sous-titres */
.section .section-sub,
.section h3 {
  text-align: center;
  width: 100%;
  margin-bottom: 15px;
}

/* Correction pour la section À propos (beaucoup de cards) */
#apropos h2 {
  text-align: center;
}

#apropos .section-sub {
  text-align: center;
}

/* Centrage du titre Contact */
#contact h2 {
  text-align: center;
}

/* Centrage du titre Avis */
#avis h2 {
  text-align: center;
}

/* Centrage du titre Réalisations */
#realisations h2 {
  text-align: center;
}

/* Centrage du titre Zone d’intervention */
#zone h2 {
  text-align: center;
}

/* Centrage du titre FAQ */
#faq h2 {
  text-align: center;
}

/* Centrage Mentions légales */
#mentions-legales h2 {
  text-align: center;
}
/* ============ TITRES PREMIUM ============ */

/* Variables utiles (si tu n'as pas déjà un :root) */
:root {
  --cerie-blue: #0077ff;
  --cerie-blue-dark: #0050c8;
  --cerie-gold: #ffcc00;
}

/* Titres principaux H2 de sections */
.section h2,
#faq h2,
#mentions-legales h2 {
  position: relative;
  display: inline-block;
  margin: 0 auto 28px auto;
  padding: 8px 26px;
  border-radius: 999px; /* encadrement arrondi */
  text-align: center;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;

  /* Gradient léger derrière le h2 */
  background: linear-gradient(135deg, rgba(0,119,255,0.09), rgba(0,80,200,0.18));
  border: 1px solid rgba(0,119,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);

  /* Couleur du texte */
  color: #111827;

  /* Animation d’apparition */
  opacity: 0;
  transform: translateY(8px);
  animation: cerieTitleFadeUp 0.7s ease-out forwards;
}

/* Centrage global du conteneur de titre */
.section,
.section .container {
  text-align: center;
}

/* Ligne décorative sous chaque titre */
.section h2::after,
#faq h2::after,
#mentions-legales h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 10px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cerie-blue), var(--cerie-gold));
}

/* Sous-titres type .section-sub & h3 */
.section .section-sub,
.section h3 {
  text-align: center;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  margin: 0 auto 18px auto;
  max-width: 900px;
}

/* Petite variante pour les sous-titres FAQ */
#faq h3 {
  font-size: 1.05rem;
  margin-top: 24px;
}

/* Animation des titres */
@keyframes cerieTitleFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Centrer le bouton Envoyer dans le formulaire de contact */
#contact .contact-form button[type="submit"] {
  display: block;
  margin: 16px auto 0;  /* auto à gauche/droite = centré */
}
/* Centrage propre de la bannière (hero) */
.hero {
  text-align: center;
}

.hero .hero-content {
  max-width: 960px;
  margin: 0 auto;
}

/* Titre de la bannière */
.hero h2 {
  margin-bottom: 18px;
}

/* Texte sous le titre */
.hero .hero-text {
  margin: 0 auto 20px auto;
  max-width: 900px;
}

/* Boutons de la bannière bien centrés */
.hero .hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* === MENU MOBILE BURGER === */

.header-flex {
  position: relative;
  align-items: center;
}

/* Menu caché par défaut */
.nav {
  position: absolute;
  top: 100%;
  right: 0;
  background: #050816; /* adapte si ta couleur de header est différente */
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

/* Liens du menu en mode mobile */
.nav a {
  display: block;
  padding: 6px 0;
}

/* Quand le JS ajoute la classe .nav-open -> on affiche le menu */
.nav.nav-open {
  display: flex;
}

/* Bouton burger */
.nav-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Les 3 traits du burger */
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animation en X quand le bouton est ouvert */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



