/**
 * Styles pour les sections SEO
 */

/* Styles pour les éléments WYSIWYG dans les sections feature-highlight */
/* Reprise des styles exacts des sections feature-highlight existantes */

/* Titre H1 - même style que herobanner__title */
.feature-highlight-section .feature-highlight .feature-highlight__content h1,
.feature-highlight .feature-highlight__content h1 {
    font-size: clamp(36px, 5vw, 56px) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin: 0 0 24px 0 !important;
    color: #000 !important;
    letter-spacing: -0.5px !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H2 - même style que feature-highlight__title */
.feature-highlight-section .feature-highlight .feature-highlight__content h2,
.feature-highlight .feature-highlight__content h2 {
    font-size: 42px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 24px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H3 - style intermédiaire */
.feature-highlight-section .feature-highlight .feature-highlight__content h3,
.feature-highlight .feature-highlight__content h3 {
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H4 - style plus petit */
.feature-highlight-section .feature-highlight .feature-highlight__content h4,
.feature-highlight .feature-highlight__content h4 {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 24px 0 16px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H5 - style encore plus petit */
.feature-highlight-section .feature-highlight .feature-highlight__content h5,
.feature-highlight .feature-highlight__content h5 {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 20px 0 12px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H6 - le plus petit */
.feature-highlight-section .feature-highlight .feature-highlight__content h6,
.feature-highlight .feature-highlight__content h6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 16px 0 8px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Paragraphes - même style que feature-highlight__description */
.feature-highlight-section .feature-highlight .feature-highlight__content p,
.feature-highlight .feature-highlight__content p {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 0 24px 0 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Listes - même style que les bénéfices feature-highlight existants */
.feature-highlight-section .feature-highlight .feature-highlight__content ul,
.feature-highlight .feature-highlight__content ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 24px 0 !important;
    list-style: none !important;
    padding: 0 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

.feature-highlight-section .feature-highlight .feature-highlight__content ol,
.feature-highlight .feature-highlight__content ol {
    margin: 24px 0 !important;
    padding-left: 20px !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
    list-style-type: decimal !important;
}

.feature-highlight-section .feature-highlight .feature-highlight__content ol li,
.feature-highlight .feature-highlight__content ol li {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin-bottom: 12px !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Éléments de liste UL stylés comme les bénéfices */
.feature-highlight-section .feature-highlight .feature-highlight__content ul li,
.feature-highlight .feature-highlight__content ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin: 0 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Ajout de l'icône de check pour les éléments de liste UL */
.feature-highlight-section .feature-highlight .feature-highlight__content ul li::before,
.feature-highlight .feature-highlight__content ul li::before {
    content: "✓" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #D9FFDD !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0A5F14 !important;
}

/* Liens - même style que le site */
.feature-highlight-section .feature-highlight .feature-highlight__content a,
.feature-highlight .feature-highlight__content a {
    color: #111 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.feature-highlight-section .feature-highlight .feature-highlight__content a:hover,
.feature-highlight .feature-highlight__content a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

/* Texte en gras - même couleur que les titres */
.feature-highlight-section .feature-highlight .feature-highlight__content strong,
.feature-highlight .feature-highlight__content strong,
.feature-highlight-section .feature-highlight .feature-highlight__content b,
.feature-highlight .feature-highlight__content b {
    font-weight: 600 !important;
    color: #111 !important;
}

/* Texte en italique */
.feature-highlight-section .feature-highlight .feature-highlight__content em,
.feature-highlight .feature-highlight__content em,
.feature-highlight-section .feature-highlight .feature-highlight__content i,
.feature-highlight .feature-highlight__content i {
    font-style: italic !important;
    color: #666 !important;
}

/* Citations - style cohérent avec le design */
.feature-highlight-section .feature-highlight .feature-highlight__content blockquote,
.feature-highlight .feature-highlight__content blockquote {
    background: #f8f9fa !important;
    padding: 24px !important;
    border-left: 4px solid #111 !important;
    margin: 32px 0 !important;
    border-radius: 8px !important;
    font-style: italic !important;
    color: #666 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Responsive pour les éléments WYSIWYG - cohérent avec les styles existants */
@media (max-width: 991px) {
    /* Tablettes */
    .feature-highlight-section .feature-highlight .feature-highlight__content h2,
    .feature-highlight .feature-highlight__content h2 {
        font-size: 36px !important;
    }

    .feature-highlight-section .feature-highlight .feature-highlight__content h3,
    .feature-highlight .feature-highlight__content h3 {
        font-size: 28px !important;
    }

    .feature-highlight-section .feature-highlight .feature-highlight__content p,
    .feature-highlight .feature-highlight__content p {
        font-size: 16px !important;
    }

    /* Styles responsive pour les sections SEO content - tablette */
    .seo-content-wrapper {
        padding: 48px 24px !important;
        padding-bottom: 24px !important;
    }

    .seo-content-block {
        padding: 0 !important;
    }

    .seo-content h2 {
        font-size: 36px !important;
    }

    .seo-content h3 {
        font-size: 28px !important;
    }

    .seo-content p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    /* Mobiles */
    .feature-highlight-section .feature-highlight .feature-highlight__content h2,
    .feature-highlight .feature-highlight__content h2 {
        font-size: 28px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content h3,
    .feature-highlight .feature-highlight__content h3 {
        font-size: 24px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content h4,
    .feature-highlight .feature-highlight__content h4 {
        font-size: 20px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content h5,
    .feature-highlight .feature-highlight__content h5 {
        font-size: 18px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content h6,
    .feature-highlight .feature-highlight__content h6 {
        font-size: 16px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content p,
    .feature-highlight .feature-highlight__content p {
        font-size: 15px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content ul li,
    .feature-highlight .feature-highlight__content ul li,
    .feature-highlight-section .feature-highlight .feature-highlight__content ol li,
    .feature-highlight .feature-highlight__content ol li {
        font-size: 15px !important;
    }
    
    .feature-highlight-section .feature-highlight .feature-highlight__content blockquote,
    .feature-highlight .feature-highlight__content blockquote {
        font-size: 15px !important;
        padding: 20px !important;
    }

    /* Styles responsive pour les sections SEO content - mobile */
    .seo-content-wrapper {
        padding: 32px 16px !important;
    }

    .seo-content-block {
        padding: 0 !important;
    }

    .seo-content {
        gap: 20px !important;
    }

    .seo-content h2 {
        font-size: 28px !important;
    }

    .seo-content h3 {
        font-size: 24px !important;
    }

    .seo-content h4 {
        font-size: 20px !important;
    }

    .seo-content p {
        font-size: 15px !important;
    }

    .seo-content li {
        font-size: 15px !important;
    }
}

.seo-sections-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Styles de base pour les sections - avec spécificité plus élevée */
.seo-sections-container .seo-section,
.seo-section {
    margin-bottom: 40px !important;
    padding: 30px !important;
    background: #fff !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.seo-section__content {
    width: 100%;
}

.seo-sections-container .seo-section__title,
.seo-section__title {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #000 !important;
    line-height: 1.3 !important;
}

.seo-sections-container .seo-section__body,
.seo-section__body {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.seo-section__body h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #000;
}

.seo-section__body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 12px 0;
    color: #000;
}

.seo-section__body h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #000;
}

.seo-section__body p {
    margin-bottom: 16px;
}

.seo-section__body ul,
.seo-section__body ol {
    margin: 16px 0;
    padding-left: 20px;
}

.seo-section__body li {
    margin-bottom: 8px;
}

.seo-section__body strong {
    font-weight: 600;
    color: #000;
}

/* Styles par type de section */

/* Styles pour les sections SEO content - layout complet sans images */
.seo-content-section {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.seo-content-section .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.seo-content-wrapper {
    padding: 64px 0 !important;
}

.seo-content-block {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.seo-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: left;
}

/* Application des styles feature-highlight existants aux sections SEO */

/* Titre H1 - même style que herobanner__title */
.seo-content h1 {
    font-size: clamp(36px, 5vw, 56px) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin: 0 0 24px 0 !important;
    color: #000 !important;
    letter-spacing: -0.5px !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H2 - même style que feature-highlight__title */
.seo-content h2 {
    font-size: 42px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 24px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H3 - style intermédiaire */
.seo-content h3 {
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 32px 0 20px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Premier H3 sans marge top */
.seo-content h2 + h3 {
    margin-top: 24px !important;
}

/* Titre H4 - style plus petit */
.seo-content h4 {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 24px 0 16px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H5 - style encore plus petit */
.seo-content h5 {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 20px 0 12px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Titre H6 - le plus petit */
.seo-content h6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 16px 0 8px 0 !important;
    color: #111 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Paragraphes - même style que feature-highlight__description */
.seo-content p {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 0 24px 0 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Listes - même style que les bénéfices feature-highlight existants */
.seo-content ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 24px 0 !important;
    list-style: none !important;
    padding: 0 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

.seo-content ol {
    margin: 24px 0 !important;
    padding-left: 20px !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
    list-style-type: decimal !important;
}

.seo-content ol li {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin-bottom: 12px !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Éléments de liste UL stylés comme les bénéfices */
.seo-content ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    margin: 0 !important;
    font-family: var(--font-primary, 'Inter', sans-serif) !important;
}

/* Ajout de l'icône de check pour les éléments de liste UL */
.seo-content ul li::before {
    content: "✓" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background-color: #D9FFDD !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0A5F14 !important;
}

/* Liens - même style que le site */
.seo-content a {
    color: #111 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.seo-content a:hover {
    color: #333 !important;
    text-decoration: none !important;
}

/* Texte en gras - même couleur que les titres */
.seo-content strong,
.seo-content b {
    font-weight: 600 !important;
    color: #111 !important;
}

/* Texte en italique */
.seo-content em,
.seo-content i {
    font-style: italic !important;
    color: #666 !important;
}

/* Citations - style cohérent avec le design */
.seo-content blockquote {
    background: #f8f9fa !important;
    padding: 24px !important;
    border-left: 4px solid #111 !important;
    margin: 32px 0 !important;
    border-radius: 8px !important;
    font-style: italic !important;
    color: #666 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Section texte (par défaut) */
.seo-section--text {
    /* Styles par défaut déjà appliqués */
}

/* Section FAQ */
.seo-section--faq .seo-section__body {
    /* Style FAQ - questions en gras */
}

.seo-section--faq .seo-section__body h4,
.seo-section--faq .seo-section__body h5,
.seo-section--faq .seo-section__body strong {
    color: #000;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Section caractéristiques */
.seo-section--features .seo-section__body ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
}

.seo-section--features .seo-section__body li {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #000;
    margin: 0;
}

/* Section témoignages */
.seo-section--testimonials .seo-section__body blockquote {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #000;
    margin: 20px 0;
    border-radius: 8px;
    font-style: italic;
}

.seo-section--testimonials .seo-section__body blockquote p:last-child {
    margin-bottom: 0;
}

/* Styles d'affichage */

/* Style par défaut - avec spécificité plus élevée */
.seo-sections-container .seo-section--default,
.seo-section--default {
    /* Styles par défaut déjà appliqués */
}

/* Style avec bordure */
.seo-section--bordered {
    border: 2px solid #f1f1f4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seo-section--bordered:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Style en surbrillance */
.seo-section--highlighted {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.seo-section--highlighted .seo-section__title {
    color: #000;
    position: relative;
}

.seo-section--highlighted .seo-section__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000;
}

/* Style minimaliste */
.seo-section--minimal {
    background: transparent;
    padding: 20px 0;
    border: none;
    border-bottom: 1px solid #f1f1f4;
    border-radius: 0;
}

.seo-section--minimal:last-child {
    border-bottom: none;
}

.seo-section--minimal .seo-section__title {
    font-size: 24px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .seo-sections-container {
        padding: 30px 15px;
    }
    
    .seo-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .seo-section__title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .seo-section__body {
        font-size: 15px;
    }
    
    .seo-section__body h2 {
        font-size: 20px;
    }
    
    .seo-section__body h3 {
        font-size: 18px;
    }
    
    .seo-section__body h4 {
        font-size: 16px;
    }
    
    .seo-section--features .seo-section__body ul {
        grid-template-columns: 1fr;
    }
    
    .seo-section--minimal .seo-section__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .seo-sections-container {
        padding: 20px 10px;
    }
    
    .seo-section {
        padding: 16px;
        margin-bottom: 25px;
    }
    
    .seo-section__title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .seo-section__body {
        font-size: 14px;
    }
}