/* ==========================================================================
   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; /* For smoother anchor link scrolling */
}

body {
    color: var(--color-text); /* Default text color, was #fff */
    font-family: 'Lato', sans-serif;
}

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

.burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 18px;
    justify-content: space-between;
    position: fixed; /* Consider relative to navbar if it scrolls with page */
    right: 1rem;
    top: 1rem; /* Adjust if navbar height changes */
    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); /* Solid background */
    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; /* Added opacity transition */
    visibility: hidden; /* Use with opacity for transition */
    width: 100vw; /* Full viewport width */
    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(6rem + 20px); /* Consider navbar height dynamically if it changes */
    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; /* Adjusted from general P style for consistency here */
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.intro-card img {
    display: block;
    height: auto;
    margin: 1rem auto; /* Added top/bottom margin */
    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; /* Horizontally center the H2 and .prestations-container */
    justify-content: center; /* Vertically center content by default if section is taller than content */
    min-height: 100vh;
    padding-top: calc(4rem + 20px); /* Consider dynamic navbar height + desired space */
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

.prestations-section.no-vcenter {
    justify-content: flex-start; /* Disable vertical centering when a large card is open */
}

.prestations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center; /* Center cards horizontally */
    margin-top: 2rem;
    width: 100%;
    max-width: 90%; /* Max width for the container of cards */
}

.prestation-card {
    background-color: var(--color-full-card-bg); /* Garder comme fallback et pour le padding */
    border-radius: 15px;
    color: var(--color-card-text); /* Couleur par défaut, sera surchargée pour :not(.expanded) */
    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; /* Crucial pour le positionnement de ::before */
    overflow: hidden; /* Pour que ::before respecte le border-radius */
}

.prestation-card:hover:not(.expanded) { /* Apply hover only when 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;
}

/* Styles pour la carte lorsqu'elle N'EST PAS .expanded (avec image de fond) */
.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; /* Se place entre le fond de la carte et son contenu */
}

/* Titre de la carte */
.prestation-card h3 {
    /* Styles par défaut pour h3 - s'appliquent si non surchargés par .expanded ou :not(.expanded) */
    font-family: var(--font-handwritten);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-title); /* Couleur par défaut */
}

/* Contenu textuel sur les cartes non agrandies */
.prestation-card:not(.expanded) h3,
.prestation-card:not(.expanded) .prestation-content.teaser p,
.prestation-card:not(.expanded) .prestation-content.teaser p strong {
    position: relative; /* Pour être au-dessus de ::before */
    z-index: 1;
    color: var(--color-text-on-image);
    text-shadow: var(--text-shadow-on-image);
}

/* S'assurer que les groupes de boutons sont aussi au-dessus de l'overlay */
.prestation-card:not(.expanded) .prestation-button-group {
    position: relative;
    z-index: 1;
}

/* NOUVELLE RÈGLE CI-DESSOUS pour les boutons uniques directement dans .teaser */
.prestation-card:not(.expanded) .prestation-content.teaser > .prestation-button {
    position: relative;
    z-index: 1;
}
/* FIN DE LA NOUVELLE RÈGLE */


/* Paragraphes généraux dans la carte - s'appliquent au teaser et au contenu full si non surchargés */
.prestation-card p {
    color: var(--color-card-text); /* Couleur par défaut pour p */
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Images de fond spécifiques pour chaque carte (uniquement quand non-expanded) */
/* Assurez-vous que ces images existent dans assets/media/ ou ../media/ selon votre structure */
#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);
}

/* Styles pour la carte lorsqu'elle EST .expanded */
.prestation-card.expanded {
    background-image: none !important; /* Enlève l'image de fond */
    background-color: var(--color-expanded-card-bg); /* Rétablit la couleur de fond unie */
    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; /* Pas d'overlay quand la carte est agrandie */
}

.prestation-card.expanded h3 {
    font-size: 2.25rem; /* Légèrement plus grand quand expanded */
    color: var(--color-title); /* Couleur originale */
    text-shadow: none; /* Pas d'ombre de texte */
}

/* Rétablir les couleurs de texte pour le teaser (si jamais il était visible en mode expanded) */
.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;
}

/* Styles pour le contenu .full qui s'affiche lorsque .expanded */
.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%; /* La carte carrousel prend toute la largeur */
    max-width: 100%;   /* Surcharge le max-width habituel des full-content-card */
    background-color: transparent; /* Optionnel: Pas de fond de carte distinct */
    box-shadow: none; /* Optionnel: Pas d'ombre pour la carte carrousel elle-même */
    padding: 1rem 0; /* Ajustez le padding vertical si nécessaire */
    margin-top: 1.5rem; /* Espace au-dessus du carrousel */
}

.carousel-card h4 {
    color: var(--color-title);
    font-family: var(--font-handwritten);
    font-size: 1.8rem; /* Taille du titre "Galerie Photos" */
    margin-bottom: 1rem;
    text-align: center;
}

.carousel-container {
    position: relative;
    margin: auto;
    overflow: hidden;
    max-width: 700px; /* Largeur maximale du carrousel */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Ombre discrète pour le carrousel */
}

.carousel-slide {
    display: none; /* Caché par défaut, géré par JavaScript */
    width: 100%;
    /* Pour un effet de fondu lors du changement de slide (optionnel) */
    /* transition: opacity 0.4s ease-in-out; */
}

.carousel-slide.active {
    display: block; /* Afficher la slide active */
}

.carousel-slide img {
    width: 100%;
    height: auto; /* Conserver le ratio de l'image */
    display: block; /* Éviter l'espace sous l'image */
    max-height: 450px; /* Hauteur maximale des images dans le carrousel */
    object-fit: cover; /* Assure que l'image couvre la zone sans distorsion, peut rogner */
    border-radius: inherit; /* Hérite des coins arrondis du conteneur si l'image est la seule enfant directe */
}

/* Styles communs pour les boutons Précédent et Suivant */
.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -25px; /* Ajuster pour centrer verticalement (hauteur_bouton / 2) */
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background-color 0.3s ease;
    user-select: none; /* Empêcher la sélection du texte des flèches */
    background-color: rgba(0, 0, 0, 0.35); /* Fond semi-transparent */
    line-height: 1; /* Assurer un bon alignement vertical du caractère flèche */
    z-index: 2; /* S'assurer qu'ils sont au-dessus des images */
}

/* Style spécifique pour le bouton Précédent */
.carousel-prev {
    left: 0; /* Positionner à gauche */
    border-radius: 0 3px 3px 0; /* Coins arrondis sur le côté droit du bouton */
}

/* Style spécifique pour le bouton Suivant */
.carousel-next {
    right: 0; /* Positionner à droite */
    border-radius: 3px 0 0 3px; /* Coins arrondis sur le côté gauche du bouton */
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Fond plus sombre au survol */
}

/* ==========================================================================
   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); /* Aim for 2 cards, adjust gap */
    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; /* Fait en sorte que les cartes aient la même hauteur si possible */
    width: 100%;
    max-width: 1200px; /* Ajustez si besoin */
    margin-top: 1rem; /* Espace sous le titre "Contactez-moi" */
}

.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; /* Empêche les cartes de devenir trop étroites avant de wrapper */
    display: flex; /* Pour un meilleur contrôle du contenu interne */
    flex-direction: column; /* Empile le contenu verticalement */
}

.contact-info-card {
    text-align: center;
    justify-content: center; /* Centre le contenu verticalement si la carte est plus haute */
}

.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; /* Un padding légèrement réduit pour la carte map pour mieux l'intégrer */
}

.contact-map-card iframe {
    border-radius: 8px;
    width: 100%;
    height: 100%; /* Fait en sorte que l'iframe prenne toute la hauteur de la carte */
    min-height: 300px; /* Hauteur minimale pour la carte */
}

/* Ajustements pour les écrans plus petits */
@media (max-width: 767px) {
    .contact-details-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-card,
    .contact-map-card {
        width: 100%;
        max-width: 95%; /* Cohérent avec .prestation-card.expanded sur mobile */
        flex-basis: auto;
    }
    
    .contact-map-card iframe {
        height: 300px; /* Hauteur fixe pour la carte sur mobile */
    }
}

/* ==========================================================================
   Typography (general paragraph styling if needed, but mostly handled in components)
   ========================================================================== */
p {
    font-size: 1.1rem; /* Default paragraph size */
    line-height: 1.2;
    color: var(--color-text);
}


/* ==========================================================================
   Buttons (general CTA, specific handled above)
   ========================================================================== */
.cta-button {
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 25px; /* Keep existing style */
    color: var(--color-button-text); /* Ensure text is white as per variable */
    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; /* Adjust top padding for smaller screens */
    }

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

    .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%; /* Single column for detail cards */
        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%; /* Cohérent avec .prestation-card.expanded sur mobile */
        flex-basis: auto;
    }
    
    .contact-map-card iframe {
        height: 300px; /* Hauteur fixe pour la carte sur mobile */
    }
}

/* No need for specific @media (min-width: 768px) for .prestations-section justify-content anymore */
/* as it's handled by default and .no-vcenter class */