/* Base Styles */
:root {
    --primary-color: #1b396a;
    --secondary-color: #e8471d;
    --accent-color: #333333;
    --light-color: #f5f5f5;
    --dark-color: #2d3748;
    --text-color: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --gray: #F7F7F7;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    background-color: var(--gray);
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--secondary-color) 0%,
        var(--secondary-color) 8%,  
        var(--primary-color) 60%,    
        var(--primary-color) 100%
    );

    margin: 1rem auto 0;
}

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

.bg-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* Icon */
.icon {
  width: 16px;
  height: 16px;
  fill: currentColor; 
  margin-right: 6px;
  vertical-align: middle;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--gray);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 20px; /* flottement depuis le haut */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
    pointer-events: auto;
}

.header .container {
    max-width: 1200px; /* limite la largeur */
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header li a.active::after{
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--secondary-color) 0%,
        var(--secondary-color) 8%,  
        var(--primary-color) 60%,    
        var(--primary-color) 100%
    );

    margin-top:1px ;
}

.logo img {
    height: 50px;
}

.navbar {
    display: flex;
    align-items: center; 
    gap: 2rem; 
}

.navbar ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}




.navbar li {
    margin-left: 2rem;
}


.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a.active {
    color: var(--primary-color);
}
.navbar a.btn-outline.active:hover{
    color: var(--white);
}


.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* tool bar*/
.top-bar {
  background-color: var(--gray);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}



/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Header */
.page-header {
    background : url('../images/page-header.png') no-repeat center center/cover;
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    height: 320px;
    
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-img {
    height: 200px;
    overflow: hidden;
}

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

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.value-text {
    color: var(--primary-color);
}
.value-text:hover {
filter: invert(41%) sepia(46%) saturate(4995%) hue-rotate(349deg) brightness(92%) contrast(98%)
}
.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.value-icon:hover {
filter: invert(41%) sepia(46%) saturate(4995%) hue-rotate(349deg) brightness(92%) contrast(98%)
}
/* Europe Map */
.europe-map {
    position: relative;
    margin: 3rem auto;
    max-width: 800px;
}

.europe-map img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-point {
    position: absolute;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translate(-50%, -50%);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}



/* Legal Section */
.legal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    margin-top: 2rem;
    color: var(--primary-color);
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: disc;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer a {
    color: var(--white);
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    color : var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col li {
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }
    
    .navbar.active {
        margin-top: 30px;
        background-color: var(--gray);
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 1rem 0;
    }
    

    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .section {
        padding: 3rem 0;
    }

}

@media (max-width: 576px) {
        .value-icon:hover {
        filter: none;
        }
        .value-text:hover {
filter: none;
}
        .top-bar{
        font-size: 0.7rem;
    }


    .hero .container  h1 {
        font-size: 2.7rem;
    }

    .hero .container  p {
        font-size: 1.1rem;
    }
    
    .page-header .container  h1 {
        font-size: 2.7rem;
    }

    .page-header .container  p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}


  @media (max-width: 389px){
    .hero .container  h1 {
        font-size: 2.5rem;
    }

    .hero .container  p {
        font-size: 1rem;
    }

    .page-header .container  h1 {
        font-size: 2.5rem;
    }

    .page-header .container  p {
        font-size: 1rem;
    }
 }