/* =============================================================================
   CSS STYLES POUR LA SECTION À PROPOS - CARDES THEME
   ============================================================================= */

:root {
    --about-primary: #2b5d9e;
    --about-secondary: #f39c12;
    --about-accent: #e74c3c;
    --about-success: #27ae60;
    --about-gray-light: #f8f9fa;
    --about-gray-medium: #6c757d;
    --about-gray-dark: #343a40;
    --about-border: #e9ecef;
    --about-shadow: 0 4px 20px rgba(43, 93, 158, 0.1);
    --about-shadow-hover: 0 8px 30px rgba(43, 93, 158, 0.15);
    --about-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   MENU DÉROULANT À PROPOS
   ============================================================================= */

.dropdown-menu {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cardes-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--about-transition);
    font-weight: 500;
}

.dropdown-toggle:hover {
    background: var(--about-gray-light);
    color: var(--about-secondary);
}

.dropdown-toggle.active {
    background: var(--about-primary);
    color: white;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: var(--about-transition);
}

.dropdown-menu:hover .dropdown-icon,
.dropdown-menu.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border: 2px solid var(--about-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--about-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--about-transition);
    z-index: 1000;
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.dropdown-menu:hover .dropdown-content,
.dropdown-menu.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--about-gray-dark);
    text-decoration: none;
    transition: var(--about-transition);
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-item:hover {
    background: var(--about-gray-light);
    color: var(--about-primary);
    border-left-color: var(--about-primary);
    padding-left: 2rem;
}

.dropdown-item.current {
    background: var(--about-primary);
    color: white;
    border-left-color: var(--about-secondary);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--about-secondary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--about-transition);
}

.dropdown-item:hover::before,
.dropdown-item.current::before {
    opacity: 1;
}

/* =============================================================================
   HERO SECTION POUR LES PAGES À PROPOS
   ============================================================================= */

.about-hero {
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-secondary) 100%);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.about-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.about-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--about-transition);
}

.about-breadcrumb a:hover {
    color: white;
}

.about-breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* =============================================================================
   CONTENU PRINCIPAL DES PAGES À PROPOS
   ============================================================================= */

.about-content-section {
    padding: 5rem 0;
    background: var(--about-gray-light);
}

.about-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--about-shadow);
    border: 1px solid var(--about-border);
    transition: var(--about-transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--about-shadow-hover);
}

.about-card h2 {
    color: var(--about-primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--about-primary), var(--about-secondary));
    border-radius: 2px;
}

.about-card h3 {
    color: var(--about-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.about-card p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--about-gray-dark);
}

.about-card ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.about-card li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--about-gray-dark);
}

.about-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--about-success);
    font-weight: bold;
    font-size: 1.1rem;
}

/* =============================================================================
   SECTION STATISTIQUES
   ============================================================================= */

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--about-gray-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--about-border);
    transition: var(--about-transition);
}

.stat-item:hover {
    border-color: var(--about-primary);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--about-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--about-gray-medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* =============================================================================
   ÉQUIPE SECTION
   ============================================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.team-member {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--about-shadow);
    border: 1px solid var(--about-border);
    transition: var(--about-transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--about-shadow-hover);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--about-border);
    transition: var(--about-transition);
}

.team-member:hover .member-photo {
    border-color: var(--about-primary);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    color: var(--about-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--about-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--about-gray-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =============================================================================
   PARTENAIRES SECTION
   ============================================================================= */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.partner-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--about-shadow);
    border: 1px solid var(--about-border);
    transition: var(--about-transition);
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--about-shadow-hover);
}

.partner-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--about-gray-light);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-name {
    color: var(--about-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.partner-type {
    color: var(--about-gray-medium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   SECTION TIMELINE
   ============================================================================= */

.timeline {
    position: relative;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--about-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--about-shadow);
    border: 1px solid var(--about-border);
    flex: 1;
    margin: 0 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: white;
}

.timeline-date {
    background: var(--about-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-title {
    color: var(--about-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--about-gray-medium);
    line-height: 1.6;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--about-secondary);
    border: 4px solid var(--about-primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* =============================================================================
   CALL TO ACTION
   ============================================================================= */

.about-cta {
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-secondary) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-cta-content {
    position: relative;
    z-index: 2;
}

.about-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: var(--about-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-primary {
    background: white;
    color: var(--about-primary);
}

.btn-cta-primary:hover {
    background: var(--about-gray-light);
    transform: translateY(-2px);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--about-primary);
    transform: translateY(-2px);
}

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

@media (max-width: 1024px) {
    .about-hero h1 {
        font-size: 2.8rem;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        display: none;
        width: 100%;
    }
    
    .dropdown-menu.mobile-active .dropdown-content {
        display: block;
    }
    
    .about-hero {
        padding: 4rem 0 3rem;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .about-content-wrapper {
        padding: 0 1rem;
    }
    
    .about-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }
    
    .about-breadcrumb {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .about-card h2 {
        font-size: 1.8rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
}

/* =============================================================================
   ANIMATIONS ET TRANSITIONS
   ============================================================================= */

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* =============================================================================
   UTILITAIRES SPÉCIFIQUES À LA SECTION À PROPOS
   ============================================================================= */

.about-text-center { text-align: center; }
.about-text-left { text-align: left; }
.about-text-right { text-align: right; }

.about-mb-1 { margin-bottom: 1rem; }
.about-mb-2 { margin-bottom: 2rem; }
.about-mb-3 { margin-bottom: 3rem; }
.about-mb-4 { margin-bottom: 4rem; }

.about-mt-1 { margin-top: 1rem; }
.about-mt-2 { margin-top: 2rem; }
.about-mt-3 { margin-top: 3rem; }
.about-mt-4 { margin-top: 4rem; }

.about-highlight {
    color: var(--about-secondary);
    font-weight: 600;
}

.about-quote {
    border-left: 4px solid var(--about-primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--about-gray-medium);
    background: var(--about-gray-light);
    padding: 2rem;
    border-radius: var(--radius-md);
}
