/* Modernisation de la page Acouphènes (basé sur Principe) */

/* --- 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 img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 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),
    .principe-block:last-of-type {
        display: flex;
        align-items: flex-start;
        gap: 4rem;
    }

    /* Zig-Zag : Bloc pair (Objectifs) 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-titleh1 {
    font-family: 'Lora', serif;
    font-size: 1.7rem;
    color: #ba5a87;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}


.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: left;
}

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

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

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

/* 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 Acouphènes --- */

.gros-chiffre {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ba5a87;
    display: block;
    margin: 5px 0;
}

/* 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: #ba5a87;
    text-decoration: none;
}

.liens-utiles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.liens-utiles h4 {
    font-family: 'Lora', serif;
    color: #555;
    margin-bottom: 1rem;
}

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



/* --- Adaptation Mobile --- */

@media (max-width: 768px) {
    .principe-container {
        padding: 1rem;
    }

    .principe-intro {
        margin-bottom: 3rem !important;
        padding-bottom: 2rem !important;
    }

    .principe-intro p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    .cta-container {
        padding: 2rem 1rem !important;
    }

    .cta-container h2 {
        font-size: 1.5rem !important;
    }

    .cta-container p {
        font-size: 1rem !important;
    }

    .btn-rdv {
        padding: 12px 20px !important; 
        font-size: 1rem !important;
        width: 100%;
        max-width: 100% !important;
        white-space: nowrap; 
    }

    .section-title {
        font-size: 1.4rem !important;
    }
    
    .contact-form-container {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }

    /* Ajustement pour le nouveau formulaire discret sur mobile */
    #contactFormContainer div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0 !important;
    }
}


@media (min-width: 992px) {
    /* On applique le flex à TOUS les blocs pour éviter le côté linéaire */
    .principe-block {
        display: flex;
        align-items: center; /* Centre verticalement le texte et l'image/encadré */
        gap: 4rem;
        margin-bottom: 5rem;
    }

    /* Alterne automatiquement : les blocs pairs (2, 4, 6...) sont inversés */
    .principe-block:nth-of-type(even) {
        flex-direction: row-reverse;
    }

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

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

/* Variante 1 : Lien élégant avec soulignement animé pour l'étude clinique */
.lien-etude {
    color: #ba5a87;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.lien-etude::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ba5a87, #4C989C);
    transition: width 0.4s ease;
}

.lien-etude:hover {
    color: #4C989C;
}

.lien-etude:hover::after {
    width: 100%;
}


 .fleche-lien {
    font-size: 1.1em;
    color: #ba5a87;
    transition: transform 0.3s ease;
}