
body {
    font-family: var(--sfe-font-primary);
    background-color: var(--fond-principal);
    color: var(--texte-principal);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: var(--sfe-font-headings);
    color: var(--couleur-principale);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--couleur-secondaire);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* --- ANIMATION --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animation for grid items */
.values-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.values-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.timeline .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.timeline .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.timeline .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- HEADER / HERO SECTION --- */
.about-hero {
    background: linear-gradient(rgba(30, 58, 95, 0.15), rgba(30, 58, 95, 0.15)), url("https://fourtech-dz.com/wp-content/uploads/2025/06/bck25751.png") no-repeat center center/cover;
    color: var(--couleur-texte-sur-principale);
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.about-hero h1 {
    color: var(--couleur-texte-sur-principale);
    font-size: 3.5rem;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* --- MISSION SECTION --- */
.mission-section {
    padding: 5rem 0;
    
    background-color: var(--fond-principal);
}

.grid-2-col {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.mission-text h3 {
    font-size: 1.8rem;
    color: var(--couleur-secondaire);
}

.mission-image img {
    border-radius: var(--rayon-bordure);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- VALUES SECTION --- */
.values-section {
    padding: 5rem 0;
    background-color: var(--sfe-background-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-card {
    background: var(--fond-principal);
    padding: 2.5rem 2rem;
    border-radius: var(--rayon-bordure);
    border: 1px solid var(--couleur-bordure);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 58, 95, 0.1);
}

.value-card i {
    font-size: 3rem;
    color: var(--couleur-secondaire);
    margin-bottom: 1.5rem;
}

.value-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- HISTORY / TIMELINE SECTION --- */
.history-section {
    padding: 5rem 0;
}
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--couleur-bordure);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--couleur-secondaire);
    border: 4px solid var(--sfe-background-light);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--sfe-background-light);
    position: relative;
    border-radius: var(--rayon-bordure);
    border: 1px solid var(--couleur-bordure);
}

.timeline-year {
    font-weight: bold;
    color: var(--couleur-secondaire);
    display: block;
    margin-bottom: 0.5rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--couleur-principale);
    color: var(--couleur-texte-sur-principale);
    text-align: center;
    padding: 4rem 1.5rem;
}
.cta-section h2 {
    color: var(--couleur-texte-sur-principale);
    font-size: 2.2rem;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--rayon-bordure);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-secondary {
    background-color: var(--couleur-secondaire);
    color: var(--couleur-texte-sur-secondaire);
}
.btn-secondary:hover {
    background-color: #ffb733; /* A slightly lighter shade of orange */
    transform: translateY(-3px);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .about-hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .mission-image {
        order: -1; /* Puts image on top on mobile */
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item::after {
        left: 21px;
    }
}

@media (max-width: 576px) {
    .about-hero h1 { font-size: 2.2rem; }
    .about-hero p { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
}