@font-face {
    font-family: 'Lamoric Rowen';
    src: url('assets/fonts/Lamoric Rowen.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --bg-color: #202020;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-green: #3fbf87;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lamoric Rowen', serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --header-bg: rgba(32, 32, 32, 0.80);
    --border-color: rgba(255, 255, 255, 0.2);
    --project-blur: 4px;
}

body[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #202020;
    --text-muted: #666666;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 200;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.logo a {
    font-family: var(--font-secondary);
    font-weight: 400;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    /* offset for header */
    padding-bottom: 60px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    z-index: 1;
}

.section-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    z-index: 2;
}

.main-content {
    position: relative;
    width: 100%;
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--bg-color);
}

.btn-projects {
    background-color: var(--accent-green);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-projects:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(63, 191, 135, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 50px 5%;
    /* Épaissi (était 25px) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 22px 5%;
    /* Légèrement plus épais qu'avant lors du scroll (était 15px) */
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    /* Reste au dessus des autres layouts */
}

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-green);
    transition: var(--transition-smooth);
}

.nav-link.active::after,
.nav-link:not(.btn):hover::after {
    width: 100%;
}

.nav-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    /* Forcé en blanc */
    transition: var(--transition-smooth);
}

.social-icons a svg {
    width: 100%;
    height: 100%;
}

.social-icons a:hover {
    color: var(--accent-green);
    transform: translateY(-2px);
}

.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.desktop-lang-switcher {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.mobile-lang-switcher {
    display: none;
    z-index: 102;
    /* assure visibility on mobile header plane */
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 0;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: var(--accent-green);
    opacity: 1;
}

.lang-btn.active {
    color: var(--accent-green);
    opacity: 1;
    font-weight: 400;
}

.lang-separator {
    color: var(--border-color);
    font-size: 0.9rem;
    user-select: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-smooth);
}

/* Home Section Overhaul */
.scroller-home {
    padding-top: 0;
    /* Override offset to make marquee hit the top under header */
}

/* SECTION 1A: NOUVEAU HERO FULLSCREEN */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.parallax-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    will-change: transform;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: cinematicZoom 30s ease-out forwards;
    opacity: 0.25;
    /* Opacité demandée de 25% */
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    display: none;
    /* Plus de voile du tout */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 60px;
    background-color: rgba(32, 32, 32, 0.2);
    /* Rectangle Gris à 20% (#202020) */
    backdrop-filter: blur(15px);
    /* Effet flou sur l'image */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px 0 50px 0;
    /* Angles asymétriques: Haut-gauche et Bas-droite */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Bordure très fine et discrète (effet verre) */
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.hero-title__light {
    font-weight: 200;
}

.hero-title__regular {
    font-weight: 600;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--accent-green);
    /* Couleur verte du site */
    opacity: 0.9;
    margin: 0;
}

/* === INDICATEUR DE DEFILEMENT (Scroll Down) === */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 3;
    opacity: 0.8;
}

.scroll-text {
    font-family: var(--font-primary);
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-color);
}

.scroll-line {
    width: 2px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    animation: scrollDownAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDownAnim {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

/* SECTION 1B: HERO ANIMATED (Marquee) */
.hero-animated {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px; /* Espace vertical réduit (était 20px) */
    height: 100vh;
    width: 100vw;
    opacity: 1;
}

.marquee-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 10px; /* Espace horizontal réduit (était 20px) */
    width: max-content;
}

.marquee-content img {
    height: auto;
    width: 30vh;
    /* Base height-based width to avoid row explosion, but limit to fit ~10 horizontally */
    max-width: clamp(150px, 12vw, 300px);
    border-radius: 4px;
    /* Un peu moins arrondi pour un effet premium (facultatif mais pro) */
    object-fit: cover;
    aspect-ratio: 3/4;
    /* Ratio Portrait */
    transition: transform 0.6s ease, filter 0.6s ease;
    cursor: pointer;
}

.marquee-content img:hover {
    transform: scale(1.03);
    filter: brightness(0.7);
}

.js-marquee-left .marquee-content {
    animation: scroll-left 200s linear infinite;
    /* Extrêmement lent et majestueux */
}

.js-marquee-right .marquee-content {
    animation: scroll-right 200s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

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


/* SECTION 2: MON TRAVAIL */
.feature-work-container {
    padding: 100px 5%;
}

.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.work-card {
    position: relative;
    border-radius: 50px 0 50px 0;
    overflow: hidden;
    height: 400px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.work-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: blur(8px) brightness(0.6);
}

.work-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.4s ease;
}

.work-card:hover .card-bg {
    transform: scale(1.05);
    filter: blur(0px) brightness(1);
}

.work-card:hover .card-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.work-card:hover .card-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1px;
}

.card-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.work-card:hover .card-content {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.card-label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.work-card:hover .card-label {
    opacity: 0;
    transform: translateY(10px);
}

/* SECTION 3: PRÉSENTATION */
/* Wrapper pour centrer l'ensemble */
.presentation-outer {
    display: flex;
    justify-content: center;
    padding: 110px 5%;
}

.presentation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 90px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    border: none;
    margin: 0;
}

.presentation-image {
    width: 100%;
    border-radius: 50px 0 50px 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.presentation-image:hover img {
    transform: scale(1.03);
}

/* Bloc texte : flex colonne, centré verticalement par le grid align-items */
.presentation-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.presentation-content {
    width: 100%;
}

.presentation-title {
    font-family: var(--font-secondary);
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-color);
}

.title-regular {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.9em;
    display: inline-block;
    margin-right: 12px;
}

.presentation-description {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 44px;
    font-weight: 300;
    letter-spacing: 0.2px;
}

.presentation-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}


.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background-color: rgba(136, 136, 136, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.35s ease;
    border: 1px solid var(--border-color);
}

.skill-icon:hover {
    color: var(--accent-green);
    transform: translateY(-5px);
    border-color: var(--accent-green);
    background-color: rgba(63, 191, 135, 0.1);
}

.skill-icon svg {
    margin-bottom: 8px;
}

.skill-icon span {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* === VRAIS LOGOS OFFICIELS — icônes nues, sans cadre ni texte === */
.skill-icon--logo {
    /* Reset de .skill-icon */
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    flex-direction: column;
    align-items: center;
}

.skill-icon--logo:hover {
    transform: translateY(-4px);
    background: none;
    border: none;
}

.skill-logo {
    width: 56px;
    height: 56px;
    /* contain = tous les SVGs à la même taille visuelle, quelle que soit leur proportion */
    object-fit: contain;
    /* Coins asymétriques haut-gauche / bas-droit */
    border-radius: 14px 0 14px 0;
    display: block;
    /* N&B par défaut */
    filter: grayscale(1) brightness(0.65);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.skill-icon--logo:hover .skill-logo {
    filter: grayscale(0) brightness(1);
    transform: scale(1.08);
}

/* Pas de label texte sous les logos */
.skill-icon--logo span {
    display: none;
}

/* WordPress SVG plus imposant visuellement — on le réduit */
[aria-label="WordPress"] .skill-logo {
    width: 42px;
    height: 42px;
}

/* SECTION 4: AVIS CLIENTS */
.testimonials-section {
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-carousel {
    width: 100vw;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

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

.testimonials-track.js-marquee-left {
    animation: scroll-left-testi 55s linear infinite;
}

@keyframes scroll-left-testi {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    width: 450px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 60px 0 60px 0;
    padding: 50px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--text-color);
}

.author-company {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Work Section */
.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 50px 0 50px 0;
    /* Forme asymétrique de la DA */
    position: relative;
    aspect-ratio: 4/3;
    /* Format horizontal strict */
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: blur(8px) brightness(0.6);
    /* Flou ambiant et fond sombre */
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: blur(0px) brightness(1);
    /* Révélation de l'image (Clear focus) */
}

/* === ICONES DE GALERIE === */
.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .gallery-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.gallery-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1px;
    /* Tracé très fin et élégant */
}

/* Ensure varied sizes to mimic masonry loosely by modifying child heights */
.gallery-item:nth-child(2) {
    transform: translateY(40px);
}

.gallery-item:nth-child(5) {
    transform: translateY(40px);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 8vh;
    min-height: calc(100vh - 100px);
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    transition: transform 1.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    flex: 1;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Contact Section */
.contact-container {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-info {
    margin-top: 40px;
}

.info-item {
    margin-bottom: 25px;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.info-link {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
}

.info-link:hover {
    color: var(--accent-green);
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.social-link:hover {
    color: var(--accent-green);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-bottom-color: var(--accent-green);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: auto;
}

/* Animations (Scroll Reveal) */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stat items: slide-in from left with stagger */
.fade-in-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(2) { transition-delay: 0.1s; }
.stat-item:nth-child(3) { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 1100px) {
    .nav-list {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -80%;
        width: 80%;
        height: 100vh;
        background-color: rgba(32, 32, 32, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.22s ease;
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 102;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-lang-switcher {
        display: flex;
    }

    .desktop-lang-switcher {
        display: none !important;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        transform: translateY(0);
    }

    .gallery-item:nth-child(even) {
        transform: translateY(40px);
    }

    .about-container {
        gap: 4vh;
    }
}

@media (max-width: 768px) {
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .split-cards {
        grid-template-columns: 1fr;
    }

    .presentation-outer {
        padding: 60px 6%;
    }

    .presentation-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Le wrapper disparaît sur mobile — ses enfants deviennent flex items directs */
    .presentation-text {
        display: contents;
    }

    .presentation-title {
        text-align: center;
        font-size: 1.6rem;
        order: 1;
        margin-bottom: 0;
        width: 100%;
    }

    .presentation-image {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        order: 2;
    }

    .presentation-content {
        text-align: center;
        order: 3;
    }

    .presentation-skills {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .presentation-skills .skill-logo {
        width: 38px;
        height: 38px;
    }
    [aria-label="WordPress"] .skill-logo {
        width: 30px;
        height: 30px;
    }

    .testimonial-card {
        width: 240px;
        padding: 16px 18px;
        text-align: left;
        border-radius: 36px 0 36px 0;
    }
    .testimonial-text {
        font-size: 0.85rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item:nth-child(even) {
        transform: translateY(0);
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content .section-title {
        text-align: center;
    }

    /* ── Header mobile ── */
    .header {
        padding: 18px 5%;
    }
    .header.scrolled {
        padding: 22px 5%;
    }
    .logo a {
        font-size: 1.4rem;
    }
    .about-page, .contact-page, .review-page {
        padding-top: 90px !important;
    }
    .projects-page {
        padding-top: 90px;
    }

    /* ── Contact form — 1 champ par ligne ── */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .form-row > div {
        margin-bottom: 16px;
    }

    /* ── Hero rectangle ── */
    .hero-content {
        padding: 22px 26px;
        gap: 8px;
        border-radius: 28px 0 28px 0;
        max-width: 82vw;
    }

    /* ── Marquee photos ── */
    .marquee-content img {
        max-width: 72px;
        width: 72px;
    }
    .hero-animated {
        height: auto;
    }
    .marquee-wrapper {
        height: auto;
        padding: 20px 0;
        gap: 5px;
    }
    .marquee-content {
        gap: 5px;
    }

    /* ── Carousel fades ── */
    .carousel-fade-left,
    .carousel-fade-right {
        width: 50px;
    }

    /* ── Section titles ── */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* ── Boutons uniformes mobile ── */
    .btn,
    .btn-primary,
    .btn-projects,
    .btn-submit {
        padding: 10px 24px !important;
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
        border-radius: 40px !important;
    }

    /* ── Carousel projets (home) ── */
    .feature-work-container {
        padding: 30px 0;
    }
    .carousel-card {
        width: 34vw !important;
        height: 48vw !important;
        border-radius: 12px 0 12px 0 !important;
    }
    .carousel-track {
        gap: 12px !important;
    }
    .projects-carousel {
        padding: 8px 0 12px;
    }
    .carousel-card-overlay {
        opacity: 1;
    }
    .carousel-card-cat {
        font-size: 0.55rem;
        letter-spacing: 1px;
        margin-bottom: 3px;
    }
    .carousel-card-title {
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Vitesse animations mobile ── */
    .js-marquee-left .marquee-content,
    .js-marquee-right .marquee-content {
        animation-duration: 70s;
    }
    .testimonials-track.js-marquee-left {
        animation-duration: 28s;
    }
    /* ── Espace testimonials ── */
    .testimonials-section {
        padding: 40px 0;
    }

    /* ── Project overlay toujours visible sur mobile ── */
    .project-card-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    .project-title {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FOOTER (SITE-FOOTER) - Premium Refined Layout
   ========================================================================== */

.site-footer {
    padding: 100px 0 60px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* TOP ROW: Logo and Navigation */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo .nav-brand {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -1px;
}

.footer-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav .footer-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-nav .footer-link:hover {
    color: var(--accent-green);
    letter-spacing: 3px;
}

/* SEPARATOR */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

/* BOTTOM ROW: Copyright and Socials */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 200;
    opacity: 0.6;
    letter-spacing: 0.8px;
}

.footer-socials {
    display: flex;
    gap: 25px;
}

.footer-social-link {
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
}

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

.footer-social-link:hover {
    color: var(--accent-green);
    transform: translateY(-4px) scale(1.1);
}

/* RESPONSIVE FOOTER */
@media (max-width: 991px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 30px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 80px 0 40px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== Section divider ===== */
.section-divider {
    width: 80%;
    max-width: 1200px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

/* ===== Projects Carousel (homepage) ===== */
.projects-carousel-section {
    position: relative;
    overflow: hidden;
    margin: 0 0 0 0;
}

.carousel-fade-left,
.carousel-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.projects-carousel {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    padding: 12px 0 20px;
}

.projects-carousel.dragging {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 36px;
    width: max-content;
    will-change: transform;
}

.carousel-card {
    flex: 0 0 auto;
    width: 340px;
    height: 480px;
    border-radius: 28px 0 28px 0;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    display: block;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.carousel-card:hover img {
    transform: scale(1.06);
}

.carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.carousel-card:hover .carousel-card-overlay {
    opacity: 1;
}

.carousel-card-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: 7px;
    font-weight: 400;
}

.carousel-card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
}

/* ===== Projet: page 'Projets' (styles externalisés) ===== */
.projects-page {
    padding-top: 12vh;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.projects-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 5%;
}

.projects-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--text-color);
    margin-bottom: 14px;
}

.projects-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-weight: 300;
}

/* ===== Filter bar ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 0 5%;
}

.filter-btn {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-green);
    color: var(--text-color);
}

.filter-btn.active {
    background: var(--accent-green);
    color: var(--bg-color);
    border-color: var(--accent-green);
}

/* Use auto-fit with a smaller min width so tiles stay compact */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.projects-grid .project-card {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

@media (min-width: 1300px) {
    .projects-grid .project-card {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

.project-card {
    position: relative;
    aspect-ratio: 3/4; /* slightly less tall */
    /* DA : angles arrondis haut-gauche et bas-droite (comme le reste du site) */
    border-radius: 50px 0 50px 0;
    overflow: hidden;
    background-color: #1a1a1a;
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-height: 160px;
    max-height: 420px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter 0.45s ease;
    filter: none;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.project-card:hover img {
    transform: scale(1.04);
    filter: blur(4px);
}

.project-card:hover .project-card-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.project-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: 6px;
    font-weight: 400;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-title {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .projects-grid .project-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 650px) {
    .projects-grid {
        gap: 10px;
    }
    .projects-grid .project-card {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
    .projects-title {
        font-size: 2rem;
    }
}

/* ── Project cards mobile : titre toujours visible + slide-up au scroll ── */
@media (max-width: 768px) {
    /* Overlay gradient toujours présent */
    .project-card-overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 65%);
    }

    /* Catégorie et titre partent légèrement en bas, invisibles */
    .project-category,
    .project-title {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .project-category {
        font-size: 0.55rem;
        transition-delay: 0.05s;
    }
    .project-title {
        font-size: 0.78rem;
        transition-delay: 0.18s;
    }

    /* Slide-up dès que la carte entre dans le viewport */
    .project-card.revealed .project-category,
    .project-card.revealed .project-title {
        opacity: 1;
        transform: none;
    }

    /* Pas de blur / scale au tap */
    .project-card:hover img {
        transform: none;
        filter: none;
    }
    .project-card:hover .project-card-overlay {
        pointer-events: none;
    }
}
