/* ============================================
   L'Art du Toit - Design System
   Palette: Ardoise, Beige Pierre, Bois Chaud, Blanc Cassé
   ============================================ */

:root {
    /* Couleurs principales */
    --color-charcoal: #1a1a1a;
    --color-slate: #2d3436;
    --color-slate-light: #3d4447;
    --color-stone: #d4c5b5;
    --color-stone-light: #e8ddd0;
    --color-sand: #c4a77d;
    --color-wood: #8b6914;
    --color-wood-warm: #a67c52;
    --color-cream: #f5f2ed;
    --color-white: #fdfcfa;

    /* Texte */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --text-light: #f5f2ed;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Typographie */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-wood-warm);
    margin-bottom: var(--space-sm);
}

.section-title {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-base);
}

.header.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-white);
    position: relative;
    padding: var(--space-xs) 0;
}

.header.scrolled .nav-links a {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition-base);
}

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

.nav-cta {
    padding: var(--space-xs) var(--space-md) !important;
    border: 1px solid currentColor;
    border-radius: 2px;
}

.nav-cta:hover {
    background: var(--color-wood-warm);
    border-color: var(--color-wood-warm);
    color: var(--color-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-base);
}

.header.scrolled .nav-toggle span {
    background: var(--text-primary);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-slate) 0%, var(--color-charcoal) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/93b83872235d1857fbf2582be2091a10_1600x716_fill.jpg') center/cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: var(--space-lg);
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-stone);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-stone-light);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-stone);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-stone), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--color-wood-warm);
    color: var(--color-white);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.btn-primary:hover {
    background: var(--color-wood);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Savoir-faire Section
   ============================================ */

.section-savoir-faire {
    background: var(--color-white);
}

.savoir-faire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.savoir-faire-card {
    padding: var(--space-xl);
    background: var(--color-cream);
    border-radius: 4px;
    text-align: center;
    transition: var(--transition-smooth);
}

.savoir-faire-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    color: var(--color-wood-warm);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.savoir-faire-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.savoir-faire-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   Quote Section
   ============================================ */

.section-quote {
    background: var(--color-slate);
    padding: var(--space-3xl) 0;
}

.quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-stone-light);
    line-height: 1.5;
}

/* ============================================
   Réalisations / Bento Gallery - Modern Design
   ============================================ */

.section-realisations {
    background: var(--color-slate);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.container-full {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header avec intro split */
.realisations-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: end;
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-lg);
}

.realisations-intro .section-label {
    color: var(--color-sand);
}

.realisations-intro .section-title {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: 0;
}

.realisations-text {
    max-width: 500px;
}

.realisations-text p {
    color: var(--color-stone);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.btn-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-base);
}

.btn-link:hover {
    color: var(--color-sand);
}

.btn-link:hover svg {
    transform: translateX(5px);
}

/* Bento Grid Layout */
.bento-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 280px);
    gap: var(--space-md);
    padding: 0 var(--space-lg);
}

/* Grid positioning */
.bento-featured {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.bento-tall {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.bento-wide {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

.bento-gallery > .bento-item:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.bento-gallery > .bento-item:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

.bento-gallery > .bento-item:nth-child(6) {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
}

/* Bento Item Styles */
.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-charcoal);
}

.bento-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: brightness(0.85);
}

.bento-item:hover .bento-image img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Content overlay */
.bento-content {
    position: absolute;
    inset: 0;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.bento-number {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-base);
}

.bento-item:hover .bento-number {
    color: var(--color-sand);
}

.bento-info {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-item:hover .bento-info {
    transform: translateY(0);
    opacity: 1;
}

.bento-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-sand);
    margin-bottom: var(--space-xs);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.bento-info h3 {
    color: var(--color-white);
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.bento-info p {
    color: var(--color-stone);
    font-size: 0.875rem;
    line-height: 1.5;
    display: none;
}

.bento-featured .bento-info p,
.bento-wide .bento-info p {
    display: block;
}

/* Arrow indicator */
.bento-arrow {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--color-white);
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-arrow svg {
    width: 18px;
    height: 18px;
}

.bento-item:hover .bento-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.bento-arrow:hover {
    background: var(--color-wood-warm);
}

/* Stats Bar */
.realisations-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding: var(--space-xl) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-stone);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Bento Grid */
@media (max-width: 1200px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 280px);
    }

    .bento-featured {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .bento-tall {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
    }

    .bento-wide {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }

    .bento-gallery > .bento-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .bento-gallery > .bento-item:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .bento-gallery > .bento-item:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
    }

    .bento-gallery {
        grid-template-rows: repeat(5, 260px);
    }
}

@media (max-width: 768px) {
    .realisations-header {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .realisations-text {
        max-width: 100%;
    }

    .realisations-intro .section-title {
        font-size: 2.5rem;
    }

    .bento-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--space-md);
    }

    .bento-item,
    .bento-featured,
    .bento-tall,
    .bento-wide,
    .bento-gallery > .bento-item:nth-child(3),
    .bento-gallery > .bento-item:nth-child(5),
    .bento-gallery > .bento-item:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .bento-featured,
    .bento-wide {
        min-height: 350px;
    }

    .bento-info {
        transform: translateY(0);
        opacity: 1;
    }

    .bento-arrow {
        opacity: 1;
        transform: translate(0, 0);
    }

    .realisations-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .bento-item {
        min-height: 280px;
    }

    .bento-featured,
    .bento-wide {
        min-height: 320px;
    }

    .bento-content {
        padding: var(--space-md);
    }

    .bento-info h3 {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   Méthode Section
   ============================================ */

.section-methode {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.section-header-light .section-title {
    color: var(--color-white);
}

.methode-grid {
    max-width: 700px;
    margin: 0 auto;
}

.methode-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.methode-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-wood-warm);
    line-height: 1;
    min-width: 60px;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--color-white);
}

.step-content p {
    color: var(--color-stone);
    font-size: 0.9375rem;
}

/* ============================================
   Engagement Section
   ============================================ */

.section-engagement {
    background: var(--color-stone-light);
    padding: var(--space-2xl) 0;
}

.engagement-content h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.engagement-item {
    text-align: center;
    padding: var(--space-md);
}

.engagement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    color: var(--color-wood-warm);
}

.engagement-icon svg {
    width: 32px;
    height: 32px;
}

.engagement-item h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.engagement-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Contact Section
   ============================================ */

.section-contact {
    background: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-item:hover {
    color: var(--color-wood-warm);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-wood-warm);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-social {
    display: flex;
    gap: var(--space-md);
}

.contact-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.contact-social a:hover {
    background: var(--color-wood-warm);
    color: var(--color-white);
}

.contact-social svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-cream);
    padding: var(--space-xl);
    border-radius: 4px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-stone);
    border-radius: 2px;
    background: var(--color-white);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-wood-warm);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    grid-column: span 2;
    margin-top: var(--space-sm);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-charcoal);
    color: var(--color-stone);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer-brand p {
    color: var(--color-stone);
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-stone);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* AOS-like animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--text-primary) !important;
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        padding: var(--space-md);
    }

    .methode-step {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .contact-form .btn {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--space-md);
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .savoir-faire-grid {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   Utility Classes
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
