/* About Page Specific Styles */

/* Hero Section */
.about-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.about-hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><polygon fill="rgba(255,255,255,0.05)" points="0,800 0,0 1200,0 1200,800"/><circle fill="rgba(255,255,255,0.03)" cx="600" cy="400" r="300"/></svg>');
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: white !important;
}

.about-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: white !important;
}

.hero-scroll-indicator {
    margin-top: 50px;
}

.scroll-to-content {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    display: inline-block;
    padding: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Badge */
.section-badge {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

/* About Sections */
.about-section, .mission-section, .values-section, .vision-section {
    padding: 100px 0;
}

.about-section {
    background: white;
}

.mission-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f5ff 100%);
}

.values-section {
    background: white;
}

.vision-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* About Content */
.about-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.9rem;
}

.achievement-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.achievement-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* About Image */
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 92, 202, 0.9), rgba(46, 134, 193, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.about-image:hover img {
    transform: scale(1.05);
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.overlay-content h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Mission Features */
.mission-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(33, 92, 202, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(33, 92, 202, 0.2);
    transform: translateX(10px);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 600;
    color: var(--dark);
}

/* Values Section */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top-color: var(--primary);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Vision Section */
.vision-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white !important;
}

.vision-statement {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
    color: white !important;
}

.vision-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
    color: white !important;
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.pillar-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.pillar-item h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: white !important;
}

.pillar-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
    color: white !important;
}

/* Ouvrages Section */
.ouvrages-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f5ff 100%);
    padding: 100px 0;
}

.ouvrage-card {
    cursor: pointer;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.ouvrage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.ouvrage-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.ouvrage-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ouvrage-card:hover .ouvrage-cover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* CTA Section */
.about-cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a252f 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-hero-title {
        font-size: 3rem;
    }
    
    .about-content h2 {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .vision-content h2 {
        font-size: 2.4rem;
    }
    
    .achievement-content h4 {
        font-size: 1.6rem;
    }
    
    .ouvrages-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 150px 0 80px;
    }
    
    .about-hero-title {
        font-size: 2.5rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-section, .mission-section, .values-section, .vision-section {
        padding: 80px 0;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .vision-content h2 {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-content h4 {
        font-size: 1.8rem;
    }
    
    .vision-pillars {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .ouvrages-section {
        padding: 60px 0;
    }
    
    /* Lightbox responsive */
    .lightbox-prev,
    .lightbox-next {
        padding: 12px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    #lightbox-caption {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-hero-title {
        font-size: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .vision-content h2 {
        font-size: 1.8rem;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .achievement-content h4 {
        font-size: 1.6rem;
    }
    
    /* Lightbox mobile */
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 8px;
        font-size: 18px;
        width: 35px;
        height: 35px;
    }
    
    .lightbox-close {
        top: 5px;
        right: 10px;
        font-size: 25px;
    }
}

/* Animation pour les éléments qui apparaissent */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délais d'animation pour les cartes ouvrages */
.ouvrage-card:nth-child(1) { animation-delay: 0.1s; }
.ouvrage-card:nth-child(2) { animation-delay: 0.2s; }
.ouvrage-card:nth-child(3) { animation-delay: 0.3s; }
.ouvrage-card:nth-child(4) { animation-delay: 0.4s; }
.ouvrage-card:nth-child(5) { animation-delay: 0.5s; }
.ouvrage-card:nth-child(6) { animation-delay: 0.6s; }
.ouvrage-card:nth-child(7) { animation-delay: 0.7s; }