/**
 * Alkalois Custom — Global stylesheet
 * =====================================
 * 1. Reset & base typography
 * 2. Header (alk-header, alk-menu, alk-drawer, alk-burger)
 * 3. Footer
 * 4. Pages (blocs communs, parallax fixes)
 * 5. Home (slider-home, social feeds)
 * 6. Cards (alk-card)
 * 7. Divi overrides & admin bar fixes
 * 8. Admin drawer helpers (alois-popup, alois-folder, alois-bulk shared)
 * 9. Responsive (media queries)
 */


/* =============================================
   1. Reset & base typography
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", Sans-serif;
}

h1 {
    font-family: "Sora", Sans-serif;
    font-size: 60px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1.1em;
    letter-spacing: 0px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

p, span, p > strong {
    font-family: "Inter", Sans-serif;
}

.big-number p, .big-number span, .big-number strong {
    font-family: "Sora", Sans-serif;
}

.h1-subtitled, .h1-subtitled p, .h1-subtitled span {
    font-size: 20px;
}

body {
    background-color: #111013;
}


/* =============================================
   2. Header (alk-header, alk-menu, alk-drawer, alk-burger)
   ============================================= */

.alk-header,
.alk-menu,
.alk-drawer {
    font-family: 'Sora', sans-serif;
}

/* Layout header */
.alk-header {
    width: 100%;
}

.alk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    margin: 0 auto;
}

/* Logo */
div.alk-header-inner a.alk-logo img {
    height: 52px;
    width: auto;
    display: block;
}

/* Menu */
ul.alk-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.alk-menu li {
    position: relative;
}

.alk-menu li a {
    font-family: 'Oswald', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e8600a;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
}

.alk-menu li a:hover,
.alk-menu li.current-menu-item > a,
.alk-menu li.current_page_item > a {
    border-bottom-color: #e8600a;
}

.alk-menu .sub-menu {
    display: none !important;
}

.alk-menu li.alk-has-drawer > a {
    cursor: pointer;
}

/* Burger */
.alk-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.alk-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #e8600a;
    transition: opacity .2s;
}

/* Overlay */
.alk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s;
}

.alk-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer */
.alk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 540px;
    max-width: 95vw;
    height: 100vh;
    background: #111111cf;
    z-index: 10001;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 30px rgba(0, 0, 0, .3);
}

.alk-drawer.open {
    transform: translateX(0);
}

.alk-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.alk-drawer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e8600a;
}

.alk-drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    color: #fff;
    opacity: .6;
    transition: opacity .2s;
}

.alk-drawer-close:hover {
    opacity: 1;
}

.alk-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Sous-menu list dans drawer */
.alk-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.alk-submenu-list li a {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: .75rem 1rem;
    border-left: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.alk-submenu-list li a:hover {
    color: #e8600a;
    border-left-color: #e8600a;
}

/* Dossiers (drawer menu) */
.alk-folder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}

.alk-folder-btn {
    text-align: center;
    padding: 8px 22px;
    border: 1px solid white;
    border-radius: 100px;
    background: transparent;
    color: white;
    cursor: pointer;
    font-family: 'Sora', Helvetica, Arial, Lucida, sans-serif;
    text-transform: uppercase;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600;
    transition: background .2s, color .2s, border-color .2s;
}

.alk-folder-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}


/* =============================================
   3. Footer
   ============================================= */

/* (vide pour l'instant) */


/* =============================================
   4. Pages (blocs communs, parallax fixes)
   ============================================= */

/* Les règles parallax .fix-back-fixed-position-* sont dans la section Responsive */


/* =============================================
   5. Home (slider-home, social feeds)
   ============================================= */

.slider-home {
    position: relative !important;
    overflow: hidden !important;
}

/* Tous les enfants au dessus du bg-layer */
.slider-home > * {
    position: relative;
    z-index: 1;
}

/* Le div qu'on injecte — lui seul anime */
.slider-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform, opacity;
}

.slider-bg-layer.kb-active {
    animation: kb-zoom 7s ease-out forwards;
}

@keyframes kb-zoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

/* Le second layer pour le fondu */
.slider-bg-layer-next {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.slider-bg-layer-next.fading {
    opacity: 1;
}

/* Social feeds */
.sbsw-author-name p {
    color: white;
    font-weight: 300;
    font-size: 15px;
}

[id^=sb-wall].sb-wall .sbsw-item-media {
    border-radius: 10px;
    overflow: hidden;
}


/* =============================================
   6. Cards (alk-card)
   ============================================= */

.alk-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.alk-card {
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform .2s, box-shadow .2s;
}

.alk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 96, 10, .2);
}

.alk-card-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.alk-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: #2a2a2a;
}

.alk-card-body {
    padding: .8rem 1rem 1rem;
}

.alk-card-title {
    margin: 0 0 .6rem;
    font-family: 'Sora', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
}

.alk-card-btn {
    display: inline-block;
    padding: .35rem .9rem;
    border: 1px solid #e8600a;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e8600a;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.alk-card-btn:hover {
    background: #e8600a;
    color: #fff;
}


/* =============================================
   7. Divi overrides & admin bar fixes
   ============================================= */

/* Fix barre admin WP pour header Divi Theme Builder */
.admin-bar .et_pb_section {
    /* Divi gère ça nativement, rien à forcer ici */
}

/* Style header Divi Theme Builder */
.et_pb_section_0_tb_header {
    backdrop-filter: blur(10px) brightness(1.3);
}

.alk-header-inner nav ul li a {
    letter-spacing: 0.1vw;
}

/* Fix barre admin WP — header Divi Theme Builder */
.admin-bar .et_pb_section--fixed,
.admin-bar .alk-drawer {
    top: 32px !important;
}


/* =============================================
   8. Admin drawer helpers (alois-popup, alois-folder, alois-bulk shared)
   ============================================= */

/* Popup nav */
.alois-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    z-index: 2;
    border-radius: 2px;
}

.alois-popup-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.alois-popup-nav.disabled {
    opacity: .15;
    cursor: not-allowed;
    pointer-events: none;
}

#alois-popup-prev {
    left: -60px;
}

#alois-popup-next {
    right: -60px;
}

.alois-popup-video-wrap {
    width: 80vw;
    max-width: 900px;
}

.alois-popup-video-wrap iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

/* ---- Filtre Vidéos ---- */
.alois-filter-videos {
    border-color: rgb(221 87 9) !important;
    color: #dd5709 !important;
}

.alois-filter-videos.active {
    background: rgba(255, 100, 60, .08) !important;
    border-color: #f97 !important;
    color: #f97 !important;
}

/* ---- Vidéo hover-to-play ---- */
/* FIX HAUTEUR : sans aspect-ratio le parent n'a pas de hauteur car la thumbnail est absolute */
.alois-video-item .alois-photo-inner {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    /* ← fix critique */
}

.alois-video-zone {
    position: relative;
    width: 100%;
    height: 100%;
}

.alois-video-thumb {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .5s ease, transform .6s ease;
    z-index: 1;
    pointer-events: none;
}

.alois-video-zone.is-hovered .alois-video-thumb {
    opacity: 0;
    transform: scale(1.04);
}

.alois-video-iframe-slot {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.alois-video-iframe-slot iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.alois-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    transition: opacity .35s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .45));
    pointer-events: none;
}

.alois-video-zone.is-hovered .alois-video-overlay {
    opacity: 0;
}

.alois-play-icon svg {
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .7));
    transition: transform .25s;
}

.alois-video-zone:hover .alois-play-icon svg {
    transform: scale(1.1);
}

.alois-video-hover-hint {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}

.alois-video-hover-catcher {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

/* Drawer (onglets gestion) */
.alois-mgr-tabs {
    display: flex;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.alois-mgr-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: inherit;
    transition: color .2s, border-bottom .2s;
    border-bottom: 2px solid transparent;
}

.alois-mgr-tab.active {
    color: #f5f5f5;
    border-bottom-color: #f5f5f5;
}

.alois-drawer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid #1f1f1f;
    flex-shrink: 0;
}

.alois-drawer-filter {
    background: none;
    border: 1px solid #333;
    color: #888;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}

.alois-drawer-filter:hover {
    border-color: #aaa;
    color: #ccc;
}

.alois-drawer-filter.active {
    border-color: #f5f5f5;
    color: #f5f5f5;
    background: rgba(255, 255, 255, .06);
}

.alois-hg-filter {
    border-color: #5a3a3a;
    color: #c97;
}

.alois-hg-filter.active {
    border-color: #f97;
    color: #f97;
    background: rgba(255, 100, 60, .08);
}

.alois-hg-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 13px;
    line-height: 1;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}

.alois-thumb-item {
    position: relative;
}

.alois-thumb-hg {
    opacity: .75;
}

.alois-hg-field {
    margin-top: 2px;
}

.alois-hg-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #f5f5f5;
}

.alois-hg-label input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f97;
}

.alois-hg-hint {
    font-size: 11px;
    color: #666;
    margin: 4px 0 0 24px;
}

.alois-bulk-item-hg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    cursor: pointer;
}

.alois-bulk-item-hg input {
    accent-color: #f97;
    cursor: pointer;
}

.alois-thumb-video .alois-thumb-video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

.alois-thumb-video .alois-thumb-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.alois-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    background: rgba(0, 0, 0, .3);
    transition: background .2s;
}

.alois-thumb-video:hover .alois-thumb-play {
    background: rgba(0, 0, 0, .5);
}

.alois-folder-row .alois-folder-edit-state {
    display: none;
}

.alois-folder-row.editing .alois-folder-view {
    display: none;
}

.alois-folder-row.editing .alois-folder-edit-state {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.alois-folder-view {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.alois-folder-name {
    flex: 1;
    font-size: 13px;
    color: #f5f5f5;
}

.alois-folder-name-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    padding: 2px 4px;
    outline: none;
    font-family: inherit;
}

.alois-bulk-select-zone {
    border: 2px dashed #333;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
    color: #555;
    text-align: center;
    padding: 20px;
    transition: border-color .2s, background .2s;
}

.alois-bulk-select-zone span {
    font-size: 34px;
    line-height: 1;
}

.alois-bulk-select-zone p {
    font-size: 13px;
    margin: 0;
    color: #888;
}

.alois-bulk-select-zone small {
    font-size: 11px;
    color: #555;
}

.alois-bulk-select-zone:hover {
    border-color: #fff;
    background: #1a1a1a;
}

.alois-bulk-list {
    margin-top: 4px;
}

.alois-bulk-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alois-bulk-list-header span {
    font-size: 12px;
    color: #888;
}

.alois-bulk-clear {
    background: none;
    border: 1px solid #444;
    color: #888;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .2s;
}

.alois-bulk-clear:hover {
    border-color: #fff;
    color: #fff;
}

.alois-bulk-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #1f1f1f;
}

.alois-bulk-item:last-child {
    border-bottom: none;
}

.alois-bulk-item-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    background: #1a1a1a;
}

.alois-bulk-item-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alois-bulk-item-title {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alois-bulk-item-legende {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #f5f5f5;
    padding: 7px 10px;
    font-size: 12px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color .2s;
    border-radius: 0;
    box-sizing: border-box;
}

.alois-bulk-item-legende:focus {
    border-color: #fff;
}

.alois-bulk-item-remove {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color .2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.alois-bulk-item-remove:hover {
    color: rgba(220, 80, 80, .9);
}


/* =============================================
   9. Responsive (media queries)
   ============================================= */

/* --- 9a. Parallax fixes (Pages) --- */

@media screen and (min-width: 1025px) {
    .fix-back-fixed-position-1 .et-pb-parallax-background {
        background-size: 50% auto;
        background-position-x: 92%;
        background-position-y: -33px;
    }

    .fix-back-fixed-position-3 .et-pb-parallax-background {
        background-size: 50% auto;
        background-position-x: 92%;
        background-position-y: -40px;
    }

    .fix-back-fixed-position-2 .et-pb-parallax-background {
        background-size: 50% auto;
        background-position-x: 0;
        background-position-y: -40px;
    }

    .fix-back-fixed-position-4 .et-pb-parallax-background {
        background-size: 73% auto;
        background-position-x: 140%;
        background-position-y: 133px;
    }

    .fix-back-fixed-position-5 .et-pb-parallax-background {
        background-size: 60% auto;
        background-position-x: -30%;
        background-position-y: 209px;
    }

    .fix-back-fixed-position-6 .et-pb-parallax-background {
        background-size: 63% auto;
        background-position-x: 116%;
        background-position-y: 117px;
    }

    .fix-back-fixed-position-7 .et-pb-parallax-background {
        background-size: 59% auto;
        background-position-x: 123%;
        background-position-y: 110px;
    }

    .fix-back-fixed-position-8 .et-pb-parallax-background {
        background-size: 60% auto;
        background-position-x: -30%;
        background-position-y: 209px;
    }

    .fix-back-fixed-position-9 .et-pb-parallax-background {
        background-size: 73% auto;
        background-position-x: 140%;
        background-position-y: 133px;
    }

    .fix-back-fixed-position-10 .et-pb-parallax-background {
        background-size: 70% auto;
        background-position-x: -33%;
        background-position-y: 139px;
    }

    .fix-back-fixed-position-11 .et-pb-parallax-background {
        background-size: 60% auto;
        background-position-x: -30%;
        background-position-y: 209px;
    }
}

@media screen and (max-width: 767px) {
    .fix-back-fixed-position-5 .et-pb-parallax-background {
        background-position-x: 80%;
        background-position-y: 89px;
    }

    .fix-back-fixed-position-8 .et-pb-parallax-background {
        background-size: 220% auto;
        background-position-x: 51%;
        background-position-y: 199px;
    }

    .fix-back-fixed-position-9 .et-pb-parallax-background {
        background-position-x: 80%;
        background-position-y: 89px;
    }

    .fix-back-fixed-position-10 .et-pb-parallax-background {
        background-position-x: 50%;
        background-position-y: 89px;
    }

    .fix-back-fixed-position-11 .et-pb-parallax-background {
        background-position-x: 54%;
        background-position-y: 130px;
    }

    .fix-back-fixed-position-7 .et-pb-parallax-background {
        background-size: 326% auto;
        background-position-x: 14%;
        background-position-y: 150px;
    }
}

/* --- 9b. Home slider --- */

@media screen and (max-width: 767px) {
    .slider-bg-layer {
        background-position: 69% center;
    }
}

/* --- 9c. Header / burger / alk-* + admin drawer helpers --- */

@media (max-width: 1024px) {

}

@media (max-width: 900px) {
    .alk-burger {
        display: flex;
    }

    .alk-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #111;
        border-top: 1px solid #333;
        padding: 1rem 2rem 1.5rem;
        z-index: 9989;
    }

    .alk-nav.open {
        display: block;
    }

    .alk-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .alk-header-inner {
        height: 55px;
    }

    .fix-col-empty-mobile .et_pb_column_empty {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .alk-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 9d. Admin popup nav --- */

@media (max-width: 768px) {
    #alois-popup-prev {
        left: -44px;
    }

    #alois-popup-next {
        right: -44px;
    }

    .alois-popup-nav {
        width: 36px;
        height: 36px;
    }
}
