/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */
h1, h2, h3 {
    font-family: 'Lastik', serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

/* ========================================
   NAVBAR - Style minimaliste
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

/* Logo à gauche */
.nav-logo {
    justify-self: start;
}

.nav-logo a {
    display: block;
    line-height: 0;
}

.nav-logo img {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 28px;
}

/* Menu centré */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-self: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #111111;
}

/* CTA à droite */
.nav-cta {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6647 100%);
    color: white !important;
    padding: 0.625rem 1.375rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    justify-self: end;
    box-shadow:
        0 4px 12px rgba(74, 124, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50px 50px 0 0;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #5a8c69 0%, #4a7c59 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(74, 124, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Bouton hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION - Style centré
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Couche parallax pour l'image de fond */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay pour améliorer la lisibilité
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(245,245,245,0.3) 0%, rgba(245,245,245,0.5) 100%);
    z-index: 1;
    pointer-events: none;
} */

/* Contenu Hero centré */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 750px;
    width: 100%;
    padding: 6rem 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #111111;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #555555;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 2.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton CTA Hero */
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #4a7c59 0%, #3d6647 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 20px rgba(74, 124, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50px 50px 0 0;
}

.hero-cta:hover {
    background: linear-gradient(135deg, #5a8c69 0%, #4a7c59 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(74, 124, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

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

/* ========================================
   SECTION PROJETS
   ======================================== */
.projects {
    padding: 8rem 2rem;
    background: #ffffff;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-header {
    text-align: left;
    margin-bottom: 4rem;
}

.section-title {
    display: inline-block;
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    position: relative;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* Background blur effect - image zoomée et floutée */
.project-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    transform: scale(1.1);
    z-index: 0;
    opacity: 0.7;
}

.project-card:nth-child(1)::before {
    background-image: url('projets/garagedomicilelaptop.png');
}

.project-card:nth-child(2)::before {
    background-image: url('projets/chaletcoureurdeboislaptop.png');
}

.project-card:nth-child(3)::before {
    background-image: url('projets/ouelletelectriquelaptop.png');
}

.project-card:nth-child(4)::before {
    background-image: url('projets/duopluslaptop.png');
}

.project-card:nth-child(5)::before {
    background-image: url('projets/provitalitelaptop.png');
}

.project-card:nth-child(6)::before {
    background-image: url('projets/soniclaptop.png');
}

/* Overlay sombre pour améliorer le contraste */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    z-index: 2;
}

.project-card:hover .project-image {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: calc(100% - 4rem);
}

.project-title {
    display: none;
}

.project-category {
    font-size: 0.875rem;
    color: #111111;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* ========================================
   SECTION POURQUOI
   ======================================== */
.why-section {
    padding: 8rem 2rem;
    background: #f8f8f8;
}

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

.why-header {
    text-align: center;
    margin-bottom: 5rem;
}

.why-label {
    display: inline-block;
    font-size: 0.75rem;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
}

.why-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #111111;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.why-description {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #666666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.why-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    color: #4a7c59;
}

.why-card-title {
    font-size: 1.375rem;
    color: #111111;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.why-card-text {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

.why-cta {
    text-align: center;
}

.why-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #4a7c59 0%, #3d6647 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 20px rgba(74, 124, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.why-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50px 50px 0 0;
}

.why-button:hover {
    background: linear-gradient(135deg, #5a8c69 0%, #4a7c59 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(74, 124, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SECTION SERVICES
   ======================================== */
.services-section {
    padding: 8rem 2rem;
    background: #ffffff;
}

.services-container {
    max-width: 900px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-label {
    display: inline-block;
    font-size: 0.75rem;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.services-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #111111;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.service-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

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

.service-name {
    font-size: clamp(2rem, 4vw, 4rem);
    color: #111111;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.service-tag {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4a7c59 0%, #3d6647 100%);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(74, 124, 89, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50px 50px 0 0;
}

.service-tag:hover {
    background: linear-gradient(135deg, #3d6647 0%, #2f4d36 100%);
    transform: translateY(-3px);
    box-shadow:
        0 6px 16px rgba(74, 124, 89, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SECTION TÉMOIGNAGES
   ======================================== */
.testimonials-section {
    padding: 8rem 0;
    background: #ffffff;
    overflow: hidden;
}

.testimonials-container {
    max-width: 100%;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.testimonials-label {
    display: inline-block;
    font-size: 0.75rem;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.testimonials-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #111111;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.testimonials-row {
    margin-bottom: 2rem;
    overflow: hidden;
}

.testimonials-row:last-child {
    margin-bottom: 0;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

/* Animation défilement gauche */
.testimonials-row[data-direction="left"] .testimonials-track {
    animation: scrollLeft 40s linear infinite;
}

/* Animation défilement droite */
.testimonials-row[data-direction="right"] .testimonials-track {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause au survol */
.testimonials-row:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex-shrink: 0;
    width: 450px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin: 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin: 0 0 0.25rem 0;
    font-family: 'Inter', sans-serif;
}

.author-info p {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   SECTION FAQ
   ======================================== */
.faq-section {
    padding: 8rem 2rem;
    background: #f8f8f8;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-label {
    display: inline-block;
    font-size: 0.75rem;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
}

.faq-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #111111;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #111111;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #4a7c59;
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: #4a7c59;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
}

/* ========================================
   SECTION CTA FINAL
   ======================================== */
.cta-section {
    padding: 8rem 2rem 12rem 2rem;
    background: #ffffff;
    position: relative;
    overflow: visible;
}

/* Effet de blur pour transition vers le footer */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 2;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #111111;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.cta-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #333333;
    line-height: 1.7;
    margin: 0 0 3rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #4a7c59 0%, #3d6647 100%);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 20px rgba(74, 124, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50px 50px 0 0;
}

.cta-button:hover {
    background: linear-gradient(135deg, #5a8c69 0%, #4a7c59 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(74, 124, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.footer-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column-title {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem 0;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-menu a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #4a7c59;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-copyright {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #4a7c59;
    border-color: #4a7c59;
    color: white;
    transform: translateY(-3px);
}

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

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

/* Tablettes */
@media (max-width: 968px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero-content-wrapper {
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .projects {
        padding: 5rem 2rem;
    }

    .projects-header {
        margin-bottom: 3rem;
    }

    .projects-grid {
        gap: 2rem;
    }

    .project-card {
        min-height: 400px;
        padding: 2rem;
    }

    .project-image {
        width: 85%;
    }

    .project-info {
        bottom: 1.5rem;
        left: 1.5rem;
        padding: 0.625rem 1.125rem;
        max-width: calc(100% - 3rem);
    }

    .project-category {
        font-size: 0.8rem;
    }

    .why-section {
        padding: 5rem 2rem;
    }

    .why-header {
        margin-bottom: 3.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .why-card {
        padding: 2.5rem 2rem;
    }

    .why-card-title {
        font-size: 1.25rem;
    }

    .services-section {
        padding: 5rem 2rem;
    }

    .services-header {
        margin-bottom: 3.5rem;
    }

    .services-list {
        gap: 2.5rem;
    }

    .service-name {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }

    .testimonials-section {
        padding: 5rem 0;
    }

    .testimonials-header {
        margin-bottom: 3rem;
    }

    .testimonial-card {
        width: 380px;
        padding: 1.5rem;
    }

    .faq-section {
        padding: 5rem 2rem;
    }

    .faq-header {
        margin-bottom: 3rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .cta-section {
        padding: 5rem 2rem 10rem 2rem;
    }

    .cta-section::after {
        height: 120px;
    }

    .cta-description {
        margin-bottom: 2.5rem;
    }

    .cta-button {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }

    .footer-content {
        padding: 3rem 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr auto;
        padding: 0 1.5rem;
    }

    .nav-logo {
        order: 1;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        grid-column: 2;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        transition: left 0.3s ease;
        align-items: flex-start;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        grid-column: 1 / -1;
        order: 3;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

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

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

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

    .hero-content-wrapper {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
        line-height: 1.7;
    }

    .hero-cta {
        padding: 1rem 2.25rem;
        font-size: 1rem;
    }

    .projects {
        padding: 4rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        min-height: 350px;
        padding: 1.5rem;
    }

    .project-image {
        width: 90%;
    }

    .project-info {
        bottom: 1.25rem;
        left: 1.25rem;
        padding: 0.625rem 1rem;
        max-width: calc(100% - 2.5rem);
    }

    .project-category {
        font-size: 0.75rem;
    }

    .why-section {
        padding: 4rem 1.5rem;
    }

    .why-header {
        margin-bottom: 3rem;
    }

    .why-grid {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .why-card {
        padding: 2rem 1.5rem;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.25rem;
    }

    .why-icon svg {
        width: 48px;
        height: 48px;
    }

    .why-card-title {
        font-size: 1.125rem;
    }

    .why-card-text {
        font-size: 0.9rem;
    }

    .services-section {
        padding: 4rem 1.5rem;
    }

    .services-header {
        margin-bottom: 3rem;
    }

    .services-list {
        gap: 2rem;
    }

    .service-name {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .service-tags {
        gap: 0.5rem;
    }

    .service-tag {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }

    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-header {
        margin-bottom: 2.5rem;
        padding: 0 1.5rem;
    }

    .testimonials-row {
        margin-bottom: 1.5rem;
    }

    .testimonial-card {
        width: 320px;
        padding: 1.25rem;
    }

    .testimonial-content {
        margin-bottom: 1rem;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .author-info h4 {
        font-size: 0.95rem;
    }

    .author-info p {
        font-size: 0.8rem;
    }

    .faq-section {
        padding: 4rem 1.5rem;
    }

    .faq-header {
        margin-bottom: 2.5rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 4rem 1.5rem 8rem 1.5rem;
    }

    .cta-section::after {
        height: 100px;
    }

    .cta-title {
        margin-bottom: 1rem;
    }

    .cta-description {
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .footer {
        min-height: 400px;
    }

    .footer-content {
        padding: 3rem 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        height: 32px;
    }

    .footer-tagline {
        font-size: 0.95rem;
    }

    .footer-column-title {
        font-size: 0.8rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .footer-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 1.25rem;
    }

    .hero-content-wrapper {
        padding: 3.5rem 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Grands écrans */
@media (min-width: 1600px) {
    .hero-content-wrapper {
        max-width: 1100px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        max-width: 850px;
    }

    .hero-cta {
        padding: 1.5rem 3.25rem;
        font-size: 1.25rem;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

/* Réduire les animations si l'utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4a7c59;
    outline-offset: 4px;
}

/* ========================================
   PROJECT PAGES
   ======================================== */
body.project-page {
    --case-bg: #f2f3ee;
    --case-surface: #ffffff;
    --case-muted: #6c727f;
    --case-border: rgba(13, 16, 23, 0.08);
    --case-accent: #4a7c59;
    --case-tonal: #e8ebe0;
    background: var(--case-bg);
    color: #12151b;
}

body.project-garage {
    --case-accent: #009ec3;
    --case-tonal: #e4f3f8;
}

body.project-chalet {
    --case-accent: #a52f2f;
    --case-tonal: #f3e8df;
}

body.project-ouellet {
    --case-accent: #D4AF37;
    --case-tonal: #faf6ed;
}

body.project-duoplus {
    --case-accent: #2c4a6b;
    --case-tonal: #ecf0f6;
}

body.project-provitalite {
    --case-accent: #87CEEB;
    --case-tonal: #e6f7ff;
}

body.project-sonic {
    --case-accent: #1E90FF;
    --case-tonal: #e3f2fd;
}

.project-main {
    margin-top: 80px;
}

.case-shell {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.case-hero {
    padding: 160px 0 80px;
}

.case-hero-card {
    background: var(--case-surface);
    border-radius: 32px;
    padding: clamp(2.5rem, 4vw, 4rem);
    box-shadow:
        0 20px 60px rgba(12, 16, 22, 0.08),
        0 1px 0 var(--case-border);
}

.case-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
}

.case-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--case-muted);
}

.case-title {
    font-family: 'Lastik', serif;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 1rem 0;
    color: #0c1018;
}

.case-lede {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #252933;
    margin-bottom: 1.5rem;
}

.case-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.case-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: #edf0f5;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.case-button svg {
    width: 16px;
    height: 16px;
}

.case-button:hover {
    background: var(--case-tonal);
    border-color: var(--case-border);
}

.case-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.case-tag {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(12, 18, 32, 0.12);
    font-size: 0.9rem;
    color: #181c25;
    background: #f7f8f5;
}

.case-meta {
    border-left: 1px solid var(--case-border);
    padding-left: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-meta-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--case-muted);
    margin-bottom: 0.3rem;
}

.case-meta-item strong {
    font-size: 1.05rem;
    color: #0b1018;
}

.case-note {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #474c57;
}

.case-hero-media {
    margin-top: 2.5rem;
    border-radius: 28px;
    overflow: hidden;
    background: #0c0f16;
    padding: 1.75rem;
}

.case-hero-media img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.section-block {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.section-block.light {
    background: var(--case-tonal);
}

.section-card {
    background: var(--case-surface);
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--case-border);
}

.section-header {
    margin-bottom: 2rem;
}

.section-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--case-muted);
}

.section-title {
    font-family: 'Lastik', serif;
    font-size: clamp(1rem, 4vw, 1.05rem);
    margin: 0.5rem 0 1rem;
    color: #0c1018;
}

.section-description {
    max-width: 720px;
    color: #2e3240;
    line-height: 1.7;
}

.section-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.case-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid var(--case-border);
}

.case-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.case-points {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.case-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #252933;
    font-weight: 500;
}

.case-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--case-accent);
    flex-shrink: 0;
}

.case-impact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.case-impact-item {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--case-surface);
    border: 1px solid var(--case-border);
}

.case-impact-item strong {
    display: block;
    font-size: 2rem;
    font-family: 'Lastik', serif;
    color: var(--case-accent);
    margin-bottom: 0.5rem;
}

.case-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* ========== Bento Grid ========== */
.case-bento {
    padding: 4rem 0;
    background: #FFF4D9;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 2px solid #111111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bento-label span {
    font-weight: 600;
    color: #111111;
    font-size: 0.95rem;
}

/* Bento Grid Layouts */
.bento-large {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 500px;
}

.bento-tall {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 500px;
}

.bento-square {
    grid-column: span 5;
    grid-row: span 1;
    min-height: 240px;
}

.bento-wide {
    grid-column: span 7;
    grid-row: span 1;
    min-height: 240px;
}

/* Quand il y a seulement 3 items (sans square et full), la carte texte prend toute la largeur */
.bento-grid:has(.bento-item:nth-child(3):last-child) .bento-wide {
    grid-column: span 12;
}

.bento-full {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 400px;
}

/* Container pour les cartes d'affaires côte à côte */
.business-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 2rem;
}

.business-card-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    aspect-ratio: 16 / 9;
}

.business-card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.business-card-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid #111111;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111111;
}

@media (max-width: 768px) {
    .business-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .business-card-item {
        padding: 1.5rem;
    }
}

/* Logo avec contain pour voir l'image complète */
.bento-logo {
    background: #111111;
}

/* Fond blanc pour les logos de ProVitalité et Sonic */
body.project-provitalite .bento-logo,
body.project-sonic .bento-logo {
    background: #ffffff;
}

.bento-logo img {
    object-fit: contain;
    padding: 2rem;
}

/* Bento Text Card */
.bento-text-card {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--case-accent);
}

.bento-text-card h3 {
    font-family: 'Lastik', serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bento-text-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Bento Grid */
@media (max-width: 968px) {
    .bento-large,
    .bento-tall,
    .bento-square,
    .bento-wide,
    .bento-full {
        grid-column: span 12;
        grid-row: span 1;
        min-height: 300px;
    }

    .bento-tall {
        min-height: 400px;
    }

    .bento-full {
        min-height: 250px;
    }

    .bento-logo img {
        padding: 1.5rem;
    }

    .bento-text-card {
        padding: 2rem;
    }

    .bento-text-card h3 {
        font-size: 1.75rem;
    }

    .bento-text-card p {
        font-size: 1rem;
    }
}

/* ========== Navigation entre projets ========== */
.project-nav {
    padding: 3rem 0;
    background: #FFF4D9;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.project-nav-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.project-nav-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.project-nav-card:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(17, 17, 17, 0.1);
}

.project-nav-direction {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-nav-direction span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    font-weight: 500;
}

.project-nav-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 1.3;
}

.project-nav-card svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    color: var(--case-accent);
    flex-shrink: 0;
}

.project-nav-card:first-child .project-nav-direction {
    align-items: flex-start;
}

@media (max-width: 768px) {
    .project-nav {
        padding: 2rem 0;
    }

    .project-nav-grid {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-nav-card {
        width: 100%;
        padding: 1.25rem;
    }

    .project-nav-card h3 {
        font-size: 0.95rem;
    }

    .project-nav-direction span {
        font-size: 0.7rem;
    }
}

.case-frame {
    border-radius: 28px;
    padding: 1.75rem;
    background: var(--case-surface);
    border: 1px solid var(--case-border);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-frame.is-dark {
    background: #0c0f16;
    border-color: transparent;
}

.case-frame img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.case-nav {
    padding: 4rem 0 6rem;
}

.case-nav-shell {
    width: min(900px, 92vw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-nav-link {
    flex: 1;
    min-width: 240px;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    background: var(--case-surface);
    border: 1px solid var(--case-border);
    text-decoration: none;
    color: #0f131d;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    transition: background 0.2s ease, transform 0.2s ease;
}

.case-nav-link span {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--case-muted);
}

.case-nav-link strong {
    font-size: 1.05rem;
}

.case-nav-link svg {
    width: 20px;
    height: 20px;
    color: var(--case-accent);
}

.case-nav-link:hover {
    transform: translateY(-4px);
    background: var(--case-tonal);
}

.case-nav-link.prev svg {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .case-hero-grid {
        grid-template-columns: 1fr;
    }

    .case-meta {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--case-border);
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .case-hero {
        padding: 140px 0 60px;
    }

    .case-nav-shell {
        flex-direction: column;
    }

    .case-frame {
        padding: 1rem;
    }
}
