html, body{
    overflow-x: hidden;
}
/* nos projet */
.css-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 5px 40px;
  scrollbar-width: none; /* Cache la scrollbar sur Firefox */
}
.css-slider::-webkit-scrollbar {
  display: none;
} /* Cache sur Chrome */

.css-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .css-slide {
    flex: 0 0 calc(50% - 10px);
  }
}
@media (min-width: 1024px) {
  .css-slide {
    flex: 0 0 calc(33.333% - 14px);
  }
}

/* --- CARTE & EFFET SURVOL --- */
.project-card {
  background: #fff;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: block;
  text-decoration: none;
}
.project-card:hover {
  transform: translateY(-10px);
}

.image-container {
  position: relative;
  height: 450px; /* Hauteur de la carte */
  overflow: hidden;
  margin: 0;
}
.image-container img {
  width: 100%;
  position: absolute;
  top: 0;
  transition: transform 6s linear; /* Défilement lent au survol */
}
.image-container:hover img {
  transform: translateY(calc(-100% + 450px));
}

.project-title {
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--title);
  margin: 0;
  background: #fff;
}

/* --- MODALE AVEC SCROLL VERTICAL --- */

dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: visible; /* important pour que le bouton déborde */
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
}
/* Le scroll doit être sur un wrapper interne, pas sur dialog directement */
dialog .modal-scroll-container {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

dialog img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  overflow: hidden; /* arrondi sur l'image */
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 99999;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.close-modal:hover {
  background: var(--primary-hover);
}
/* Style spécifique pour la section Devis */
.dz-info-box {
  padding: 60px 50px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
}

/* Motif de fond discret pour le côté bleu (comme sur l'image) */
.dz-info-box:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
  opacity: 0.1;
  z-index: -1;
}

.dz-info-box .title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: 700;
}

.dz-form-area {
  padding: 60px 50px;
  border-radius: 0 6px 6px 0;
}

/* Ajustement des icônes dans les champs */
.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #cccccc;
    border-right: 0;
    color: var(--primary);
}

.form-control {
    border-left: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .dz-info-box {
    border-radius: 6px 6px 0 0;
    padding: 40px 30px;
  }
  .dz-form-area {
    border-radius: 0 0 6px 6px;
    padding: 40px 30px;
  }
  .dz-info-box .title {
    font-size: 30px;
  }
}

.service-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-card .icon-bx-wraper.active .seo-icon {
    color: #007BFF !important;
}

  /* --- Vos classes personnalisées --- */
  
  .accueil-service-section {
    padding: 80px 0;
    background-color: #f9f9f9;
  }

  /* La Grille principale pour aligner 3 cartes par ligne */
  .accueil-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 30px; /* Espace entre les cartes */
  }

  /* Design de la Carte */
  .accueil-service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Aligne le bouton tout en bas */
    height: 100%; /* Force toutes les cartes à la même hauteur */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transition douce */
    border: 1px solid #f1f1f1;
  }

  /* Effet de Zoom et Soulèvement au Survol */
  .accueil-service-card:hover {
    transform: translateY(-10px) scale(1.03); /* Soulève et agrandit */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* Ombre plus forte */
    border-color: var(--primary); /* Change la bordure si vous avez du bleu */
  }

  /* Le conteneur de l'icône */
  .accueil-service-icon-box {
    width: 70px;
    height: 70px;
    background-color: #f1f6ff;
    color: #0066cc; /* Couleur bleue par défaut */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
  }

  .accueil-service-card:hover .accueil-service-icon-box {
    background-color: #0066cc; /* Devient bleu au survol */
    color: #ffffff; /* L'icône devient blanche */
  }

  .accueil-service-title {
    font-size: 20px;
    font-weight: 700;
    color: #2b3a4a;
    margin-bottom: 15px;
  }

  .accueil-service-description {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pousse le bouton vers le bas */
  }

  .accueil-service-link {
    font-size: 15px;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
  }

  .accueil-service-link:hover {
    gap: 12px; /* La flèche bouge un peu au survol */
    text-decoration: underline;
  }

  /* --- Responsive : Passage à 1 colonne sur mobile et 2 sur tablette --- */
  @media (max-width: 991px) {
    .accueil-service-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
  }

  @media (max-width: 767px) {
    .accueil-service-grid {
      grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }
  }

  /* --- Vos Nouvelles Classes de Style "Dynamique & Immersif" --- */
  
  .casablanca-section {
    padding: 100px 0;
    background-color: #f9fbfd; /* Fond très clair et neutre */
    color: #333333;
    font-family: 'Poppins', sans-serif; /* Assurez-vous d'avoir cette police */
    overflow: hidden; /* Pour contenir les effets de survol */
  }

  .casablanca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes principales */
    gap: 60px; /* Espace généreux entre le texte et les cartes */
    align-items: flex-start; /* Aligne le texte en haut */
  }

  /* Texte Principal (Gauche) */
  .casablanca-text-content {
    padding-right: 40px;
  }

  .casablanca-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 25px;
  }

  .casablanca-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: #7f8c8d;
    margin-bottom: 30px;
  }

  /* Grille des Cartes (Droite) */
  .casablanca-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
    gap: 25px; /* Espace entre les cartes */
  }

  /* La Carte (Design "Light" avec Design Interne et Animations) */
  .casablanca-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04); /* Ombre douce par défaut */
    border: 1px solid #f2f2f2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transition douce */
    display: flex;
    flex-direction: column;
    height: 100%; /* Force toutes les cartes à la même hauteur */
    overflow: hidden; /* Pour contenir le motif interne */
    position: relative;
    z-index: 1; /* Pour que le motif interne soit derrière le texte */
  }

  /* NOUVEAU : Design Interne de la Carte (Motif Filigrane) */
  .casablanca-card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M5 5v50h50V5H5zm2.5 2.5h45v45h-45v-45zm15 15h15v15h-15v-15z" fill="%233498db" fill-opacity="0.03"/></svg>'); /* Motif subtil technique */
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 0.2; /* Très discret par défaut */
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
    transform: scale(1);
  }

  /* --- NOUVEAU : Effet au survol des cartes --- */
  .casablanca-card:hover {
    transform: translateY(-8px) scale(1.02); /* Soulève et agrandit légèrement */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1); /* Ombre plus forte et large */
    background-color: #3498db; /* Change le fond de la carte au survol (Bleu de votre thème) */
    color: #ffffff; /* Le texte devient blanc au survol */
    border-color: #3498db; /* Change la couleur de bordure au survol */
  }

  /* Active le design interne au survol de la carte */
  .casablanca-card:hover .casablanca-card-pattern {
    opacity: 1; /* Devient visible */
    transform: scale(1.05); /* S'agrandit légèrement pour un effet dynamique */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M5 5v50h50V5H5zm2.5 2.5h45v45h-45v-45zm15 15h15v15h-15v-15z" fill="%23ffffff" fill-opacity="0.08"/></svg>'); /* Change le motif en blanc discret au survol */
  }

  .casablanca-card-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaf4fb;
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .casablanca-card-icon {
    font-size: 30px;
    color: #3498db;
    transition: all 0.3s ease;
  }

  /* Animation d'icône au survol de la carte */
  .casablanca-card:hover .casablanca-card-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2); /* Fond devient blanc transparent */
    transform: rotateY(360deg); /* Rotation 3D de l'icône */
  }

  .casablanca-card:hover .casablanca-card-icon {
    color: #ffffff; /* Icône devient blanche */
  }

  .casablanca-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
  }

  /* Le titre devient blanc au survol */
  .casablanca-card:hover .casablanca-card-title {
    color: #ffffff;
  }

  .casablanca-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0;
    transition: color 0.3s ease;
  }

  /* Le texte devient blanc au survol */
  .casablanca-card:hover .casablanca-card-text {
    color: #ffffff;
  }

  /* Responsive : Passage à 1 seule colonne principale sur mobile */
  @media (max-width: 1199px) {
    .casablanca-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .casablanca-text-content {
      padding-right: 0;
      margin-bottom: 50px;
    }
  }

  /* Responsive : Passage à 1 colonne de cartes sur mobile */
  @media (max-width: 767px) {
    .casablanca-cards-grid {
      grid-template-columns: 1fr;
    }
  }


