/* Custom styles pour fix visibilité menu et éléments light theme */

/* Global Font Update */
@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Codec Warm';
    src: url('../fonts/Codec-Warm-Bold-trial.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Codec Warm Light';
    src: url('../fonts/Codec-Warm-Light-trial.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}


@font-face {
    font-family: 'Sansation';
    src: url('../fonts/Sansation_Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
button,
.btn-custom,
.works-filters li,
.form-control,
input,
textarea {
    font-family: 'Sansation', sans-serif !important;
    font-weight: normal !important;
}

.copyright {
    padding: 20px;
}

/* Global Button Style (Minimalist) */
.btn-custom {
    background-color: var(--color);
    color: #fff !important;
    border: none !important;
    /* font-weight: 300 !important; */
    /* font-family: 'Codec Warm', sans-serif !important; */
    /* box-shadow: none !important; */
    padding: 5px 15px !important;
    /* letter-spacing: 1px; */
}

.btn-custom:hover {
    background-color: transparent !important;
    color: #000000 !important;
    text-decoration: underline !important;
    transform: translateY(-2px);
    /* Slight lift */
    /* Slight lift */
}

.btn-custom i {
    animation: arrow-move 1.5s infinite ease-in-out;
}

@keyframes arrow-move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Title Styling (Reference Image Match) */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.section-sub-title {
    font-family: 'Coolvetica', sans-serif !important;
    font-weight: normal !important;
    /* Coolvetica is bold by default usually, or handled by font file */
}


/* Watermark Title Effect */
.section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.section-heading::before {
    content: attr(data-watermark);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: -1;
    font-family: 'Montserrat', sans-serif;
    /* letter-spacing removed */
    line-height: 1;
}

/* Infinite Slider Styles */
.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.slider-track {
    display: flex;
    width: calc(300px * 14);
    /* Adjust based on number of slides */
    animation: scroll 40s linear infinite;
}

.slider-track.reverse {
    animation: scroll-reverse 40s linear infinite;
}

.slider-card img {
    max-width: 100%;
    /* max-height: 80px; */
    object-fit: contain;
    margin: 0 auto;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    border: 1px solid #eee;
}

.slider-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.slider-card {
    width: 300px;
    margin: 0 15px;
    /* padding: 20px; */
    border-radius: 15px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.slider-card:hover {
    transform: translateY(-5px);
}

.slider-card .icon {
    font-size: 30px;
    margin-right: 15px;
    color: #333;
}

.slider-card .content h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    /* letter-spacing removed */
}

.slider-card .content p {
    margin: 0;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Pastel Colors */
.bg-pastel-blue {
    background-color: #e0f2fe;
}

.bg-pastel-green {
    background-color: #dcfce7;
}

.bg-pastel-purple {
    background-color: #f3e8ff;
}

.bg-pastel-pink {
    background-color: #fce7f3;
}

.bg-pastel-yellow {
    background-color: #fef9c3;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 7));
    }

    /* Half the total width */
}

/* Homepage Slider Wrapper */
/* Homepage Slider Wrapper */
.home-sliders-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0 !important;
    z-index: 10;
    padding-bottom: 20px;
    /* Optional spacing from very bottom */
}

/* Adjust slider card for homepage to be smaller */
.home-sliders-wrapper .slider-card {
    width: 200px;
    /* Smaller width */
    margin: 0 10px;
}

.home-sliders-wrapper .slider-track {
    width: calc(200px * 14);
}


.home-sliders-wrapper .section-heading {
    margin-bottom: 10px !important;
}

@keyframes scroll-home {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 7));
    }
}

@keyframes scroll-reverse-home {
    0% {
        transform: translateX(calc(-200px * 7));
    }

    100% {
        transform: translateX(0);
    }
}

.home-sliders-wrapper .slider-track {
    animation: scroll-home 40s linear infinite;
}

.home-sliders-wrapper .slider-track.reverse {
    animation: scroll-reverse-home 40s linear infinite;
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(calc(-300px * 7));
    }

    100% {
        transform: translateX(0);
    }
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .slider-card {
        width: 250px;
    }

    .slider-track {
        width: calc(250px * 14);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-250px * 7));
        }
    }

    @keyframes scroll-reverse {
        0% {
            transform: translateX(calc(-250px * 7));
        }

        100% {
            transform: translateX(0);
        }
    }
}

@media (max-width: 768px) {
    .section-heading::before {
        font-size: 30px;
        top: -4px;
    }
}


.section-title {
    font-size: 42px !important;
    margin-bottom: 15px !important;
    color: #333;
}

.section-description {
    text-transform: uppercase;
    /* letter-spacing removed */
    font-size: 12px;
    font-weight: 500;
}


/* Force menu text visibility */
.main-menu .menu li a {
    color: #333 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

.main-menu .menu li a:hover {
    color: #b4000c !important;
}

.main-menu .menu li a.active {
    color: #b4000c !important;
}

/* Hamburger menu visibility */
.g-lines .line {
    background-color: #333 !important;
}

/* Copyright text */
.copyright span,
.copyright span a {
    color: #000 !important;
    /* Dark text for light theme */
    font-weight: 500;
}

/* Secondary button style for Home 5 */
/* Secondary button style for Home 5 */
.home-5 .home-banner .btn-custom {
    background-color: transparent !important;
    color: #222 !important;
    border: none !important;
    /* No border */
}

.home-5 .home-banner .btn-custom:hover {
    background-color: transparent !important;
    color: #000000 !important;
    text-decoration: underline !important;
}

/* CTA Buttons Layout (Desktop Default) */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-buttons .btn-custom:first-child {
    margin-right: 20px;
    /* Space between buttons on desktop */
}

/* Responsive Buttons */
@media (max-width: 767px) {
    .cta-buttons {
        flex-direction: column;
    }



    .home-5 .home-banner h6 {

        font-size: 15px !important;

    }

    .home-5 .home-banner p {

        font-size: 17px !important;

    }

    .cta-buttons .btn-custom:first-child {
        margin-right: 0;
        /* Reset margin for mobile */
        margin-bottom: 15px;
        /* Add vertical space */
    }

    .cta-buttons .btn-custom {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Skill Bar Fix */
.skill-item .skill-progress {
    height: 10px !important;
    background-color: #e9ecef !important;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.skill-item .skill-progress-bar {
    height: 100% !important;
    background-color: #b4000c !important;
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* --- Premium Redesign Styles --- */

/* Premium Badge */
.badge-premium {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #b80e1a;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    /* letter-spacing removed */
    white-space: normal;
    /* Allow wrapping */
    display: inline-block;
    line-height: 1.4;
    text-align: center;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.planification {
    font-size: 13px;
    font-weight: 700;
    /* Bold */
    /* letter-spacing removed */
    color: #b4000c;
    /* Accent color */
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* Hero Typography Enhancements */
/* Hero Typography Enhancements */
/* Hero Section Layout Fix */


.home-5 .home-banner h6 {
    font-weight: normal !important;
    text-transform: uppercase;
    font-size: 18px;
    color: #35404e !important;
    margin-bottom: 0px !important;
    display: inline-block;
    position: relative;
    font-family: 'Codec Warm', sans-serif !important;
}

.home-5 .home-banner h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    /* Reverted to Bricolage Grotesque */
    font-weight: 800;
    /* Extra bold for impact */
    margin-bottom: 25px;
    font-size: 3.5rem;
    /* Larger size */
    line-height: 1.1;
    color: #111;
    /* Deep black */
}

.cd-words-wrapper b {
    font-family: 'Coolvetica', sans-serif !important;
    font-weight: 400 !important;
}


.home-5 .home-banner p {
    font-size: 22px;
    line-height: 1.8;
    font-weight: normal !important;
    color: #35404e !important;
    margin-bottom: 40px !important;
    font-family: 'Codec Warm', sans-serif !important;
}

/* Buttons in Flow */
.home-banner .cta-buttons {
    margin-top: 40px;
}

/* Skills Carousel Section */
.skills-carousel-section {
    background-color: transparent;
    overflow: hidden;
    width: 100%;
}

.skills-track-top,
.skills-track-bottom {
    display: flex;
    width: max-content;
    margin-bottom: 20px;
}

.skills-track-top {
    animation: scroll-left 240s linear infinite;
}

.skills-track-bottom {
    animation: scroll-right 240s linear infinite;
}

.skills-carousel-section .skill-item {
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
    padding: 10px 25px;
    white-space: nowrap;
    font-family: 'Sansation', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-icon {
    color: #b4000c;
    font-size: 18px;
    margin-right: 10px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Utility Classes */


.mb-30 {
    margin-bottom: 30px !important;
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    .home-5 .home-banner h1 {
        font-size: 3rem;
    }

    .home-banner .cta-buttons {
        justify-content: center;
    }

    .home-5 .home-banner {
        text-align: center;
        margin-bottom: 50px;
    }
}

/* News Bar Styles */
.news-bar-container {
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
    /* Light background */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.news-bar {
    white-space: nowrap;
    overflow: hidden;
}

.news-track {
    display: inline-block;
    animation: scroll-right-to-left 40s linear infinite;
}

.news-item {
    display: inline-block;
    padding-right: 50px;
    /* Space between repeated text */
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.highlight-red {
    font-weight: 700;
    color: #b4000c;
    /* Site red color */
}

.animate-counter {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.animate-counter.visible {
    opacity: 1;
}

@keyframes scroll-right-to-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move to left */
    }
}


/* --- Mobile Responsiveness Improvements --- */
@media (max-width: 768px) {

    /* Hero Typography */
    .home-5 .home-banner h1 {
        font-size: 4rem !important;
        /* Smaller title */
        margin-bottom: 15px;
    }



    .planification {
        font-size: 11px;
        /* Smaller planification text */
        /* letter-spacing removed */
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Badge */
    .badge-premium {
        font-size: 12px;
        padding: 8px 15px;
        line-height: 1.3;
        width: 90%;
        /* Prevent full width */
        margin: 0 auto 20px auto;
        /* Center */
    }

    /* Description */


    /* Slider */
    .home-sliders-wrapper {
        margin-top: 40px;
        /* User requested 40px bottom spacing */
    }

    .home-sliders-wrapper .section-sub-title {
        font-size: 24px !important;
        /* Smaller slider title */
    }

    .home-sliders-wrapper .slider-card {
        width: 140px;
        /* Even smaller cards for mobile */
        margin: 0 5px;
    }

    .home-sliders-wrapper .slider-track {
        width: calc(140px * 14);
    }

    @keyframes scroll-home {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-140px * 7));
        }
    }

    .home-sliders-wrapper .slider-track {
        animation: scroll-home 30s linear infinite;
        /* Slower scroll on mobile */
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

.whatsapp-float i {

    margin-top: 2px;
    /* Fine-tune icon alignment */
}

/* Loading Screen Customization */
.loading-content {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-wrapper {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: auto;
    /* Use clip-path for wipe effect */
    clip-path: inset(0 100% 0 0);
    animation: sponge-wipe 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    vertical-align: middle;
}

.loading-logo {
    width: 90px;
    /* Fixed size 90px */
    height: auto;
}

.loading-signature {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: 'Codec Warm', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #b4000c;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    animation: fade-in-up 1s ease-out forwards 1s;
    /* Delay after wipe */
}

@keyframes sponge-wipe {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Mobile Badge */
.mobile-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    /* color: #b4000c; */
    padding: 5px 12px;
    /* border-radius: 20px; */
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Homepage Logo */
.home-logo {
    max-width: 90px;
    /* Adjusted size for visibility */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}