/* --- 1. RÉINITIALISATION ET FONDAMENTAUX --- */

:root {
    --color-primary: #0d9488;
    --color-secondary: #2dd4bf;
    --color-text-dark: #333333;
    --color-background: #f8fafc;
    --color-white: #ffffff;
}

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

body {
    background-color: var(--color-background);
    color: var(--color-text-dark);
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    font-size: 17px; 
    font-weight: 400;
}

.main-container, .container {
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 4%; 
}

/* --- 2. TYPOGRAPHIE ET ESPACEMENT --- */

h1, h2, h3 {
    font-family: 'Playfair Display', serif; 
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1.5em; 
    margin-bottom: 0.5em;
    text-align: center; 
}

.hero-heading-main {
    font-size: 3em;
    color: var(--color-text-dark); 
    margin-top: 0;
    line-height: 1.1;
    text-align: left; 
    font-family: 'Playfair Display', serif;
}

h2 { 
    font-size: 2em; 
    text-align: left; 
}

.role-point h3 {
    margin-top: 1em;    
    margin-bottom: 0.2em;
    font-size: 1.3em;
    color: var(--color-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: left; 
}

.hero-slogan {
    font-size: 1.8em;
    color: var(--color-primary);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
    text-align: left;
}

p { margin-bottom: 1.2em; text-align: left; } 
section { padding: 3rem 0; }

.intro-text {
    font-size: 1.15em;
    font-weight: 300;
    text-align: center;
    max-width: 900px;
    margin: 0.5rem auto 2rem auto;
}

/* --- 3. NAVIGATION ET HEADER --- */

.header {
    background-color: var(--color-white); 
    border-bottom: 1px solid #e0e0e0; 
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky; 
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 0;
    box-shadow: none;
}

.nav {
    display: flex; 
    align-items: center;
    gap: 1.5rem; 
}

.nav-links {
    display: flex;
    gap: 0.5rem; 
    align-items: center;
}

.nav a.btn-nav {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-secondary); 
    border-radius: 5px;
    font-weight: 500;
    color: var(--color-primary); 
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-decoration: none;
}

.nav a.btn-nav:hover {
    background-color: var(--color-secondary);
    color: var(--color-white); 
    border-color: var(--color-secondary);
}

.btn-rdv-header {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.6rem 1.2rem; 
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 2px solid var(--color-primary);
    text-decoration: none;
}

.btn-rdv-header:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* --- 4. BOUTONS D'APPEL À L'ACTION (CTA GÉNÉRAUX) --- */

.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.3s;
    margin-right: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary);
}

.btn-action-primary-main {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary);
    text-decoration: none !important; 
    padding: 1rem 2rem;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-action-primary-main:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-action-primary-main i {
    margin-right: 8px;
}

/* NOUVEAU STYLE : BOUTONS HERO ET TERTIARY */
.hero-actions {
    display: flex;
    gap: 1.5rem; 
    align-items: center;
    margin-top: 2.5rem; 
}

.btn-action-hero {
    padding: 0.9rem 1.8rem; 
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none !important; 
    cursor: pointer;
    white-space: nowrap; /* Conserver pour le Desktop */
}

.btn-hero-primary {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary);
}

.btn-hero-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-hero-secondary {
    background-color: var(--color-white);
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary); 
}

.btn-hero-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary);
    padding: 0.8rem 1.6rem; 
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none !important; 
}

/* --- 5. IMAGES ET CARTES --- */

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
}

/* CORRECTION DE LA TAILLE ET DU FLOU DE LA PHOTO DE PROFIL */
.img-profile {
    width: 250px; /* Réduit pour éviter l'agrandissement excessif */
    height: 250px; /* Assure un cercle parfait avec border-radius: 50% */
    border-radius: 50%; 
    object-fit: cover; 
    object-position: 50% 25%; /* Cadrage Desktop : Focalise un peu plus haut */
    border: 5px solid var(--color-white); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    margin: 0 auto;
}

.card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); 
    border-left: 5px solid var(--color-secondary); 
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.img-traitement {
    height: 200px; 
    width: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: none; 
}

.info-box {
    background-color: #f0fdfa;
    border-left: 5px solid var(--color-primary); 
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    font-size: 1.1em;
    color: var(--color-text-dark); 
}

/* --- 6. ICÔNES DE LA PAGE D'ACCUEIL --- */

.etiopathie-point {
    text-align: center; 
    padding: 0 10px; 
}

.etiopathie-teaser-icon {
    width: 60px; 
    height: 60px;
    margin-bottom: 1rem;
    display: block; 
    margin-left: auto; 
    margin-right: auto;
    box-shadow: none; 
}

.etiopathie-point h3, .etiopathie-point p {
    text-align: center; 
}

/* CORRECTION CRITIQUE DES ICÔNES DE DOMAINES (PAGE ÉTIOPATHIE) */
.domaine-item .domaine-icon {
    width: 50px; 
    height: 50px;
    margin-bottom: 0.8rem;
    align-self: flex-start; 
    box-shadow: none; 
    border-radius: 0;
}

.domaine-item h4 {
    text-align: left;
}
.domaine-item p {
    text-align: left;
}

/* --- 7. GRILLES ET FLEXBOX (DESKTOP) --- */

.section-hero .flex-row {
    display: flex;
    align-items: center;
    gap: 4rem; 
    padding: 3rem 0;
}

/* Assurer que chaque colonne prend la pleine largeur de sa flex-row */
.flex-content, .flex-image {
    flex: 1 1 50%; /* L'élément peut grandir/rétrécir, et la base est 50% */
    width: 100%; /* S'assure qu'ils prennent l'espace disponible */
    max-width: 100%;
}

.etiopathie-grid, .indications-grid, .deroulement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
    margin-top: 2rem;
}

.tarifs-flex {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    margin-top: 2rem;
}

/* Consultation : Ajustement des tarifs */
.honoraires-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
    text-align: center;
    border-left: 5px solid var(--color-primary); 
}

/* --- NOUVEAU STYLE : BOUTONS ET PRIX CONSULTATION (FINALE) --- */
.honoraires-card h3 {
    margin-bottom: 2rem; 
}

.prix-bloc {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.prix-label {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.prix-final {
    font-size: 4em; 
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.btn-action-full {
    padding: 0.8rem 1.6rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none !important;
    cursor: pointer;
    width: 100%;
    margin: 0 auto; 
    display: block;
}

.cta-rdv a.btn-action-full {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    border: 2px solid var(--color-secondary);
}
.cta-rdv a.btn-action-full:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.cta-mutuelle {
    margin-top: 1rem;
}
.cta-mutuelle a.btn-action-full {
    background-color: transparent;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary);
    padding: 0.7rem 1.6rem; 
}
.cta-mutuelle a.btn-action-full:hover {
    background-color: var(--color-background);
}

.seances-info-relocated {
    text-align: left; 
}

/* PAIEMENT DANS LA CARTE HONORAIRES */
.paiement-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc; 
    width: 90%; 
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.paiement-info h4 {
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-dark);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* BLOCS DE TARIFS EMPILÉS (Consultation) */
.tarifs-wrapper-single {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarifs-single-card {
    width: 80%; 
    max-width: 800px;
    margin: 2rem auto; 
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); 
    flex: none !important; 
    align-self: auto !important;
    border-left: 5px solid var(--color-secondary); /* Couleur secondaire pour le remboursement */
}

/* Contient les tarifs et le paiement dans la carte */
.tarifs-grid-single {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 1.5rem; 
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e0e0;
}

/* Colonne Prix et Séances (Gauche) */
.tarifs-details {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    border-right: 1px dashed #e0e0e0; 
    padding-right: 1.5rem;
    height: 100%; 
    justify-content: space-between; 
}

/* Bloc interne du prix */
.prix-bloc-inner-center {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    margin-bottom: 0.5rem;
}

.prix-label-equilibre {
    font-size: 1em; 
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.prix-equilibre {
    font-size: 2.8em; 
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.seances-info-relocated {
    text-align: center !important; 
    margin-top: 1.5rem; 
    margin-bottom: 2rem; 
}

/* Colonne Paiement (Droite) */
.paiement-info {
    text-align: center;
    padding-left: 1.5rem;
    padding-top: 0.5rem; 
}

.paiement-info-inner-center {
    text-align: center;
}

.paiement-info-inner-center h4, .paiement-info-inner-center p {
    text-align: center;
}

.mention-mutuelle-importante {
    font-size: 0.9em;
    color: #666; 
    margin-top: 1rem;
    text-align: center; 
}

/* --- 8. PIED DE PAGE --- */

.footer {
    background-color: #333d47; 
    color: #f0f0f0; 
    padding-top: 3rem;
    font-size: 0.95em;
    line-height: 1.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #555;
}

.footer-block h3 {
    color: var(--color-white); 
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 1em;
    text-align: left; 
}

.footer-social a {
    font-size: 1.5em;
    color: var(--color-white); 
    margin-right: 1rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--color-secondary); 
}

/* Boutons d'action finale */
.cta-buttons-final {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.btn-footer-action {
    background-color: transparent; 
    color: var(--color-white) !important;
    border: 1px solid #777; 
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95em;
    text-align: center; 
    display: flex;
    align-items: center;
    justify-content: center; 
    text-decoration: none;
    width: 100%; 
    margin-bottom: 0.5rem;
}

.btn-footer-action i {
    margin-right: 8px; 
    color: var(--color-secondary); 
}

.btn-footer-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer Bas (Copyright Centré) */
.footer-bottom {
    padding: 1rem 0;
    font-size: 0.85em;
    text-align: center;
}

.footer-bottom-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.footer-nav-simple a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav-simple a:hover {
    color: var(--color-secondary);
}

/* --- 9. RÉACTIVITÉ (MOBILE) --- */
@media (max-width: 900px) {

    /* --- FONDAMENTAUX --- */
    .main-container, .container {
        padding: 0 5vw; 
    }
    
    /* Titres principaux */
    h1, h2, h3 {
        text-align: left !important; 
    }
    .hero-heading-main {
        font-size: 2.2em; 
    }
    .hero-slogan {
        font-size: 1.4em;
    }
    
    /* Boutons CTA */
    .hero-actions {
        flex-direction: column; 
        gap: 1rem;
        align-items: stretch;
    }
    .btn-action-hero {
        width: 100%; 
        /* CORRECTION DÉBORDEMENT BOUTON (ACCUEIL) */
        white-space: normal; /* Autorise le texte à revenir à la ligne */
        font-size: 0.9em; /* Réduit légèrement la taille de police */
    }

    /* --- HEADER & NAVIGATION --- */
    .menu-toggle {
        display: block; 
    }
    .logo-text {
        display: none;
    }

    .nav-wrapper {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column; 
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        transform: translateY(-100vh); 
        transition: transform 0.3s ease-out;
        z-index: 90; 
        overflow: hidden;
    }
    
    .nav-wrapper.is-open {
        transform: translateY(0);
        padding-bottom: 1rem; 
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-links a, .btn-rdv-header {
        width: 90%;
        margin: 0.5rem auto;
        text-align: center;
        padding: 1rem 0; 
        border: none;
    }

    .btn-rdv-header {
        background-color: transparent;
        color: var(--color-primary) !important;
        border: 1px solid var(--color-primary);
    }
    
    /* --- GRILLES (Les empiler par défaut) --- */

    /* Correction du Hero de l'accueil */
    .section-hero .flex-row {
        flex-direction: column; 
        gap: 2rem;
    }
    .section-hero .flex-row > *:first-child {
        order: 1; 
    }
    .section-hero .flex-row > *:last-child {
        order: 2; 
    }

    .etiopathie-grid, .indications-grid, .deroulement-grid, .footer-grid, .tarifs-flex {
        grid-template-columns: 1fr; 
        flex-direction: column;
        gap: 2rem;
    }
    
    .tarifs-flex {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Footer : Les blocs reviennent à l'alignement gauche */
    .footer-block h3 {
        text-align: center; 
    }
    .footer-buttons-center, .footer-bottom-content-centered {
        align-items: center; 
    }
    
    /* CORRECTION CADRAGE IMAGE DE PROFIL (pour remonter le visage) */
    .img-profile {
        height: auto; /* IMPORTANT: Retire la hauteur fixe */
        border-radius: 8px; 
        object-position: 50% 10%; /* Focalise sur le haut de l'image (le visage) */
    }
}

/* --- NOUVEAU BREAKPOINT : Très petits mobiles (Max 600px) pour les tarifs --- */
@media (max-width: 600px) {
    
    /* Correction de la grille interne des tarifs (Consultation) */
    .tarifs-grid-single {
        /* On retire la grille et on passe en empilement vertical Flexbox */
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Le bloc de gauche (Prix) doit s'empiler avant le bloc de droite (Paiement) */
    .tarifs-details {
        text-align: left;
        padding: 0;
        width: 100%; 
        border-right: none;
        border-bottom: 1px dashed #e0e0e0; /* Ligne de séparation horizontale */
        padding-bottom: 1rem;
    }

    /* Le bloc de droite (Paiement) */
    .paiement-info {
        text-align: left;
        padding: 0;
        width: 100%;
        padding-top: 1rem;
        margin-top: 0;
        border-top: none;
        margin-left: auto;
        margin-right: auto;
    }

    /* Réalignement du texte dans les colonnes */
    .tarifs-details h3, .tarifs-details p, .paiement-info h4, .paiement-info p {
        text-align: left !important;
        align-self: flex-start;
    }

    .prix-bloc-inner-center {
        align-items: flex-start; /* Aligner le prix à gauche */
        text-align: left;
    }

    .seances-info-relocated {
        text-align: left !important;
    }
}