/*
 Theme Name:   GeneratePress Child - Souffl'Isol
 Theme URI:    https://generatepress.com
 Description:  Thème enfant GeneratePress pour Souffl'Isol
 Author:       Tim
 Author URI:   https://example.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/

/* ==========================================================================
   CSS Variables - Couleurs Souffl'Isol (Vert)
   ========================================================================== */

:root {
    --vert-primary: #41A792;
    --vert-secondary: #369680;
    --vert-light: rgba(65, 167, 146, 0.89);
    --vert-dark: #2d7a69;
}


/* ==========================================================================
   FIL D'ARIANE (Yoast Breadcrumb)
   ========================================================================== */

.yoast-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.yoast-breadcrumb a {
    color: var(--vert-primary);
    text-decoration: none;
}

.yoast-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-container {
    justify-content: center;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 30px;
}


/* ==========================================================================
   TABLE DES MATIÈRES (Easy TOC)
   ========================================================================== */

#ez-toc-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #fff;
    border: 1px solid var(--vert-primary);
}

.ez-toc-title-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ez-toc-title {
    flex: 1;
    min-width: 0;
}

.ez-toc-title-toggle {
    flex-shrink: 0;
}

#ez-toc-container p.ez-toc-title,
#ez-toc-container .ez_toc_custom_title_icon,
#ez-toc-container .ez_toc_custom_toc_icon {
    color: var(--vert-primary);
}

#ez-toc-container ul.ez-toc-list a {
    color: var(--vert-primary);
}

#ez-toc-container ul.ez-toc-list a:hover {
    color: #000000;
}

#ez-toc-container ul.ez-toc-list a:visited {
    color: var(--vert-secondary);
}


/* ==========================================================================
   BADGES CATÉGORIE
   ========================================================================== */

.category-badge,
.cat-links a {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    padding: 2px 5px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: var(--vert-light);
    color: #ffffff;
    text-decoration: none;
}

.category-badge a {
    color: #ffffff;
    text-decoration: none;
}

.category-badge a:hover,
.cat-links a:hover {
    background-color: var(--vert-dark);
    color: #ffffff;
}


/* ==========================================================================
   CARDS ARTICLES (Style GenerateBlocks)
   ========================================================================== */

.article-card {
    height: 100%;
    min-height: 100px;
    max-height: 200px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0 10px 0 0;
    border: 1px solid;
    color: #ffffff;
}

.article-card::before {
    content: "";
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0 10px 0 0;
    pointer-events: none;
}

.article-card::after {
    content: "";
    background-image: linear-gradient(180deg, rgba(54, 54, 54, 0.09), #0e0e0e);
    z-index: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.article-card .card-content {
    z-index: 1;
    position: relative;
    text-align: left;
    margin: 5px 10px;
}

.article-card .card-category {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 400;
    padding: 3px 5px;
    color: #ffffff;
    background-color: var(--vert-primary);
}

.article-card .card-date {
    font-size: 10px;
    font-weight: 300;
    color: #ffffff;
}

.article-card .card-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 0px;
    color: #ffffff;
}

.article-card .card-title a {
    color: #ffffff;
    text-decoration: none;
}

.article-card .card-title a:hover {
    color: #e6e6e6;
}


/* ==========================================================================
   INLINE RELATED POSTS (Liens internes stylisés)
   ========================================================================== */

.inline-related-post {
    padding: 1em;
    margin: 1em 0;
    width: 100%;
    display: block;
    font-weight: bold;
    background-color: #FFFFFF;
    border: 0 !important;
    border-left: 4px solid var(--vert-primary) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17);
    text-decoration: none;
}

.inline-related-post:hover {
    opacity: 1;
    transition: opacity 250ms;
}

.inline-related-post .ctaText {
    font-weight: bold;
    color: var(--vert-dark);
    text-decoration: none;
    font-size: 16px;
}

.inline-related-post .postTitle {
    color: var(--vert-primary);
    text-decoration: underline !important;
    font-size: 16px;
}


/* ==========================================================================
   SECTION ARTICLES SIMILAIRES
   ========================================================================== */

.related-articles-section {
    flex-direction: column;
    padding: 20px;
    margin-top: 50px;
    border-radius: 5px;
    border: 1px solid transparent;
    background-color: #f7f8f9;
}

.related-articles-section .section-title {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
    font-size: 20px;
    margin-bottom: -20px;
}

.related-articles-section .section-title .icon {
    color: var(--vert-primary);
}


/* ==========================================================================
   TITRES DE SECTION AVEC ICÔNES
   ========================================================================== */

.section-title-icon {
    display: flex;
    align-items: center;
    column-gap: 0.5em;
    font-size: 20px;
    margin-bottom: -20px;
}

.section-title-icon .icon {
    color: var(--vert-primary);
}


/* ==========================================================================
   AUTHOR BOX CUSTOM
   ========================================================================== */

.author-box {
    padding: 30px;
    background-color: #ffffff;
}

.author-box .author-avatar {
    border-radius: 100px;
    width: 100px;
    height: 100px;
    vertical-align: middle;
}

.author-box .author-name {
    display: inline-block;
    margin-bottom: 0px;
}

.author-box .author-role {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(171, 184, 195, 0.5);
    color: #b2b2be;
}

.author-box .author-bio {
    display: inline-block;
    margin-bottom: 0px;
}


/* ==========================================================================
   BOUTONS SOCIAUX
   ========================================================================== */

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    margin-right: 10px;
    border-radius: 5px;
    background-color: var(--vert-primary);
    color: #ffffff;
    text-decoration: none;
}

.social-button:hover {
    background-color: var(--vert-dark);
    color: #ffffff;
}

.social-button .icon {
    width: 1.5em;
    height: 1.5em;
}


/* ==========================================================================
   IMAGES CUSTOM
   ========================================================================== */

.mon-image-arrondie {
    border-radius: 3%;
}

.featured_image_caption {
    text-align: right;
    opacity: .75;
    font-size: 75%;
    margin-top: -20px;
    margin-bottom: 30px;
}

.dynamic-author-image-rounded {
    border-radius: 100%;
}

.dynamic-featured-image,
.dynamic-author-image {
    vertical-align: middle;
}


/* ==========================================================================
   SÉPARATEURS
   ========================================================================== */

hr.wp-block-separator.has-alpha-channel-opacity {
    border-color: var(--vert-primary);
}


/* ==========================================================================
   KK STAR RATINGS
   ========================================================================== */

.kk-star-ratings {
    text-align: center;
}


/* ==========================================================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    
    /* Sidebar sous le contenu */
    .site-content {
        flex-direction: column;
    }
    
    .content-area {
        width: 100% !important;
        order: 1;
    }
    
    .widget-area {
        width: 100% !important;
        order: 2;
        margin-top: 30px;
    }
    
    /* Widgets en 2 colonnes */
    .sidebar .inside-right-sidebar,
    .sidebar .inside-left-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .sidebar .widget {
        width: calc(50% - 10px);
    }
    
    /* Cards - 2 colonnes */
    .article-card {
        width: 50%;
    }
    
    /* Grids GenerateBlocks */
    .gb-grid-wrapper {
        flex-direction: column;
    }
    
    .gb-grid-column,
    .gb-container[class*="gb-grid-column"] {
        width: 100% !important;
        margin-bottom: 20px;
    }
}


/* ==========================================================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================================================== */

@media (max-width: 768px) {
    
    /* Entry meta sur plusieurs lignes */
    .entry-meta span {
        display: block;
        margin-bottom: 5px;
    }
    
    /* Cards - full width */
    .article-card {
        width: 100%;
        min-height: 180px;
    }
    
    .article-card .card-title {
        font-size: 16px;
    }
    
    .article-card .card-category {
        font-size: 11px;
    }
    
    /* Widgets - 1 colonne */
    .sidebar .widget {
        width: 100% !important;
    }
    
    /* Tables responsive */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* TOC mobile */
    #ez-toc-container {
        padding: 12px;
    }
    
    #ez-toc-container p.ez-toc-title {
        font-size: 14px;
    }
    
    #ez-toc-container ul.ez-toc-list a {
        font-size: 13px;
    }
    
    /* Formulaires - empêche zoom iOS */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
    }
    
    /* Author box mobile */
    .author-box {
        text-align: center;
    }
    
    .author-box .author-avatar {
        margin: 0 auto 15px;
        display: block;
    }
}


/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ========================================================================== */

@media (max-width: 480px) {
    
    .article-card {
        min-height: 150px;
    }
    
    .article-card .card-title {
        font-size: 14px;
    }
}


/* ==========================================================================
   MEDIA RESPONSIVE
   ========================================================================== */

iframe,
embed,
object,
video {
    max-width: 100%;
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .main-navigation,
    .widget-area,
    .footer-widgets,
    .site-info,
    .comments-area,
    .generate-back-to-top,
    #ez-toc-container {
        display: none !important;
    }
    
    .content-area {
        width: 100% !important;
    }
}