/* CSS pour centrer tous les titres sur toutes les pages */

/* Titres principaux - sélecteurs renforcés */
h1, h2, h3, h4, h5, h6 {
    text-align: center !important;
}

/* Sélecteurs spécifiques pour les titres de sections */
.section-title,
section h2,
.container > h2,
.offers-section h2,
.features-section h2,
.methodology-section h2,
.testimonials-section h2,
.contact-section h2,
.faq-section h2,
.security-section h2,
.investment-section h2,
.simulator-section h2,
.performance-section h2,
.how-it-works-section h2,
.legal-section h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
}

/* Description sous les titres de section */
.section-description,
section p.section-description,
.container > p.section-description {
    text-align: center !important;
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Titres dans les cartes et autres conteneurs */
.offer-card h3,
.feature-card h3,
.methodology-card h3,
.investment-card h3,
.mentorat-card h3,
.stat-item h4,
.step h3,
.faq-question h3,
.tab-content h3,
.performance-stats h4 {
    text-align: center !important;
}

/* Ajustements pour les titres qui ont besoin d'un peu d'espace supplémentaire */
.section-title {
    margin-bottom: 1.5rem !important;
}

/* S'assurer que les titres dans le footer restent alignés à gauche */
.footer h4 {
    text-align: left !important;
}

/* Ajustements pour les titres dans les formulaires et les éléments légaux */
form h3, 
.form-group label,
.legal-content h3 {
    text-align: left !important;
}

/* Centrer les badges et autres éléments associés aux titres */
.badge, 
.investment-badge,
.premium-badge {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Correction spécifique pour les pseudo-éléments des titres de section */
.section-title::before,
.section-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}
