/* --- VARIABLES & RESET --- */
:root {
    --primary-blue: #244b9a;
    --accent-gray: #828282;
    --bg-light: #f9f9f9;
    --text-dark: #222;
    --text-gray: #666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

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

ul { 
    list-style: none; 
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { 
    padding: 80px 0; 
}

.text-center { 
    text-align: center; 
}

/* --- BOUTONS --- */
.btn-gray {
    background-color: var(--accent-gray);
    color: white;
    padding: 12px 30px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-gray:hover { 
    background-color: #6a6a6a; 
}

.btn-dark {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: #1a3870;
}

.btn-circle {
    width: 30px; 
    height: 30px; 
    border: 1px solid white; 
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-circle:hover {
    background-color: white;
    color: var(--accent-gray);
}

/* --- TYPOGRAPHIE SPÉCIFIQUE --- */
.section-subtitle {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gray);
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--accent-gray);
}

.section-subtitle.light { 
    color: #fff; 
}

.section-subtitle.light::before { 
    background-color: #fff; 
}

.text-center .section-subtitle {
    padding-left: 0;
    display: inline-block;
}

.text-center .section-subtitle::before { 
    display: none; 
}

.text-center .section-subtitle::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--accent-gray);
    margin: 5px auto 0;
}

h2 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--primary-blue);
    color: white;
    position: relative;
    padding-bottom: 50px;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 700; 
    font-family: var(--font-heading); 
    font-size: 1.2rem; 
}

.logo img { 
    height: 50px; 
}

.nav-links { 
    display: flex; 
    gap: 30px; 
}

.nav-links a { 
    font-size: 0.75rem; 
    letter-spacing: 1px; 
    color: #ddd; 
    font-weight: 700; 
}

.nav-links a:hover { 
    color: var(--accent-gray); 
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
}

.hero-text { 
    flex: 1; 
    padding-right: 50px; 
    z-index: 2; 
}

.hero-subtitle { 
    color: var(--accent-gray); 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
    display: block; 
    margin-bottom: 15px; 
}

.hero-text h1 { 
    color: white; 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
}

.hero-text p { 
    color: #ccc; 
    font-size: 1rem; 
    margin-bottom: 30px; 
    max-width: 500px; 
}

.hero-image-wrapper {
    flex: 1.2;
    position: relative;
}

.hero-image-wrapper img {
    border-radius: 40% 0 0 40%;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.1);
}

/* --- SECTION À PROPOS --- */
.about { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
}

.about-images { 
    flex: 1; 
    position: relative; 
    height: 500px; 
}

.about-text { 
    flex: 1; 
}

.img-large { 
    width: 80%; 
    height: 90%; 
    overflow: hidden; 
    border-radius: 10px; 
}

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

.img-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
}

.overlay-card {
    background-color: var(--accent-gray);
    padding: 20px;
    color: white;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.img-overlay img { 
    width: 160px; 
    height: 160px; 
    object-fit: cover; 
    border-radius: 0 10px 10px 10px; 
}

/* --- SECTION SERVICES --- */
.services { 
    background-color: #fff; 
}

.services .intro-p { 
    max-width: 700px; 
    margin: 0 auto 50px auto; 
    color: var(--text-gray); 
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    width: 350px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}

.card-body { 
    padding: 25px; 
    padding-bottom: 50px; 
}

.card-body h3 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
}

.card-body p { 
    font-size: 0.9rem; 
    color: var(--text-gray); 
}

.card-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: #f4f4f4;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.card-icon.gray-bg { 
    background-color: var(--accent-gray); 
}

.card-icon img { 
    width: 20px; 
    height: 20px; 
    object-fit: contain; 
}

/* --- POURQUOI NOUS CHOISIR --- */
.why-us { 
    display: flex; 
    gap: 50px; 
    align-items: center; 
}

.why-text { 
    flex: 1; 
}

.why-img-wrapper { 
    flex: 1; 
    position: relative; 
}

.why-img-wrapper img { 
    width: 100%; 
    border-radius: 5px; 
}

.badge-years {
    position: absolute;
    top: 30px; 
    left: -30px;
    background-color: var(--primary-blue);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.badge-years strong { 
    font-size: 1.8rem; 
    color: var(--accent-gray); 
    display: block; 
    font-family: var(--font-heading); 
}

/* --- NOS ATOUTS --- */
.strengths-content { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
    margin-top: 40px; 
}

.strengths-img { 
    flex: 1; 
}

.strengths-img img {
    border-radius: 5px;
}

.strengths-list { 
    flex: 1; 
}

.strengths-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
    border-left: 3px solid var(--accent-gray);
    font-size: 0.95rem;
}

/* --- TÉMOIGNAGES --- */
.dark-bg { 
    background-color: var(--primary-blue); 
    color: white; 
}

.quote-icon { 
    font-size: 3rem; 
    color: var(--accent-gray); 
    margin-bottom: 20px; 
    opacity: 0.5; 
}

.testimonial-text { 
    font-size: 1.2rem; 
    font-style: italic; 
    max-width: 800px; 
    margin: 0 auto 30px; 
    font-family: var(--font-heading); 
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 30px; 
}

.testimonial-author img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid var(--accent-gray); 
}

.author-details { 
    text-align: left; 
}

.author-details strong { 
    display: block; 
    color: var(--accent-gray); 
    font-size: 0.9rem; 
}

.author-details span { 
    font-size: 0.8rem; 
    opacity: 0.7; 
}

.slider-nav i { 
    color: white; 
    margin: 0 10px; 
    cursor: pointer; 
    opacity: 0.5; 
    transition: 0.3s; 
}

.slider-nav i:hover { 
    opacity: 1; 
    color: var(--accent-gray); 
}

/* --- FAISONS CONNAISSANCE --- */
.know-us { 
    display: flex; 
    gap: 50px; 
}

.know-text { 
    flex: 1; 
}

.know-images { 
    flex: 1; 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

.know-images img { 
    width: 50%; 
    border-radius: 5px; 
}

.know-images img:nth-child(2) { 
    margin-top: 50px; 
}

/* --- NOTRE HISTOIRE --- */
.history-banner {
    background-image: url('../img/infrastructure-moderne.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

.history-banner::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.history-content { 
    position: relative; 
    z-index: 1; 
    display: flex; 
    justify-content: flex-end; 
}

.history-text-block {
    width: 50%;
    color: white;
}

.history-text-block h2 { 
    color: white; 
}

/* --- FAQ & APPROCHE --- */
.faq-approach { 
    padding-bottom: 0; 
}

.faq-section { 
    display: flex; 
    gap: 50px; 
    margin-bottom: 80px; 
}

.faq-intro { 
    flex: 1; 
}

.accordion { 
    flex: 1.2; 
}

.accordion-item { 
    margin-bottom: 15px; 
    border-bottom: 1px solid #eee; 
}

.accordion-header {
    padding: 15px 0; 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary-blue);
}

.accordion-body { 
    display: none; 
    padding-bottom: 15px; 
    font-size: 0.9rem; 
    color: #666; 
}

.accordion-item.active .accordion-body { 
    display: block; 
}

.accordion-item.active .accordion-header { 
    color: var(--accent-gray); 
}

.accordion-item.active .accordion-header i { 
    transform: rotate(180deg); 
}

.accordion-header i {
    transition: transform 0.3s ease;
}

/* --- APPROCHE SPLIT --- */
.approach-split { 
    display: flex; 
    gap: 50px; 
    align-items: center; 
}

.approach-img { 
    flex: 1; 
    position: relative; 
}

.approach-img img { 
    width: 100%; 
    border-radius: 5px; 
}

.badge-dark-box {
    position: absolute; 
    bottom: 30px; 
    left: 30px;
    background: rgba(36, 75, 154, 0.9);
    padding: 20px; 
    color: white; 
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
}

.badge-dark-box strong { 
    display: block; 
    font-size: 2rem; 
    font-family: var(--font-heading); 
}

.approach-text { 
    flex: 1; 
}

.text-block-mb { 
    margin-bottom: 30px; 
}

.text-block-mb h3 { 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
}

/* --- CONTACT --- */
.contact-section { 
    display: flex; 
    gap: 40px; 
    background-color: #fcfcfc; 
}

.contact-form-wrapper { 
    flex: 1; 
}

.contact-form {
    margin-top: 30px;
}

.form-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 15px; 
}

input, textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea { 
    resize: vertical; 
}

.full-width {
    width: 100%;
}

.map-wrapper { 
    flex: 1; 
    position: relative; 
}

.map-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 5px;
}

.map-info-box {
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    right: 20px;
    background: var(--primary-blue); 
    color: white;
    padding: 20px; 
    display: flex; 
    gap: 20px; 
    font-size: 0.85rem;
    border-radius: 5px;
}

.info-item strong { 
    color: var(--accent-gray); 
    display: block; 
    margin-bottom: 5px; 
}

/* --- FOOTER --- */
.main-footer { 
    background-color: #1a1a1a; 
    color: #aaa; 
    padding-top: 60px; 
}

.footer-grid { 
    display: flex; 
    gap: 40px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid #3d3d3d; 
}

.footer-col { 
    flex: 1; 
}

.logo-col img { 
    margin-bottom: 20px; 
    max-width: 150px;
}

.footer-col h4 { 
    color: white; 
    font-size: 1rem; 
    margin-bottom: 20px; 
    position: relative; 
    display: inline-block; 
}

.footer-col h4::after { 
    content: ''; 
    display: block; 
    width: 20px; 
    height: 2px; 
    background: var(--accent-gray); 
    margin-top: 5px; 
}

.footer-col ul li { 
    margin-bottom: 10px; 
}

.footer-col ul li a {
    transition: all 0.3s ease;
}

.footer-col ul li a:hover { 
    color: white; 
    padding-left: 5px; 
}

.social-icon { 
    display: inline-block; 
    width: 35px; 
    height: 35px; 
    background: var(--accent-gray); 
    color: white;
    text-align: center; 
    line-height: 35px; 
    border-radius: 50%; 
    margin-top: 15px; 
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.sub-footer { 
    text-align: center; 
    padding: 20px 0; 
    font-size: 0.8rem; 
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .menu-toggle { 
        display: flex; 
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-blue);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content { 
        flex-direction: column-reverse; 
    }
    
    .hero-image-wrapper img { 
        border-radius: 0; 
        height: 300px; 
        margin-bottom: 30px; 
    }
    
    .hero-text { 
        padding-right: 0; 
        text-align: center; 
    }
    
    .hero-text h1 { 
        font-size: 2.5rem; 
    }
    
    .about, 
    .why-us, 
    .strengths-content, 
    .know-us, 
    .faq-section, 
    .approach-split, 
    .contact-section, 
    .footer-grid {
        flex-direction: column;
    }
    
    .img-overlay { 
        position: static; 
        margin-top: -50px; 
        justify-content: flex-end; 
    }
    
    .img-large { 
        width: 100%; 
    }
    
    .history-text-block { 
        width: 100%; 
        text-align: center; 
    }
    
    .badge-years { 
        left: 10px; 
        top: 10px; 
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .know-images {
        flex-direction: column;
    }

    .know-images img {
        width: 100%;
    }

    .know-images img:nth-child(2) {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .badge-years {
        font-size: 0.65rem;
        padding: 15px;
    }

    .badge-years strong {
        font-size: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .map-info-box {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- CONTACT INFO --- */
.contact-info-wrapper {
    flex: 1;
}

.contact-info-box {
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-block i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-block strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.info-block p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 3px 0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.info-block .social-icon {
    margin: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
}

/* Responsive pour la section contact */
@media (max-width: 900px) {
    .contact-info-box {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .info-block {
        padding-bottom: 20px;
    }
}