/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/* ── General ─────────────────────────────────────────────────────────────── */

.trp_language_switcher_shortcode {
    margin-top: -5px;
    /* ── Contact : numéro de téléphone en LTR ───────────────────────────────────── */
    .ca-contact__info-text {
        direction:    ltr    !important;
        text-align:   right  !important;
        unicode-bidi: embed  !important;
    }

    /* ── Article single : bouton commentaire à droite ────────────────────────────── */
    #respond .form-submit {
        text-align: right !important;
    }

}

.trp-language-switcher > div {
    padding: 4px 20px 0 13px;
}

.error404 {
	margin-top: 50px
}

/* ================================================================
   RTL — Corrections Arabic
================================================================ */

[dir="rtl"],
html[lang="ar"] {

    /* ── Actualités : image article à droite en RTL ───────────────────────────────── */
    .articles-list article .blog-media.wf-td {
        float: right !important;
    }
    .articles-list article .blog-content.wf-td {
        float: right !important;
        width: 500px!important;
        margin-right: 25px;
    }
    @media screen and (max-width: 768px ) {
        .articles-list article .blog-content.wf-td {
            width: 300px!important;
        }
    }
    /* Pagination : flèche suivante → devient ← */
    .paginator a.nav-next.page-numbers::after,
    .paginator a.page-numbers.nav-next {
        transform: scaleX(-1) !important;
        display: inline-block !important;
    }

    /* ── Formulaire partenaire [part_form] : bilingue, garder en LTR ──────────── */
    .partenaire-form-wrap,
    .rh-form-wrap {
        direction: ltr !important;
    }

    /* ── Cartes services techniques ──────────────────────────────────────────────── */
    .partenaire-services__item {
        border-left:  none              !important;
        border-right: 3px solid #FF4D10 !important;
    }

    /* ── Carousel activité : forcer LTR pour éviter l'inversion des slides ────── */
    .ca-activite__carousel-wrap,
    .ca-activite__carousel {
        direction: ltr !important;
    }
    /* Boutons nav : annuler le transform RTL sur les fleches */
    .ca-activite__nav {
        flex: none !important;
    }
    .ca-activite__nav--prev {
        transform: translateY(-50%) !important;
    }
    /* Le contenu textuel à l'intérieur reste en RTL */
    .ca-activite__carousel .ca-activite__slide-text {
        direction:  rtl   !important;
        text-align: right !important;
    }

    /* ── Activités : titre dans les images ───────────────────────────────────── */
    .ca-activites-page__legende {
        left:  auto       !important;
        right: 1.25rem    !important;
    }

    /* ── Sélecteur de langue TranslatePress ───────────────────────────────── */
    .trp-language-switcher-container .trp-ls-shortcode-language {
        left:  auto !important;
        right: 0    !important;
    }

    /* ── Breadcrumb ──────────────────────────────────────────────────────── */
    ol.breadcrumbs {
        display:         flex         !important;
        flex-direction:  row          !important;
        justify-content: center       !important;
        flex-wrap:       wrap         !important;
        list-style:      none         !important;
        padding:         0            !important;
    }
    /* Le slash est positionné en ::before avec left:0 par le thème */
    ol.breadcrumbs li::before {
        left:       auto  !important;
        right:      0     !important;
        text-align: right !important;
    }
    ol.breadcrumbs li {
        padding-right: 20px !important;
        padding-left:  10px !important;
    }
    ol.breadcrumbs li:first-child {
        padding-right: 0 !important;
    }

    /* ── Navigation : sous-menus (left gere en JS via MutationObserver) ──── */
    .the7-nav-container .sub-menu,
    #main-nav .sub-menu {
        left:  auto !important;
        right: 0    !important;
    }

    /* ── Footer : contact-info ───────────────────────────────────────────── */
    .contact-info li {
        direction:    ltr   !important;
        text-align:   right !important;
        unicode-bidi: embed !important;
    }
    .contact-info li .color-primary {
        display:         flex        !important;
        flex-direction:  row-reverse !important;
        justify-content: flex-end    !important;
        align-items:     center      !important;
        gap:             6px         !important;
        direction:       rtl         !important;
    }

    /* ── Footer : menu avec fleches (show-arrow) ─────────────────────────── */
    .custom-menu.show-arrow li a,
    .widget_presscore-custom-menu-one .custom-menu.show-arrow li a {
        padding-left:  0    !important;
        padding-right: 22px !important;
    }
    .custom-menu.show-arrow a::before,
    .custom-menu.show-arrow li a::before,
    .widget_presscore-custom-menu-one .custom-menu.show-arrow a::before,
    .widget_presscore-custom-menu-one .custom-menu.show-arrow li a::before,
    .custom-menu.show-arrow a::after,
    .custom-menu.show-arrow li a::after,
    .widget_presscore-custom-menu-one .custom-menu.show-arrow a::after,
    .widget_presscore-custom-menu-one .custom-menu.show-arrow li a::after {
        left:      auto !important;
        right:     0    !important;
        transform: translateY(-50%) scaleX(-1) !important;
    }

    /* ── Contact : numéro de téléphone en LTR ───────────────────────────────────── */
    .ca-contact__info-text {
        direction:    ltr   !important;
        text-align:   right !important;
        unicode-bidi: embed !important;
    }
    input[type="tel"] {
        direction: rtl;
        text-align: right;
    }

    /* ── Article single : bouton commentaire à droite ────────────────────────────── */
    #respond .form-submit {
        float: right !important;
    }
    #wp-comment-cookies-consent, .the7-form-terms {
        margin-left: 5px;
    }
    
    .right-mobile-menu-close-icon .dt-close-mobile-menu-icon {
        right: 15px;
    }

}
