/* ===== Atelier custom styles =====
   Loaded on every frontend page (portfolio layout).
   Manage from: Admin -> Settings -> Custom CSS */

:root {
    --gold: #d4af37;
    --gold-strong: #c9a227;
    --gold-soft: #e8cd7a;
    --theme: var(--gold);
    --theme-2: var(--gold);
}

.text--primary {
    color: var(--theme);
}

.text--danger {
    color: #ef4444;
}

.text--base {
    color: var(--theme);
}

.base--color {
    color: var(--theme);
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 28px;
    }
}

button:focus,
a:focus {
    outline: none;
}

.form-check-input:checked {
    background-color: var(--theme);
    border-color: var(--theme);
}

/* ==========================================================
   THEME — light: white & gold | dark: black & gold
   main.css vars are re-scoped per mode so every component
   (cards, sections, headers, footers) follows automatically.
   ========================================================== */

/* Light mode: pure white surfaces */
body:not(.dark-bg) {
    --gray: #ffffff;
    --dark: #111111;
}

/* Dark mode: pure black surfaces */
body.dark-bg {
    --black: #000000;
    --white: #ffffff;
    --dark: #f2f2f2;
    --dark-3: #000000;
    --dark-4: #0a0a0a;
    --gray: #0b0b0b;
    --gray-2: #2a2a2a;
    --gray-3: #222222;
}

/* Gold fills always carry near-black text for contrast */
.bg--base,
.service-item .service-icon,
.cta-bg form button,
.resume-btns a:hover,
.testimonial2-prev,
.testimonial2-next,
.filter-btn.active,
ul.pagination li.active span,
ul.pagination li.active a {
    color: #101010 !important;
}

.dark-bg .service-item .service-icon,
.dark-bg .filter-btn.active {
    color: #101010 !important;
}

/* ===== Hero: kill decorative shape + trim dead space ===== */
.banner-2::before {
    display: none !important;
}
/* CTA: main.css pulls next section up by -200px -> film summaries merge into the card */
.cta {
    margin-top: 60px !important;
    margin-bottom: 0 !important;
}

/* ===== Buttons: readable hovers in both modes ===== */
/* Filled gold button (Me contacter): hover goes solid black + white text */
.theme-btn-with-bg.btn_moveing_hover:hover,
.theme-btn-with-bg.hover-bg-transparent:hover,
.theme-btn-with-bg.hover-color-transparent:hover {
    background-color: #101010 !important;
    border: 1px solid #101010 !important;
    color: #ffffff !important;
}
.theme-btn-with-bg:hover span,
.theme-btn-with-bg:hover i,
.theme-btn-with-bg.hover-color-transparent:hover span {
    color: #ffffff !important;
}
/* Contact form submit has a bare text node — keep it white at rest on gold */
button.theme-btn-with-bg.btn_moveing_hover:not([class*='-bg']) {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #101010;
}
/* Outline button (Voir la Galerie) in dark mode: gold outline, gold hover fill */
body.dark-bg .theme-btn {
    border: 1px solid rgba(212, 175, 55, 0.65);
    color: #ffffff;
}
body.dark-bg .theme-btn:hover,
body.dark-bg .theme-btn:focus-visible,
body.dark-bg .theme-btn:active {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #101010 !important;
}.banner-2-content {
    margin-top: 108px !important;
}
.banner-2-author-img {
    margin-top: 84px !important;
    margin-bottom: 42px !important;
}
@media (max-width: 991.98px) {
    .banner-2-content {
        margin-top: 90px !important;
    }
    .banner-2-author-img {
        margin-top: 60px !important;
        margin-bottom: 26px !important;
    }
}

/* ===== Section rhythm: tighten the default 120px gaps ===== */
section.mt-120 {
    margin-top: 56px !important;
}
@media (max-width: 767.98px) {
    section.mt-120 {
        margin-top: 34px !important;
    }
}
/* Generic big-gap utilities */
.mt-80 {
    margin-top: 46px !important;
}
.mb-80 {
    margin-bottom: 42px !important;
}
/* Subpage breadcrumb banner: was 230/180 */
.breadcrumbs {
    padding-top: 150px !important;
    padding-bottom: 70px !important;
}
@media (max-width: 767.98px) {
    .mt-80 {
        margin-top: 30px !important;
    }
    .mb-80 {
        margin-bottom: 26px !important;
    }
    .breadcrumbs {
        padding-top: 115px !important;
        padding-bottom: 48px !important;
    }
}

/* ===== Film / gallery grids: strict 3 per row ===== */
/* main.css `.gap-lg-30{gap:30px}` breaks 3-col math — replace it */
.film-grid-row,
.gallery-grid-row,
.ajaxLoad {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.film-grid-row > [class*='col-'],
.gallery-grid-row > [class*='col-'],
.ajaxLoad > [class*='col-'] {
    --grid-w: calc((100% - 24px) / 3);
    flex: 0 0 var(--grid-w) !important;
    max-width: var(--grid-w) !important;
    width: var(--grid-w) !important;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}
#highlight.mt-120,
#gallery.mt-120 {
    margin-top: 56px !important;
}
@media (max-width: 767.98px) {
    .film-preview-title { font-size: 11px; }
    .film-preview-info { padding: 30px 8px 8px; }
    .gallery-grid-pop { border-radius: 10px; }
}

/* ==========================================================
   HERO — solid white+gold (light) / black+gold (dark)
   ========================================================== */
.banner-2 {
    background-image: none !important;
    background-color: #ffffff;
    color: #111111;
}
body:not(.dark-bg) .banner-2 h1,
body:not(.dark-bg) .banner-2 h1 span {
    color: #111111;
}
body:not(.dark-bg) .banner-2 h1 span {
    color: var(--gold);
}
body.dark-bg .banner-2 {
    background-color: #000000;
    color: #ffffff;
}
body.dark-bg .banner-2 h1 {
    color: #ffffff;
}
body.dark-bg .banner-2 h1 span {
    color: var(--gold);
}
/* Hero buttons: gold fill + gold outline, both modes */
.banner-2 .theme-btn-with-bg.theme-2-bg {
    background: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    color: #101010 !important;
}
.banner-2 .theme-btn-with-bg.dark-2-bg {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: inherit !important;
}
.banner-2 .theme-btn-with-bg.dark-2-bg i {
    color: var(--gold) !important;
}
.banner-2 .theme-btn-with-bg.dark-2-bg:hover {
    background: rgb(from var(--gold) r g b / 14%) !important;
}

/* ==========================================================
   FOOTER — follows the mode
   ========================================================== */
body.dark-bg .footer-2 {
    background-color: #000000;
}
body:not(.dark-bg) .footer-2 {
    background-color: #ffffff;
    color: #111111;
    border-top: 1px solid rgba(212, 175, 55, .35);
}
body:not(.dark-bg) .footer-links h4,
body:not(.dark-bg) .footer-widget h4 {
    color: #111111;
}
body:not(.dark-bg) .footer-widget p,
body:not(.dark-bg) .footer-links ul li a {
    color: rgba(0, 0, 0, .72);
}
body:not(.dark-bg) .footer-links ul li a:hover {
    color: var(--gold);
}
/* Copyright row: © line + quick links (Galerie/Filmographie/Contacts/login) */
body:not(.dark-bg) .copyright {
    color: rgba(0, 0, 0, .72);
    border-top-color: rgba(212, 175, 55, .3);
}
body:not(.dark-bg) .copyright p,
body:not(.dark-bg) .copyright-developer p {
    color: rgba(0, 0, 0, .72);
}
body:not(.dark-bg) .copyright-menus a,
body:not(.dark-bg) .footer-menus a {
    color: #111111;
}
body:not(.dark-bg) .copyright-menus a:hover,
body:not(.dark-bg) .footer-menus a:hover {
    color: #101010;
    background: var(--gold);
    border-color: var(--gold);
}
/* Footer logo: "Lawaly" is .site-logo-name (white by default) — dark in light mode */
body:not(.dark-bg) .footer-2 .site-logo-name {
    color: #111111;
}
body:not(.dark-bg) .footer .social-links a {
    color: #333;
    border-color: rgba(0, 0, 0, .15);
}
body:not(.dark-bg) .copyright-developer {
    color: #444;
    border-top-color: rgba(212, 175, 55, .3);
}
body.dark-bg .copyright-developer {
    border-top-color: rgba(212, 175, 55, .22);
}

/* Global text color in dark mode */
body.dark-bg {
    color: #f2f2f2;
}
body.dark-bg p {
    color: #cfcfcf;
}

/* Dark mode: CTA card follows the black surface */
body.dark-bg .cta-bg {
    background-color: #0a0a0a;
    box-shadow: 0 0 60px 0 rgba(212, 175, 55, .08);
}
body.dark-bg .cta-bg .section-title,
body.dark-bg .cta-bg p {
    color: #f2f2f2;
}

.footer-links h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}

.footer-links ul li {
    margin-bottom: 12px;
    break-inside: avoid;
}

.footer-links ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .3s ease;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    font-size: 12px;
    color: var(--theme);
}

.footer-links ul li a:hover {
    color: var(--theme);
}

@media (max-width: 575.98px) {
    .footer-links ul {
        columns: 1;
    }
}

/* ===== Film preview cards (hover: zoom + autoplay preview) ===== */
.film-preview-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), box-shadow .45s ease;
    will-change: transform;
}

.film-preview-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 26px 55px rgba(0, 0, 0, .28);
}

.film-preview-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

.film-preview-poster,
.film-preview-thumb {
    position: absolute;
    inset: 0;
    transition: opacity .4s ease, transform .4s ease;
    will-change: transform, opacity;
}

.film-preview-poster img,
.film-preview-thumb img,
.film-preview-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.film-preview-poster {
    opacity: 1;
    transform: scale(1);
}

.film-preview-thumb {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.film-preview-card:hover .film-preview-poster {
    opacity: 0;
    transform: scale(.96);
}

.film-preview-card:hover .film-preview-thumb {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.film-preview-thumb.movie_card video.preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 2;
}

.film-preview-thumb.movie_card.playing video.preview-video {
    opacity: 1;
    visibility: visible;
}

.film-preview-thumb.movie_card.playing img {
    opacity: 0;
}

.film-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
}

.film-preview-badge.badge--free {
    background: rgba(34, 197, 94, .92);
}

.film-preview-badge.badge--paid {
    background: rgba(245, 183, 0, .94);
    color: #111;
}

.film-preview-badge.badge--rent {
    background: rgba(37, 99, 235, .92);
}

.film-preview-badge.badge--episode {
    background: rgba(14, 165, 233, .92);
}

.film-preview-badge.badge--trailer {
    background: rgba(168, 85, 247, .92);
}

.film-preview-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
}

.film-preview-rating i {
    color: var(--theme);
}

.film-preview-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 38px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .45) 55%, transparent);
    color: #fff;
}

.film-preview-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.film-preview-cat {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: .78;
}

.film-preview-actions {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 66px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease .06s, transform .3s ease .06s;
    pointer-events: none;
}

.film-preview-card:hover .film-preview-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.film-preview-watch {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 30px;
    background: var(--theme);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .25s ease;
}

.film-preview-watch:hover {
    color: #fff;
    opacity: .9;
}

.film-preview-share {
    width: 42px;
    height: 42px;
    flex: none;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    color: #111;
    font-size: 15px;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}

.film-preview-share:hover {
    transform: translateY(-2px);
    background: #fff;
}

@media (max-width: 575.98px) {
    .film-preview-actions {
        bottom: 58px;
    }
}

.copyright-developer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
}

.copyright-developer a {
    color: var(--theme);
    font-weight: 600;
}

.copyright-developer a:hover {
    color: var(--theme);
}

.iziToast .iziToast-icon {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Line Awesome Free", sans-serif !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
}

.iziToast .iziToast-icon::before {
    display: inline-block !important;
}
