/*
Theme Name: Kadence SAVIO
Theme URI: https://ecole-dominique-savio.fr/
Description: Thème enfant Kadence pour l'école Dominique Savio. Les personnalisations du site doivent être ajoutées ici afin de préserver les mises à jour du thème parent.
Author: SAVIO
Template: kadence
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kadence-savio
*/

/*
 * Ajoutez ci-dessous les personnalisations graphiques propres au site SAVIO.
 * Les réglages de couleurs et de typographie restent pilotés par Kadence.
 */

body.home .site-main-header-wrap .site-header-row-container-inner,
body.front-page .site-main-header-wrap .site-header-row-container-inner {
    background: transparent !important;
}

.site-branding a.brand img {
    max-width: 198px!important;
}

.transparent-header #main-header .site-branding img {
    max-w font-size: 14px!important;
    font-family: var(--global-body-font-family)!important;
}

.site-main-header-wrap .site-header-row-container-inner {
    background: #efb056!important;
}

.main-navigation .primary-menu-container > ul li.menu-item > a {
    font-style: normal;
    font-weight: normal;
    font-size: 16px!important;
    font-family: var(--global-primary-nav-font-family);
    text-transform: uppercase;
}

h1 {
    font-size: 60px!important;
    font-weight: 100!important;
}

.kadence-savio-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    line-height: 1;
    vertical-align: middle;
}

.kadence-savio-menu-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

/* Une seule icône enveloppe pour le lien Contact */
.site-header a[href*="/contact/"],
.site-header a[href$="/contact"],
.mobile-navigation a[href*="/contact/"],
.mobile-navigation a[href$="/contact"] {
    font-size: 0;
}

/* Masque les éventuelles icônes déjà générées */
.site-header a[href*="/contact/"] > .fa,
.site-header a[href$="/contact"] > .fa,
.site-header a[href*="/contact/"] > .kadence-savio-menu-icon,
.site-header a[href$="/contact"] > .kadence-savio-menu-icon,
.mobile-navigation a[href*="/contact/"] > .fa,
.mobile-navigation a[href$="/contact"] > .fa,
.mobile-navigation a[href*="/contact/"] > .kadence-savio-menu-icon,
.mobile-navigation a[href$="/contact"] > .kadence-savio-menu-icon {
    display: none !important;
}

.site-header a[href*="/contact/"]::before,
.site-header a[href$="/contact"]::before,
.mobile-navigation a[href*="/contact/"]::before,
.mobile-navigation a[href$="/contact"]::before {
    content: "";
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 2 9 6 9-6H3Zm18 10V9.4l-8.45 5.63a1 1 0 0 1-1.1 0L3 9.4V17h18Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm0 2 9 6 9-6H3Zm18 10V9.4l-8.45 5.63a1 1 0 0 1-1.1 0L3 9.4V17h18Z'/%3E%3C/svg%3E") center / contain no-repeat;
    vertical-align: middle;
}

/* Smart Slider contenu dans les colonnes */
.monslider {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

/* Annule le "Force full width" de Smart Slider */
.monslider ss3-force-full-width {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
}

/* Conteneurs Smart Slider */
.monslider .n2-section-smartslider,
.monslider .n2-ss-align,
.monslider .n2-padding,
.monslider .n2-ss-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Images toujours responsives */
.monslider img {
    max-width: 100% !important;
    height: auto;
}

/* Curseur sur les sliders */
.monslider {
    cursor: zoom-in;
}

/* Popin photo */
.monslider-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.monslider-lightbox.active {
    display: flex;
}

/* Photo agrandie */
.monslider-lightbox img {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Croix fermeture */
.monslider-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    border: 0;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 40px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.monslider-lightbox-close:hover {
    background: #000;
}

/* Mobile */
@media (max-width: 767px) {
    .monslider-lightbox {
        padding: 15px;
    }

    .monslider-lightbox img {
        max-width: 100%;
        max-height: 85vh;
    }

    .monslider-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* ========================================
   FLÈCHES POPIN SMART SLIDER
   ======================================== */

.monslider-lightbox-prev,
.monslider-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    width: 60px;
    height: 80px;

    border: 0;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.45);
    color: #fff;

    font-size: 45px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease;
}


/* Flèche gauche */
.monslider-lightbox-prev {
    left: 25px;
}


/* Flèche droite */
.monslider-lightbox-next {
    right: 25px;
}


/* Survol */
.monslider-lightbox-prev:hover,
.monslider-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.85);
}


/* Mobile */
@media (max-width: 767px) {

    .monslider-lightbox-prev,
    .monslider-lightbox-next {
        width: 45px;
        height: 60px;
        font-size: 32px;
    }

    .monslider-lightbox-prev {
        left: 5px;
    }

    .monslider-lightbox-next {
        right: 5px;
    }
}

.savio-richtext iframe[src*="youtube.com/embed/"], .savio-richtext iframe[src*="youtube-nocookie.com/embed/"] {
    margin-top: 25px!important;
}