/* ==========================================================================
   Global Styles
   ========================================================================== */
   :root {
    --color-bg-prestations: #fefaf6;
    --color-button-bg: #968267;
    --color-button-hover: #4d4d4d;
    --color-card-text: #030202;
    --color-expanded-card-bg: #f5f0e8;
    --color-full-card-bg: #ffffffd6;
    --color-text: #4d4d4d;
    --color-button-text: white;
    --color-title: #8B6F47;
    --color-title-section: #8B6F47;
    --font-handwritten: 'Dancing Script', cursive;
    --font-main:'Lato', sans-serif;
    --color-text-on-image: white;
    --text-shadow-on-image: 1px 1px 3px rgba(0,0,0,0.6);
    --overlay-bg-color: rgba(0, 0, 0, 0.45); 
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text);
    font-family: 'Lato', sans-serif;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    align-items: center;
    background-color: var(--color-bg-prestations);
    display: flex;
    padding: 1rem 2rem;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar-right-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    z-index: 1002;
}

.lang-switcher a {
    display: inline-block;
    line-height: 0; 
    border-radius: 50%;
    padding: 2px; 
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.lang-switcher .flag-icon {
    width: 28px; 
    height: 28px;
    border-radius: 50%; 
    display: block;
    object-fit: cover; 
}

.lang-switcher a:hover {
    transform: scale(1.1); 
}

.lang-switcher a.active-lang {
   box-shadow: 0 0 5px var(--color-title); 
}

.burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 18px;
    justify-content: space-between;
    width: 25px;
    z-index: 1001;
}

.burger span {
    background: var(--color-title);
    border-radius: 5px;
    box-shadow: 0 0 5px var(--color-title);
    height: 3px;
    transition: all 0.4s ease;
    width: 100%;
}

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

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

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

.nav-links {
    align-items: center;
    background: var(--color-bg-prestations);
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    list-style: none;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    visibility: hidden;
    width: 100vw;
    z-index: 1000;
}

.nav-links.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.nav-links li {
    margin: 2rem 0;
}

.nav-links a {
    color: var(--color-title);
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-button-hover);
    text-shadow: 0 0 2px var(--color-button-hover);
}

/* ==========================================================================
   Accueil Section
   ========================================================================== */
.accueil-centered {
    align-items: center;
    background-color: var(--color-bg-prestations);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: calc(4rem + 20px); 
    text-align: center;
}

.intro-card {
    background-color: var(--color-full-card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--color-card-text);
    padding: 2rem;
}

.intro-card h1 {
    color: var(--color-title-section);
    font-family: var(--font-handwritten);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.intro-card h3 {
    color: var(--color-title-section);
    font-family: var(--font-handwritten);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.intro-card p {
    color: var(--color-text);
    font-size: 1.1rem; 
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.intro-card img {
    display: block;
    height: auto;
    margin: 1rem auto;
    max-width: 300px;
    width: 100%;
}

/* ==========================================================================
   Prestations Section
   ========================================================================== */
.prestations-section {
    background-color: var(--color-bg-prestations);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    min-height: 100vh;
    padding-top: calc(4rem + 20px); 
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

.prestations-section.no-vcenter {
    justify-content: flex-start; 
}

.prestations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center; 
    margin-top: 2rem;
    width: 100%;
    max-width: 90%; 
}

.prestation-card {
    background-color: var(--color-full-card-bg); 
    border-radius: 15px;
    color: var(--color-card-text); 
    display: flex;
    flex-direction: column;
    max-width: 400px;
    padding: 2rem;
    transition: all 0.4s ease;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative; 
    overflow: hidden; 
}

.prestation-card:hover:not(.expanded) { 
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.prestations-section h2 {
    color: var(--color-title-section);
    font-family: var(--font-handwritten);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.prestation-card:not(.expanded) {
    background-size: cover;
    background-position: center center;
}

.prestation-card:not(.expanded)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg-color);
    z-index: 0; 
}

.prestation-card h3 {
    font-family: var(--font-handwritten);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-title); 
}

.prestation-card:not(.expanded) h3,
.prestation-card:not(.expanded) .prestation-content.teaser p,
.prestation-card:not(.expanded) .prestation-content.teaser p strong {
    position: relative; 
    z-index: 1;
    color: var(--color-text-on-image);
    text-shadow: var(--text-shadow-on-image);
}

.prestation-card:not(.expanded) .prestation-button-group {
    position: relative;
    z-index: 1;
}

.prestation-card:not(.expanded) .prestation-content.teaser > .prestation-button {
    position: relative;
    z-index: 1;
}

.prestation-card p {
    color: var(--color-card-text); 
    font-size: 1.1rem;
    line-height: 1.2;
}

#reiki-card:not(.expanded) { background-image: url('../media/Fond-Reiki.jpg'); }
#massage-sonore-card:not(.expanded) { background-image: url('../media/Fond-Sonore.jpg'); }
#massage-mixte-card:not(.expanded) { background-image: url('../media/Fond-Mixte.jpg'); }
#massage-californien-card:not(.expanded) { background-image: url('../media/Fond-Californien.jpg'); }
#balades-botaniques-card:not(.expanded) { background-image: url('../media/Fond-Balade.jpg'); }


.prestation-card.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.prestation-card.expanded {
    background-image: none !important; 
    background-color: var(--color-expanded-card-bg); 
    margin: 1rem auto 2rem auto;
    max-width: 90%;
    width: 100%;
    padding: 2rem; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
}

.prestation-card.expanded::before {
    content: none; 
}

.prestation-card.expanded h3 {
    font-size: 2.25rem; 
    color: var(--color-title); 
    text-shadow: none; 
}

.prestation-card.expanded .prestation-content.teaser p,
.prestation-card.expanded .prestation-content.teaser p strong {
    color: var(--color-card-text);
    text-shadow: none;
}

.prestation-card.expanded .full-content-container {
     flex-grow: 1;
}

.prestation-content.teaser {
    display: block;
}

.prestation-content.full {
    display: none;
    text-align: center;
}

.prestation-content.full p {
    color: var(--color-text); 
    font-size: 1.1rem; 
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: none; 
}

.prestation-button {
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 10px;
    color: var(--color-button-text);
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.prestation-button:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-2px);
}

.prestation-button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.prestation-button-group .prestation-button {
    margin-top: 0;
    width: auto;
    min-width: 200px;
}


.full-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.full-content-card {
    background-color: var(--color-full-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--color-card-text); 
    flex-basis: calc(50% - 1.5rem);
    max-width: 450px;
    min-width: 300px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    width: 100%;
}

.full-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.full-content-card h4 {
    color: var(--color-title); 
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: none; 
}

.full-content-card p {
    color: var(--color-text); 
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-shadow: none; 
}

.full-content-card:not(.carousel-card) img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Carousel Styles 
   ========================================================================== */

.full-content-card.carousel-card {
    flex-basis: 100%; 
    max-width: 100%;   
    background-color: transparent; 
    box-shadow: none; 
    padding: 1rem 0; 
    margin-top: 1.5rem; 
}

.carousel-card h4 {
    color: var(--color-title);
    font-family: var(--font-handwritten);
    font-size: 1.8rem; 
    margin-bottom: 1rem;
    text-align: center;
}

.carousel-container {
    position: relative;
    margin: auto;
    overflow: hidden;
    max-width: 700px; 
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.carousel-slide {
    display: none; 
    width: 100%;
}

.carousel-slide.active {
    display: block; 
}

.carousel-slide img {
    width: 100%;
    height: auto; 
    display: block; 
    max-height: 450px; 
    object-fit: cover; 
    border-radius: inherit; 
}

.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -25px; 
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background-color 0.3s ease;
    user-select: none; 
    background-color: rgba(0, 0, 0, 0.35); 
    line-height: 1; 
    z-index: 2; 
}

.carousel-prev {
    left: 0; 
    border-radius: 0 3px 3px 0; 
}

.carousel-next {
    right: 0; 
    border-radius: 3px 0 0 3px; 
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.6); 
}

/* ==========================================================================
   Apropos Section
   ========================================================================== */
.apropos-section {
    background-color: var(--color-bg-prestations);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: calc(4rem + 20px);
    text-align: center;
}

.apropos-section h2 {
    color: var(--color-title-section);
    font-family: var(--font-handwritten);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.apropos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    max-width: 1200px;
}

.apropos-card {
    background-color: var(--color-full-card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--color-card-text);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-basis: calc(50% - 2rem); 
    max-width: 500px; 
    min-width: 300px;
    padding: 2rem;
    transition: transform 0.3s ease;
    text-align: center;
}

.apropos-card:hover {
    transform: translateY(-5px);
}

.apropos-card h3 {
    color: var(--color-title);
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.apropos-card p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Contact Section 
   ========================================================================== */

.contact-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch; 
    width: 100%;
    max-width: 1200px; 
    margin-top: 1rem; 
}

.contact-info-card,
.contact-map-card {
    background-color: var(--color-full-card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: var(--color-text);
    flex: 1;
    min-width: 300px; 
    display: flex; 
    flex-direction: column; 
}

.contact-info-card {
    text-align: center;
    justify-content: center; 
}

.contact-info-card h3 {
    color: var(--color-title);
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.contact-info-card p:last-child {
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--color-title);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--color-button-hover);
    text-decoration: underline;
}

.contact-info-card p a.phone-link-mobile {
    color: inherit; 
    text-decoration: none; 
    cursor: default; 
}

.contact-info-card p a.phone-link-mobile:hover {
    color: inherit; 
    text-decoration: none; 
}

.contact-map-card {
    padding: 1rem; 
}

.contact-map-card iframe {
    border-radius: 8px;
    width: 100%;
    height: 100%; 
    min-height: 300px; 
}

/* ==========================================================================
   Typography 
   ========================================================================== */
p {
    font-size: 1.1rem; 
    line-height: 1.2;
    color: var(--color-text);
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-button {
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 25px; 
    color: var(--color-button-text); 
    cursor: pointer;
    display: inline-block;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-button-hover);
    transform: scale(1.05);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 767px) {
    p{
        font-size: 1rem;
    }

    .accueil-centered,
    .prestations-section,
    .apropos-section,
    #contact {
        padding-top: 3rem; 
    }

    .prestations-section h2,
    .apropos-section h2,
    #contact h2 {
        font-size: 2.5rem; 
    }
    
    .nav-links a {
        font-size: 1.8rem; 
    }

    .intro-card h1 { font-size: 2.5rem; }
    .intro-card h3 { font-size: 1.5rem; }

    .prestation-card { max-width: 100%; }
    .prestation-card.expanded { max-width: 95%; padding: 1.5rem; }
    
    .full-content-card {
        flex-basis: 100%; 
        max-width: 100%;
    }
    .apropos-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .prestation-button-group {
        align-items: stretch; 
    }
    .prestation-button-group .prestation-button {
        width: 100%; 
        box-sizing: border-box;
        min-width: unset;
    }
    
    .contact-details-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-card p a.phone-link-mobile {
        color: var(--color-title); 
        text-decoration: none; 
        cursor: pointer; 
    }

    .contact-info-card p a.phone-link-mobile:hover {
        color: var(--color-button-hover); 
        text-decoration: underline; 
    }

    .contact-info-card,
    .contact-map-card {
        width: 100%;
        max-width: 95%; 
        flex-basis: auto;
    }
    
    .contact-map-card iframe {
        height: 300px; 
    }
}