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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #f8f9fa;
    color: #2c2e30;
    scroll-behavior: smooth;
}

a {
    color: #2f5fa9;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #2c2e30;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c2e30;
    margin-bottom: 12px;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #676767;
    margin-bottom: 16px;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0 20px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.nav-link {
    padding: 10px 20px;
    color: #2c2e30;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(47, 95, 169, 0.08);
    color: #2f5fa9;
}

.nav-link.active {
    background: rgba(47, 95, 169, 0.12);
    color: #2f5fa9;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(47, 95, 169, 0.08);
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: #2f5fa9;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin: 0 auto;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2f5fa9 0%, #1e3a6d 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 250px;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 109, 0) 0%,
        rgba(30, 58, 109, 0.01) 5%,
        rgba(30, 58, 109, 0.02) 10%,
        rgba(30, 58, 109, 0.04) 15%,
        rgba(82, 109, 148, 0.06) 20%,
        rgba(115, 138, 173, 0.09) 25%,
        rgba(141, 164, 199, 0.12) 30%,
        rgba(163, 184, 214, 0.16) 35%,
        rgba(186, 199, 220, 0.21) 40%,
        rgba(202, 211, 228, 0.27) 45%,
        rgba(214, 220, 233, 0.34) 50%,
        rgba(224, 229, 238, 0.42) 55%,
        rgba(231, 235, 242, 0.51) 60%,
        rgba(237, 240, 245, 0.61) 65%,
        rgba(241, 243, 246, 0.71) 70%,
        rgba(244, 246, 248, 0.80) 75%,
        rgba(246, 247, 249, 0.87) 80%,
        rgba(247, 248, 250, 0.92) 85%,
        rgba(249, 250, 251, 0.96) 90%,
        rgba(250, 251, 252, 0.98) 95%,
        #f8f9fa 100%
    );
}

.hero-section .logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.8;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.scroll-down:hover {
    color: #ffd700;
    transform: translateY(4px);
}

.scroll-down span {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.scroll-down svg {
    width: 32px;
    height: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 80px 40px;
}

/* Sections */
section {
    margin-bottom: 80px;
}

section:last-of-type {
    margin-bottom: 60px;
}

/* About Section */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.about-intro {
    font-size: 1.3rem;
    color: #2f5fa9;
    font-weight: 600;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #676767;
}

/* Filiales Section */
.filiales-section {
    background: #f8f9fa;
    padding: 60px 40px;
    margin: 0 -40px 80px;
}

.filiales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.filiale-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.filiale-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filiale-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.filiale-logo {
    max-width: 120px;
    max-height: 100px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.filiale-card p {
    font-size: 0.95rem;
    color: #676767;
    margin-bottom: 0;
}

/* Domaines Section */
.domaines-section {
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.domaine-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.domaine-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.domaine-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.domaine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.domaine-card:hover .domaine-image {
    transform: scale(1.05);
}

.domaine-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(47, 95, 169, 0.95), transparent);
    padding: 32px 24px 24px;
}

.domaine-overlay h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

.domaine-content {
    padding: 28px 32px;
}

.domaine-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.domaine-list li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: #676767;
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.domaine-list li:last-child {
    border-bottom: none;
}

.domaine-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2f5fa9;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e7e8e9 100%);
    border-radius: 16px;
    margin: 0 -40px;
}

.contact-section h2 {
    margin-bottom: 16px;
}

.contact-section p {
    font-size: 1.1rem;
    color: #676767;
    margin-bottom: 32px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #2f5fa9;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(47, 95, 169, 0.3);
}

.email-link:hover {
    background: #264d8a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(47, 95, 169, 0.4);
}

.email-link svg {
    width: 22px;
    height: 22px;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e7e8e9;
    text-align: center;
    font-size: 0.9rem;
    color: #8a8e92;
}

.legal-link {
    color: #8a8e92;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: #2f5fa9;
}

.highlight {
    color: #ffd700;
}

/* Page mentions légales */
body.page-legal {
    background: #f8f9fa;
    padding-top: 80px;
}

.page-legal .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #fff;
}

.legal-content {
    margin-top: 40px;
}

.legal-header {
    text-align: center;
    padding: 40px 0 60px;
    border-bottom: 2px solid #e7e8e9;
    margin-bottom: 50px;
}

.legal-header .logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2f5fa9;
    margin: 0;
}

.page-legal h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f5fa9;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
}

.page-legal p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-legal strong {
    color: #2c2e30;
    font-weight: 600;
}

.page-legal footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #e7e8e9;
    text-align: center;
    font-size: 0.95rem;
    color: #8a8e92;
}

.back-to-home {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f5fa9;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
    gap: 12px;
}

.back-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        gap: 4px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .container {
        padding: 60px 32px;
    }

    .filiales-section {
        padding: 50px 32px;
        margin: 0 -32px 60px;
    }

    .contact-section {
        margin: 0 -32px;
        padding: 50px 32px;
    }

    .page-legal .container {
        padding: 50px 32px;
    }

    .legal-header h1 {
        font-size: 2.2rem;
    }

    body.page-legal {
        padding-top: 64px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        padding: 0;
    }

    .nav-wrapper {
        padding: 20px;
        min-height: 64px;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        position: static;
        transform: none;
        margin-left: auto;
    }

    .nav-container {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-container.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        padding: 16px 20px;
        text-align: center;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .scroll-down span {
        font-size: 0.85rem;
    }

    .scroll-down svg {
        width: 28px;
        height: 28px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-section .logo {
        max-width: 140px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .container {
        padding: 50px 24px;
    }

    section {
        margin-bottom: 60px;
    }

    .filiales-section {
        padding: 40px 24px;
        margin: 0 -24px 60px;
    }

    .filiales-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .filiale-card:nth-child(3) {
        grid-column: 1;
        max-width: none;
    }

    .domaines-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .domaine-image-wrapper {
        height: 220px;
    }

    .domaine-overlay h3 {
        font-size: 1.5rem;
    }

    .domaine-content {
        padding: 24px 20px;
    }

    .contact-section {
        margin: 0 -24px;
        padding: 40px 24px;
    }

    .page-legal .container {
        padding: 40px 24px;
    }

    .legal-header {
        padding: 30px 0 50px;
        margin-bottom: 40px;
    }

    .legal-header .logo {
        max-width: 120px;
        margin-bottom: 25px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .page-legal h2 {
        font-size: 1.3rem;
        margin-top: 35px;
    }

    body.page-legal {
        padding-top: 64px;
    }
}

@media (max-width: 480px) {
    .scroll-down {
        margin-top: 40px;
        gap: 8px;
    }

    .scroll-down span {
        font-size: 0.8rem;
    }

    .scroll-down svg {
        width: 24px;
        height: 24px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-section {
        min-height: 80vh;
        padding: 100px 16px 32px;
    }

    .hero-section .logo {
        max-width: 120px;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 40px 20px;
    }

    .about-intro {
        font-size: 1.1rem;
    }

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

    .filiales-section {
        padding: 32px 20px;
        margin: 0 -20px 50px;
    }

    .domaine-image-wrapper {
        height: 200px;
    }

    .domaine-overlay {
        padding: 24px 20px 20px;
    }

    .domaine-overlay h3 {
        font-size: 1.3rem;
    }

    .domaine-list li {
        font-size: 0.95rem;
        padding: 10px 0 10px 24px;
    }

    .contact-section {
        margin: 0 -20px;
        padding: 32px 20px;
    }

    .email-link {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .page-legal {
        padding-top: 64px;
    }

    .page-legal .container {
        padding: 30px 20px;
    }

    .legal-header {
        padding: 25px 0 40px;
        margin-bottom: 35px;
    }

    .legal-header .logo {
        max-width: 100px;
        margin-bottom: 20px;
        padding: 15px;
    }

    .legal-header h1 {
        font-size: 1.5rem;
    }

    .page-legal h2 {
        font-size: 1.2rem;
        margin-top: 30px;
        margin-bottom: 16px;
    }

    .page-legal p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .page-legal footer {
        margin-top: 60px;
        padding-top: 30px;
        font-size: 0.85rem;
    }
}
