/* Styles spécifiques pour la page deroulement-projet.php */

.approach-lists-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 12px; /* espace entre la rangée du bas et les listes */
}

.approach-lists-bottom .approach-slot {
    text-align: left;
    display: flex;
    justify-content: center; /* centre la liste dans sa colonne */
}

.approach-lists-bottom .approach-list {
    list-style: none;
    padding-left: 18px;
    margin-top: 10px;
    color: #121212;
    text-align: left;
    max-width: 240px;
}

.approach-lists-bottom .approach-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
    color: #121212;
    font-size: 13px;
    line-height: 1.4;
}

.approach-lists-bottom .approach-list li::before {
    content: "\2022"; /* bullet */
    position: absolute;
    left: 0;
    top: 2px;
    color: #121212;
    font-size: 14px;
    line-height: 1;
}

/* Renforcement pour s'assurer que le texte des listes de cette page reste blanc */
.approach-lists-bottom .approach-list,
.approach-lists-bottom .approach-list li,
.approach-lists-bottom .approach-list li::before {
    color: #121212 !important;
}

/* Assurer que les listes situées au-dessus de la ligne (ETAPE 2) soient également blanches */
.approach-lists-top .approach-list,
.approach-lists-top .approach-list li,
.approach-lists-top .approach-list li::before {
    color: #121212 !important;
}

/* Liste affichée au-dessus de la case (ETAPE 2) */
.approach-list.top-above {
    margin-bottom: 10px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.approach-list.top-above li { text-align: left !important; }

/* Forcer la couleur blanche des listes positionnées au-dessus (ETAPE 2) */
.approach-list.top-above,
.approach-list.top-above li,
.approach-list.top-above li::before {
    color: #121212 !important;
}

/* Styles pour la liste positionnée au-dessus de ETAPE 4 */
.approach-list.top-above-4 {
    margin-bottom: 10px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}
.approach-list.top-above-4 li { text-align: left !important; }
.approach-list.top-above-4,
.approach-list.top-above-4 li,
.approach-list.top-above-4 li::before {
    color: #121212 !important;
}

/* Assurer que la liste sous ETAPE 3 (troisième colonne) soit centrée et blanche */
.approach-lists-bottom .approach-slot:nth-child(3) {
    display: flex;
    justify-content: center;
}
.approach-lists-bottom .approach-slot:nth-child(3) .approach-list {
    max-width: 260px;
    color: #121212 !important;
}

/* Colorer en blanc uniquement la liste de l'ETAPE 1 */
.approach-lists-bottom .approach-slot:nth-child(1) .approach-list,
.approach-lists-bottom .approach-slot:nth-child(1) .approach-list li,
.approach-lists-bottom .approach-slot:nth-child(1) .approach-list li::before {
    color: #121212 !important;
}

/* Rapprocher la liste sous ETAPE 3 pour qu'elle soit juste en dessous de la case */
.approach-lists-bottom {
    margin-top: -10px; /* remonte légèrement la rangée des listes */
}
.approach-lists-bottom .approach-slot {
    align-items: flex-start; /* aligne les listes sur le haut de la cellule */
}
.approach-lists-bottom .approach-slot:nth-child(3) .approach-list {
    margin-top: 4px; /* petit espacement entre la case et la liste */
}

/* Utiliser la même police pour tous les textes de listes de cette page */
.approach-list,
.approach-list li,
.approach-list.top-above,
.approach-list.top-above-4,
.approach-lists-top .approach-list,
.approach-lists-bottom .approach-list {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
}

/* Renforcement explicite sur les <li> pour éviter toute différence de police/poids/tailles */
.approach-lists-top .approach-list li,
.approach-lists-bottom .approach-list li,
.approach-list.top-above li,
.approach-list.top-above-4 li,
.approach-list li {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    font-style: normal !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Rendre le fond de la section .approach-section transparent uniquement sur cette page */
.approach-section {
    background-color: transparent !important;
    background-image: none !important;
}

/* Tablet / mobile: hide complex timeline and show stacked fallback */
@media (max-width: 1024px) {
    /* hide original timeline and its subparts to avoid duplicate ordering */
    .approach-timeline,
    .approach-row,
    .approach-line,
    .approach-lists-top,
    .approach-lists-bottom { display: none !important; }

    /* also hide any per-slot lists that are output inside the timeline (top-above, top-above-4)
       to be extra robust against ordering duplicates on small screens */
    .approach-list.top-above,
    .approach-list.top-above-4,
    .approach-row-top .approach-list,
    .approach-slot .approach-list { display: none !important; }

    /* show stacked fallback */
    .approach-section-stacked { display: block !important; }
    .approach-stacked { width: 92%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
    .approach-stacked-item { display: flex; flex-direction: column; gap: 12px; }
    .approach-stacked .approach-box { margin: 0 auto; transform: none; }
    .approach-stacked .stacked-list { list-style: none; padding-left: 18px; color: #121212; }
    .approach-stacked .stacked-list li { padding-left: 14px; margin-bottom: 8px; }
}

/* Hide stacked section on large screens by default */
.approach-section-stacked { display: none; }

/* Page-specific background image (fixed) */
body.services-body {
    background-image: linear-gradient(rgba(247, 245, 241, 0.55), rgba(247, 245, 241, 0.55)), url("../images/background/PHOTO 1.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Alignement et taille pour les descriptions à l'intérieur des cases */
.approach-box-desc {
    box-sizing: border-box;
    width: 235px; /* correspond à la largeur de .approach-box */
    text-align: left;
    color: #121212;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 13px;
}
