/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
* {
  max-width: 100%;
}

/* Colors */
:root {
  --primary: #0077b6;   /* Bleu océan */
  --secondary: #023e8a; /* Bleu foncé */
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(3px);
  color: var(--white);
  padding: 0.8rem 1.7rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background 0.3s, color 0.3s;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
    margin-left: 50px; /* décale les liens vers la droite, sans toucher au logo */

  margin-right: auto; /* pousse les liens à droite */
}

.nav-links li {
  margin-right: 20px;


}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 17px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;}

.nav-links a:hover {
  color: var(--primary);
}

/* ✅ Style après scroll */
.navbar.scrolled {
  background: var(--white);
  color: var(--secondary);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
  color: var(--secondary);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}
/* Partie droite (desktop uniquement) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.phone {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px; /* espace entre l’icône et le texte */
}

.phone .icon {
  width: 30px;   /* taille de l’icône */
  height: 30px;
  object-fit: contain;
}


.btn-cta {
    background: #000000;
  background: rgba(18, 144, 235, 0.4);  /* même effet translucide */
  color: var(--light);
  padding: 0.8rem 1.3rem;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-cta:hover {
  background: var(--secondary);
}

/* Quand on scroll */
.navbar.scrolled .phone {
  color: var(--secondary);
}

.navbar.scrolled .btn-cta {
  background: var(--primary);
  color: var(--white);
}




/* Mobile : cacher le bloc nav-right */
@media(max-width: 900px) {
  .nav-right {
    display: none;
  }
}
.hero {
  position: relative;
  width: 100%;         /* ✅ au lieu de 100vw */
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url("img/bg22.jpg") no-repeat center/cover;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

body, html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;   /* ✅ empêche tout dépassement */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: left;
  z-index: 1;
  padding: 0 1rem; /* ✅ petit padding interne seulement */
  margin-left: 2%;
margin-bottom: 5%;

margin-top: 5%;

}


.hero .container {
  padding: 0 !important;
  margin: 0 auto;
  max-width: 100%;
}
body {
  overflow-x: hidden;
}

/* Titre */
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff; /* le noir disparaît sur fond sombre */
  margin-bottom: 1.5rem;
}

/* Intro */
.hero .intro {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 700px;
}
/* Boutons */
.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-primary,
.btn-secondary {
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary);
}

.btn-secondary {
  border: 2px solid var(--white);
  background: rgba(0,0,0,0.25);
  color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);             /* ✅ effet verre dépoli */
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--secondary);
}
.trust{display:flex;gap:12px;list-style:none;padding:0;margin:16px 0 0}
.trust li{background:var(--bg);padding:10px 14px;border-radius:10px;box-shadow:var(--shadow);font-weight:700}

/* Badges confiance */
.trust {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  flex-wrap: wrap;
}

.trust li {
  background: rgba(2, 40, 69, 0.25);
  color: #d2cece;                            /* texte blanc pour contraste */
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);             /* ✅ effet verre dépoli */
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Sections */
section {
  padding: 80px 20px;
  text-align: center;
}

h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--primary);
}
/* ================= ABOUT ================= */
.about {
  padding: 80px 20px;
  background: #f8f9fa;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2rem;

  margin-bottom: 20px;
  color: var(--secondary);
}

.about-text .intro {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #444;
}

.about-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.about-blocks h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.about p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #444; /* gris foncé lisible */
  margin-bottom: 15px;
}


.stats {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
  padding: 15%;
}

.stat {
  text-align: center;
}

.stat span {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  display: block;
}


/* Responsive */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .stats {
    justify-content: center;
  }
}
/* ===== SERVICES ===== */
.services {
  padding: 80px 20px;
  background: #f8f9fa;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--secondary);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
  text-align: left;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Bouton "En savoir plus" */
.btn-service {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-service:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Responsive : 2 cartes sur tablette, 1 sur mobile */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* Why Choose Us */
.why {
  padding: 80px 20px;
  background: #fff;
}

.why-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.why-text h2 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.why-text h2 span {
  color: var(--primary);
}

.why-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.feature {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.feature i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.why-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .why-container {
    grid-template-columns: 1fr;
  }
  .why-features {
    grid-template-columns: 1fr;
  }
}/* ---------- Contact - Responsive improvements ---------- */

/* centrer la zone et limiter la largeur max */
.contact .container {
  max-width: 1100px;
  margin: 0 auto;
}

  .contact-header p { max-width: 100%; font-size: 1.2rem; margin: 5% ; }

/* layout desktop (par défaut) */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* formulaire | infos */
  gap: 40px;
  align-items: start;
}

/* formulaire - styles généraux */
.contact-form .form-group {
  margin-bottom: 15px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* bouton */
.contact-form button.btn-primary {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

/* Contact info card & socials */
.contact-info {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.contact-info h3 { margin-bottom: 20px; color: var(--secondary); }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { margin: 10px 0; font-size: .95rem; display:flex; gap:10px; align-items:center; color:#444; }

/* map responsive wrapper */
.map-container {
  margin-top: 18px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.map-container iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
}

/* sticky sur grand écran pour garder les infos visibles */
@media (min-width: 992px) {
  .contact-info {
    position: sticky;
    top: 100px; /* ajuste si ton navbar est plus grand */
    align-self: start;
  }
}

/* ---------------------- TABLET & MOBILE ---------------------- */
/* <= 992px : on stack (form puis infos) */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-header p { max-width: 100%; font-size: .98rem; margin: 10px auto 0; }
  /* réduire padding général de la section */
  .contact { padding: 60px 18px; }
  .map-container iframe { height: 300px; }
}

/* petits mobiles */
@media (max-width: 480px) {
  .contact { padding: 36px 14px; }
  .contact-header h2 { font-size: 1.5rem; }
  .contact-header p { font-size: .95rem; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { padding: 10px; font-size: .95rem; }
  .contact-form textarea { min-height: 120px; }
  .map-container iframe { height: 220px; }
  .socials a { font-size: 1rem; margin-right: 10px; }
  .contact-form button.btn-primary { padding: 11px; font-size: .98rem; }
}

/* Optionnel : layout à 2 colonnes pour le formulaire sur très grand écran
   (nécessite d'ajouter des <div class="form-row"> wrappers dans le HTML) */
@media (min-width: 1200px) {
  .contact-form { display: block; }
  .contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* focusアクセ: meilleur contraste quand l'utilisateur navigue au clavier */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,119,182,0.12);
  outline: none;
}

/* léger ajustement global des sections sur petits écrans */
@media (max-width: 768px) {
  section { padding-left: 16px; padding-right: 16px; }
}

.socials {
  margin-top: 20px;
}

.socials a {
  font-size: 1.2rem;
  margin-right: 12px;
  color: var(--primary);
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--secondary);
}
.footer {
  background: #014186;
  color: #e0e1dd;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden; /* 👈 bloque le scroll horizontal */
}


.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer h3, .footer h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer p {
  line-height: 1.6;
}

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

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

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

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

.footer-socials {
  margin-top: 15px;
}

.footer-socials a {
  color: #e0e1dd;
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s, transform 0.2s;
}

.footer-socials a:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #adb5bd;
}

.footer, 
.footer-container, 
.footer-grid {
  width: 100%;
  max-width: 100vw; /* pas plus large que l'écran */
  overflow-x: hidden; /* bloque tout scroll horizontal */
  box-sizing: border-box; /* sécurité */
}

@media(max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr; /* 1 seule colonne */
    gap: 15px;
  }
  .footer-container {
    padding-left: 15px;
    padding-right: 15px;
        margin-bottom: 360px;

  }
}


/* ---------------- MOBILE ---------------- */
@media(max-width: 900px) {
  .nav-links,
  .nav-right {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
.hero-content{
  margin-top: 20%;
}
  
  /* Menu déroulant moderne */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 255);
    position: absolute;
    top: 60px;
  width: 100vw; /* prend toute la largeur de l'écran */
  right: 5px;
  max-width: 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
  }

  .nav-links a {
    margin: 15px 0;
    text-align: right;
    color: #0077b6;
  }
.nav-links li {
  border-bottom: 1px solid rgba(0,0,0,0.1); /* petite ligne grise claire */
  padding-bottom: 10px;
  margin-bottom: 10px;
}



  /* Quand le menu est ouvert on affiche aussi tel + bouton */
  .nav-links.active::after {
    content: " +213 663 89 71 83";
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
      text-align: center; /* ✅ aligne à droite */

  }

}

/* Animation ouverture mobile */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }}


  /* ----------------- GLOBAL SMOOTHNESS ----------------- */

/* Scroll fluide */
html {
  scroll-behavior: smooth;
}

/* Transition par défaut pour tout élément interactif */
a, button, input, textarea, select {
  transition: all 0.3s ease;
}

/* Fade-in global */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom léger au hover */
.hover-zoom {
  transition: transform .3s ease;
}
.hover-zoom:hover {
  transform: scale(1.05);
}

/* Ombre douce moderne */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Effet glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Animation "pulse" pour attirer l'attention */
.pulse {
  animation: pulseAnim 1.8s infinite;
}
@keyframes pulseAnim {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Animation subtile sur les boutons */
.btn-animate {
  position: relative;
  overflow: hidden;
}
.btn-animate::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
}
.btn-animate:hover::after {
  left: 120%;
  transition: left 0.6s ease;
}

/* Reveal horizontale */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all .7s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all .7s ease;
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);}

  img, iframe {
  max-width: 100%;
  display: block;
}
/* ================= NAVBAR : entre 1160px et 900px ================= */
@media (max-width: 1160px) and (min-width: 900px) {
  .navbar {
    padding: 0.6rem 1.2rem;
  }

  .navbar .logo {
    font-size: 1.2rem; /* logo plus petit */
  }

  .nav-links {
    margin-left: 30px;
  }

  .nav-links a {
    font-size: 15px; /* taille réduite */
  }

  .navbar .phone {
    display: none; /* cache le numéro de téléphone */
  }
}
