:root {
    --primary-blue: #003366;
    --secondary-blue: #005b96;
    --accent-gold: #ac8235;
    --light-blue: #e8f4ff;
    --light-bg: #f8fafc;
    --text-dark: #1a2b4c;
    --text-grey: #5a6c7d;
    --white: #ffffff;
    --shadow: 0 15px 40px rgba(0, 51, 102, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, .nav-links a { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
}
a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}
ul { list-style: none; }

header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 85px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container { 
    height: 100%; 
    display: flex; 
    align-items: center; 
    padding: 10px 0;
}

.logo-img { 
    max-height: 65px; 
    width: auto; 
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links { 
    display: flex; 
    gap: 35px; 
    align-items: center; 
}

.nav-links a { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: var(--text-dark); 
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-links a:not(.btn-header)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border-radius: 2px;
}

.nav-links a:not(.btn-header):hover::after { 
    width: 100%; 
}

.btn-header {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 70px;       
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 10px solid var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.15);
}

.btn-header::before {
    content: '';
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-header:hover::before {
    left: 0;
}

.btn-header:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 95vh;
    min-height: 700px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('photo/batiment_aube_rouge.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 85px;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    padding: 0 20px; 
    max-width: 1000px; 
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.8;
}


.hero-btns { 
    display: flex; 
    gap: 25px; 
    justify-content: center; 
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue));
    color: var(--white);
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    left: 0;
}

.btn-hero:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.4);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    padding: 16px 45px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
}

.btn-hero-outline:hover { 
    background: rgba(255, 255, 255, 0.2); 
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

section { 
    padding: 100px 5%; 
    position: relative;
}

.section-title { 
    text-align: center; 
    margin-bottom: 80px; 
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold));
    border-radius: 2px;
}

.section-title p { 
    color: var(--text-grey); 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin: 25px auto 0;
    line-height: 1.6;
}

.values-section { 
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 91, 150, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.value-card {
    text-align: center;
    padding: 45px 30px;
    background: var(--white);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(0, 51, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    border-color: transparent;
    transform: translateY(-10px);
}

.icon-box {
    width: 90px; 
    height: 90px;
    background: linear-gradient(135deg, var(--light-blue), #d4e7ff);
    color: var(--primary-blue);
    border-radius: 20px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
    transition: var(--transition);
}

.value-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.value-card h3 { 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
    font-size: 1.4rem; 
    position: relative;
    padding-bottom: 10px;
}

.value-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
}

.value-card p { 
    font-size: 1rem; 
    color: var(--text-grey); 
    line-height: 1.7;
}

.services { 
    background-color: var(--white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    padding: 50px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 51, 102, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.15);
}

.service-icon { 
    font-size: 2.8rem; 
    color: var(--secondary-blue); 
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--primary-blue);
    transform: scale(1.2);
}

.service-card h3 { 
    margin-bottom: 20px; 
    color: var(--primary-blue); 
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.service-card p { 
    color: var(--text-grey); 
    font-size: 1.05rem; 
    line-height: 1.8;
}

.about { 
    background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-text { 
    flex: 1; 
    min-width: 300px; 
    padding-right: 20px;
}

.about-text h3 { 
    color: var(--primary-blue); 
    margin-bottom: 30px; 
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold));
    border-radius: 2px;
}

.intro-text { 
    font-size: 1.2rem; 
    color: var(--text-dark); 
    margin-bottom: 25px; 
    line-height: 1.8;
    font-weight: 500;
}

.about-text p { 
    margin-bottom: 25px; 
    color: var(--text-grey); 
    line-height: 1.8;
    font-size: 1.05rem;
}

.director-card {
    flex: 0 0 380px;
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 51, 102, 0.18);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.director-photo-frame {
    width: 160px; 
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
}

.director-photo-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold));
    z-index: -1;
    opacity: 0.3;
}

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

.director-photo-frame:hover .director-img {
    transform: scale(1.1);
}

.director-info h4 { 
    font-size: 1.5rem; 
    color: var(--primary-blue); 
    margin-bottom: 10px; 
}

.role { 
    font-size: 1rem; 
    color: var(--secondary-blue); 
    font-weight: 600; 
    display: block; 
    line-height: 1.5;
    margin-bottom: 20px;
}

.divider-small {
    width: 60px; 
    height: 3px; 
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold)); 
    border: none; 
    margin: 25px auto;
    border-radius: 2px;
}

.director-quote { 
    font-style: italic; 
    color: var(--text-grey); 
    font-size: 1.05rem; 
    line-height: 1.7;
    padding: 0 10px;
    position: relative;
}

.director-quote::before,
.director-quote::after {
    content: '"';
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    opacity: 0.5;
}

.director-quote::before {
    top: -10px;
    left: -5px;
}

.director-quote::after {
    bottom: -20px;
    right: -5px;
}

.partners-section {
    background-color: var(--white);
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 51, 102, 0.1);
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

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

.partners-section h2 {
    color: var(--primary-blue);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.partners-section p {
    color: var(--text-grey);
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-grid {
    display: flex;
    flex-wrap: nowrap; /* Interdit de passer à la ligne sur ordinateur */
    justify-content: center;
    align-items: center;
    gap: 30px; /* J'ai réduit l'espace pour que 5 logos rentrent bien */
}

.partner-item {
    flex: 1; /* Chaque logo prend exactement la même largeur */
    background: white;
    padding: 20px; /* Un peu moins de marges internes pour gagner de la place */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 51, 102, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    width: 100%;
}

.partner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 91, 150, 0.2);
}

.partner-item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

footer {
    background: linear-gradient(135deg, #0a1a2d, #1a2b4c);
    color: #bbb;
    padding: 80px 5% 30px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto 60px;
}

.footer-col h4 { 
    color: white; 
    margin-bottom: 25px; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
}

.footer-col p, .footer-col a { 
    margin-bottom: 15px; 
    line-height: 1.6; 
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-col a:hover { 
    color: var(--accent-gold); 
    transform: translateX(5px);
}

.footer-col i { 
    color: var(--accent-gold); 
    margin-right: 12px; 
    width: 20px; 
    text-align: center; 
    font-size: 1.1rem;
}

.contact-info p { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 20px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--secondary-blue));
    color: white;
    transform: translateY(-5px) rotate(10deg);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.footer-badges img {
    height: 60px !important;
    width: auto !important;
    max-width: 120px!important;
    /* background: white; */
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.footer-badges img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: #888;
    max-width: 1300px;
    margin: 0 auto;
}

.copyright p {
    margin: 0;
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .section-title h2 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media (max-width: 768px) {
    header { height: 75px; }
    .hero { 
        margin-top: 75px; 
        height: auto; 
        min-height: 600px;
        padding: 120px 0; 
    }
    
    .hero-content h1 { 
        font-size: 2.3rem; 
        margin-bottom: 20px;
    }
    
    .hero-content p { 
        font-size: 1.1rem; 
        margin-bottom: 35px;
    }
    
    .hero-btns { 
        flex-direction: column; 
        gap: 15px;
    }
    
    .btn-hero, .btn-hero-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title { margin-bottom: 50px; }
    
    .section-title h2 { font-size: 1.8rem; }
    
    .section-title p { font-size: 1rem; }
    
    .values-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .about-text { 
        padding-right: 0; 
        text-align: center;
    }
    
    .about-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .director-card {
        flex: 1 1 100%;
        max-width: 400px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .partner-item {
        height: 100px;
        padding: 20px;
    }
    
    .partner-item img {
        max-height: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-badges {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-badges img {
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    section { padding: 70px 20px; }
    
    .hero-content h1 { font-size: 1.8rem; }
    
    .hero-content p { font-size: 1rem; }
    
    .value-card, .service-card {
        padding: 35px 25px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation pour les sections au scroll */
@media (prefers-reduced-motion: no-preference) {
    .value-card, .service-card, .director-card, .partner-item {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}