/* Global styles */
html {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #61B1BC33 #052D5E;
    font-size: 4.1025641vw;
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: #052D5E;
}

html::-webkit-scrollbar-thumb {
    background-color: rgba(97, 177, 188, 0.3);
    border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover {
    background-color: rgba(97, 177, 188, 0.6);
}

/* Sticky header compact state */
.header-scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.header-scrolled > div:first-child {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.header-scrolled .logo img {
    width: 5.5rem !important;
}

@media (min-width: 768px) {
    .header-scrolled .logo img {
        width: 6rem !important;
    }
}

/* Styles pour le menu mobile */
#mobile-menu {
    height: calc(100vh - 52px);
    overflow-y: auto;
    top: 52px;
}

/* Styles communs pour les menus de catégorie (Desktop) */
.category-menu {
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
    pointer-events: none;
    backdrop-filter: blur(12px);
    background-color: rgba(5, 45, 94, 0.97) !important;
}

/* État actif pour les menus de catégorie (Desktop) */
.category-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Styles communs pour les menus de catégorie mobile */
.category-menu-mobile {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: none;
}

/* État actif pour les menus de catégorie mobile */
.category-menu-mobile.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Style pour le bouton de retour dans le menu mobile */
.back-menu-mobile {
    cursor: pointer;
}

/* Horizontal scroll for Projects */
.horizontal-scroll-wrapper {
    position: relative;
    height: 150vh;
}

.sticky-horizontal {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

.horizontal-content {
    display: flex;
    height: 100%;
    width: calc(200%);
}

/* Horizontal scroll for Expertise (homepage) */
.expertise-scroll-wrapper {
    position: relative;
    height: 120vh;
}

.expertise-sticky {
    position: sticky;
    top: 0;
    height: 75vh;
    overflow: hidden;
    display: flex;
}

.expertise-horizontal {
    display: flex;
    height: 100%;
    width: max-content;
}

.image-menu-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30));
    z-index: 30;
}

.image-menu-container span {
    position: relative;
    z-index: 40; /* Assure que le texte passe au-dessus du voile noir */
    text-align: center;
    width: 90%;
}

/* Swiper navigation buttons */
.swiper-nav-button {
    color: white;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
    color: white;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(5, 45, 94, 0.5);
    backdrop-filter: blur(4px);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(97, 177, 188, 0.4);
}

/* Swiper pagination bullets */
.swiper-pagination-bullet {
    background-color: white;
    width: 8px;
    height: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #61B1BC;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Masquer les menus desktop sur mobile */
@media screen and (max-width: 767px) {
    .category-menu {
        display: none !important;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 0.8333333333333vw;
    }
    .category-menu-mobile {
        display: none !important;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .swiper-pagination-bullet-active {
        width: 28px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.5rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 48px !important;
        height: 48px !important;
    }
}

.carousel-bullet {
    border: 5px solid;
    width: 15px;
    height: 15px;
    background-color: aliceblue;
    border-radius: 8px;
    margin: 0 5px;
}
.carousel-bullet-inactive {
    border: none;
    width: 16px;
    height: 16px;
    background-color: black;
    border-radius: 8px;
    margin: 0 5px;
}
/* Logos marquee animation */
.logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.logos-marquee:hover .logos-marquee-track {
    animation-play-state: paused;
}

.logos-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@media (min-width: 768px) {
    .logos-marquee-track {
        gap: 5rem;
    }
}

.turquoise {
    color: #61B1BC;
}

/* Blog article : base en px (le site met font-size vw sur html → éviter les rem ici). */
.blog-article-body {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    max-width: min(920px, 100%);
    overflow-wrap: break-word;
}

.blog-article-body > *:first-child {
    margin-top: 0 !important;
}

.blog-article-body h1 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 10px;
}

.blog-article-body h2 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
    margin: 28px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(97, 177, 188, 0.35);
}

.blog-article-body h2:first-of-type {
    margin-top: 0;
}

.blog-article-body h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    color: #61b1bc;
    margin: 20px 0 6px;
}

.blog-article-body h4,
.blog-article-body h5,
.blog-article-body h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 14px;
    margin: 16px 0 6px;
    color: #fff;
}

.blog-article-body p {
    margin: 0 0 14px;
}

.blog-article-body p:last-child {
    margin-bottom: 0;
}

.blog-article-body p:empty {
    display: none;
}

.blog-article-body p:has(> br:only-child) {
    display: none;
}

.blog-article-body br + br {
    display: none;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 14px;
    padding-left: 1.25em;
}

.blog-article-body li {
    margin: 0 0 6px;
}

.blog-article-body a {
    color: #61b1bc;
    text-decoration: underline;
}

.blog-article-body a:hover {
    color: #fff;
}

.blog-article-body strong,
.blog-article-body b {
    font-weight: 700;
    color: #fff;
}

.blog-article-body blockquote {
    margin: 16px 0;
    padding-left: 14px;
    border-left: 3px solid #61b1bc;
}

.blog-article-body blockquote p {
    margin-bottom: 8px;
}

.blog-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

.blog-article-body hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 22px 0;
}

.blog-article-body pre {
    margin: 14px 0;
    padding: 12px;
    overflow-x: auto;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.25);
}

.blog-article-body code {
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 5px;
}

.blog-article-body pre code {
    padding: 0;
    background: none;
}

@media (max-width: 767px) {
    .blog-article-body {
        max-width: none;
    }
}
