/* Styles pour la page Recherche & Innovation */

:root {
    --primary-color: #1198D5; /* Resiwell Blue */
    --primary-color-light: #e7f5fd;
    --primary-rgb: 17, 152, 213;
    --secondary-color: #6c757d; /* Neutral Gray */
    --secondary-color-light: #f8f9fa;
    --secondary-rgb: 108, 117, 125;
    --accent-color: #ffc107; /* Amber accent */
    --accent-rgb: 255, 193, 7;
    --text-color: #343a40;
    --heading-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 6px 12px rgba(0, 0, 0, 0.07);
    --hover-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #0a7cb5 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ffae00 100%);
}

/* --- Base, Navbar & Footer Styles (Consistent across pages) --- */
* {
    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; /* Adjust if navbar height changes */
}

/* Navbar Styles (Copied for consistency) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    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 Styles (Copied for consistency) */
.footer-section {
    background-color: #212529; /* Darker footer */
    color: #adb5bd;
    padding: 70px 20px 30px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-around; /* Better distribution */
    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 { /* Changed from form */
    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: Recherche & Innovation --- */

/* Enhanced Hero Section */
.research-hero {
    padding: 140px 0 100px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.research-hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(30px);
    animation: float 8s ease-in-out infinite alternate;
}

.research-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 45%;
    opacity: 0.6;
    filter: blur(40px);
    animation: float 12s ease-in-out 1s infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

.research-hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative; /* for z-index */
    z-index: 2;
}

.research-hero p.lead {
    font-size: 1.4rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.research-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;
}

.research-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-weight: 500;
}

.research-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.research-breadcrumb a:hover {
    color: #0a7cb5;
}

.research-breadcrumb .breadcrumb-item.active {
    color: var(--text-color);
}

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

.research-section.bg-gradient {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-color-light) 100%);
}

.research-section.bg-light {
     background-color: var(--light-bg);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Introduction Section */
.intro-section p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
    line-height: 1.8;
}

.btn-learn-more {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
}

.btn-learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    background-position: right center; /* change the direction of the change here */
    color: white;
}

/* Modal Styling */
.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.modal-title {
    font-weight: 600;
}
.modal-body ul {
    list-style: none;
    padding-left: 0;
}
.modal-body li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.modal-body li i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Key Focus Areas Section */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 40px;
}

.focus-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 160px;
    height: 160px;
    background: var(--primary-color-light);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    z-index: 0;
}

.focus-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover-shadow);
}

.focus-card:hover::before {
    opacity: 0.7;
    transform: scale(1);
}

.focus-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 15px rgba(var(--accent-rgb), 0.2);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.focus-card:hover .focus-icon {
    transform: scale(1.1) rotate(-5deg);
}

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

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

/* CTA Section */
.research-cta {
    padding: 80px 0;
    background-color: var(--secondary-color-light);
    text-align: center;
}

.research-cta h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.research-cta p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    color: var(--text-color);
}

.btn-contact-research {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
    text-decoration: none;
}

.btn-contact-research:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    background-position: right center;
    color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    body {
        padding-top: 60px; /* Adjust if mobile navbar is smaller */
    }
    .research-hero h1 {
        font-size: 3rem;
    }
    .research-hero p.lead {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.4rem;
    }
    .focus-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    .navbar {
        padding: 8px 0; /* Slightly smaller padding */
    }
    .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; /* Further adjust if needed */
    }
    .research-hero {
        padding: 100px 0 70px 0;
    }
    .research-hero h1 {
        font-size: 2.5rem;
    }
    .research-hero p.lead {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .intro-section p {
        font-size: 1.05rem;
    }
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .navbar-nav {
        flex-direction: column;
        gap: 10px;
        background: white;
        padding: 1rem 0; /* Add padding when collapsed */
    }
    .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) {
    .research-hero h1 {
        font-size: 2.2rem;
    }
    .research-hero p.lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
     .focus-card {
        padding: 2rem 1.5rem;
    }
    .research-cta h3 {
        font-size: 1.8rem;
    }
    .research-cta p {
        font-size: 1rem;
    }
} 