:root {
    --sand-light: #FDF7F0;
    --sand-warm: #EAD6BE;
    --sunset-peach: #F0B189;
    --sunset-coral: #D87755;
    --ocean-soft: #68A9B8;
    --ocean-deep: #345E68;
    --lava-brown: #332B26;
    --text-main: #3B322D;
    --white: #FFFFFF;
    --hover-wave-color: rgba(240, 177, 137, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to bottom, var(--sand-light), var(--sand-warm));
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 241, 234, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lava-brown);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    outline: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: var(--hover-wave-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 300%;
    height: 300%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bar {
    width: 100%;
    height: 4px;
    background: var(--lava-brown);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.main-nav a:focus {
    outline: 2px solid var(--ocean-deep);
    outline-offset: 3px;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    padding: 1.5rem;
    max-width: 90%;
    color: var(--white);
    z-index: 1;
    user-select: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    color: var(--white);
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: var(--ocean-deep);
    color: var(--sunset-coral);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--white);
    transform: scale(1.05);
    outline: none;
}

section {
    padding: 5rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

p {
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    text-align: center;
    line-height: 1.7;
    color: var(--text-main);
}

.about-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    padding: 0 2rem;
}

.about-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    display: block;
}

.about-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sunset-coral);
    text-align: center;
    margin-bottom: 1rem;
}

.univers {
    background: linear-gradient(to bottom, var(--ocean-soft), var(--sunset-peach));
    padding: 5rem 2rem;
    overflow: hidden;
}

.univers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.univers-item h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.univers-item ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.8rem;
    text-align: left;
}

.univers-action {
    text-align: center;
    margin-top: 1.8rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--sunset-coral);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: var(--sunset-peach);
    transform: scale(1.05);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 3000;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--sand-light);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    width: 520px;
    max-width: 95%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ocean-deep);
    margin-bottom: 0.8rem;
    text-align: center;
}

.modal-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-body li {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--sunset-coral);
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.modal-close:hover {
    background: var(--sunset-peach);
    transform: scale(1.15);
}

.produits {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--sand-warm), var(--sand-light));
    text-align: center;
}

.produits h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
}

.produits p {
    font-size: 1.05rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.produit {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.produit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.produit img {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.produit img:hover {
    transform: scale(1.05);
}

.produit h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--lava-brown);
    margin-bottom: 0.6rem;
    text-align: center;
}

.produit p {
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.4;
}

.appointment {
    background: var(--sand-warm);
    padding: 5rem 2rem;
    text-align: center;
}

.appointment h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
}

.appointment p {
    font-size: 1.05rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.appointment-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.appointment-form input,
.appointment-form textarea,
.appointment-form select {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.appointment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.appointment-form select {
    background: var(--white);
    cursor: pointer;
}

.appointment-form input:focus,
.appointment-form textarea:focus,
.appointment-form select:focus {
    border-color: var(--ocean-deep);
    box-shadow: 0 0 0 3px rgba(102, 163, 178, 0.2);
    outline: none;
}

.appointment-form button {
    padding: 0.95rem 1.5rem;
    background: var(--sunset-coral);
    border: none;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.appointment-form button:hover {
    background: var(--sunset-peach);
    transform: scale(1.03);
}

.contact {
    text-align: center;
    padding: 3rem 2rem;
}

.contact h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.05rem;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.contact a {
    color: var(--ocean-deep);
    text-decoration: underline;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact a:hover,
.contact a:focus {
    color: var(--ocean-soft);
    transform: scale(1.05);
    outline: none;
}

.site-footer {
    background: var(--lava-brown);
    color: var(--sand-light);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

.site-footer p {
    margin-bottom: 0.8rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.site-footer a {
    color: var(--white);
    text-decoration: underline;
    margin: 0 0.3rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--sunset-peach);
    transform: scale(1.05);
    outline: none;
}

#sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--ocean-deep);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sound-toggle:hover,
#sound-toggle:focus {
    transform: scale(1.15);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    outline: none;
}

#sound-toggle:focus {
    border: 2px solid var(--sunset-peach);
}

.sound-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 280px;
    z-index: 2500;
    background: rgba(247, 241, 234, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--lava-brown);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sound-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sound-popup p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
}

.sound-popup button {
    background: var(--ocean-deep);
    color: var(--white);
    border: none;
    border-radius: 24px;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 0 auto;
}

.sound-popup button:hover,
.sound-popup button:focus {
    background: var(--ocean-soft);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

@media (max-width: 900px) {

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(247, 241, 234, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        transition: height 0.35s ease, background 0.3s ease;
        z-index: 1000;
    }

    .main-nav.open {
        height: 100vh;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 0;
        align-items: center;
    }

    .main-nav a {
        font-size: 1.05rem;
        letter-spacing: 0.15em;
    }

    .nav-wrapper {
        height: 56px;
        padding: 0 1rem;
    }

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

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

    .hero-content {
        padding: 1rem;
        max-width: 95%;
    }

    section {
        padding: 3.5rem 1.5rem;
    }

    .content {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        padding: 0 1rem;
    }

    .about-image img {
        max-width: 90%;
    }

    .univers-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        margin: 0 auto;
        padding: 0 0.5rem;
    }

    .produits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 auto;
        padding: 0 0.5rem;
    }

    .produit img {
        max-width: 100%;
    }

    .modal-content {
        width: 90%;
        max-height: 85%;
        padding: 1.5rem;
        border-radius: 14px;
    }

    .appointment-form input,
    .appointment-form textarea,
    .appointment-form select,
    .appointment-form button {
        font-size: 0.95rem;
        padding: 0.85rem;
    }

    .contact {
        padding: 2rem 1rem;
    }

    .site-footer {
        font-size: 0.8rem;
        padding: 2rem 1rem;
    }

    .sound-popup {
        position: fixed;
        bottom: 20px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: 320px;
        padding: 1rem 1.2rem;
        font-size: 0.85rem;
        z-index: 2500;
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
    }

    #sound-toggle {
        position: fixed;
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}