/********** Template CSS **********/
:root {
    --primary: #FEA116;
    --light: #F1F8FF;
    --dark: #0F172B;
    --background-color: #ffffff; /* Background color for the entire website, including individual sections */
    --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #556270; /* Color for headings, subheadings and title throughout the website */
    --accent-color: #FEA116; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */

}

.ff-secondary {
    font-family: 'Pacifico', cursive;
}

.fw-medium {
    font-weight: 600 !important;
}

.rounded-full {
  border-radius: 9999px;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.whatsapp-float {
    position: fixed;
    right: 45px;
    bottom: 110px; /* au-dessus du back-to-top */
    z-index: 99;
    border-radius: 50%;
}

.whatsapp-float {
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float {
    display: none;
}

.custom-pagination .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 8px;
    padding: 8px 14px;
    color: #2C3E50;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-weight: 500;
}

.custom-pagination .page-link:hover {
    background-color: #FFAC0E;
    color: white;
}

.custom-pagination .page-item.active .page-link {
    background-color: #FFAC0E;
    color: white;
    box-shadow: 0 4px 10px rgba(255,172,14,0.3);
}

.custom-pagination .page-item.disabled .page-link {
    opacity: 0.4;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

/* .section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
} */

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}
.testimonial-carousel .owl-stage {
    display: flex;
}

.testimonial-carousel .owl-item {
    display: flex;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* clé importante */
    height: 350px; /* Hauteur fixe (ajuste si besoin) */
}

.testimonial-item p {
    overflow: hidden;
}
.testimonial-carousel .owl-item {
    display: flex;
}

.testimonial-item {
    width: 100% !important; /* clé importante */
}













/* ── Section wrapper ── */
.yt-section {
    position: relative;
    padding: 5rem 0 6rem;
    background: var(--yt-surface);
    overflow: hidden;
}
.yt-section-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%,  rgba(212,175,55,.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 80%,  rgba(212,175,55,.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Section header ── */
.yt-section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.yt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yt-gold);
    margin-bottom: .85rem;
}
.yt-section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--yt-text);
    letter-spacing: -.02em;
    margin: 0 0 .6rem;
    line-height: 1.1;
}
.yt-section-sub {
    font-size: .92rem;
    color: var(--yt-muted);
    margin: 0;
}

/* ── Card ── */
.yt-card {
    background: var(--yt-card-bg);
    border-radius: var(--yt-radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    transition: transform var(--yt-trans), box-shadow var(--yt-trans), border-color var(--yt-trans);
    outline: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.yt-card:hover,
.yt-card:focus-visible {
    /* transform: translateY(-6px) scale(1.015); */
    box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,55,.25);
    /* border-color: rgba(212,175,55,.3); */
}

/* ── Thumbnail ── */
.yt-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a22;
    flex-shrink: 0;
}
.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--yt-trans), filter var(--yt-trans);
}
.yt-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--yt-muted);
    background: #1a1a22;
}
.yt-card:hover .yt-thumb { transform: scale(1.06); filter: brightness(.85); }

/* ── Overlay ── */
.yt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.7) 0%,
        rgba(0,0,0,.1) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--yt-trans);
}
.yt-card:hover .yt-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.8) 0%,
        rgba(0,0,0,.3) 50%,
        rgba(0,0,0,.15) 100%
    );
}

/* ── Play button ── */
.yt-play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    transition: transform var(--yt-trans), background var(--yt-trans), border-color var(--yt-trans);
    position: relative;
    z-index: 1;
}
.yt-play-btn i { margin-left: 3px; }
.yt-card:hover .yt-play-btn {
    transform: scale(1.15);
    background: var(--yt-gold);
    border-color: var(--yt-gold);
    box-shadow: 0 0 30px rgba(212,175,55,.5);
}

/* Pulse ring */
.yt-play-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.2);
    opacity: 0;
    transition: opacity .2s;
}
.yt-card:hover .yt-play-btn::after {
    opacity: 1;
    animation: yt-pulse-ring 1.4s ease-out infinite;
}
@keyframes yt-pulse-ring {
    0%   { transform: scale(1);    opacity: .6; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* YouTube badge */
.yt-duration-badge {
    position: absolute;
    bottom: .65rem;
    right: .65rem;
    background: rgba(0,0,0,.75);
    color: rgba(255,255,255,.8);
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 6px;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.yt-duration-badge i { color: #ff4444; font-size: .82rem; }

/* ── Card body ── */
.yt-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
}

.yt-watch-label {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--yt-gold);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: .5rem;
    transition: gap var(--yt-trans);
}


/* Responsive */
@media (max-width: 575px) {
    .yt-section         { padding: 3rem 0 4rem; }
    .yt-section-header  { margin-bottom: 2rem; }
    .yt-modal-box       { border-radius: 12px; }
    .yt-play-btn        { width: 46px; height: 46px; font-size: 1.35rem; }
}

/* ══ MODAL ══════════════════════════════════════════ */
.yt-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.yt-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

.yt-modal-box {
    width: 100%;
    max-width: 860px;
    background: #111118;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 40px 100px rgba(0,0,0,.7);
    overflow: hidden;
    transform: scale(.94) translateY(20px);
    transition: transform .35s cubic-bezier(.23,1,.32,1);
    position: relative;
}
.yt-modal-backdrop.is-open .yt-modal-box {
    transform: scale(1) translateY(0);
}

.yt-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.yt-modal-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

.yt-modal-header {
    padding: 1rem 3.5rem 1rem 1.25rem;
    font-size: .9rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-modal-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}
.yt-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 575px) {
    .yt-section         { padding: 3rem 0 4rem; }
    .yt-section-header  { margin-bottom: 2rem; }
    .yt-modal-box       { border-radius: 12px; }
    .yt-play-btn        { width: 46px; height: 46px; font-size: 1.35rem; }
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marqueeScroll 25s linear infinite;
}

/* Pause au survol */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}