/* Styles pour la page Organigramme FNM */
:root {
    --fnm-100: #fff3e0;
    --fnm-200: #ffe0b2;
    --fnm-300: #ffcc80;
    --fnm-400: #ffb74d;
    --fnm-500: #ffa726;
    --fnm-600: #fb8c00;
    --fnm-700: #f57c00;
    --fnm-800: #ef6c00;
    --fnm-900: #e65100;
}

.org-chart-container {
    background-color: #fff;
    position: relative;
    min-height: 100vh;
}

.org-chart-header {
    background: linear-gradient(to right, var(--fnm-700), var(--fnm-900));
    color: #fff;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.org-chart-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/pattern-dots.png');
    background-size: 100px;
    opacity: 0.1;
    z-index: 0;
}

/* Style pour la section de contenu */
.org-chart-content {
    padding: 3rem 0;
    position: relative;
}

.org-chart-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/pattern-dots.png');
    background-size: 200px;
    opacity: 0.03;
    z-index: 0;
}

/* Style pour les cartes */
.org-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.org-card h3 {
    color: var(--fnm-800);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--fnm-300);
    padding-bottom: 0.5rem;
}

/* Style pour l'organigramme */
.org-chart {
    margin: 3rem 0;
    position: relative;
}

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

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

.org-chart-level::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    height: 30px;
    width: 2px;
    background-color: var(--fnm-500);
}

.org-chart-level:first-child::before {
    display: none;
}

.org-chart-level::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: var(--fnm-500);
}

.org-chart-level:first-child::after {
    display: none;
}

.org-chart-item {
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border: 2px solid var(--fnm-400);
    border-radius: 8px;
    padding: 1rem;
    margin: 0 1rem;
    min-width: 200px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.org-chart-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--fnm-600);
    z-index: 10;
}

.org-chart-item.president {
    background: linear-gradient(135deg, var(--fnm-100), var(--fnm-200));
    border-color: var(--fnm-600);
}

.org-chart-item.director {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-color: var(--fnm-500);
}

.org-chart-item h4 {
    font-weight: 600;
    color: var(--fnm-800);
    margin-bottom: 0.5rem;
}

.org-chart-item p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.org-chart-item .role {
    font-size: 0.75rem;
    color: var(--fnm-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Animation pour les éléments de l'organigramme */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-chart-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.org-chart-level:nth-child(1) .org-chart-item {
    animation-delay: 0.2s;
}

.org-chart-level:nth-child(2) .org-chart-item {
    animation-delay: 0.4s;
}

.org-chart-level:nth-child(3) .org-chart-item {
    animation-delay: 0.6s;
}

.org-chart-level:nth-child(3) .org-chart-item:nth-child(2) {
    animation-delay: 0.7s;
}

.org-chart-level:nth-child(3) .org-chart-item:nth-child(3) {
    animation-delay: 0.8s;
}

/* Style pour la section historique */
.history-section {
    background-color: #f9f9f9;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/pattern-dots.png');
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.history-timeline {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--fnm-400);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--fnm-500);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -60px;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--fnm-500);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .org-chart-level {
        flex-direction: column;
        align-items: center;
    }
    
    .org-chart-item {
        margin-bottom: 2rem;
    }
    
    .org-chart-level::after {
        display: none;
    }
    
    .history-timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -45px;
        right: auto;
    }
}
