/*
    hydrotherapie-eaux-vives.ch
 */

@import url("https://fonts.googleapis.com/css2?family=Shalimar&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

:root {
    --dark-box-border-cl: color-mix(in srgb, var(--dark-box-cl) 80%, black 20%);
    --dark-box-cl: rgba(0, 0, 0, 0.5);
    --footer-cl: #fef9e7;
    --header-cl: rgba(255, 255, 255, 0.9);
    --logo-cl: var(--txt-1-cl);
    --logo-url-cl: color-mix(in srgb, var(--txt-1-cl) 80%, black 40%);
    --nav-menu-bkg-cl: white;
    --service-card-bkg-cl: white;
    --service-card-cl: #666;
    --time-price-cl: black;
    --txt-1-cl: #d4a574;
    --txt-2-cl: #333;
}

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

html {
    font-size: 100%;
}

body {
    color: var(--txt-2-cl);
    font-family: "Source Sans 3", monospace;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 5rem);
    animation: fadeInUp 1s ease;
    margin: 0 0rem 1rem;
    padding: 0;
}

h2,
h3 {
    text-align: center;
}

p {
    hyphens: auto;
}

[target="_blank"]:not(header a)::after {
    content: url("./icons/up-right-from-square-solid-full.svg");
    display: inline-block;
    margin-left: 8px;
    width: 21px;
    transform: translateY(3px);
}

a,
a:visited {
    color: inherit;
}

.logo {
    align-items: center;
    color: var(--logo-cl);
    display: flex;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: bold;
    gap: 1rem;
}

.logo img {
    height: 3.5rem;
    margin-right: 0;
    vertical-align: middle;
}

.logo p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.logo p:nth-last-of-type(1) {
    color: var(--logo-url-cl);
    font-size: 45%;
}

/* Header et Navigation */
header {
    backdrop-filter: blur(10px);
    background-color: var(--header-cl);
    filter: sepia(10%);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu a {
    color: var(--txt-2-cl);
    font-weight: 500;
}
.nav-menu a:hover {
    color: var(--txt-1-cl);
}

/* Slightly larger menu item text for better legibility */
.nav-menu .nav-link {
    font-size: 1.2rem;
}

.nav-item {
    position: relative;
}

a[data-section] {
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-btn {
    cursor: pointer;
    display: none;
    /* original hamburger size restored */
    width: 25px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    background: var(--txt-2-cl);
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transform-origin: center;
    transition: transform 0.28s ease, top 0.28s ease, opacity 0.18s ease;
    border-radius: 0; /* sharper hamburger bars */
    transform: none; /* explicit default state */
    opacity: 1;
}

/* Position the three bars */
.mobile-menu-btn span:nth-child(1) {
    top: 1px;
}
.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.mobile-menu-btn span:nth-child(3) {
    top: auto;
    bottom: 1px;
}

.section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 120%;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: -1; /* sits above site video but behind content */
    top: 0;
}

.container {
    margin: 0 auto;
    max-width: 1000px;
}

.dark-box {
    background-color: var(--dark-box-cl);
    border-radius: 10px;
    border: 2px solid var(--dark-box-border-cl);
    margin: 2em 0;
    overflow-wrap: normal;
    padding: 2em 2em;
    width: 100%;
}

h2 {
    color: var(--txt-1-cl);
    font-size: 3rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    text-align: center;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.section-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Section Accueil */
#accueil {
    align-items: center;
    /* background-image moved into a dedicated .parallax-bg div inside the template */
    color: var(--txt-1-cl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#accueil p {
    animation: fadeInUp 1s ease 0.3s both;
    color: color-mix(in srgb, currentColor 80%, white 20%);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    animation: fadeInUp 1s ease 0.6s both;
    background-color: var(--dark-box-cl);
    border-radius: 50px;
    border: 2px solid var(--dark-box-border-cl);
    display: inline-block;
    font-size: 1.5rem;
    margin: 60px auto 0;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: color-mix(in srgb, var(--dark-box-cl) 50%, black);
    color: color-mix(in srgb, var(--txt-1-cl) 80%, white 20%);
    font-weight: bold;
}

/* Présentation content styles */
#presentation {
    align-items: center;
    background: transparent;
    color: var(--txt-1-cl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    text-align: center;
}

#presentation h2 {
    margin-top: 1em;
}

#presentation img {
    margin: 1rem 0;
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
}

#presentation blockquote {
    font-family: "Shalimar";
    font-size: clamp(2.2rem, 3vw, 4rem);
    font-weight: bold;
    margin: 1rem auto 2em;
}

/* Section therapies-massages */

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 3rem;
}

.service-card {
    background: var(--service-card-bkg-cl);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--service-card-cl);
    opacity: 0;
    padding: 2rem;
    transform: translateY(50px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card.animate {
    animation: slideInUp 0.8s ease forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Style pour l'image dans .service-picture */
.service-card img {
    border-radius: 10px;
    margin: 0 0 2rem;
    padding: 0;
    width: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p:not(:first-of-type):not(blockquote p) {
    line-height: 1.3;
    text-indent: 1em;
    text-align: left;
    margin: 0.5em 0;
}

.service-card p:not(:first-of-type):not(blockquote p)::after {
    color: color-mix(in srgb, var(--txt-1-cl) 50%, transparent);
    content: "❊";
    display: block;
    font-size: 120%;
    margin: 0.5em;
    text-align: center;
}

.service-card blockquote {
    text-align: center;
    font-style: italic;
    padding: 1rem;
    margin: 0 0 1em;
    border: 4px double var(--txt-1-cl);
}

#therapies-massages h2 {
    mix-blend-mode: overlay;
}

#therapies-massages .service-card pre {
    color: var(--time-price-cl);
    line-height: 200%;
    margin: 0;
    padding: 0;
    text-align: center;
}
.service-card button {
    margin: 3em auto 1em;
    display: block;
}

/* Contact Section */
#contact-infos {
    background: #fef9e7;
    padding-bottom: 10em;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    word-wrap: break-word;
}

.contact-item {
    text-align: center;
    padding: 1rem;
}

.contact-icon {
    align-items: center;
    background: var(--txt-1-cl);
    border-radius: 50%;
    display: flex;
    font-size: 1.5rem;
    height: 60px;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 10px;
    width: 60px;
}

.service-card pre {
    margin: 2em 0;
}

/* Style pour le bouton "Afficher plus" */
button {
    background-color: var(--txt-1-cl);
    border-radius: 5px;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.75rem 2.5rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: color-mix(in srgb, var(--txt-1-cl) 80%, black 20%);
}

footer {
    align-items: center;
    background-color: var(--txt-1-cl);
    color: var(--footer-cl);
    display: flex;
    height: 4em;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

/* Responsive Design */
@media (max-width: 850px) {
    .nav-menu {
        align-items: center;
        background-color: var(--nav-menu-bkg-cl);
        flex-direction: column;
        height: calc(100vh - 80px);
        justify-content: start;
        left: -100%;
        padding-top: 2rem;
        position: fixed;
        top: 80px;
        transition: left 0.3s ease;
        width: 100%;
    }

    /* When the menu receives the active class, slide it into view */
    .nav-menu.active {
        left: 0;
        z-index: 1100;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Animated hamburger -> X */
    .mobile-menu-btn.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
        bottom: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .parallax-bg {
        background-attachment: scroll;
    }

    .contact-items {
        gap: 0.11rem;
    }
}

@media (max-width: 377px) {
    .logo {
        margin-left: -0.5em;
    }

    .service-card p:not(:first-of-type):not(blockquote p) {
        text-indent: 0;
    }
}
