/* Styles pour la page Infrastructures & Projets */

:root {
    --primary-color: #1198D5; /* Resiwell Blue */
    --primary-color-dark: #0a7cb5;
    --primary-color-light: #e7f5fd;
    --primary-rgb: 17, 152, 213;
    --secondary-color: #20c997; /* Teal/Turquoise */
    --secondary-color-light: #e9f9f4;
    --secondary-rgb: 32, 201, 151;
    --accent-color: #fd7e14; /* Deep Orange */
    --accent-rgb: 253, 126, 20;
    --text-color: #343a40;
    --heading-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    --hover-shadow: 0 15px 35px rgba(var(--secondary-rgb), 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #17a27a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #e86a00 100%);
    --transition-speed: 0.5s;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base, Navbar & Footer Styles (Consistent) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.7; color: var(--text-color); background-color: var(--white); padding-top: 70px; overflow-x: hidden; }
.navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--white); z-index: 1030; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05); padding: 10px 0; transition: background-color 0.3s ease; }
.navbar-logo { height: 50px; margin: 0 auto; }
.navbar-nav { display: flex; align-items: center; justify-content: center; gap: 20px; }
.nav-item .nav-link { color: #333; font-size: 16px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; position: relative; transition: color 0.3s ease; padding: 0.5rem 0; }
.nav-item .nav-link:hover, .nav-item .nav-link.active { color: var(--primary-color); }
.nav-item .nav-link::after { content: ""; position: absolute; left: 0; bottom: 0px; width: 0; height: 3px; background-color: var(--primary-color); transition: width 0.3s ease; border-radius: 2px; }
.nav-item .nav-link:hover::after, .nav-item .nav-link.active::after { width: 100%; }
.social-icons { display: flex; align-items: center; gap: 15px; }
.social-icons a { color: #333; font-size: 1.5rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--primary-color); transform: scale(1.1); }
.footer-section { background-color: #212529; color: #adb5bd; padding: 70px 20px 30px; text-align: center; font-family: 'Montserrat', sans-serif; margin-top: 80px; }
.footer-content { display: flex; justify-content: space-around; align-items: flex-start; max-width: 1100px; margin: 0 auto 40px auto; flex-wrap: wrap; gap: 30px; text-align: left; }
.footer-logo { flex-basis: 150px; }
.footer-logo-img { max-width: 100%; margin-bottom: 15px; }
.footer-text { flex-basis: 300px; }
.footer-text h2 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; color: var(--white); }
.footer-text p { font-size: 0.95rem; line-height: 1.6; }
.footer-links { flex-basis: 180px; }
.footer-links h2 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; color: var(--white); }
.footer-links ul { list-style-type: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #adb5bd; font-size: 0.95rem; transition: color 0.3s, padding-left 0.3s ease; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-contact-info { flex-basis: 250px; }
.footer-contact-info h2 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; color: var(--white); }
.footer-contact-info p { font-size: 0.95rem; margin-bottom: 10px; }
.footer-contact-info a { color: #adb5bd; text-decoration: none; transition: color 0.3s; }
.footer-contact-info a:hover { color: var(--white); }
.footer-responsibility, .footer-bottom { font-size: 0.85rem; color: #6c757d; margin-top: 30px; border-top: 1px solid #343a40; padding-top: 20px; }
.footer-bottom p { margin: 0; }

/* --- Page Specific Styles: Infrastructures & Projets --- */

/* Hero Section - Sophisticated & Structural */
.infra-hero {
    padding: 160px 0 140px 0;
    background-color: var(--primary-color-light);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Animated background grid */
.infra-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(var(--primary-color) 1px, transparent 1px), 
        linear-gradient(to right, var(--primary-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.05;
    animation: panGrid 30s linear infinite;
}

@keyframes panGrid {
    0% { background-position: 0 0; }
    100% { background-position: 120px 60px; }
}

.infra-hero .container {
    position: relative; /* Ensure content is above pseudo-elements */
    z-index: 2;
}

.infra-hero h1 {
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: -1.5px;
}

.infra-hero p.lead {
    font-size: 1.6rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
    opacity: 0.9;
}

/* Breadcrumb */
.infra-breadcrumb {
    background-color: var(--white);
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px; /* Match body padding-top */
    z-index: 1020;
}
.infra-breadcrumb .breadcrumb { margin-bottom: 0; font-weight: 500; }
.infra-breadcrumb a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
.infra-breadcrumb a:hover { color: var(--primary-color-dark); }
.infra-breadcrumb .breadcrumb-item.active { color: var(--text-color); }

/* General Section Styling */
.infra-section {
    padding: 100px 0;
    position: relative;
}

.infra-section.bg-alt {
    background-color: var(--secondary-color-light);
}

.section-title-infra {
    font-size: 3rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title-infra::after {
    content: '';
    display: block;
    width: 90px;
    height: 5px;
    background: var(--gradient-accent);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Introduction Section */
.infra-intro p {
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.9;
    color: var(--text-color);
}

.btn-infra-details {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-speed) var(--ease-out-expo);
    box-shadow: 0 6px 18px rgba(var(--secondary-rgb), 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-infra-details .icon {
    margin-left: 8px;
    transition: transform var(--transition-speed) var(--ease-out-expo);
}

.btn-infra-details:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(var(--secondary-rgb), 0.3);
    color: white;
}

.btn-infra-details:hover .icon {
    transform: translateX(5px);
}

/* Modal Styling */
.modal-header {
    background: var(--gradient-secondary);
    color: white;
    border-bottom: none;
}
.modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.modal-title { font-weight: 600; font-size: 1.4rem; }
.modal-body ul { list-style: none; padding-left: 0; margin-top: 1.5rem; }
.modal-body li { display: flex; align-items: flex-start; margin-bottom: 1.2rem; font-size: 1.1rem; line-height: 1.7; }
.modal-body li i { color: var(--secondary-color); margin-right: 15px; margin-top: 5px; font-size: 1.4rem; flex-shrink: 0; }
.modal-footer { border-top: 1px solid var(--border-color); }

/* Service Offerings - Advanced Cards */
.infra-offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 60px;
}

.infra-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.infra-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.infra-card-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.8rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.15);
    transition: all var(--transition-speed) var(--ease-out-expo);
    position: relative;
    z-index: 1;
}

.infra-card:hover .infra-card-icon {
    transform: scale(1.15) rotateY(180deg);
    background: var(--gradient-accent);
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.25);
}

.infra-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.infra-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* Subtle background lines */
.infra-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px;
    height: 150px;
    background-image: 
        linear-gradient(rgba(var(--secondary-rgb), 0.1) 1px, transparent 1px), 
        linear-gradient(to right, rgba(var(--secondary-rgb), 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity var(--transition-speed) var(--ease-out-expo);
    z-index: 0;
}

.infra-card:hover::before {
    opacity: 1;
}

/* CTA Section */
.infra-cta {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* CTA background effect */
.infra-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 1s var(--ease-out-expo), height 1s var(--ease-out-expo), opacity 1s var(--ease-out-expo);
    opacity: 0;
    z-index: 0;
}

.infra-cta:hover::before {
    width: 150%;
    height: 300%; /* Elliptical shape */
    opacity: 1;
}

.infra-cta .container {
    position: relative;
    z-index: 1;
}

.infra-cta h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.infra-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

.btn-contact-infra {
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-speed) var(--ease-out-expo);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
    text-decoration: none;
}

.btn-contact-infra:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.4);
    color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    body { padding-top: 60px; }
    .infra-hero h1 { font-size: 3.5rem; }
    .infra-hero p.lead { font-size: 1.4rem; }
    .section-title-infra { font-size: 2.6rem; }
    .infra-offerings-grid { gap: 2.5rem; }
    .navbar { padding: 8px 0; }
    .footer-content { justify-content: center; gap: 40px; }
    .footer-logo, .footer-text, .footer-links, .footer-contact-info { flex-basis: 45%; text-align: center; }
    .footer-logo { margin-bottom: 0; }
}

@media (max-width: 768px) {
    body { padding-top: 56px; }
    .infra-hero { padding: 120px 0 100px 0; }
    .infra-hero h1 { font-size: 3rem; }
    .infra-hero p.lead { font-size: 1.2rem; }
    .section-title-infra { font-size: 2.3rem; }
    .infra-intro p { font-size: 1.1rem; }
    .infra-offerings-grid { grid-template-columns: 1fr; gap: 2rem; }
    .infra-card { padding: 2rem; }
    .navbar-nav { flex-direction: column; gap: 10px; background: white; padding: 1rem 0; }
    .social-icons { margin-top: 15px; }
    .footer-content { flex-direction: column; align-items: center; }
    .footer-logo, .footer-text, .footer-links, .footer-contact-info { flex-basis: 100%; max-width: 350px; }
}

@media (max-width: 576px) {
    .infra-hero h1 { font-size: 2.5rem; }
    .infra-hero p.lead { font-size: 1.1rem; }
    .section-title-infra { font-size: 2rem; }
    .infra-card { padding: 2rem 1.5rem; }
    .infra-card-icon { width: 60px; height: 60px; font-size: 2rem; }
    .infra-card h3 { font-size: 1.3rem; }
    .infra-cta h3 { font-size: 2.2rem; }
    .infra-cta p { font-size: 1.1rem; }
    .btn-contact-infra, .btn-infra-details { font-size: 1rem; padding: 12px 30px; }
} 