/* Aeonik Pro Font */
@font-face {
    font-family: 'Aeonik Pro';
    src: url('fonts/aeonik-pro-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik Pro';
    src: url('fonts/aeonik-pro-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik Pro';
    src: url('fonts/aeonik-pro-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Grid System - 12 colonnes */
    --grid-columns: 12;
    --grid-gutter: 24px;
    --grid-margin: 80px;
    --grid-max-width: 1400px;
    
    /* Largeur de contenu = 1400px - (80px × 2) = 1240px */
    --content-width: calc(var(--grid-max-width) - (var(--grid-margin) * 2));
    
    /* Largeur d'une colonne = (1240px - (24px × 11)) / 12 = 81.33px */
    --column-width: calc((var(--content-width) - (var(--grid-gutter) * 11)) / 12);
}

body {
    font-family: 'Aeonik Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #FDFDFD;
    color: #000000;
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Debug Grid Overlay */
.debug-grid {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--grid-max-width);
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: none; /* Hidden by default */
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gutter);
    padding: 0 var(--grid-margin);
}

.debug-grid-column {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 1px solid rgba(255, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 0, 0, 0.3);
}

/* Grid Container */
.grid-container {
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-margin);
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin-top: 50px;
    /* 12 colonnes = 1400px - (80px × 2 marges) = 1240px */
    max-width: var(--content-width);
    width: var(--content-width);
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar.scrolled {
    margin-top: 24px;
    padding: 18px 18px 18px 32px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    width: 74.8px;
    height: 41.36px;
    display: flex;
    align-items: center;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.btn-request {
    background-color: #000000;
    color: white;
    padding: 18px 42px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-request::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #CDF3A0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-request:hover::before {
    width: 400px;
    height: 400px;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(205, 243, 160, 0.4);
    color: #6F9B3A;
}

.btn-request::after {
    content: '→';
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: inherit;
}

.btn-request:hover::after {
    animation: slideArrow 0.4s ease forwards;
}

@keyframes slideArrow {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    49% {
        transform: translateX(12px);
        opacity: 0;
    }
    51% {
        transform: translateX(-12px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding-left: var(--grid-margin);
    padding-right: var(--grid-margin);
    position: relative;
    z-index: 50;
}

.hero h1 {
    font-size: 80px;
    font-weight: 500;
    line-height: 70px;
    letter-spacing: -3.2px;
    margin-bottom: 28px;
    color: #000000;
}

.hero-title-line-1,
.hero-title-line-2 {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title-line-1 {
    animation: titleFadeIn 0.8s ease forwards;
}

.hero-title-line-2 {
    animation: titleFadeIn 0.8s ease 0.2s forwards;
}

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

.hero-subtitle {
    font-size: 20px;
    color: #8f8f8f;
    letter-spacing: -0.8px;
    margin-bottom: 33px;
    font-weight: 400;
    line-height: 21px;
}

.btn-primary {
    background-color: #000000;
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.72px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #CDF3A0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(205, 243, 160, 0.4);
    color: #6F9B3A;
}

.btn-primary::after {
    content: '→';
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: inherit;
}

.btn-primary:hover::after {
    animation: slideArrow 0.4s ease forwards;
}

/* Cards Section */
.cards-section {
    position: relative;
    height: 600px;
    max-width: var(--grid-max-width);
    margin: -250px auto 80px auto;
    padding: 0 var(--grid-margin);
}

.cards-section {
    z-index: 1;
    transition: filter 0.3s ease;
}

.cards-section.blurred {
    filter: blur(40px);
}

.card {
    position: absolute;
    width: 210px;
    height: 260px;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    
    /* Animation au chargement */
    opacity: 0;
    transform: translateY(50px);
    animation: cardFadeIn 0.6s ease forwards;
}

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

/* Animation spécifique pour card-4 (centrée) */
.card-4 {
    animation-name: cardFadeInCentered;
}

@keyframes cardFadeInCentered {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.card:hover {
    transform: translateY(-8px);
}

.card-4:hover {
    transform: translateX(-50%) translateY(-8px);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 20px;
    color: #000000;
    margin-bottom: 0;
}

.card-client {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: -0.8px;
    line-height: 20px;
    margin-top: 0;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.card-price {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -1.6px;
    line-height: 31px;
    color: #000000;
    margin-bottom: 0;
}

.card-duration {
    font-size: 17.046px;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: -0.6818px;
    line-height: 14px;
    margin-top: 0;
}

/* Card Positions and Colors - Basé sur Figma */
/* Card 1: Translation - Carrefour */
.card-1 {
    background-color: #FD9649;
    left: -80px;
    top: 0;
    animation-delay: 0ms;
}

/* Card 2: Webdesign page - Meta */
.card-2 {
    background-color: #d4f1ff;
    left: 145px;
    top: 95px;
    animation-delay: 100ms;
}

/* Card 3: SEO Mission - Deezer */
.card-3 {
    background-color: #e2f9c7;
    left: 370px;
    top: 193px;
    animation-delay: 200ms;
}

/* Card 4: Data Visualization - IBM */
.card-4 {
    background-color: #fff7e0;
    left: 50%;
    top: 310px;
    transform: translateX(-50%) translateY(50px);
    animation-delay: 300ms;
}

/* Card 5: Branding consistency - L'Oreal */
.card-5 {
    background-color: #f9dbff;
    right: 370px;
    top: 193px;
    animation-delay: 400ms;
}

/* Card 6: Developpement - Subway */
.card-6 {
    background-color: #a0adff;
    right: 145px;
    top: 95px;
    animation-delay: 500ms;
}

/* Card 7: Stylism sportswear - Nike */
.card-7 {
    background-color: #f3fdd8;
    right: -80px;
    top: 0;
    animation-delay: 600ms;
}

/* Feature Sections */
.feature-section {
    max-width: var(--grid-max-width);
    margin: 0 auto 120px auto;
    padding: 0 var(--grid-margin);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gutter);
    align-items: center;
    
    /* Animation au scroll */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-content {
    /* Colonnes 2-5 (4 colonnes) */
    grid-column: 2 / 6;
}

.feature-section.align-right .feature-content {
    /* Colonnes 8-11 (4 colonnes) */
    grid-column: 8 / 12;
    text-align: right;
}

.feature-illustration {
    /* Colonnes 7-12 (6 colonnes) - aligné sur la dernière colonne */
    grid-column: 7 / 13;
}

.feature-section.align-right .feature-illustration {
    /* Colonnes 1-6 (6 colonnes) - aligné sur la première colonne */
    grid-column: 1 / 7;
    order: -1;
}

.feature-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #000000;
}

.feature-description {
    font-size: 20px;
    color: #8f8f8f;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 24px;
    max-width: 300px;
}

.feature-section.align-right .feature-description {
    margin-left: auto;
}

.info-badge {
    background-color: #f68c53;
    color: white;
    padding: 10px 20px;
    border-radius: 80px;
    font-size: 14px;
    letter-spacing: -0.56px;
    line-height: 16px;
    display: inline-block;
    font-weight: 400;
    text-decoration: none !important;
    cursor: pointer;
}

.info-badge:hover,
.info-badge:visited,
.info-badge:active,
.info-badge:focus {
    text-decoration: none !important;
    color: white;
}

/* Feature Cards */
.feature-card-wrapper {
    max-width: var(--grid-max-width);
    margin: 80px auto;
    padding: 0 var(--grid-margin);
}

.feature-card {
    background-color: #fffaf0;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invoice-preview {
    background-color: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
}

.invoice-header {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.8px;
    margin-bottom: 32px;
    color: #000000;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-label {
    font-size: 18px;
    color: #000000;
    letter-spacing: -0.72px;
}

.invoice-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.12px;
    color: #000000;
}

.status-badge {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #000000;
}

/* Invoice Card with Color */
.invoice-card-colored {
    background-color: #f68c53;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.08);
    max-width: 280px;
    width: 100%;
}

.invoice-card-colored .card-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    color: #000000;
}

.invoice-card-colored .card-client {
    font-size: 14px;
    color: #000000;
    letter-spacing: -0.56px;
    margin-bottom: 60px;
}

.invoice-card-colored .card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-card-colored .card-price {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.12px;
    color: #000000;
}

/* Footer */
.footer {
    max-width: var(--grid-max-width);
    margin: 120px auto 0 auto;
    padding: 80px var(--grid-margin);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo svg {
    width: 85px;
    height: 47px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #000000;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 16px;
}

.footer-column a {
    color: #8f8f8f;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #000000;
}

.footer-note {
    font-size: 14px;
    color: #8f8f8f;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cards-section {
        height: 700px;
    }

    .card {
        width: 180px;
        height: 230px;
        padding: 20px;
    }

    .card-price {
        font-size: 32px;
    }

    .card-title {
        font-size: 18px;
    }
}

/* Mobile Design - Based on Figma */
@media (max-width: 768px) {
    :root {
        --grid-margin: 27px;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .container {
        position: relative;
        z-index: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Navigation */
    .nav-bar {
        padding: 20px 27px;
        top: 0;
        max-width: 100vw;
        width: 100vw;
        z-index: 9999;
        left: 0;
        right: 0;
        transform: none;
        margin: 0 !important;
        margin-top: 0 !important;
    }

    .nav-bar.scrolled {
        top: 10px;
        padding: 14px 27px;
        z-index: 9999;
        background-color: rgb(255, 255, 255);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 24px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin: 0 27px;
        width: 100%
        left: 0;
        right: 0;
    }

    .logo {
        width: 60px;
        height: 33px;
    }

    .btn-request {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .btn-request::after {
        font-size: 16px;
    }

    /* Hero Section */
    .hero {
        text-align: center;
        padding: 120px 27px 80px;
        position: relative;
        z-index: -1;
        overflow-x: hidden;
    }

    .hero h1 {
        font-size: 46px;
        line-height: 40px;
        letter-spacing: -1.84px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: normal;
        margin-bottom: 24px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .btn-primary::after {
        font-size: 16px;
    }

    /* Feature images - show mobile version */
    .feature-img-desktop {
        display: none !important;
    }
    
    .feature-img-mobile {
        display: block !important;
    }

    /* Cards Section - Simplified mobile approach */
    .cards-section {
        height: 400px;
        margin: -50px auto 0 auto;
        padding: 0;
        position: relative;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
        max-width: 100vw;
        z-index: 1;
        pointer-events: none;
    }

    .card {
        position: absolute !important;
        width: 183px;
        height: 226px;
        padding: 21px;
        opacity: 0;
        animation: cardFadeInMobile 0.6s ease forwards;
        pointer-events: auto;
        z-index: 1;
    }
    
    @keyframes cardFadeInMobile {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .card-1 {
        animation-delay: 0ms;
    }
    
    .card-2 {
        animation-delay: 100ms;
    }
    
    .card-3 {
        animation-delay: 200ms;
    }

    /* Hide cards 4, 5, 6, 7 on mobile */
    .card-4, .card-5, .card-6, .card-7 {
        display: none;
    }

    /* Card 1 - Left side (Translation - Carrefour) */
    .card-1 {
        left: 0;
        top: 0;
    }

    /* Card 2 - Center (Webdesign - Meta) */
    .card-2 {
        left: 50%;
        top: 83px;
    }

    /* Card 3 - Right side (SEO - Deezer) */
    .card-3 {
        left: 100%;
        top: 0;
    }

    .card-price {
        font-size: 35px;
    }

    .card-title {
        font-size: 17px;
    }

    .card-client {
        font-size: 17px;
    }

    .card-duration {
        font-size: 15px;
    }

    /* Feature Sections */
    .feature-section {
        margin: 0 auto 80px;
        padding: 0 27px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .feature-section.align-right {
        flex-direction: column;
    }

    .feature-content {
        grid-column: auto;
        text-align: left;
    }

    .feature-section.align-right .feature-content {
        grid-column: auto;
        text-align: left;
        order: 1;
    }

    .feature-illustration {
        grid-column: auto;
        order: 2;
    }

    .feature-section.align-right .feature-illustration {
        grid-column: auto;
        order: 2;
    }

    .feature-title {
        font-size: 42px;
        line-height: 42px;
        letter-spacing: -1.68px;
        margin-bottom: 16px;
    }

    .feature-description {
        font-size: 20px;
        line-height: 22px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .feature-section.align-right .feature-description {
        margin-left: 0;
    }

    .info-badge {
        font-size: 14px;
        padding: 9px 13px;
    }

    /* Footer */
    .footer {
        margin: 80px auto 0;
        padding: 40px 27px;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-logo svg {
        width: 60px;
        height: 33px;
    }

    .footer-note {
        font-size: 16px;
        color: #818181;
    }

    .footer-links {
        width: 100%;
        gap: 70px;
        justify-content: flex-start;
    }

    .footer-column h3 {
        font-size: 20px;
        font-weight: 700;
    }

    .footer-column ul li a {
        font-size: 16px;
        color: #818181;
    }
}
