/* ==========================================
   ABOUT.CSS - Page À propos
   ========================================== */

/* Page Header avec effet brillant */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Content Section */
.content-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.content-main h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 1rem;
}

.content-main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    border-radius: 2px;
}

.content-main p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--dark-gray);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.content-main p:nth-child(2) { animation-delay: 0.1s; }
.content-main p:nth-child(3) { animation-delay: 0.2s; }
.content-main p:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    transition: var(--transition-normal);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.2);
}

.info-box h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    border-radius: 2px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.info-list li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Missions Section */
.missions-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    background-size: 200% 200%;
    animation: gradientShiftSubtle 10s ease infinite;
    position: relative;
}

@keyframes gradientShiftSubtle {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.mission-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.08), transparent);
    transition: left 0.6s ease;
}

.mission-card:hover::before {
    left: 100%;
}

.mission-card:hover {
    box-shadow: 0 15px 50px rgba(30, 58, 138, 0.25);
    transform: translateY(-8px);
    border-top-width: 6px;
}

.mission-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: var(--spacing-xs);
    transition: opacity 0.3s ease;
}

.mission-card:hover .mission-number {
    opacity: 0.5;
}

.mission-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.mission-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Values Detail Section */
.values-detail-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.values-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.value-detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 1) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
    position: relative;
    overflow: hidden;
}

.value-detail-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-detail-card:hover::before {
    opacity: 1;
}

.value-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.25);
    transform: translateY(-10px) scale(1.03);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
    transition: all 0.4s ease;
    display: inline-block;
}

.value-detail-card:hover .value-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 8px 16px rgba(30, 58, 138, 0.4));
}

.value-detail-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.value-detail-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Hierarchy Section */
.hierarchy-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.hierarchy-section .section-title {
    color: var(--white);
}

.hierarchy-section .section-title::after {
    background: var(--accent-color);
}

.hierarchy-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hierarchy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.rank-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.rank-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.rank-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: badgeShine 3s ease-in-out infinite;
    position: relative;
}

@keyframes badgeShine {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(251, 191, 36, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    }
}

.rank-badge.silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #e2e8f0 100%);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #f59e0b 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rank-badge.basic {
    background: linear-gradient(135deg, #64748b 0%, #475569 50%, #64748b 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rank-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.rank-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.rank-card li {
    padding-left: var(--spacing-sm);
    position: relative;
}

.rank-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* History Section */
.history-section {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
}

.timeline {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: slideInTimeline 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.2), 0 4px 12px rgba(30, 58, 138, 0.4);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(30, 58, 138, 0.3), 0 6px 20px rgba(30, 58, 138, 0.6);
}

.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content::before {
    transform: scaleY(1);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.2);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .hierarchy-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 6px;
    }
}
