@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00599e;
    --dark-blue: #004c8c;
    --light-gray: #f7f7f7;
    --text-color: #3a3a3a;
    --headings-color: #004c8c;
    --white-color: #ffffff;
    --font-sans-serif: 'Poppins', sans-serif;
    --font-headings: 'Oswald', sans-serif;
    --h1-font-size: 4.2rem;
    --h2-font-size: 3.5rem;
    --h3-font-size: 1.8rem;
    --h4-font-size: 1.6rem;
    --p-font-size: 1rem;
    --line-height-base: 1.8;
    --line-height-heading: 1.3;
}

/* General Body Styles */
body {
    font-family: var(--font-sans-serif);
    margin: 0;
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: var(--line-height-base);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--headings-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: var(--line-height-heading);
}

h1 { font-size: var(--h1-font-size); }
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }
h4 { font-size: var(--h4-font-size); }
p { font-size: var(--p-font-size); margin-bottom: 1rem; }

.content-width {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Header */
.top-bar {
    height: 60px;
    width: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info i {
    margin-right: 8px;
    color: var(--primary-color);
}

.menu-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.main-menu {
    height: auto;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
}

.main-menu.scrolled {
    height: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-menu .logo {
    height: 100%;
    display: flex;
    align-items: center;
    margin: 15px 0 20px 0;
}

.main-menu .logo img {
    height: 100px;
    transition: height 0.3s ease-in-out;
}

.main-menu.scrolled .logo img {
    height: 70px;
}

.main-menu .nav-link {
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-menu .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.main-menu .nav-link:not(.active):hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    background: url('cover.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 76, 140, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: var(--h1-font-size);
    margin: 0;
    text-transform: uppercase;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 300;
}

/* About Us Section */
.about-us {
    text-align: center;
    max-width: 900px;
}

/* Commitment Section */
.commitment {
    background-color: var(--light-gray);
    text-align: center;
}

.commitment-content {
    max-width: 900px;
}

.commitment h2 {
    color: var(--text-color);
}

.action-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 18px 35px;
    margin-top: 20px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    letter-spacing: 1px;
}

.action-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.service-block {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-block i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Values Section */
.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.value-block {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Skills Section */
.skills-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 40px;
}

.skills-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.skills-list i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.gallery a {
    display: block;
    overflow: hidden;
    position: relative;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery a:hover img {
    transform: scale(1.1);
}

/* History Section */
.history-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.history-content img {
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.history-text p:last-child {
    margin-bottom: 0;
}

/* Mission & Vision Section */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    background-color: var(--light-gray);
    padding: 60px;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white-color);
    text-align: center;
    padding: 50px 20px;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 20px;
}

.footer-info p {
    margin: 0;
}

.footer-info a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #99c4e5;
}

.copyright a {
    color: var(--white-color);
    text-decoration: none;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 80px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .history-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .history-content img {
        margin-bottom: 30px;
        max-width: 80%;
    }
}

@media (max-width: 750px) {
    .nav-links {
        gap: 1.5rem;
    }


    .main-menu {
        padding: 0 20px;
    }

    .main-menu .logo {
        position: static;
        transform: none;
        order: -1;
    }

    .main-menu {
        flex-direction: column;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.3rem; }
    .services, .values, .mission-vision, .expertise-details, .savoir-section, .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }


    .skills-list {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-bar {
        height: auto;
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
    .gallery {
        grid-template-columns: 1fr;
    }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================= */
/* ========== STYLES FOR SERVICES.HTML ========= */
/* ============================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services-grid .service-block {
    text-align: left;
}

.expertise-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    color: var(--white-color);
    text-align: left;
}
.expertise-block {
    padding: 60px 40px;
}
.expertise-block h3 {
    color: var(--white-color);
    font-size: 2rem;
}
.expertise-block p {
    color: #b4d8f4;
}
.expertise-number {
    font-size: 5rem;
    font-weight: bold;
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}
.expertise-1 { background-color: #004c8c; }
.expertise-2 { background-color: #00599e; }
.expertise-3 { background-color: #0063a8; }


.savoir-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.savoir-title h2 {
    font-size: 4rem;
}

.gypse-cta {
    background-color: var(--light-gray);
    text-align: center;
}

.gypse-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gypse-cta-content ul {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
    display: inline-block;
}
.gypse-cta-content ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}
.gypse-cta-content ul i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.gypse-cta-content .list-item-text {
    display: flex;
    flex-direction: column;
}

.gypse-cta-content .list-item-text span {
    font-size: var(--p-font-size);
    font-weight: 400;
}


/* Responsive Design */

@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .content-width { padding: 60px 20px; }


    .services, .values, .mission-vision, .expertise-details, .savoir-section {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-list {
        column-count: 1;
    }

    .footer-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: auto;
        padding: 15px 0;
    }
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .hero {
        height: 300px;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}