/* fichier : c:\Users\bapti\Documents\site sophro\style.css */

/* 1. Balises de base adaptatives */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
}

/* 2. Images adaptatives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Structure principale */
.main {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap;
    overflow-y: auto; 
    box-sizing: border-box;
}

.header {
    width: 60%;
    min-width: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fffffff3;
    font-family: nunito;
}

.header h1 {
    font-weight: normal;
    text-align: center;
    color: #001b15;
    opacity: 0.7;
    font-size: 3.125rem; /* 50px */
    margin: 0;
}

/* 4. Contenu à droite */
.container {
    width: 40%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #223D3C;
}

.liste {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 80%;
    margin: 0;
    padding: 0;
}

.container li {
    list-style: none;
    padding: 1em 0;
    border-bottom: 1px solid #fff;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    font-size: 2.5rem; /* 40px */
}

.container li:last-child {
    border-bottom: none;
}

li a {
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease;
}

li a:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* 5. Images spécifiques */
#logo {
    width: 30vw;
    max-width: 180px;
    min-width: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#meditation {
    width: 70%;
    max-width: 100%;
    min-width: 120px;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

/* 6. Bandeau haut page présentation */
.bandeau {
    width: 100%;
    background-color: #223D3C;
    color: #fff;
    padding: 1.25em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-left: 2.5em;
    padding-right: 5em;
    box-sizing: border-box;
    overflow: visible;
    margin-top:1%;
}

.logo-bandeau img {
    width: 70px;
    height: 70px;
    min-width: 40px;
    max-width: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: absolute;
    right: 1.25em;
    top: 50%;
    transform: translateY(-30%);
    background: #fff;
    z-index: 10;
}

.bandeau h1 {
    padding-left: 3%;
    margin: 0;
    font-size: 2rem;
    font-family: nunito;
    
}

#logo2 {
    position: absolute;        
    top: 50%;
    right: 1.25em;
    transform: translateY(-50%);
    width: 120px;              /* Largeur supérieure à la hauteur du bandeau */
    height: 120px;             /* Hauteur supérieure à la hauteur du bandeau */
    max-width: none;
    min-width: 0;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
    margin: 0;
    background: #fff;          /* Optionnel : fond blanc autour du logo */
    object-fit: cover;         /* Pour bien remplir le cercle */
}
.bandeau .menu {
    list-style: none;
    margin: auto;
    padding: 0;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.bandeau .menu li {
    margin: 0;
}

.bandeau .menu a {
    display: inline-block;
    width: 12rem; 
    padding: 0.5rem 1.8rem;      /* espace interne pour "encadrer" */
    border: 2px solid rgba(255,255,255,0.12); /* cadre */
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    color: inherit;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.bandeau .menu a:hover,
.bandeau .menu a:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(245, 139, 1, 0.589);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.bandeau .menu a.active {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255, 166, 0, 0.473);
    font-weight: 600;
}

.photo{
    width: 40%;
    margin:auto;
}
.Pgauche{
    width: 40%;
    height: 100%;
    min-width: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background-color: #fffffff3;

}

.Pdroite{
    width: 60%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    text-align: justify;
    align-items: left;
    

}
.text p{
    width: 80%;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.text h2{
    font-size: 2rem;
    color: #00161188;
    opacity: 0.7;
    font-family: 'Montserrat', sans-serif;
}
.main2 {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto; 
    box-sizing: border-box;
}

.citation1{
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    text-align: center;
    max-width: 600px;
}

.charte-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Aligne les blocs en haut */
    width: 100%;
    max-width: 1200px;
    margin: 40px 20rem;
    gap: 40px;
}

.charte-ethique {
    flex: 4 1 300px; /* flex-grow, flex-shrink, flex-basis */
    text-align: justify;
    font-size: 1.5rem;
}

.charte-ethique h2 {
    text-align: center;
    font-size: 2rem;
    color: #00161188;
    opacity: 0.7;
    margin-bottom: 30px;
    margin-top: 0; /* Assure que le titre est bien en haut */
}

.montagne {
    flex: 1 1 300px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.montagne::before {
content: "";
position: absolute;
background-color: #223D3C; /* La couleur de ton bandeau */

    /* --- Dimensions et position du rectangle qui déborde --- */
width: 100%; /* Ex: 110% de la largeur de l'image (déborde de 5% de chaque côté) */
height: 150%; /* Ex: 110% de la hauteur de l'image (déborde de 5% en haut et en bas) */

bottom: -600px;
right: -400px;
transform: translate(-50%, -50%); /* Centre le rectangle PARFAITEMENT */
}


#montagne-img {
width: 100%;
height: auto;
display: block;
position: relative; /* Indispensable pour que z-index fonctionne */
z-index: 2;/* L'image est au-dessus du rectangle */
}

hr.separateur-section {
    border: none;
    height: 1px;
    background-color: #ddd;
    width: 100%;
    margin: 100px auto; /* Augmente cette valeur pour plus d'espace */
}

/* --- Style de base --- */
.presta {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* --- Section 1 : Qui remplit le premier écran --- */
.section-hero {
    min-height: 100%; /* Hauteur minimale = 100% de la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement */
    padding: 40px 20px;
    box-sizing: border-box; /* Pour que le padding n'ajoute pas à la hauteur */
    text-align: center;
}

/* Style de ton bloc de texte principal */
.main3 {
    width: 60%;
    max-width: 800px; /* Limite la largeur sur très grands écrans */
    margin-bottom: 40px;
}

.main3 h1 {
    font-size: 2rem;
    color: #00161188; /* Couleur un peu transparente */
}

.main3 p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Style de ta citation */
.citation2 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    text-align: center;
    max-width: 600px;
}

.citation2 cite {
    display: block;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-size: 1rem;
    margin-top: 10px;
}


/* --- Section 2 : Les services (visibles au scroll) --- */
.services-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 80px 40px; /* Espace en haut/bas et sur les côtés */
    background-color: #fff; /* Un fond blanc pour bien séparer les sections */
}

.service-card {
    flex-basis: 300px; /* Largeur de base */
    flex-grow: 1;      /* Permet de remplir l'espace */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Style de l'image DÉJÀ en arche */
.service-card img {
    height: 280px; /* Donne une hauteur fixe à tes images */
    width: auto;   /* La largeur s'adaptera */
    margin-bottom: 25px;
    /* La magie est ici : on crée une ombre portée colorée qui fait une lueur */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* On ajoute la couleur spécifique à chaque lueur */
.service-card img.style-1 {
    filter: drop-shadow(0 10px 25px rgba(180, 180, 180, 0.7)); /* Gris */
}
.service-card img.style-2 {
    filter: drop-shadow(0 10px 25px rgba(245, 235, 130, 0.7)); /* Jaune */
}
.service-card img.style-3 {
    filter: drop-shadow(0 10px 25px rgba(180, 240, 180, 0.9)); /* Vert */
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}
.services-container p{
    text-align: justify;
}

/* Style pour les listes dans les pages de contenu */
.text ol {
    width: 85%;
    margin-bottom: 20px;
}

.text ol li {
    margin-bottom: 15px;
}

.text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}


#photo_cabinet{
    margin-left:10%;
}

/* ============================================================
   7. RESPONSIVE DESIGN (Mobiles et Tablettes)
   ============================================================ */

@media (max-width: 1024px) {
    /* Ajustement du bandeau pour tablettes */
    .bandeau {
        flex-direction: column;
        padding-right: 2.5em;
        text-align: center;
        gap: 1.5rem;
    }

    .bandeau .menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .bandeau .menu a {
        width: 10rem;
        padding: 0.5rem 1rem;
    }

    #logo2 {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 10px auto;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    /* 1. Accueil (Index) */
    .header, .container {
        width: 100%;
        min-height: auto;
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .container li {
        font-size: 1.5rem;
    }

    /* 2. Structure des pages (Qui suis-je, Services, Contact) */
    .main2 {
        flex-direction: column;
    }

    .Pgauche, .Pdroite {
        width: 100%;
        min-width: 100%;
    }

    .photo {
        width: 70%;
        margin: 20px auto;
    }

    .text p, .text h2 {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Page Accompagnement (Cartes) */
    .main3 {
        width: 90%;
    }

    .services-container {
        padding: 40px 20px;
        gap: 20px;
    }

    /* 4. Charte éthique et Montagne */
    .charte-container {
        margin: 20px;
        flex-direction: column;
    }

    .charte-ethique {
        font-size: 1.1rem;
    }

    .montagne::before {
        display: none; /* On cache le rectangle décoratif sur mobile pour éviter les bugs d'affichage */
    }

    /* 5. Ajustements spécifiques Images */
    #photo_cabinet {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bandeau h1 {
        font-size: 1.5rem;
        padding-left: 0;
    }

    .bandeau .menu a {
        width: 100%; /* Les boutons prennent toute la largeur sur petit mobile */
    }
}