/* ==========================================
   Variables & Reset
   ========================================== */
:root {
    --primary: #ffffff;
    --primary-dark: #e2dddd;
    --gradient-start: #fefefe;
    --gradient-end: #777777;
    --dark-bg: #0f0f0f;
    --dark-surface: #1a1a1a;
    --light-bg: #222;
    --alt-bg: #111;
    --text-dark: #eee;
    --text-light: #fff;
    --text-muted: #ccc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', monospace;
}

h1 {
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

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

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-logo {
    aspect-ratio: auto;
    height: max-content;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

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

/* ==========================================
   Hero avec effets
   ========================================== */
.hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a0b2e 50%, var(--dark-bg) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-logo {
    aspect-ratio: auto;
    height: 30vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

.hero-shapes::before,
.hero-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(200px);
}

.hero-shapes::before {
    width: 400px;
    height: 400px;
    background: var(--gradient-start);
    opacity: 0.2;
    top: 10%;
    left: 10%;
    animation: float 10s ease-in-out alternate infinite,
        pulse 30s ease-in-out alternate infinite;
}

.hero-shapes::after {
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.15;
    bottom: 20%;
    right: 15%;
    animation: float 12s ease-in-out alternate infinite,
        pulse 50s ease-in-out alternate infinite;

}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, 30px) scale(0.8);
    }

    50% {
        transform: translate(30px, -30px) scale(1.2);
    }

    75% {
        transform: translate(-30px, 0) scale(1);
    }

}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px;
}

/* ==========================================
   Sections générales
   ========================================== */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--alt-bg);
}

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

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
}

.section-dark .section-title {
    color: var(--text-light);
}

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

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-dark .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.flex-center {
    display: flex;
    justify-content: center;

}

/* ==========================================
   Animations au scroll
   ========================================== */

@keyframes fadeInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.fade-in {

    transform: translateY(30px);
    transition: fadeInLeft 500ms;
}

/* .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
} */

/* ==========================================
   Équipe
   ========================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.team-member h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-member .role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-member p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Services
   ========================================== */
.services-category {
    margin-bottom: 3rem;
}

.services-category h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.service-item {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-left: 4px solid transparent;
}

.service-item:hover {
    transform: translateX(10px);
    border-left-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
}

.service-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   Références (Équipement)
   ========================================== */
.equipment-category {
    margin-bottom: 2.5rem;
}

.equipment-category h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.equipment-item {
    background: var(--light-bg);
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: default;
}

.equipment-item:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.reference-logo {
    aspect-ratio: auto;
    margin: 8px;
    border-radius: 8px;
    height: 20vh;
    transition: transform 400ms ease-in-out;
}

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

/* ==========================================
   Méthodes (Timeline)
   ========================================== */
.methods-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.methods-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--gradient-end));
    border-radius: 3px;
}

.method-item {
    position: relative;
    margin-bottom: 2rem;
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    width: 45%;
    transition: var(--transition);
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.method-item:nth-child(odd) {
    margin-left: 0;
}

.method-item:nth-child(even) {
    margin-left: auto;
}

.method-item::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 32px;
    background: var(--primary);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.method-item:nth-child(odd)::before {
    right: -60px;
}

.method-item:nth-child(even)::before {
    left: -60px;
}

.method-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.method-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   Portfolio
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--light-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item .image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.portfolio-item .image-overlay h3 {
    color: var(--text-light);
    font-size: 1.3rem;
}

.portfolio-item .content {
    padding: 1.5rem;
}

.portfolio-item .content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.portfolio-item .location {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-item .location i {
    margin-right: 0.3rem;
}

.portfolio-item .content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   Contact
   ========================================== */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(243, 156, 18, 0.1);
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background: #000;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Mobile
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .team-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .methods-timeline::before {
        left: 20px;
    }

    .method-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .method-item::before {
        left: -50px !important;
        right: auto !important;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-item {
        flex-direction: column;
        gap: 1rem;
    }
}