@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;700&display=swap');

:root {
    --text-color: #423F32;
    --btn-bg: #6C6752;
    --btn-text: #FFFFFF;
    --navbar-bg: rgba(168, 172, 143, 0.65);
    --hover-color: #E7E7E0;
    --shadow-light: rgba(66, 63, 50, 0.08);
    --shadow-medium: rgba(66, 63, 50, 0.12);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--navbar-bg);
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: 1000;
    transition: all 0.4s var(--transition-smooth);
    animation: slideDown 0.8s var(--transition-smooth);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.navbar.scrolled {
    height: 80px;
    background: rgba(168, 172, 143, 0.5);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.logo:hover {
    transform: translateY(-2px);
    scale: 1.05;
}

.logo-icon {
    width: 200px;
    height: auto;
    align-items: center;
    justify-content: center;
}

/* Nav */
.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 36px;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.nav-links a {
    font-size: 20px;
    color: var(--text-color);
    font-family: 'DM Sans', sans-serif;
    font-weight: normal;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    white-space: nowrap;
    padding: 8px 16px;
    display: inline-block;
}

/* Élément invisible pour réserver l'espace bold */
.nav-links a span.bold-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    transition: opacity 10ms ease;
}

.nav-links a:focus span.bold-text,
.nav-links a:hover span.bold-text {
    opacity: 1;
}

.nav-links a:focus span.regular-text,
.nav-links a:hover span.regular-text {
    opacity: 0;
}

.nav-links a span.regular-text {
    transition: opacity 0.1s ease-out;
}

.nav-links a:focus:after,
.nav-links a:hover:after {
    width: 100%;
    left: 0%;
}

.nav-links a:after {
    content: "";
    pointer-events: none;
    bottom: -8px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--text-color);
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

/* Page active */
.nav-links a.active span.regular-text {
    opacity: 0;
}

.nav-links a.active span.bold-text {
    opacity: 1;
}

/* Bouton Contact */
.btn-contact {
    padding: 10px 20px;
    background: var(--btn-bg);
    border-radius: 30px;
    border: 2px solid var(--btn-bg);
    font-weight: 700;
    font-size: 20px;
    color: var(--btn-text);
    cursor: pointer;
    transition: all 0.4s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-contact:hover {
    background: transparent;
    color: var(--btn-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 103, 82, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1100;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.4s;
}

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

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

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

/* Responsive Design */

/* Écrans moyens - réduction progressive */
@media (max-width: 1550px) {
    .navbar {
        padding: 0 32px;
    }

    .nav-container {
        gap: 28px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 19px;
        padding: 8px 14px;
    }

    .btn-contact {
        font-size: 18px;
        padding: 9px 20px;
    }

    .logo-icon {
        width: 180px;
    }
}

@media (max-width: 1450px) {
    .navbar {
        padding: 0 28px;
    }

    .nav-container {
        gap: 24px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 18px;
        padding: 7px 12px;
    }

    .btn-contact {
        font-size: 17px;
        padding: 8px 18px;
    }

    .logo-icon {
        width: 170px;
    }
}

@media (max-width: 1400px) {
    .navbar {
        padding: 0 24px;
    }

    .nav-container {
        gap: 20px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 17px;
        padding: 7px 10px;
    }

    .btn-contact {
        font-size: 16px;
        padding: 7px 16px;
    }

    .logo-icon {
        width: 160px;
    }
}

/* Mobile breakpoint - hamburger menu */
@media (max-width: 1340px) {
    .navbar {
        padding: 0 20px;
        height: 100px;
    }

    .navbar.scrolled {
        height: 70px;
    }

    .logo-icon {
        width: 150px;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(168, 172, 143, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s ease;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-links a {
        font-size: 20px;
        padding: 12px 24px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    .nav-container.active .nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-container.active .nav-links a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-container.active .nav-links a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-container.active .nav-links a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-container.active .nav-links a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-container.active .nav-links a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-container.active .nav-links a:nth-child(6) {
        transition-delay: 0.6s;
    }

    .btn-contact {
        font-size: 20px;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 90px;
    }

    .navbar.scrolled {
        height: 60px;
    }

    .logo-icon {
        width: 130px;
    }

    .nav-links a {
        font-size: 20px;
    }

    .btn-contact {
        font-size: 20px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
        height: 80px;
    }

    .navbar.scrolled {
        height: 55px;
    }

    .logo-icon {
        width: 120px;
    }

    .nav-links a {
        font-size: 22px;
    }

    .btn-contact {
        font-size: 18px;
        padding: 10px 20px;
    }
}

