/* debut de la page d'accueil*/

.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  /* Important pour masquer le zoom qui dépasse */
}

/* Couche des images */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  /* L'effet de zoom lent */
  animation: kenburns 20s infinite alternate;
}

.slide.active {
  opacity: 1;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* Couche du texte fixe */
.content-layer {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  /* Overlay sombre pour lire le texte */
  color: white;
}

.content-layer h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.content-layer p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Boutons et Flèches */
.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-yellow {
  background: #f6ad55;
  color: #1a365d;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

/*----- Responsive ----*/





/*-------------------*/

/* Configuration globale */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #4a4a4a;
  line-height: 1.6;
}

.about-section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.content-container {
  display: flex;
  align-items: center;
  gap: 50px;
  /* Espace entre texte et image */
}

/* --- Côté Texte --- */
.text-side {
  flex: 1;
  margin-left: 20px;
}

.title {
  font-size: 2.5rem;
  color: #1a365d;
  /* Bleu foncé */
  margin-bottom: 10px;
  font-weight: bold;
}

.underline {
  width: 50px;
  height: 4px;
  background-color: #f6ad55;
  /* Orange */
  margin-bottom: 30px;
}

.description {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #555;
  text-align: justify;
}

.more-link {
  display: inline-block;
  margin-top: 20px;
  color: #2c5282;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.more-link:hover {
  color: #f6ad55;
}

/* --- Côté Image --- */
.image-side {
  flex: 1;
}

.main-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  /* Bords arrondis comme sur l'image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Ombre légère pour le relief */
}




/* --- Responsive (Mobile) --- */
@media (max-width: 992px) {
  .content-container {
    flex-direction: column;
    text-align: left;
  }

  .image-side {
    order: 1;
    /* Image au-dessus du texte sur mobile */
  }

  /* Boutons et Flèches */
  .hero-buttons {
    display: flex;
    gap: 10px;
  }

  .btn-yellow {
    background: #f6ad55;
    color: #1a365d;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
  }

  .btn-outline {
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
  }


  .content-layer h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: bold;
  }

  /* --- AFFICHAGE EN 4 (GRILLE 2x2) --- */

  .valeurs-grid {
    display: grid;
    /* Crée deux colonnes de taille égale */
    grid-template-columns: repeat(2, 1fr);
    /* Espace entre les cartes */
    gap: 30px;
    justify-items: center;
    padding: 30px;
  }

  .valeur-card {
    width: 100%;
    max-width: 250px;
    /* Évite que les cartes ne deviennent trop larges */
    text-align: center;
  }
    .expertise-container {
      max-width: 95%;
      margin-left: 20px;
      margin-right: 20px;
    }

  /* --- OPTIONNEL : PASSAGE EN 1 COLONNE (Mobile très petit) --- */
  @media (max-width: 576px) {
    .valeurs-grid {
      grid-template-columns: 1fr;
      /* Une seule colonne sur petit téléphone */
    }

    .expertise-container {
      max-width: 95%;
      margin-left: 20px;
      margin-right: 20px;
    }
  }
}

/*-----------------------------------*/




.expertise-container {
  max-width: 1200px;
  margin: 0 auto;
}

.header-text {
  text-align: center;
  margin-bottom: 50px;
}

.header-text h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.header-text p {
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grille Principale */
.expertise-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* En-têtes de catégorie */
.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.main-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.bg-dark-blue {
  background-color: #1a2b4b;
}

.bg-yellow {
  background-color: #f9d423;
  color: #1a2b4b;
}

.category-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

/* Grille des petites cases */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --- LE STYLE DES CASES & L'EFFET DE SOULÈVEMENT --- */
.card-item {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);

  /* Transition fluide pour la montée */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* --- EFFET : Monte de quelques poussières (4px) --- */
.card-item:hover {
  transform: translateY(-4px);
  /* Soulèvement léger */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  /* Ombre plus marquée pour la profondeur */
  color: #1a2b4b;
}

/* Icônes */
.card-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: #94a3b8;
  /* Couleur par défaut */
}

.icon-yellow {
  color: #f9d423 !important;
}

/* Responsive */
@media (max-width: 900px) {
  .expertise-main-grid {
    grid-template-columns: 1fr;
  }

  .sub-grid {
    grid-template-columns: 1fr;
  }
}




/*----------------------------------*/

/* --- Bouton "Découvrir les services créatifs" --- */
.btn-serv {
  background-color: #fffb03e1;
  /* Couleur dorée/orangée */
  color: #1a365d;
  /* Texte foncé sur le bouton */
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.2s;
  width: px;
  height: 50px;
}


/* Conteneur pour aligner les boutons si besoin */
.container-boutons {
  display: flex;
  gap: 20px;
  padding: 50px;
  font-family: 'Arial', sans-serif;
}

/* Base commune pour les deux boutons */
.btn-bleu,
.btn-jaune {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  /* Bords légèrement arrondis comme sur l'image */
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
  /* Animation fluide pour couleur et zoom */
  cursor: pointer;
  border: none;
}

/* --- BOUTON BLEU --- */
.btn-bleu {
  background-color: #1a365d;
  /* Bleu nuit d'origine */
  color: white;
}

/* Survol du bouton bleu */
.btn-bleu:hover {
  background-color: #e53e3e;
  /* Devient Rouge */
  transform: scale(1.1);
  /* Petit zoom avant de 10% */
}

/* --- BOUTON JAUNE --- */
.btn-jaune {
  background-color: #ffc107;
  /* Jaune d'origine */
  color: #1a365d;
  /* Texte foncé pour lisibilité */
}

/* Survol du bouton jaune */
.btn-jaune:hover {
  background-color: #38a169;
  /* Devient Vert */
  color: white;
  /* Texte passe en blanc pour le vert */
  transform: scale(1.1);
  /* Petit zoom avant de 10% */
}


.valeurs-section {
  background-color: #1a2a40;
  /* Bleu nuit profond */
  padding: 60px 20px;
  text-align: center;
  color: white;
  font-family: 'Arial', sans-serif;
}

.valeurs-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.valeur-card {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}



/* --- ÉTAT INITIAL --- */
.icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  /* Cercle gris translucide */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  /* Animation fluide */
}

.icon-box i {
  font-size: 28px;
  color: #a0aec0;
  /* Icône grise par défaut */
  transition: color 0.3s ease;
}

.valeur-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.valeur-card p {
  font-size: 0.85rem;
  color: #a0aec0;
}

/* --- ÉTAT SURVOLÉ (L'effet jaune de créativité) --- */
.valeur-card:hover .icon-box {
  background-color: #f6ad55;
  /* Le cercle devient jaune/orange */
  transform: translateY(-5px);
  /* Petit saut vers le haut */
}

.valeur-card:hover .icon-box i {
  color: #1a2a40;
  /* L'icône devient bleu nuit sur le fond jaune */
}


.valeur-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.valeur-item p {
  font-size: 0.85rem;
  color: #a0aec0;
  /* Gris clair pour le texte */
}


.cta-section {
  text-align: center;
  padding: 50px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Style des boutons */
.btn-whatsapp,
.btn-devis {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
  /* Pour le petit zoom */
  border: none;
  display: flex;
  align-items: center;
}

.btn-whatsapp {
  background-color: #25d366;
  /* Vert WhatsApp */
  color: white;
}

.btn-devis {
  background-color: transparent;
  border: 1px solid #1a365d;
  color: #1a365d;
}

/* --- EFFET ZOOM AVANT AU SURVOL --- */
.btn-whatsapp:hover,
.btn-devis:hover {
  transform: scale(1.05);
  /* Zoom de "quelques poussières" */
}

/* --- STYLE DE LA FENÊTRE MODALE --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Arrière-plan visible mais assombri */
  display: none;
  /* Caché par défaut */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  width: 453px;
  /* Largeur demandée */
  height: 305px;
  /* Hauteur demandée */
  border-radius: 15px;
  position: relative;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  background: none;
  border: none;
  cursor: pointer;
}


.modal-content {
  background: white;
  width: 453px;
  height: auto;
  /* Auto pour s'adapter au contenu interne */
  min-height: 305px;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
  /* Aligné à gauche comme sur l'image */
}

.modal-title {
  font-size: 1.2rem;
  color: #1a365d;
  margin-bottom: 5px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 25px;
}

/* Style des cartes de département */
.dept-card {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  margin-bottom: 15px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.3s;
}

.dept-card:hover {
  transform: scale(1.02);
  /* Le petit zoom avant */
  border-color: #ffc107;
  background-color: #fffaf0;
}

.dept-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  width: 40px;
  text-align: center;
}

.dept-info strong {
  display: block;
  color: #2d3748;
  font-size: 1rem;
}

.dept-info span {
  font-size: 0.75rem;
  color: #718096;
}


/* fin de la page d'accueil*/