/* ===== PAGE STRUCTURE ===== */
.structure-page {
    background-color: #fff;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
}

.structure-title {
    font-weight: 900; /* gras rembourré */
    font-size: 28px;
    margin-bottom: 20px;
}

.structure-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* Diagramme */
.diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.diagram-sublevel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

/* Blocs */
.diagram-block {
    background-color: #FFD000; /* jaune par défaut pour filiales */
    border-radius: 8px;
    padding: 20px;
    width: 260px; /* largeur fixe pour uniformité */
    height: 150px; /* hauteur fixe pour uniformité */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diagram-block.head-office {
    background-color: #d32f2f; /* rouge pour le siège */
    color: #fff;
}

.block-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.block-subtitle {
    font-size: 14px;
    margin-bottom: 5px;
}

.block-location {
    font-size: 13px;
    font-weight: bold;
}

/* Flèches stylées */
.diagram-arrows {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: -10px; /* rapproche la flèche du siège */
}

.arrow {
    width: 2px;
    height: 50px;
    background-color: #000;
    position: absolute;
    top: 0;
}

.arrow::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
    border-top-color: #000;
    top: 100%;
    left: -4px;
}

.arrow-left {
    left: 35%; /* pointe vers la filiale gauche */
}

.arrow-right {
    right: 35%; /* pointe vers la filiale droite */
}

/* Texte après diagramme */
.diagram-text {
    margin-top: 50px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .diagram-sublevel {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
        align-items: center;
    }

    .diagram-arrows {
        display: none; /* masqué sur mobile pour simplification */
    }

    .diagram-block {
        width: 80%;
        height: 150px; /* garde même hauteur fixe pour uniformité */
        padding: 15px;
    }

    .diagram-text {
        text-align: center;
    }
}
