/*
 Theme Name:   Divi Child
 Template:     Divi
 Version:      1.5
 Description:  Process breadcrumb stepper with branching
 Author:       Your Name
*/

/* --------------------------------------------------------------------------
  INDEX DES CLASSES CSS PERSONNALISÉES
  --------------------------------------------------------------------------

  🔵 Processus / Breadcrumb / Stepper
  - .process-stepper               → Conteneur principal du fil d’étapes
  - .breadcrumb-row                → Ligne des étapes (flex horizontal)
  - .step-item                     → Boîte d'étape
  - .step-item.current             → Étape active (surbrillance)
  - .separator                     → Séparateur entre étapes (ex: →)
  - .branch-wrapper                → Groupe d’options alternatives
  - .branch-label                  → Étiquette de branche (option A / B…)

  🟣 Image Slider
  - .custom-image-slider           → Hauteur fixe globale (489px)
  - .custom-image-slider .et_pb_slide → Slide individuel, fond/image

  🟡 Pagination personnalisée
  - .custom-architect-pagination   → Conteneur pagination
  - .page-item                     → Élément individuel (chiffre)
  - .page-link                     → Lien de pagination stylisé

  🟢 Colonnes égales / Cartes informatives (image + texte)
  - .aligner-hauteur-info-box      → À appliquer à la rangée (ligne verte)
  - .aligner-hauteur-info-box > .et_pb_column → Colonne transformée en carte
  - .aligner-hauteur-info-box img  → Images fixes en hauteur (250px)
  - .aligner-hauteur-info-box .et_pb_module → Uniformise les largeurs internes
  - .aligner-hauteur-info-box .ba_info_box → Pour compatibilité avec les anciens modules InfoBox

  🟠 Alignement vertical facultatif
  - .alignement-centre-colonne     → Centrage vertical dans une colonne
  - .alignement-centre-colonne .et_pb_text → Centre horizontal du texte uniquement
  - .alignement-centre-colonne-lite → Variante alignée à gauche (mobile friendly)

  -------------------------------------------------------------------------- */

/* === Process Stepper (Breadcrumbs + Branching) === */
.process-stepper {
  padding: 30px 0;
  text-align: left;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-item {
  background: #f2f2f2;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.step-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

.step-item.current {
  background: #0073e6;
  color: white;
}

.step-item.current a {
  color: white;
}

.separator {
  color: #888;
  font-size: 18px;
  user-select: none;
}

.branch-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-label {
  font-style: italic;
  color: #666;
  margin-right: 6px;
  font-size: 14px;
  align-self: center;
}

/* === Image Slider Custom Height (489px) === */
.custom-image-slider {
  height: 489px !important;
  overflow: hidden;
}

.custom-image-slider .et_pb_slide {
  height: 489px !important;
  background-size: auto !important;
}

/* === Architect Workflow Pagination === */
.custom-architect-pagination ul.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.custom-architect-pagination .page-item {
  margin: 0 5px;
}

.custom-architect-pagination .page-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  background-color: white;
  color: #007bff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.custom-architect-pagination .page-item.active .page-link {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.custom-architect-pagination .page-item .page-link:hover {
  background-color: #e9ecef;
}

/* Optional: Minimum width for any dropdown menu used elsewhere */
.dropdown-menu {
  min-width: 240px;
}

/* === Colonnes alignées + cartes uniformes (image + texte) === */
.aligner-hauteur-info-box {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  padding: 20px 0;
}

.aligner-hauteur-info-box > .et_pb_column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aligner-hauteur-info-box > .et_pb_column:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.aligner-hauteur-info-box .et_pb_module {
  width: 100%;
}

.aligner-hauteur-info-box img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.aligner-hauteur-info-box .ba_info_box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 980px) {
  .aligner-hauteur-info-box {
    flex-wrap: wrap;
  }
}

/* === Centrage vertical spécifique pour certaines colonnes === */
.alignement-centre-colonne {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.alignement-centre-colonne .et_pb_text {
  margin: 0 auto;
}

.alignement-centre-colonne-lite {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  align-items: flex-start;
}

.alignement-centre-colonne .et_pb_module,
.alignement-centre-colonne-lite .et_pb_module {
  width: 100%;
}

/* === Responsive spécifique au process stepper === */
@media (max-width: 768px) {
  .breadcrumb-row {
    flex-direction: column;
    gap: 12px;
  }

  .separator {
    display: none;
  }

  .branch-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
