/* Police avec font-display swap */
@font-face {
    font-family: 'Acherus Militant';
    src: url('/fonts/AcherusGrotesque-Bold.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Acherus Militant';
    src: url('/fonts/AcherusGrotesque-Bold.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

/* Reset déjà dans le CSS critique, donc on commence par les styles non-critiques */
html {
    scroll-behavior: smooth;
}

/* Logo Full Screen - Ces styles sont déjà en inline dans le HTML pour le chargement initial */

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.05em;
}

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

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Section Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.7;
    line-height: 1.8;
}

/* Bouton CTA */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Services */
.services {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

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

.service-card {
    padding: 3rem;
    background-color: #f5f5f7;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-card p {
    opacity: 0.7;
    line-height: 1.8;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.service-card-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.service-card-icons svg {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    fill: #000000;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-card-icons svg {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Fix pour Safari mobile */
@supports (-webkit-touch-callout: none) {
    .service-card-icons svg {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Menu Burger */

.menu-burger:hover {
    background: rgba(0, 0, 0, 0.1);
}

.menu-burger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger span:nth-child(1) {
    top: 18px;
}

.menu-burger span:nth-child(2) {
    top: 24px;
}

.menu-burger span:nth-child(3) {
    top: 30px;
}

/* Menu Burger */
.menu-burger {
    display: none;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.menu-burger:hover {
    background: rgba(0, 0, 0, 0.1);
}

.menu-burger span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-burger span:nth-child(1) {
    top: 18px;
}

.menu-burger span:nth-child(2) {
    top: 24px;
}

.menu-burger span:nth-child(3) {
    top: 30px;
}

/* Menu Mobile Overlay */

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-close {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.menu-close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #000000;
    border-radius: 2px;
}

.menu-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100% - 80px);
    padding: 2rem;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.mobile-menu-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.mobile-menu.active .mobile-menu-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu-links li:nth-child(3) {
    animation-delay: 0.3s;
}

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

.mobile-menu-link {
    font-size: 2rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: #000000;
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mobile-menu-footer p {
    font-size: 0.9rem;
}

/* Body no-scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Texte SEO pour les technologies - visible uniquement aux moteurs de recherche */
.tech-stack {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Section Processus */
.process {
    padding: 8rem 5%;
    background-color: #f5f5f7;
}

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

.process h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #000000;
    opacity: 0.1;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-number {
    width: 60px;
    height: 60px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content p {
    opacity: 0.7;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Section Contact */
.contact {
    padding: 8rem 5%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.7;
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    background-color: #f5f5f7;
    border-radius: 30px 30px 0 0;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 60px;
    }

    .timeline-content {
        width: 100%;
        margin-top: 1rem;
    }

    .timeline-number {
        position: absolute;
        left: -60px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card-icons {
        gap: 0.75rem;
    }

    .service-card-icons svg {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    nav {
        padding: 1rem 5%;
    }
}