
/* 01/11/2026 – intégrateur (UI A2, accessibilité A5) : seuils du menu alignés sur ceux du thème Pearl (mobile jusqu'à 1 023 px, ordinateur dès 1 024 px).
   Avant : max-width 1024px / min-width 1025px, ce qui cassait l'en-tête à 1 024 px exactement (iPad paysage). */
/* ============================================================
   DYNAMICS FORMATIONS — CSS CONSOLIDÉ PROPRE ET COMPLET
   Version finale : 2026-04-15
   À coller dans Apparence → Personnaliser → CSS additionnel
   (VIDE D'ABORD LA CASE puis colle ce fichier)
   ------------------------------------------------------------
   Sommaire :
   1. Variables charte
   2. Bandeau unifié bleu nuit
   3. Logo (remplacement + taille)
   4. Menu principal desktop
   5. Sous-menus desktop (avec boost anti-rose)
   6. Menu mobile
   7. Pleine largeur des contenus
   8. Footer personnalisé
   9. Accessibilité
   ============================================================ */


/* ============================================================
   1. VARIABLES CHARTE
   ============================================================ */
:root {
    --df-nuit: #1a1a3a;
    --df-rose: #E94B9F;
    --df-cyan: #00D4FF;
    --df-blanc: #ffffff;
}


/* ============================================================
   2. BANDEAU UNIFIÉ — bleu nuit partout
   ============================================================ */
.stm-header,
.stm-header__row,
.stm-header__row_color,
.stm-header__row_color_top,
.stm-header__row_color.pearl_is_sticky,
.stm-header__row_color_top.pearl_is_sticky,
.stm-header__row_color_bottom,
.stm-header__row_bottom,
.stm-header__row_top,
.stm-header__row_middle,
body.stm_header_style_1 .stm-header,
body.stm_header_style_1 .stm-header__row,
.stm-header_element,
header.stm-header,
header.site-header {
    background: var(--df-nuit) !important;
    background-color: var(--df-nuit) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* ============================================================
   3. LOGO — remplacement propre (taille 72px)
   ============================================================ */
.stm-header_element .stm-logo img.logo,
.stm-logo img.logo,
.stm-logo img[src*="LOGO-2020"],
.stm-header img.logo {
    content: url("https://www.dynamics-formations.fr/wp-content/uploads/logo-seul-2026-navy-blanc.png") !important;
    height: 72px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}


/* ============================================================
   4. MENU PRINCIPAL DESKTOP (taille 12.5px)
   ============================================================ */
.stm-header .stm-navigation > ul > li > a,
.stm-header_element .stm-navigation > ul > li > a {
    position: relative;
    color: var(--df-blanc) !important;
    padding: 10px 7px !important;
    font-size: 12.5px !important;
    letter-spacing: 0.1px !important;
    transition: color 0.25s ease;
}

/* Espacement entre les items */
.stm-header .stm-navigation > ul > li,
.stm-header_element .stm-navigation > ul > li {
    margin: 0 3px !important;
}

/* Trait cyan animé sous chaque mot au survol */
.stm-header .stm-navigation > ul > li > a::after,
.stm-header_element .stm-navigation > ul > li > a::after {
    content: "";
    position: absolute;
    left: 7px;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--df-cyan);
    transition: width 0.3s ease;
    pointer-events: none;
}

/* Survol + item actif (page courante) */
.stm-header .stm-navigation > ul > li:hover > a,
.stm-header .stm-navigation > ul > li > a:focus-visible,
.stm-header .stm-navigation > ul > li.current-menu-item > a,
.stm-header .stm-navigation > ul > li.current-menu-parent > a,
.stm-header .stm-navigation > ul > li.current-menu-ancestor > a,
.stm-header_element .stm-navigation > ul > li:hover > a {
    color: var(--df-cyan) !important;
}

.stm-header .stm-navigation > ul > li:hover > a::after,
.stm-header .stm-navigation > ul > li.current-menu-item > a::after,
.stm-header .stm-navigation > ul > li.current-menu-parent > a::after,
.stm-header .stm-navigation > ul > li.current-menu-ancestor > a::after,
.stm-header_element .stm-navigation > ul > li:hover > a::after {
    width: calc(100% - 14px);
}


/* ============================================================
   5. SOUS-MENUS DESKTOP (niveaux 2 et 3)
   Boost de spécificité via :not() pour battre le rose du thème
   ============================================================ */

/* Conteneurs sous-menus : fond blanc + trait cyan */
.sub-menu:not(#x):not(#y),
ul.sub-menu:not(#x):not(#y),
[class*="sub-menu"]:not(#x):not(#y),
li.menu-item-has-children > ul:not(#x):not(#y) {
    background: var(--df-blanc) !important;
    background-color: var(--df-blanc) !important;
    border-top: 3px solid var(--df-cyan) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}

/* Liens au repos : texte bleu nuit sur fond blanc */
.sub-menu a:not(#x):not(#y):not(#z),
ul.sub-menu a:not(#x):not(#y):not(#z),
.stm-header .sub-menu a:not(#x):not(#y):not(#z),
.stm-header_element .sub-menu a:not(#x):not(#y):not(#z),
[class*="sub-menu"] a:not(#x):not(#y):not(#z),
ul[class*="sub"] > li > a:not(#x):not(#y):not(#z),
li.menu-item-has-children ul a:not(#x):not(#y):not(#z),
li[class*="menu-item"] ul a:not(#x):not(#y):not(#z) {
    color: var(--df-nuit) !important;
    background-color: var(--df-blanc) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Survol + item actif : inversé (fond bleu nuit + texte blanc) */
.sub-menu li:hover > a:not(#x):not(#y):not(#z),
.sub-menu a:hover:not(#x):not(#y):not(#z),
ul.sub-menu li:hover > a:not(#x):not(#y):not(#z),
.stm-header .sub-menu li:hover > a:not(#x):not(#y):not(#z),
.stm-header_element .sub-menu li:hover > a:not(#x):not(#y):not(#z),
[class*="sub-menu"] li:hover > a:not(#x):not(#y):not(#z),
li.menu-item-has-children ul li:hover > a:not(#x):not(#y):not(#z),
li[class*="menu-item"] ul li:hover > a:not(#x):not(#y):not(#z),
.sub-menu li.current-menu-item > a:not(#x):not(#y):not(#z),
.sub-menu li.current-menu-parent > a:not(#x):not(#y):not(#z),
.sub-menu li.current-menu-ancestor > a:not(#x):not(#y):not(#z) {
    color: var(--df-blanc) !important;
    background-color: var(--df-nuit) !important;
}


/* ============================================================
   6. MENU MOBILE — bleu nuit cohérent
   ============================================================ */
@media (max-width: 1023px) {

    .stm_mobile__header,
    .stm_mobile__dropdown,
    nav.stm_mobile__menu,
    .stm_mobile__menu_wrap {
        background: var(--df-nuit) !important;
        background-color: var(--df-nuit) !important;
    }

    .stm_mobile__header a,
    .stm_mobile__dropdown a,
    nav.stm_mobile__menu a {
        color: var(--df-blanc) !important;
        min-height: 44px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .stm_mobile__header li.current-menu-item > a,
    .stm_mobile__header li.current-menu-parent > a,
    .stm_mobile__dropdown li.current-menu-item > a,
    nav.stm_mobile__menu li.current-menu-item > a,
    .stm_mobile__header a:active,
    .stm_mobile__dropdown a:active,
    nav.stm_mobile__menu a:active {
        color: var(--df-cyan) !important;
        background: rgba(0, 212, 255, 0.08) !important;
        box-shadow: inset 4px 0 0 var(--df-cyan) !important;
    }
}


/* ============================================================
   7. PLEINE LARGEUR DES CONTENUS
   ============================================================ */

/* Conteneurs : plus larges mais max 1680px */
.stm_container,
.container,
.vc_row .container,
.wpb_row .container,
.site-content .container,
.main-content .container {
    max-width: 1680px !important;
    width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Bandeaux d'images avec titre (full width) */
.stm_title__wrapper,
.stm_title-block,
.vc_row[data-vc-full-width="true"],
.vc_row.vc_row-no-padding,
.df-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Cartes de contenu moins serrées */
.vc_col-sm-3,
.vc_col-sm-4,
.vc_col-sm-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Confort de lecture : les paragraphes restent confortables */
.wpb_text_column p,
.wpb_wrapper p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   8. FOOTER PERSONNALISÉ
   ============================================================ */
.widget.widget_text:has(.dff) {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.dff {
    background: var(--df-nuit) !important;
    color: var(--df-blanc) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    padding: 80px 60px 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.dff-top {
    height: 5px !important;
    background: linear-gradient(90deg, var(--df-rose), var(--df-cyan)) !important;
    margin-bottom: 72px !important;
}

.dff-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 80px !important;
    padding-bottom: 72px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
}

.dff-logo {
    height: 80px !important;
    width: auto !important;
    margin-bottom: 28px !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
}

.dff-tag {
    font-size: 1.3rem !important;
    color: var(--df-blanc) !important;
    line-height: 1.9 !important;
    margin: 0 0 24px !important;
}

.dff-qualiopi {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.dff-qualiopi-logo {
    height: 52px !important;
    width: auto !important;
    background: var(--df-blanc) !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}

.dff-qualiopi-mention {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.dff-qualiopi-mention strong {
    color: var(--df-blanc) !important;
}

.dff-badges {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.dff-b {
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: 28px !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--df-blanc) !important;
    display: inline-block !important;
}

.dff-bq {
    border-color: var(--df-rose) !important;
    color: var(--df-rose) !important;
}

.dff-h {
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: var(--df-blanc) !important;
    margin: 0 0 28px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid rgba(233, 75, 159, 0.5) !important;
}

.dff-ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.dff-ul li {
    list-style: none !important;
}

.dff-ul li a {
    font-size: 1.2rem !important;
    color: var(--df-blanc) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
    transition: color 0.2s !important;
}

.dff-ul li a:hover {
    color: var(--df-rose) !important;
}

.dff-ci {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 22px !important;
    font-size: 1.2rem !important;
    color: var(--df-blanc) !important;
    line-height: 1.65 !important;
}

.dff-ci a {
    color: var(--df-blanc) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.dff-ci a:hover {
    color: var(--df-rose) !important;
}

.dff-handicap {
    background: rgba(0, 212, 255, 0.07) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin-top: 8px !important;
}

.dff-handicap-titre {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--df-cyan) !important;
    margin: 0 0 8px !important;
}

.dff-handicap-texte {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.dff-handicap-texte strong {
    color: var(--df-blanc) !important;
}

.dff-handicap-texte a {
    color: var(--df-cyan) !important;
    text-decoration: none !important;
}

.dff-handicap-texte a:hover {
    color: var(--df-blanc) !important;
}

.dff-legal {
    padding: 32px 0 !important;
    text-align: center !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    line-height: 2 !important;
}

.dff-legal strong {
    color: var(--df-blanc) !important;
    font-weight: 700 !important;
}

.dff-llinks {
    display: flex !important;
    gap: 28px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 14px !important;
}

.dff-llinks a {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.dff-llinks a:hover {
    color: var(--df-cyan) !important;
}

/* Footer responsive */
@media (max-width: 1023px) {
    .dff-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 48px !important;
    }
    .dff-qualiopi {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 600px) {
    .dff-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }
    .dff {
        padding: 56px 24px 0 !important;
    }
}


/* ============================================================
   9. ACCESSIBILITÉ — respect prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .stm-header .stm-navigation > ul > li > a,
    .stm-header .stm-navigation > ul > li > a::after,
    .sub-menu a,
    .stm_mobile__header a {
        transition: none !important;
    }
}


/* ============================================================
   FIN — Pour tout annuler : vide la case CSS additionnel.
   Aucun fichier du thème n'est modifié.
   ============================================================ */


/* =============================================================
   10. LOGO SUR TÉLÉPHONE ET TABLETTE + MENU ORDINATEUR (30/10/2026)
   ============================================================ */
@media (max-width: 1023px) {
    html body div#wrapper .stm_mobile__header,
    html body .stm_mobile__header {
        background: #1A1A3A !important;
        background-color: #1A1A3A !important;
    }
    .stm_mobile__header .stm_flex {
        justify-content: space-between !important;
        align-items: center !important;
    }
    .stm_mobile__header .stm_flex::before {
        content: "";
        display: block;
        width: 150px;
        height: 46px;
        background: url("https://www.dynamics-formations.fr/wp-content/uploads/logo-seul-2026-navy-blanc.png") left center / contain no-repeat;
    }
    .stm_mobile__switcher span,
    .stm_mobile__switcher span::before,
    .stm_mobile__switcher span::after {
        background-color: #FFFFFF !important;
    }
}
@media (min-width: 1024px) and (max-width: 1680px) {
    .stm-header .stm-navigation > ul > li > a {
        font-size: 12px !important;
        letter-spacing: 0 !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}
@media (min-width: 1024px) and (max-width: 1400px) {
    .stm-header .stm-navigation > ul > li > a {
        font-size: 11px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .stm-header .stm-navigation > ul > li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ============================================================
   11. MENU OUVERT SUR TÉLÉPHONE : slogan aux couleurs de la charte,
       libellés entiers, flèches lisibles (30/10/2026)
   ============================================================= */
@media (max-width: 1023px) {
    .stm-header .stm-text,
    .stm-header .stm-text * {
        color: #00D4FF !important;
    }
    body .stm-header {
        width: 310px !important;
        max-width: 88vw !important;
    }
    .stm-header .stm-header__row_color > .container {
        width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    .stm-header .stm-header__row,
    .stm-header .stm-header__cell {
        width: 100% !important;
    }
    .stm-header .stm-header__element {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .stm-header .stm-navigation,
    .stm-header .stm-navigation > ul,
    .stm-header .stm-navigation > ul > li,
    .stm-header .stm-navigation > ul > li > a {
        width: 100% !important;
    }
    .stm-header .stm-navigation > ul > li > a {
        padding-right: 50px !important;
    }
    .stm-header .stm_mobile__dropdown::before {
        content: "\25BE" !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 20px !important;
        color: #E94B9F !important;
        transform: none !important;
        display: inline-block;
    }
}

/* 12. Slogan d'en-tête aux couleurs de la charte sur tous les écrans (30/10/2026) */
.stm-header .stm-text,
.stm-header .stm-text * {
    color: #00D4FF !important;
}


/* Correctif 31/10/2026 : bandeau bleu à gauche sur mobile.
   Le menu mobile fait 310px (règle ci-dessus) mais le thème ne le cache que de 270px.
   On le cache entièrement quand il est fermé. */
@media (max-width: 1023px) {
  body .stm-header:not(.active) { left: -110vw !important; }
}

