/* Modernisation de la page Cohérence cardiaque (basé sur Principe et Acouphènes) */

/* --- Styles de base (copiés de principe.css) --- */

/* Conteneur principal */
.principe-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Raleway', sans-serif;
    color: #333;
    line-height: 1.8;
}

/* Introduction */
.principe-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .principe-intro {
        flex-direction: row;
        align-items: center;
    }
    
    .intro-image {
        flex: 1;
    }
    
    .intro-citation {
        flex: 1;
        padding-left: 2rem;
    }
}



.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


.intro-image img {
    width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.intro-citation blockquote {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #4C989C;
    border-left: 4px solid #4C989C;
    padding-left: 1.5rem;
    margin: 0;
}

.intro-citation cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    font-style: normal;
    font-family: 'Raleway', sans-serif;
}

/* Blocs de contenu */
.principe-block {
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    /* Applique le Zig-Zag aux blocs qui ont un encadré "En bref" */
    .principe-block:nth-of-type(1),
    .principe-block:nth-of-type(2) {
        display: flex;
        align-items: flex-start;
        gap: 4rem;
    }

    /* Zig-Zag : Bloc pair inversé */
    .principe-block:nth-of-type(2) {
        flex-direction: row-reverse;
    }

    .principe-block .block-content {
        flex: 3;
    }

    .principe-block .en-bref {
        flex: 2;
        margin-top: 0;
        align-self: center;
    }
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 1.7rem;
    color: #4C989C;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ffdd86;
}

/* Titres avec icône pissenlit */
.title-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.pissenlit-icon {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
}

.title-with-icon:hover .pissenlit-icon {
    transform: rotate(15deg);
}

.title-with-icon .section-title {
    margin-bottom: 0;
}

.principe-block p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Encadrés "En bref" */
.en-bref {
    background-color: rgba(255, 221, 134, 0.2);
    border-left: 4px solid #ffdd86;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.en-bref p {
    margin: 0;
    color: #555;
}

.en-bref strong {
    color: #d4a017;
}

/* Liste personnalisée */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.custom-list li::before {
    content: '•';
    color: #4C989C;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- Styles spécifiques Cohérence cardiaque --- */

/* Style du bouton d'appel */
.cta-container {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cta-container h3 {
    font-family: 'Lora', serif;
    color: #4C989C;
    margin-bottom: 1rem;
}

.btn-rdv {
    display: inline-block;
    background-color: #4c989c;
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: 'Raleway', sans-serif;
}

.btn-rdv:hover {
    transform: scale(1.05);
    background-color: #d4a017;
    text-decoration: none;
}

/* Style pour le contenu pleine largeur (CTA) */
.full-width-content {
    margin-top: 4rem;
}

/* Liste sur deux colonnes pour ordinateurs */
.two-columns {
    display: block;
}

@media (min-width: 768px) {
    .two-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 2rem;
    }
    
    .two-columns li {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Styles pour les sous-listes de bienfaits */
.bienfaits-list {
    margin-top: 1rem;
}

.bienfaits-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.bienfaits-category {
    font-weight: bold;
    color: #4C989C;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}


/* --- Restructuration Section Bienfaits --- */

/* 1. Partie Haute (Intro + En Bref) */
.bienfaits-container {
    display: block !important; /* Force le block pour gérer le layout manuellement */
}

.bienfaits-top-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .bienfaits-top-wrapper {
        display: flex;
        flex-direction: row;
        align-items: flex-start; /* Important pour l'alignement */
        gap: 4rem;
    }
    
    .bienfaits-top-wrapper .block-content {
        flex: 3;
    }
    
    .bienfaits-top-wrapper .en-bref {
        flex: 2;
        margin-top: 5rem; /* Aligner visuellement avec le texte principal */
    }
}

/* 2. Partie Basse (Grille Full Width) */
.bienfaits-full-width {
    width: 100%;
    margin-top: 2rem;
}

.bienfaits-full-width h3 {
    font-family: 'Lora', serif;
    color: #4C989C;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.intro-grid {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-style: italic;
    color: #666;
}

/* Grille des cartes */
.grid-bienfaits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-bienfaits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .grid-bienfaits {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Style des Cartes */
.card-bienfait {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #4C989C;
    transition: transform 0.3s ease;
}

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

.card-bienfait h4 {
    color: #4C989C;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-bienfait .icon {
    font-size: 1.5rem;
}

.card-bienfait ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-bienfait ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.5;
}

.card-bienfait ul li::before {
    content: '✓';
    color: #d4a017; /* Couleur dorée */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.card-bienfait ul li strong {
    color: #4C989C;
}


/* --- Adaptation Mobile du Bouton RDV --- */

/* On cible les écrans de moins de 768px (tablettes et mobiles) */
@media (max-width: 768px) {
    .btn-rdv {
        /* 1. Réduire les marges intérieures (Haut/Bas  Gauche/Droite) */
        padding: 12px 15px !important; 
        
        /* 2. Réduire la taille du texte */
        font-size: 0.9rem !important;
        
        /* 3. S'assurer que le bouton ne dépasse pas de l'écran */
        width: 100%;
        max-width: 300px; /* Limite la largeur max pour que ça reste joli */
        
        /* 4. Permettre au texte de passer à la ligne si le numéro est trop long */
        white-space: normal; 
        line-height: 1.4;
        
        /* Centrer le bouton (si le conteneur parent ne le fait pas déjà) */
        margin-left: auto;
        margin-right: auto;
        display: block; 
    }

    .section-title{
        font-size: 0.9rem !important;
    }
}