/* Modernisation de la page Principe */

/* 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);
}

.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 UNIQUEMENT aux blocs qui ont un encadré "En bref" (les 2 premiers) */
    .principe-block:nth-of-type(1),
    .principe-block:nth-of-type(2) {
        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:nth-of-type(1) .block-content,
    .principe-block:nth-of-type(2) .block-content {
        flex: 3;
    }

    .principe-block:nth-of-type(1) .en-bref,
    .principe-block:nth-of-type(2) .en-bref {
        flex: 2;
        margin-top: 0; /* Annule la marge top mobile */
        align-self: center; /* Centre verticalement l'encadré */
    }
    
    /* Les autres blocs (Outils, Déroulement) restent en pleine largeur par défaut */
}

.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; /* Supprime la marge du titre car gérée par le conteneur */
}

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

/* Encadrés "En bref" */
.en-bref {
    background-color: rgba(255, 221, 134, 0.2); /* Jaune très doux */
    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;
}

/* Cartes types de séances */
.seance-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .seance-types {
        grid-template-columns: 1fr 1fr;
    }
}

.type-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.type-card h3 {
    font-family: 'Lora', serif;
    color: #4C989C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.type-card p {
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
}


/* --- 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;
    }
}