/* ==========================================
   CRIHD DIRECTION PAGE - STYLE COHÉRENT
   ========================================== */

/* Réutilise les styles existants avec extensions spécifiques */

/* ==========================================
   MESSAGE DU DIRECTEUR
   ========================================== */

.director-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.director-profile {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.director-profile:hover {
    transform: translateY(-4px);
}

.profile-image {
    height: 300px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 32px;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.profile-title {
    color: #c53c3c;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 24px;
}

.profile-details p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.profile-details strong {
    color: #2c3e50;
}

.director-message {
    padding-left: 40px;
    border-left: 4px solid #c53c3c;
}

.director-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 32px;
    padding: 32px;
    background: #f8f9fa;
    border-left: 4px solid #c53c3c;
    position: relative;
}

.director-quote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(197, 60, 60, 0.2);
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: serif;
    line-height: 1;
}

.message-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

.signature {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
    text-align: right;
}

.signature-name {
    display: block;
    font-weight: 700;
    color: #c53c3c;
    margin-bottom: 4px;
}

.signature-title {
    font-size: 14px;
    color: #6b7280;
}

/* ==========================================
   STRUCTURE DE GOUVERNANCE - LAYOUT HORIZONTAL
   ========================================== */

.governance-horizontal {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.governance-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.governance-row.top-level,
.governance-row.middle-level {
    justify-content: center;
}

.governance-row.bottom-level {
    justify-content: space-between;
    flex-wrap: wrap;
}

.governance-card {
    background: white;
    padding: 32px 24px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    min-width: 220px;
    flex: 1;
    max-width: 280px;
    transition: all 0.3s ease;
    position: relative;
}

.governance-card:hover {
    border-color: #c53c3c;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(197, 60, 60, 0.1);
}

.governance-card.board {
    background: #c53c3c;
    color: white;
    border-color: #a73030;
}

.governance-card.director {
    background: #2c3e50;
    color: white;
    border-color: #34495e;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-header i {
    font-size: 20px;
    color: #c53c3c;
}

.governance-card.board .card-header i,
.governance-card.director .card-header i {
    color: white;
}

.card-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.governance-card p {
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.card-role {
    display: inline-block;
    background: rgba(197, 60, 60, 0.1);
    color: #c53c3c;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.governance-card.board .card-role,
.governance-card.director .card-role {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Flèches de connexion */
.connection-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c53c3c;
    font-size: 24px;
    margin: 8px 0;
}

/* Processus décisionnels - Layout horizontal */
.decision-process {
    margin-top: 80px;
}

.process-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 48px;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 24px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    transition: all 0.3s ease;
    min-width: 160px;
    flex: 1;
    max-width: 200px;
}

.process-step:hover {
    border-color: #c53c3c;
    transform: translateY(-4px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #c53c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 16px;
}

.process-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c53c3c;
    font-size: 20px;
    flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE POUR LAYOUT HORIZONTAL
   ========================================== */

@media (max-width: 1024px) {
    .governance-row.bottom-level {
        justify-content: center;
        gap: 24px;
    }

    .governance-card {
        min-width: 200px;
        max-width: 250px;
    }

    .process-flow {
        gap: 20px;
    }

    .process-step {
        min-width: 140px;
        max-width: 180px;
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .governance-horizontal {
        gap: 24px;
    }

    .governance-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .governance-row.bottom-level {
        flex-direction: column;
    }

    .governance-card {
        min-width: 280px;
        max-width: 320px;
        width: 100%;
    }

    .connection-arrow {
        font-size: 20px;
        margin: 4px 0;
    }

    .process-flow {
        flex-direction: column;
        gap: 16px;
    }

    .process-arrow {
        transform: rotate(90deg);
        font-size: 16px;
    }

    .process-step {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .governance-card {
        min-width: auto;
        max-width: none;
        padding: 24px 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 8px;
    }

    .card-header i {
        font-size: 24px;
    }

    .process-step {
        padding: 20px 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .process-title {
        font-size: 24px;
    }
}

.step-number {
    width: 50px;
    height: 50px;
    background: #c53c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 16px;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   STATISTIQUES - Réutilise les styles existants
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.stat-card {
    background: white;
    padding: 40px 32px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #c53c3c;
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(197, 60, 60, 0.1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(197, 60, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c53c3c;
    font-size: 32px;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: #c53c3c;
    color: white;
    transform: scale(1.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #c53c3c;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* ==========================================
   RAPPORTS - Style simple et cohérent
   ========================================== */

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.report-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-card:hover {
    border-color: #c53c3c;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(197, 60, 60, 0.1);
}

.report-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 60, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c53c3c;
    font-size: 24px;
}

.report-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.report-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.report-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.report-meta span {
    background: #f8f9fa;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.report-btn {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #2c3e50;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.report-btn:hover {
    border-color: #c53c3c;
    background: #c53c3c;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .director-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .director-message {
        padding-left: 0;
        border-left: none;
        border-top: 4px solid #c53c3c;
        padding-top: 40px;
    }

    .governance-row.bottom-level {
        justify-content: center;
        gap: 24px;
    }

    .governance-card {
        min-width: 200px;
        max-width: 250px;
    }

    .process-flow {
        gap: 20px;
    }

    .process-step {
        min-width: 140px;
        max-width: 180px;
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    .director-profile {
        margin: 0 auto;
        max-width: 350px;
    }

    .director-quote {
        font-size: 18px;
        padding: 24px;
    }

    .governance-horizontal {
        gap: 24px;
    }

    .governance-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .governance-row.bottom-level {
        flex-direction: column;
    }

    .governance-card {
        min-width: 280px;
        max-width: 320px;
        width: 100%;
    }

    .connection-arrow {
        font-size: 20px;
        margin: 4px 0;
    }

    .process-flow {
        flex-direction: column;
        gap: 16px;
    }

    .process-arrow {
        transform: rotate(90deg);
        font-size: 16px;
    }

    .process-step {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-card {
        padding: 32px 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .director-content {
        gap: 32px;
    }

    .profile-info {
        padding: 24px;
    }

    .director-quote {
        font-size: 16px;
        padding: 20px;
    }

    .director-quote::before {
        font-size: 3rem;
        top: 12px;
        left: 12px;
    }

    .governance-card {
        min-width: auto;
        max-width: none;
        padding: 24px 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 8px;
    }

    .card-header i {
        font-size: 24px;
    }

    .process-step {
        padding: 20px 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .process-title {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS SUBTILES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Application des animations au scroll */
.director-profile,
.director-message,
.governance-card,
.process-step,
.stat-card,
.report-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Délais d'animation pour effet de cascade */
.governance-card:nth-child(1) { animation-delay: 0.1s; }
.governance-card:nth-child(2) { animation-delay: 0.2s; }
.governance-card:nth-child(3) { animation-delay: 0.3s; }

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================
   ÉTATS DE FOCUS POUR ACCESSIBILITÉ
   ========================================== */

.governance-card:focus,
.process-step:focus,
.stat-card:focus,
.report-card:focus,
.report-btn:focus {
    outline: 3px solid #c53c3c;
    outline-offset: 2px;
}

/* ==========================================
   AMÉLIORATIONS VISUELLES SUBTILES
   ========================================== */

/* Séparateur visuel entre sections */
.section-padding + .section-padding::before {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c53c3c, transparent);
    margin: 0 auto;
    position: relative;
    top: -60px;
}

/* Amélioration de la citation */
.director-quote {
    position: relative;
    overflow: hidden;
}

.director-quote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(197, 60, 60, 0.02) 100%);
    pointer-events: none;
}

/* Effet de survol sur les cartes de gouvernance */
.governance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 60, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.governance-card {
    position: relative;
    overflow: hidden;
}

.governance-card:hover::before {
    left: 100%;
}

/* Animation de pulsation pour les statistiques */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-card:hover .stat-icon {
    animation: pulse 2s infinite;
}