/* --- specific style for the page "Ma Présentation" --- */


.page-tabs-content .site-content,
.page-template-page-ma-presentation .site-content {
    /* padding-top: 80px;  */
    padding-bottom: 60px; 
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px; 
    padding-right: 30px; 
}

.page-tabs-content .entry-title,
.page-template-page-ma-presentation .entry-title {
    text-align: center;
    /* font-size: 1.15em; */
    /* line-height: 1.9; */
}

.page-tabs-content .entry-content,
.page-template-page-ma-presentation .entry-content {
    font-size: 1.15em;
    line-height: 1.9;
}

.page-tabs-content .page-intro-content,
.page-template-page-ma-presentation .page-intro-content {
    max-width: 800px;
    margin: 0 auto 3em auto;
    /* text-align: center; */
    font-size: 1.1em;
    color: var(--site-color-text);
}

.page-tabs-content .entry-content p,
.page-template-page-ma-presentation .entry-content p {
    margin-bottom: 1.8em;
}

/* Styles for Gutenberg headings within content */
.page-tabs-content .entry-content .wp-block-heading,
.page-template-page-ma-presentation .entry-content .wp-block-heading {
    font-size: 1.8em; 
    margin-top: 1em; 
    margin-bottom: 1em;
    color: var(--site-color-text);
}   

/* Style for strong text within the content
.page-template-page-ma-presentation .entry-content strong {
    color: var(--site-color-accent-secondary);
} */

.page-tabs-content .entry-content ul,
.page-template-page-ma-presentation .entry-content ul,
.page-tabs-content .entry-content ul.wp-block-list,
.page-template-page-ma-presentation .entry-content ul.wp-block-list { /* Added specificity for Gutenberg lists */
    margin-left: 2em;
    margin-bottom: 2em;
    line-height: 1.7;
    list-style: none; /* Remove default bullets for UL only */
    padding-left: 0; 
}

/* Ensure ordered lists keep their numbers */
.page-tabs-content .entry-content ol,
.page-template-page-ma-presentation .entry-content ol,
.page-tabs-content .entry-content ol.wp-block-list,
.page-template-page-ma-presentation .entry-content ol.wp-block-list {
    margin-left: 2em;
    margin-bottom: 2em;
    line-height: 1.7;
    list-style: decimal;
    padding-left: 2.2em;
}

.page-tabs-content .entry-content li,
.page-template-page-ma-presentation .entry-content li {
    margin-bottom: 0.8em;
    position: relative; /* For positioning the custom bullet */
    padding-left: 1em; /* Space for the custom bullet */
}

/* For ordered lists, use numbers */
.page-tabs-content .entry-content ol li::before,
.page-template-page-ma-presentation .entry-content ol li::before {
    /* Disable custom numbering here; rely on native list markers */
    content: none;
    display: none;
}

/* Specific style for li with has-large-font-size */
.page-tabs-content .entry-content li.has-large-font-size,
.page-template-page-ma-presentation .entry-content li.has-large-font-size {
    font-size: 1.1em; 
}

/* Specific style for p with has-large-font-size */
.page-tabs-content .entry-content p.has-large-font-size,
.page-template-page-ma-presentation .entry-content p.has-large-font-size {
    font-size: 1.1em; 
}

/* --- Styles for Tabs --- */

.presentation-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    /* border-bottom: 2px solid var(--site-color-border-light); */
    margin-bottom: 2em;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.2em;
    font-family: var(--font-body);
    color: var(--site-color-text);
    position: relative;
    bottom: -2px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-link:hover {
    color: var(--accent-main);
    background: transparent;
}

.tab-link.active {
    color: var(--accent-text);
    font-weight: 500;
    border-bottom-color: var(--accent-main);
}

.tab-pane {
    display: none;
    line-height: 1.8;
}

.tab-pane.active {
    display: block;
}

/* Styles for content within tab panes */
.tab-pane p,
.tab-pane ul,
.tab-pane ol,
.tab-pane h1,
.tab-pane h2,
.tab-pane h3,
.tab-pane h4,
.tab-pane h5,
.tab-pane h6,
.tab-pane .wp-block-group, 
.tab-pane .wp-block-image, 
.tab-pane .wp-block-gallery, 
.tab-pane .wp-block-columns
{
    margin-bottom: 1em; /* General spacing for blocks */
}

/* Adjust specific elements if needed */
.tab-pane h2 { /* For headings within tab content */
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--site-color-text); 
}

.tab-pane .wp-block-group {
    padding: 1.5em;
}

/* List styling within tab panes, similar to ma-presentation page */
.tab-pane ul,
.tab-pane ul.wp-block-list {
    margin-left: 2em; 
    margin-bottom: 1.5em; 
    line-height: 1.7;
    list-style: none; /* Remove default bullets for UL only */
    padding-left: 0; /* Reset default padding */
}

/* Ordered lists inside tab panes keep numbers */
.tab-pane ol,
.tab-pane ol.wp-block-list {
    margin-left: 2em; 
    margin-bottom: 1.5em; 
    line-height: 1.7;
    list-style: decimal;
    padding-left: 2.2em;
}

.tab-pane li {
    margin-bottom: 0.8em; /* Spacing between list items */
    position: relative;
    padding-left: 1em; /* Space for custom bullet */
}

/* Center the 'Contacter' buttons inside the presentation tabs */
.presentation-contact {
    text-align: center; /* center the inline-block button */
    margin-top: 1.5rem;
}
.presentation-contact .contact-button {
    display: inline-block; /* ensure button shrinks to content and is centered */
}

/* On vise spécifiquement les LI à l'intérieur du bloc social links de Gutenberg */
ul.wp-block-social-links li.wp-social-link::before {
    content: none !important;
    display: none !important;
    background: none !important; /* Au cas où c'est une image de fond */
    position: absolute !important; /* Le sort du flux au cas où il prend de la place */
    opacity: 0 !important;
}

/* On force la suppression de toute puce système ou image de liste */
ul.wp-block-social-links, 
ul.wp-block-social-links li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    background-image: none !important;
    margin-left: 0 !important;
}

/* On réinitialise le décalage forcé par .entry-content ul */
.entry-content ul.wp-block-social-links {
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important; /* Parfois utilisé pour décaler les puces */
}

/* On neutralise les variables spécifiquement dans le bloc social links */
.wp-block-social-links, 
.wp-social-link {
    --list-bullet-char: "" !important;
    --list-bullet-url: none !important;
    --list-bullet-size: 0 !important;
    --list-bullet-left-offset: 0 !important;
}

/* On force la disparition du pseudo-élément au cas où */
.entry-content li.wp-social-link::before {
    content: "" !important;
    display: none !important;
    background: none !important;
}

/* Responsive styles */
@media screen and (max-width: 992px) { /* Adjust breakpoint for larger screens */
    .page-tabs-content .site-content,
    .page-template-page-ma-presentation .site-content {
        padding-top: 60px;
        padding-bottom: 40px;
        max-width: 768px; /* Constrain width more on medium screens */
    }
    .page-tabs-content .entry-title,
    .page-template-page-ma-presentation .entry-title {
        font-size: 2.5em;
    }
    .page-tabs-content .entry-content,
    .page-template-page-ma-presentation .entry-content {
        font-size: 1.05em;
        line-height: 1.8;
    }
    .page-tabs-content .entry-content .wp-block-heading,
    .page-template-page-ma-presentation .entry-content .wp-block-heading {
        font-size: 1.6em;
    }
}

@media screen and (max-width: 768px) {
    .page-tabs-content .site-content,
    .page-template-page-ma-presentation .site-content {
        padding-top: 40px;
        padding-bottom: 30px;
        max-width: 100%; /* Allow full width on small screens */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tabs-content .entry-title,
    .page-template-page-ma-presentation .entry-title {
        font-size: 2em;
        margin-bottom: 1em;
    }
    .page-tabs-content .entry-content,
    .page-template-page-ma-presentation .entry-content {
        font-size: 1em;
        line-height: 1.6;
        padding: 15px; /* Smaller padding for content box */
    }
    .page-tabs-content .entry-content .wp-block-heading,
    .page-template-page-ma-presentation .entry-content .wp-block-heading {
        font-size: 1.4em;
        margin-top: 2em;
    }
    .page-tabs-content .entry-content ul,
    .page-template-page-ma-presentation .entry-content ul,
    .page-tabs-content .entry-content ol,
    .page-template-page-ma-presentation .entry-content ol {
        margin-left: 1.5em; /* Reduce indent on small screens */
        margin-bottom: 1.5em;
    }
    .page-tabs-content .entry-content li,
    .page-template-page-ma-presentation .entry-content li {
        margin-bottom: 0.6em;
        padding-left: 1.2em; /* Adjust for smaller screens */
    }
    .page-tabs-content .entry-content li::before,
    .page-template-page-ma-presentation .entry-content li::before {
        margin-left: -1.2em; /* Adjust for smaller screens */
    }
    .page-tabs-content .entry-content ol li::before,
    .page-template-page-ma-presentation .entry-content ol li::before {
        margin-left: -1.5em; /* Adjust for smaller screens */
        min-width: 1.2em;
    }
    .page-tabs-content .entry-content li.has-large-font-size,
    .page-template-page-ma-presentation .entry-content li.has-large-font-size,
    .page-tabs-content .entry-content p.has-large-font-size,
    .page-template-page-ma-presentation .entry-content p.has-large-font-size {
        font-size: 1em; /* Reset to base font size on small screens */
    }
}

@media screen and (max-width: 480px) {
    .page-tabs-content .entry-title,
    .page-template-page-ma-presentation .entry-title {
        font-size: 1.5em;
    }
    .page-tabs-content .entry-content,
    .page-template-page-ma-presentation .entry-content {
        font-size: 0.95em;
        line-height: 1.6;
        padding: 10px;
    }
    .page-tabs-content .entry-content .wp-block-heading,
    .page-template-page-ma-presentation .entry-content .wp-block-heading {
        font-size: 1.2em;
        margin-top: 1.5em;
    }
    .presentation-tabs-wrapper .tabs-nav {
        font-size: 85%;
    }
}
