/* organigramme.css */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Styles généraux */
.section {
    padding: 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #003366; /* bleu foncé */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Structure de l'organigramme */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.org-level {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;

    border-radius: 8px;
    z-index: 5;
}

#vice-presidents{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    width: 98vw;
    height: auto;
    padding: 20px;
    row-gap: 20px;
    column-gap: 10px;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    position: relative;
    border: 1px solid #006633;
    background-color: #0066333b;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

#commissions{
    margin-top: 70px;
    border: 1px solid #CC0000;
    width: 98vw;
    padding: 20px;
    background-color: #CC00003b;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}
/* Lignes de connexion (optionnel) */
#vice-presidents::before{
    content: '';
    position: absolute;
    top: -65px;
    left: 50%;
    height: 65px;
    width: 10px;
    transform: translateX(-50%);
    background-color: #003366; /* vert */
    z-index: 1;
}

#vice-presidents::after {
    content: '';
    position: absolute;
    bottom: -71px;
    left: 50%;
    width: 10px;
    transform: translateX(-50%);
    height: 72px;
    background-color: #006633; /* vert */
    z-index: 1;
}


/* Nœuds de l'organigramme */
.org-node {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 5px;
    margin: 0;
    text-align: center;
    width: 200px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.org-node img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    margin-bottom: 1rem;
}

.org-node h3 {
    font-size: 1.1rem;
    color: #003366; /* bleu foncé */
    margin-bottom: 0.5rem;
}

.org-node p {
    color: #006633; /* vert */
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Style spécifique pour le président */
.org-node.president {
    background-color: #003366; /* bleu foncé */
    color: white;
    width: 260px;
}

.org-node.president h3,
.org-node.president p {
    color: white;
}

.org-node.president img {
    border-color: #FFD700; /* jaune */
}

/* Bouton de biographie */
.bio-btn {
    background-color: #FFD700; /* jaune */
    color: #003366; /* bleu foncé */
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.bio-btn:hover {
    background-color: #e6c200;
}

/* Commissions */
.org-commission {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 0 1rem;
    text-align: center;
    min-width: 250px;
}

.org-commission h4 {
    color: #CC0000; /* rouge */
    margin-bottom: 1rem;
    font-size: 1rem;
}

.org-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.org-member {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-member img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.org-member p {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .org-level {
        flex-direction: column;
        align-items: center;
    }
    
    .org-node {
        margin: 0.5rem 0;
    }
    
    .org-commission {
        margin: 0.5rem 0;
    }
}