:root {
    --primary-color: #2c1e16;
    --secondary-color: #a67c52;
    --accent-color: #d4af37;
    --bg-color: #fbf9f6;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

header {
    background-color: transparent;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    width: auto;
    mix-blend-mode: multiply;
    transition: height 0.4s ease;
}

header.scrolled .logo-img {
    height: 90px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header.scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

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

.nav-link:hover {
    color: var(--secondary-color);
}

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

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

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

header.scrolled .menu-toggle .bar {
    background-color: var(--primary-color);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(rgba(44, 30, 22, 0.45), rgba(44, 30, 22, 0.65)), url('images/sac-weekend-rose.jpeg') center/cover;
    background-attachment: fixed;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    font-size: 4.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* General Sections */
.section {
    padding: 8rem 5%;
    text-align: center;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section>p {
    max-width: 700px;
    margin: 3rem auto 0;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Produits Grid */
.produits {
    background-color: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    max-width: 1200px;
    margin-inline: auto;
}

.card {
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.card h3 {
    padding: 2rem 2rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.card p {
    padding: 0 2rem 2.5rem;
    font-size: 1rem;
    color: var(--text-light);
}

/* Sur Mesure Form */
.surmesure {
    background-color: var(--bg-color);
}

form {
    max-width: 700px;
    margin: 4rem auto 0;
    background: var(--white);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fcfcfc;
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

textarea {
    resize: vertical;
    min-height: 180px;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 8px 15px rgba(166, 124, 82, 0.2);
    transform: translateY(-2px);
}

/* Contact & Footer */
.contact {
    background-color: var(--white);
    padding-bottom: 6rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 5%;
}

footer p {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

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

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

/* Responsive */
@media (max-width: 900px) {
    .section h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3.2rem;
    }
    
    .logo-img {
        height: 100px;
    }
    
    header.scrolled .logo-img {
        height: 80px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    
    .logo-img {
        height: 80px;
    }
    
    header.scrolled .logo-img {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

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

    .nav-link {
        color: var(--text-color);
        font-size: 1.2rem;
        text-shadow: none;
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 5rem 5%;
    }

    form {
        padding: 2.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .card h3 {
        padding: 1.5rem 1.5rem 0.5rem;
    }
    
    .card p {
        padding: 0 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .card img {
        height: 300px;
    }
    
    form {
        padding: 1.5rem;
    }
}