/*
 Theme Name:   Extra Child
 Theme URI:    https://stylistme.com/
 Description:  Thème Enfant pour Extra Divi - Stylistme
 Author:       Rodolphe Degandt
 Author URI:   https://stylistme.com/marketing-digital-rodolphe-degandt
 Template:     Extra
 Version:      1.2.0
*/

/* ==========================================================================
   1. STRUCTURE & HEADER
   ========================================================================== */

#main-header {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

#main-content .container,
.et_pb_row {
    width: 95% !important;
    max-width: 95% !important;
}

#main-content .container {
    padding: 0 !important;
    margin: 0 auto !important;
}

.et_pb_row_0 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.et_pb_menu__icon.et_pb_menu__search-button {
    color: #000000 !important;
    background-color: transparent !important;
    border: none !important;
}

.et_pb_menu__icon.et_pb_menu__search-button:hover {
    opacity: 0.7;
}


/* ==========================================================================
   2. TYPOGRAPHIE PAR DÉFAUT (bleu #008AE0)
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: sans-serif;
    margin: 0;
}

h1 {
    text-align: left;
    color: #008AE0;
}

h2 {
    font-size: 22px;
    color: #008AE0;
    padding-bottom: 10px;
}

h3 {
    font-size: 18px;
    color: #008AE0;
    padding-top: 15px;
    padding-bottom: 10px;
}

h4 {
    font-size: 16px;
    color: #000000;
}

h1.entry-title, 
h1.archive-title {
    font-family: sans-serif;
    text-align: left;
    font-size: 36px;
}

.post-meta.vcard {
    font-family: sans-serif;
    text-align: left;
    font-style: italic;
    font-size: 14px;
}

p {
    margin: 0 0 10px 0;
}

p + p {
    margin-top: 1.5em;
}

a {
    color: #FF751F;
    text-decoration: underline;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1.3em;
}

ul li, ol li {
    margin: 0 0 1px 0;
    padding: 0;
}

ul li::marker, 
ol li::marker {
    margin-left: 15px;
    color: #FF751F;
}

hr {
    background-color: #008AE0;
    border: none;
    height: 3px;
}


/* ==========================================================================
   3. TABLEAUX DE BASE
   ========================================================================== */

table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 1.5em !important;
}

table th, 
table td {
    padding: 12px 15px !important;
    border: 1px solid #008AE0;
}


/* ==========================================================================
   4. COULEURS PAR CATÉGORIE — AR / VR / XR (#ff751f)
   ========================================================================== */

/* --- Tous les titres possibles --- */
body.cat-vr-ar-jeu-tuto h1,
body.cat-vr-ar-jeu-tuto h2,
body.cat-vr-ar-jeu-tuto h3,
body.cat-vr-ar-jeu-tuto .entry-title,
body.cat-vr-ar-jeu-tuto .post-title,
body.cat-vr-ar-jeu-tuto .post-content h1,
body.cat-vr-ar-jeu-tuto .post-content h2,
body.cat-vr-ar-jeu-tuto .post-content h3,
body.cat-vr-ar-jeu-tuto .et_pb_text_inner h1,
body.cat-vr-ar-jeu-tuto .et_pb_text_inner h2,
body.cat-vr-ar-jeu-tuto .et_pb_text_inner h3,
body.cat-vr-ar-jeu-tuto .et_pb_module_header,
body.cat-vr-ar-jeu-tuto .et_pb_title_container h1,
body.cat-vr-ar-jeu-tuto .et_pb_post_title h1,
body.cat-vr-ar-jeu-tuto .et_pb_post_title h2,
body.cat-vr-ar-jeu-tuto .et_pb_post_title h3,
body.cat-vr-ar-jeu-tuto .et_pb_title_meta_container,
body.cat-vr-ar-jeu-tuto #main-content h1,
body.cat-vr-ar-jeu-tuto #main-content h2,
body.cat-vr-ar-jeu-tuto #main-content h3,
body.cat-vr-ar-jeu-tuto .et_pb_slide_title,
body.cat-vr-ar-jeu-tuto .et_pb_slide_content h2,
body.cat-vr-ar-jeu-tuto .et_pb_slide_content h3 {
    color: #ff751f !important;
}

/* --- Bordures des tableaux --- */
body.cat-vr-ar-jeu-tuto table th,
body.cat-vr-ar-jeu-tuto table td,
body.cat-vr-ar-jeu-tuto .et_pb_text table th,
body.cat-vr-ar-jeu-tuto .et_pb_text table td,
body.cat-vr-ar-jeu-tuto .post-content table th,
body.cat-vr-ar-jeu-tuto .post-content table td {
    border-color: #ff751f !important;
}

/* --- Séparateurs --- */
body.cat-vr-ar-jeu-tuto hr,
body.cat-vr-ar-jeu-tuto .et_pb_divider_internal {
    background-color: #ff751f !important;
}


/* ==========================================================================
   5. COULEURS PAR CATÉGORIE — IA & Robotique (#249f96)
   ========================================================================== */

body.cat-ia-robotique h1,
body.cat-ia-robotique h2,
body.cat-ia-robotique h3,
body.cat-ia-robotique .entry-title,
body.cat-ia-robotique .post-title,
body.cat-ia-robotique .post-content h1,
body.cat-ia-robotique .post-content h2,
body.cat-ia-robotique .post-content h3,
body.cat-ia-robotique .et_pb_text_inner h1,
body.cat-ia-robotique .et_pb_text_inner h2,
body.cat-ia-robotique .et_pb_text_inner h3,
body.cat-ia-robotique .et_pb_module_header,
body.cat-ia-robotique .et_pb_title_container h1,
body.cat-ia-robotique .et_pb_post_title h1,
body.cat-ia-robotique .et_pb_post_title h2,
body.cat-ia-robotique .et_pb_post_title h3,
body.cat-ia-robotique .et_pb_title_meta_container,
body.cat-ia-robotique #main-content h1,
body.cat-ia-robotique #main-content h2,
body.cat-ia-robotique #main-content h3,
body.cat-ia-robotique .et_pb_slide_title,
body.cat-ia-robotique .et_pb_slide_content h2,
body.cat-ia-robotique .et_pb_slide_content h3 {
    color: #249f96 !important;
}

body.cat-ia-robotique table th,
body.cat-ia-robotique table td,
body.cat-ia-robotique .et_pb_text table th,
body.cat-ia-robotique .et_pb_text table td,
body.cat-ia-robotique .post-content table th,
body.cat-ia-robotique .post-content table td {
    border-color: #249f96 !important;
}

body.cat-ia-robotique hr,
body.cat-ia-robotique .et_pb_divider_internal {
    background-color: #249f96 !important;
}


/* ==========================================================================
   6. COULEURS PAR CATÉGORIE — Objets Connectés (#004aad)
   ========================================================================== */

body.cat-iot-objets-connectes h1,
body.cat-iot-objets-connectes h2,
body.cat-iot-objets-connectes h3,
body.cat-iot-objets-connectes .entry-title,
body.cat-iot-objets-connectes .post-title,
body.cat-iot-objets-connectes .post-content h1,
body.cat-iot-objets-connectes .post-content h2,
body.cat-iot-objets-connectes .post-content h3,
body.cat-iot-objets-connectes .et_pb_text_inner h1,
body.cat-iot-objets-connectes .et_pb_text_inner h2,
body.cat-iot-objets-connectes .et_pb_text_inner h3,
body.cat-iot-objets-connectes .et_pb_module_header,
body.cat-iot-objets-connectes .et_pb_title_container h1,
body.cat-iot-objets-connectes .et_pb_post_title h1,
body.cat-iot-objets-connectes .et_pb_post_title h2,
body.cat-iot-objets-connectes .et_pb_post_title h3,
body.cat-iot-objets-connectes .et_pb_title_meta_container,
body.cat-iot-objets-connectes #main-content h1,
body.cat-iot-objets-connectes #main-content h2,
body.cat-iot-objets-connectes #main-content h3,
body.cat-iot-objets-connectes .et_pb_slide_title,
body.cat-iot-objets-connectes .et_pb_slide_content h2,
body.cat-iot-objets-connectes .et_pb_slide_content h3 {
    color: #004aad !important;
}

body.cat-iot-objets-connectes table th,
body.cat-iot-objets-connectes table td,
body.cat-iot-objets-connectes .et_pb_text table th,
body.cat-iot-objets-connectes .et_pb_text table td,
body.cat-iot-objets-connectes .post-content table th,
body.cat-iot-objets-connectes .post-content table td {
    border-color: #004aad !important;
}

body.cat-iot-objets-connectes hr,
body.cat-iot-objets-connectes .et_pb_divider_internal {
    background-color: #004aad !important;
}


/* ==========================================================================
   7. COULEURS PAR CATÉGORIE — Porno VR (#ff66c4)
   ========================================================================== */

body.cat-porno-vr h1,
body.cat-porno-vr h2,
body.cat-porno-vr h3,
body.cat-porno-vr .entry-title,
body.cat-porno-vr .post-title,
body.cat-porno-vr .post-content h1,
body.cat-porno-vr .post-content h2,
body.cat-porno-vr .post-content h3,
body.cat-porno-vr .et_pb_text_inner h1,
body.cat-porno-vr .et_pb_text_inner h2,
body.cat-porno-vr .et_pb_text_inner h3,
body.cat-porno-vr .et_pb_module_header,
body.cat-porno-vr .et_pb_title_container h1,
body.cat-porno-vr .et_pb_post_title h1,
body.cat-porno-vr .et_pb_post_title h2,
body.cat-porno-vr .et_pb_post_title h3,
body.cat-porno-vr .et_pb_title_meta_container,
body.cat-porno-vr #main-content h1,
body.cat-porno-vr #main-content h2,
body.cat-porno-vr #main-content h3,
body.cat-porno-vr .et_pb_slide_title,
body.cat-porno-vr .et_pb_slide_content h2,
body.cat-porno-vr .et_pb_slide_content h3 {
    color: #ff66c4 !important;
}

body.cat-porno-vr table th,
body.cat-porno-vr table td,
body.cat-porno-vr .et_pb_text table th,
body.cat-porno-vr .et_pb_text table td,
body.cat-porno-vr .post-content table th,
body.cat-porno-vr .post-content table td {
    border-color: #ff66c4 !important;
}

body.cat-porno-vr hr,
body.cat-porno-vr .et_pb_divider_internal {
    background-color: #ff66c4 !important;
}


/* ==========================================================================
   8. COMPOSANTS SPÉCIFIQUES
   ========================================================================== */

.featured-posts-slider-module .et_pb_slide .post-content:hover {
    cursor: auto;
}

.wp-caption {
    background-color: #f7f7f7;
    color: #000000;
    font-family: sans-serif;
    font-size: 12px;
    padding: 5px;
    display: grid;
    gap: 3px;
    border: 1px solid #FF751F;
}

.newsletter-box {
    border: 3px solid #FF751F;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.newsletter-title {
    color: #008AE0;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#mce-EMAIL {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#mc-embedded-subscribe {
    background-color: #FF751F;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#mc-embedded-subscribe:hover {
    background-color: #D66119;
}

#mc_embed_signup_scroll {
    font-size: 1.1em;
    color: #333333;
}

#wpfBlock_4 .wpfFilterVerScroll,
#wpfBlock_3 .wpfFilterVerScroll {
    max-height: none !important;
}

.wpfFilterButton.wpfButton {
    background-color: #FF751F !important;
    color: #000000 !important;
    font-weight: bold !important;
    font-style: normal !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wpfFilterButton.wpfButton:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}


/* ==========================================================================
   9. WOOCOMMERCE
   ========================================================================== */

.woocommerce-Price-amount {
    color: #FF751F !important;
    font-weight: bold;
}

del .woocommerce-Price-amount {
    color: #1FB2FF !important;
}

.onsale {
    background-color: #FF751F !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    display: inline-block !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
}

.woocommerce-verification-required,
.woocommerce-Reviews-title,
.woocommerce-review__published-date, 
.woocommerce-review__dash,
#tab-title-reviews a span,
.woocommerce #reviews #comments ol.commentlist li img.avatar {
    display: none !important;
}

.woocommerce-review__author {
    color: #FF751F;
    font-size: 1.1em;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    margin-left: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.single_add_to_cart_button.button.alt {
    font-style: normal !important;
    font-weight: bold !important;
    text-decoration: none;
}