/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Global background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../IMG/banniere-temporaire.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* Section base styles */
.section {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}

.hero-title {
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}


.hero-subtitle, .section-subtitle {
    font-family: "Atma", system-ui;
    font-weight: 600;
    font-style: normal;
}

.hero-subtitle {
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 96px auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}


/* Services navigation grid */
.services-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1024px;
    margin: 0 auto;
}

.service-nav-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-nav-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-nav-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.167;
    letter-spacing: 0.009em;
    color: white;
    margin-bottom: 16px;
}

.service-nav-description {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: rgba(255, 255, 255, 0.8);
}

/* Content sections - alternating backgrounds */
.content-section {
    padding: 80px 24px;
    backdrop-filter: blur(20px) saturate(1.8);

    background: rgba(0, 0, 0, 0.45);
    color: white;
}

.content-section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.45);
    color: #1d1d1f;
}

.content-container {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.005em;
    margin-bottom: 32px;
}

.section-subtitle {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    margin-bottom: 48px;
    opacity: 0.9;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
}

.content-section:nth-child(even) .feature-card {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-description {
    font-size: 17px;
    line-height: 1.47059;
    opacity: 0.8;
}

/* Top Navigation Menu */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 24px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateX(-50%) translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.back-to-top::before {
    content: '↑';
    color: white;
    font-size: 20px;
    font-weight: 600;
}

/* Navigation indicator */
.nav-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 1068px) {
    .hero-content,
    .content-container {
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .services-nav {
        gap: 24px;
    }
}

@media (max-width: 734px) {
    body::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    .hero-content,
    .content-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-subtitle {
        margin-bottom: 64px;
    }
    
    .services-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-nav-card {
        padding: 24px 20px;
    }
    
    .content-section {
        padding: 60px 20px;
    }
    
    .nav-indicator {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .top-nav {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 24px;
        width: 44px;
        height: 44px;
    }

    .back-to-top::before {
        font-size: 18px;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus states for accessibility */
.service-nav-card:focus,
.nav-dot:focus,
.back-to-top:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.nav-menu a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}