/* ========================================
   VARIABLES CSS ET CONFIGURATION GLOBALE
   ======================================== */
:root {
    --primary-color: #87CEEB;
    /* Bleu ciel principal */
    --secondary-color: #4682B4;
    /* Bleu ciel foncé */
    --accent-color: #E6F3FF;
    /* Light blue accent */
    --text-light: #FFFFFF;
    /* Blanc */
    --text-dark: #2C3E50;
    /* Texte foncé */
    --bg-light: #F8F9FA;
    /* Gris très clair */
    --shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
    --shadow-hover: 0 15px 40px rgba(135, 206, 235, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --footer-bg: #FBFCFF;
    --footer-bg-gradient: linear-gradient(135deg, #F0F8FF 0%, #E6F3FF 50%, #FBFCFF 100%);
}


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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(180deg, #F9FBFF 0%, #F4F8FF 40%, #EFF6FF 100%);
    background-attachment: fixed;
    transition: background 0.3s ease, color 0.3s ease;
}


/* Arrière-plan décoratif doux et non intrusif */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
}

body::before {
    top: -200px;
    right: -150px;
    background: radial-gradient(circle at center, rgba(135, 206, 235, 0.6), rgba(135, 206, 235, 0));
}

body::after {
    bottom: -220px;
    left: -160px;
    background: radial-gradient(circle at center, rgba(70, 130, 180, 0.5), rgba(70, 130, 180, 0));
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ========================================
   LOADER DE DÉMARRAGE
   ======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-inner div {
    position: absolute;
    border: 4px solid var(--primary-color);
    opacity: 1;
    border-radius: 50%;
    animation: loader-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader-inner div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes loader-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* ======================================== NAVIGATION ======================================== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(135, 206, 235, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    box-shadow: 0 8px 32px rgba(135, 206, 235, 0.25);
    border-bottom: 1px solid rgba(135, 206, 235, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 20px;
}

/* ========================================
   NAV MENU
   ======================================== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.2), transparent);
    transition: left 0.5s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background: rgba(135, 206, 235, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2);
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover::after {
    width: 80%;
}


/* ========================================
   BURGER MENU MOBILE - ENHANCED
   ======================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.menu-toggle:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.menu-toggle:active {
    transform: translateY(0) scale(0.95);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.menu-toggle span:nth-child(1) {
    transform-origin: left center;
}

.menu-toggle span:nth-child(3) {
    transform-origin: left center;
}

/* Animation états du burger menu */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--text-dark);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--text-dark);
}

.menu-toggle.active {
    background: transparent;
    transform: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--text-light) 100%);
}

/* Vidéo background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Overlay gradient moderne */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(135, 206, 235, 0.8) 0%,
            rgba(255, 255, 255, 0.6) 30%,
            rgba(70, 130, 180, 0.7) 100%);
    z-index: 1;
}

/* Particules animées en arrière-plan */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(70, 130, 180, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .particle {
        display: none;
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: var(--text-dark);
    padding: 20px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

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

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

.hero-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
    /* Adjust size as needed */
    width: 100%;
    height: auto;
    animation: titleGlow 3s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: none;
    animation: none;
    background: none;
    background-size: auto;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
    background-clip: initial;
}

section.hero h1 {
    font-size: clamp(1.6rem, 5vw, 3rem);

}

.hero h1,
.hero p {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(70, 130, 180, 0.3);
    }

    50% {
        text-shadow: 0 0 40px rgba(70, 130, 180, 0.5);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: white;
    opacity: 0.8;
}

.cta-button {
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    padding: 14px 22px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.9), rgba(135, 206, 235, 0.85));
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    min-height: 52px;
    min-width: 200px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 18px rgba(70, 130, 180, 0.28);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.92), rgba(70, 130, 180, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(70, 130, 180, 0.32);
}

.cta-button>svg {
    width: 22px;
    height: 22px;
    margin-left: 12px;
    transition: transform 0.3s ease-in-out;
    fill: currentColor;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.cta-button:active {
    transform: scale(0.97);
}

/* Desktop smaller than before */
@media (min-width: 1024px) {
    .hero .cta-button {
        width: 100%;
        max-width: 720px;
        padding: 16px 28px;
        font-size: 16px;
        min-height: 56px;
        margin: 0 auto;
    }
}

/* Tablet/mobile smaller and remove yellow shadow */
@media (max-width: 768px) {
    .hero .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 14px 22px;
        font-size: 15px;
        min-height: 50px;
        margin: 0 auto;
        box-shadow: 0 6px 16px rgba(70, 130, 180, 0.28);
    }
}

/* Touch devices: also ensure no yellow shadows */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 50px;
        padding: 14px 22px;
        font-size: 15px;
        border-radius: 100px;
        box-shadow: 0 6px 16px rgba(70, 130, 180, 0.28);
        background: linear-gradient(135deg, rgba(70, 130, 180, 0.9), rgba(135, 206, 235, 0.85));
    }

    .cta-button:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
        box-shadow: 0 3px 12px rgba(70, 130, 180, 0.25);
    }
}

/* Hover devices: keep blue hover */
@media (hover: hover) and (pointer: fine) {
    .cta-button:hover {
        transform: translateY(-1px);
        background: linear-gradient(135deg, rgba(135, 206, 235, 0.92), rgba(70, 130, 180, 0.9));
    }
}

.cta-button:focus-visible {
    outline: 3px solid rgba(207, 239, 0, 0.6);
    outline-offset: 2px;
}


/* Améliorations tactiles pour mobile */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 60px;
        padding: 18px 28px;
        font-size: 16px;
        border-radius: 100px;
        box-shadow: 0 6px 20px rgba(207, 239, 0, 0.4);
    }

    .cta-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
        box-shadow: 0 3px 15px rgba(207, 239, 0, 0.3);
    }

    .cta-button>svg {
        width: 22px;
        height: 22px;
        margin-left: 12px;
    }
}

/* Support pour les appareils avec hover */
@media (hover: hover) and (pointer: fine) {
    .cta-button:hover {
        transform: translateY(-2px);
        background: #c4e201;
    }
}

/* ========================================
   SECTION CATÉGORIES
   ======================================== */
.categories {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--text-light);
    transition: background 0.3s ease;
}


.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    color: var(--secondary-color);
    animation: fadeIn 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0) rotateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
    perspective: 1000px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.03);
    box-shadow: 0 25px 50px rgba(135, 206, 235, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(70, 130, 180, 0.95), rgba(135, 206, 235, 0.3), transparent);
    padding: 30px;
    color: var(--text-light);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-card:hover .category-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(70, 130, 180, 0.98), rgba(135, 206, 235, 0.4), transparent);
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.category-count {
    opacity: 0.9;
    font-size: 1rem;
    color: var(--text-light);
}

/* ========================================
   SECTION QUI SOMMES-NOUS
   ======================================== */
.about-us {
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(135, 206, 235, 0.3)), 
                url('../images/gallery/collection-moderne.avif') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
}

.about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(135, 206, 235, 0.2) 30%,
        rgba(70, 130, 180, 0.1) 70%,
        rgba(255, 255, 255, 0.9) 100%);
    z-index: 1;
}

.about-us::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(70, 130, 180, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    z-index: 2;
    animation: float-overlay 20s ease-in-out infinite;
}

@keyframes float-overlay {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-logo {
    position: relative;
    display: inline-block;
}

.about-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    transition: none;
    position: relative;
    z-index: 1;
}

.about-logo-img:hover {
    transform: none;
    box-shadow: none;
}

.about-logo::before {
    display: none;
}

.about-title {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 50%, 
        var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.8rem, 6vw, 4rem);
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(135, 206, 235, 0.2);
}

.about-title::after {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 120px;
    height: 3px;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-values {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.values-timeline {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(135, 206, 235, 0.08) 50%, 
        rgba(255, 255, 255, 0.98) 100%);
    padding: 50px 40px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(135, 206, 235, 0.25);
    box-shadow: 
        0 20px 40px rgba(135, 206, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    max-width: 800px;
    width: 100%;
}

.values-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 80px;
    bottom: 80px;
    width: 3px;
    background: linear-gradient(180deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%,
        var(--primary-color) 100%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.3);
    transition: all 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.4);
}

.timeline-content {
    margin-left: 30px;
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(135, 206, 235, 0.2);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(255, 255, 255, 0.8);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-content p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    opacity: 0.85;
}

/* Special styling for intro item */
.intro-item .timeline-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(135, 206, 235, 0.12) 50%, 
        rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(135, 206, 235, 0.3);
}

.intro-item .timeline-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
}

.intro-item .timeline-content strong {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Animation when visible */
.about-us.visible .timeline-item {
    opacity: 1;
    transform: translateX(0);
}

/* Animations d'entrée */
.about-us .fade-in-left {
    opacity: 0;
    transform: translateX(-80px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-us .fade-in-right {
    opacity: 0;
    transform: translateX(80px) scale(0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-us .scale-in {
    opacity: 0;
    transform: scale(0.7) translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-us.visible .fade-in-left,
.about-us.visible .fade-in-right,
.about-us.visible .scale-in {
    opacity: 1;
    transform: translateX(0) scale(1) translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-us {
        padding: 80px 15px;
        background-attachment: scroll;
    }
    
    .about-content {
        gap: 50px;
    }
    
    .about-logo-img {
        width: 100px;
        height: 100px;
    }
    
    .about-description {
        font-size: 1.2rem;
        padding: 30px;
    }
    
    .values-timeline {
        padding: 40px 25px;
        margin: 0 10px;
    }
    
    .values-timeline::before {
        left: 35px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        margin-left: 25px;
        padding: 20px 25px;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-us {
        padding: 60px 10px;
    }
    
    .about-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .about-description {
        font-size: 1.1rem;
        padding: 25px 20px;
    }
    
    .values-timeline {
        padding: 35px 20px;
        margin: 0 5px;
    }
    
    .values-timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .timeline-content {
        margin-left: 20px;
        padding: 18px 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ========================================
   GALERIE DE PRODUITS
   ======================================== */
.gallery {
    padding: 100px 20px;
    background: var(--bg-light);
    transition: background 0.3s ease;
}


/* Carrousel Galerie */
.gallery-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-viewport {
    overflow: hidden;
}

/* Hint to skip offscreen rendering and speed up initial paint */
.gallery-viewport {
    content-visibility: auto;
    contain-intrinsic-size: 600px 400px;
}

.gallery-carousel .gallery-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(135, 206, 235, 0.9);
    color: var(--text-light);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(135, 206, 235, 0.3);
}

@media (max-width: 480px) {
    .gallery-nav {
        width: 38px;
        height: 38px;
    }
}

.gallery-prev {
    left: -10px;
}

.gallery-next {
    right: -10px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(135, 206, 235, 0.3);
}

/* existing grid rules are overridden inside carousel scope */

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--text-light);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }

    from {
        opacity: 0;
        transform: scale(0.9);
    }
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(135, 206, 235, 0.3);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 25px;
    background: var(--text-light);
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Badge "Nouveau" animé */
.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #B3E5FC, #81D4FA);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: badge-pulse 2s infinite;
}
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFC300); /* Jaune vif */
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   MODAL LIGHTBOX
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    background: rgba(135, 206, 235, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
}

.modal-nav:hover {
    background: rgba(135, 206, 235, 0.5);
    color: var(--primary-color);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ========================================
   SECTION CONTACT - REFINED
   ======================================== */
.contact {
    padding: 120px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(135, 206, 235, 0.4)),
                url('../images/gallery/nav-menu.avif') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.7) 0%,
            rgba(135, 206, 235, 0.3) 50%,
            rgba(240, 248, 255, 0.8) 100%);
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(70, 130, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 25s ease-in-out infinite reverse;
    z-index: 2;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Contact Methods - Unified */
.contact-info-section {
    position: sticky;
    top: 100px;
}

.contact-methods {
    display: flex;
    justify-content: center;
}

.contact-method-unified {
    background: rgba(255, 255, 255, 0.25);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(135, 206, 235, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.15);
    max-width: 500px;
    width: 100%;
}

.contact-method-unified:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.2);
    background: rgba(255, 255, 255, 0.35);
}

.unified-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(135, 206, 235, 0.3);
}

.unified-header h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    font-weight: 700;
}

/* Compact Contact Layout */
.contact-options-compact {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

.contact-item-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.contact-item-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    opacity: 0.8;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.whatsapp-link {
    font-size: 0.95rem;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
    background: rgba(255, 255, 255, 0.25);
    padding: 50px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(135, 206, 235, 0.3);
    box-shadow: 0 20px 40px rgba(135, 206, 235, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1rem;
}

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

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    opacity: 0.9;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 2;
    opacity: 0.8;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid rgba(135, 206, 235, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 15px;
}

.field-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.4);
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-feedback {
    font-size: 1rem;
    margin-bottom: 15px;
    min-height: 25px;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0;
}

.privacy-note i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-info-section {
        position: static;
    }
    
    .contact-method-unified {
        max-width: 100%;
    }
    
    .contact-form-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 15px;
        background-attachment: scroll;
    }
    
    .contact-header {
        margin-bottom: 50px;
    }
    
    .contact-method-unified {
        padding: 30px 25px;
    }
    
    .contact-options {
        gap: 20px;
    }
    
    .contact-option {
        padding: 15px;
    }
    
    .option-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .contact-form-section {
        padding: 30px 25px;
    }
    
    .form-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 12px 12px 12px 40px;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 60px 10px;
    }
    
    .contact-method-unified {
        padding: 25px 20px;
    }
    
    .contact-option {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .option-icon {
        margin: 0 auto 10px;
    }
    
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 12px 10px 12px 35px;
    }
    
    .input-icon {
        left: 12px;
    }
}

/* ========================================
   FOOTER
   ======================================== */

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

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

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--footer-bg-gradient);
    color: var(--text-light);
    padding: 40px 15px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 900px;
    /* moins large qu’avant (1200px) */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 6px;
    }
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 80px;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    align-items: start;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.15);
}

.footer-col h4 {
    color: #2c3e50;
    margin-bottom: 12px;
}

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

.footer-col ul li {
    margin: 8px 0;
}

.footer-col ul li a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-col.newsletter form {
    display: flex;
    gap: 8px;
}

.footer-col.newsletter input[type="email"] {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(44, 62, 80, 0.15);
    outline: none;
}

.footer-col.newsletter button {
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    background: var(--secondary-color);
    color: var(--text-light);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-col.newsletter button:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
}

/* Accent décoratif en haut du footer */
footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 240px;
    background: radial-gradient(ellipse at center, rgba(135, 206, 235, 0.25), rgba(135, 206, 235, 0) 60%);
    pointer-events: none;
}

.footer-logo img {
    max-width: 120px;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.08));
}

.footer-tagline {
    margin-top: 8px;
    color: #2c3e50;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* réduit l’écart entre les icônes */
    margin: 25px 0;
    flex-wrap: wrap;
    /* pour éviter que ça déborde en petit écran */
}

.social-link {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1.3rem;
    border: 1px solid rgba(44, 62, 80, 0.12);
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.15);
}

.social-link:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(135, 206, 235, 0.25);
}

/* Focus accessibility */
.social-link:focus-visible {
    outline: 3px solid rgba(135, 206, 235, 0.6);
    outline-offset: 3px;
}

/* Brand-like hovers for friendliness and recognizability */
.social-link[aria-label="Facebook"]:hover {
    background: #1877F2;
}

.social-link[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link[aria-label="Email"]:hover {
    background: #2C3E50;
}

.footer-text {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.75;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-text p {
    color: #2c3e50;
}

@media (max-width: 768px) {
    footer {
        padding: 32px 15px 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .footer-logo img {
        max-width: 90px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}


/* ========================================
   INDICATEUR DE PROGRESSION DE SCROLL
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

/* ========================================
   BOUTON RETOUR EN HAUT
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 15px 35px rgba(70, 130, 180, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {

    /* Navbar */
    .nav-container {
        justify-content: center;
        padding: 15px;
    }

    .nav-controls {
        right: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
        display: flex;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%,
            rgba(240, 248, 255, 0.98) 50%,
            rgba(255, 255, 255, 0.95) 100%);
        border-left: 1px solid rgba(135, 206, 235, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    /* Menu overlay pour fermer en cliquant à l'extérieur */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
        opacity: 0;
    }

    .nav-menu.active {
        right: 0;
        transform: none;
    }

    .nav-menu.active::before {
        left: -320px;
        opacity: 1;
    }

    /* Ajustements des liens pour mobile */
    .nav-menu li {
        margin: 0;
        transform: translateX(50px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active li {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-menu a {
        font-size: 1.3rem;
        font-weight: 600;
        text-align: left;
        padding: 18px 25px;
        margin: 8px 0;
        border-radius: 15px;
        color: var(--text-dark);
        display: flex;
        align-items: center;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        transform: scaleY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 2px 2px 0;
    }

    .nav-menu a:hover {
        background: rgba(135, 206, 235, 0.15);
        color: var(--secondary-color);
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2);
    }

    .nav-menu a:hover::before {
        transform: scaleY(1);
    }

    .nav-menu a:active {
        transform: translateX(5px) scale(0.98);
    }

    /* Bouton de fermeture du menu */
    .nav-menu::after {
        content: '×';
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 2.5rem;
        color: var(--text-dark);
        cursor: pointer;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(135, 206, 235, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 300;
        line-height: 1;
    }

    .nav-menu::after:hover {
        background: rgba(135, 206, 235, 0.2);
        color: var(--secondary-color);
        transform: rotate(90deg) scale(1.1);
    }

    /* Add subtle animation for menu items */
    .nav-menu a {
        position: relative;
    }

    .nav-menu a::after {
        content: '→';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .nav-menu a:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    /* Improve touch feedback */
    .nav-menu a:active {
        background: rgba(135, 206, 235, 0.25);
        transform: translateX(8px) scale(0.98);
    }

    /* Add loading state for menu items */
    .nav-menu.loading a {
        pointer-events: none;
        opacity: 0.7;
    }

    /* Enhance backdrop blur on supported browsers */
    @supports (backdrop-filter: blur(20px)) {
        .nav-menu {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
        }
    }

    /* Fallback for browsers without backdrop-filter */
    @supports not (backdrop-filter: blur(20px)) {
        .nav-menu {
            background: rgba(255, 255, 255, 0.98);
        }
    }

    /* Hero */
    .hero {
        padding: 40px 15px;
        /* éviter coupures latérales */
    }

    .hero-logo {
        max-width: 150px;
        /* logo réduit */
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 1.05rem;
        margin: 0 auto 18px;
        max-width: 28ch;
    }

    .cta-button {
        padding: 18px 28px;
        font-size: 16px;
        border-radius: 100px;
        min-height: 60px;
        min-width: 240px;
        box-shadow: 0 6px 20px rgba(207, 239, 0, 0.4);
    }

    .cta-button>svg {
        width: 22px;
        height: 22px;
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .cta-button {
        width: 100%;
        max-width: 340px;
        padding: 20px 32px;
        font-size: 17px;
        min-height: 64px;
        border-radius: 100px;
        box-shadow: 0 8px 25px rgba(207, 239, 0, 0.4);
        margin: 0 auto;
    }

    .cta-button>svg {
        width: 24px;
        height: 24px;
        margin-left: 14px;
    }

    .cta-button:hover,
    .cta-button:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(207, 239, 0, 0.5);
    }

    .cta-button:active {
        transform: scale(0.95);
    }

    .gallery-carousel .gallery-grid {
        grid-auto-columns: 100%;
    }

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

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Mobile menu adjustments for small screens */
    .nav-menu {
        width: 100vw;
        right: -100vw;
        padding: 70px 25px 25px;
    }

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

    .nav-menu.active::before {
        left: -100vw;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 16px 20px;
        margin: 6px 0;
    }

    /* Better touch targets */
    .menu-toggle {
        padding: 14px;
        min-width: 50px;
        min-height: 50px;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
    }
}

/* ========================================
   ANIMATIONS AU SCROLL
   ======================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations d'entrée spécialisées */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   EFFETS SUPPLÉMENTAIRES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Uiverse.io CTA by alexmaracinaru (adapted) */
.cta {
    position: relative;
    margin: auto;
    padding: 12px 18px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: #b1dae7;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.cta span {
    position: relative;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #234567;
}

.cta svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #234567;
    stroke-width: 2;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.cta:hover:before {
    width: 100%;
    background: #b1dae7;
}

.cta:hover svg {
    transform: translateX(0);
}

.cta:active {
    transform: scale(0.95);
}

/* Ensure CTA label stays on a single line and spacing is comfortable */
.cta {
    white-space: nowrap;
    gap: 10px;
}

.hero .cta {
    width: auto;
    max-width: none;
}

/* Responsive adjustments to avoid wrapping on very small screens */
@media (max-width: 480px) {
    .cta {
        padding: 10px 14px;
    }

    .cta span {
        font-size: 16px;
        letter-spacing: 0.03em;
    }

    .cta svg {
        width: 20px;
        height: 20px;
        margin-left: 8px;
        transform: translateX(-4px);
    }
}

/* Uiverse.io button by Creatlydev (adapted to sky-blue theme) */
.button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
}

/* Set default CTA color to theme primary (sky blue) */
.hero .button {
    --clr: rgba(70, 130, 180, 0.3);
    animation: heroCtaFloat 3.2s ease-in-out infinite;
    box-shadow: 0 10px 24px rgba(82, 193, 240, 0.25);
}

/* Semi-transparent hover to keep background visible */
.hero .button:hover {
    background-color: rgba(70, 130, 180, 0.3);
    /* secondary color with alpha */
}

@keyframes heroCtaFloat {

    0%,
    100% {
        transform: translateX(-8px);
        box-shadow: 0 10px 24px rgba(46, 163, 213, 0.25);
    }

    50% {
        transform: translateX(8px);
        box-shadow: 0 16px 28px rgba(125, 127, 128, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .button {
        animation: none;
    }
}

.button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* Use theme secondary blue on hover instead of black */
.button:hover {
    background-color: var(--secondary-color);
}

.button:hover .button__icon-wrapper {
    color: var(--secondary-color);
}

.button__icon-svg {
    width: 18px;
    height: 18px;
}

.button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.button:hover .button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.button:hover .button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}

/* Responsive tweak to keep single line */
@media (max-width: 480px) {
    .button {
        padding: 0.65rem 1.2rem;
    }

    .button__icon-wrapper {
        width: 22px;
        height: 22px;
    }

    .button__icon-svg {
        width: 16px;
        height: 16px;
    }
}