html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Force la présence de la barre pour ne plus jamais changer de largeur */
    overflow-x: hidden;
}

body {
    background-color: #333333;
    color: #FFFFFF;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0 !important;
    width: 100%;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #333333;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

h1, h2, h3, h4, h5, h6 { font-weight: 300; }
h3 { font-size: 1.3rem; }
p { line-height: 1.9; }
hr { border-color: #666666; max-width: 70%; margin: 60px auto; }

.hero-central-logo {
    width: 250px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); /* Petit glow pour qu'il ressorte */
    opacity: 0.9;
}

.header-content {
    display: flex;
    justify-content: flex-end; /* Aligne le burger à droite */
    width: 100%;
    pointer-events: auto; /* Réactive les clics uniquement sur le contenu (le burger) */
}

.logo-left {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo-black-box {
    background-color: #000000;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 100%;
}

.logo-black-box:hover {
    background-color: #1a1a1a;
}

.logo-minimal {
    height: 60px;
    width: auto;
    display: block;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 40px;
    pointer-events: none;
    box-sizing: border-box;
}

.burger-menu.open span {
    background-color: #ffffff;
}

.burger-menu {
    cursor: pointer;
    width: 30px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); /* Ombre discrète pour le contraste */
}

.burger-menu.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.video-fullscreen-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
}

.video-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.9));
}

.tm-welcome-text {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 300;
    margin: 0;
    background: linear-gradient(to right, #fff 20%, #666 50%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 6px; /* Espacement large pour le côté luxe */
    font-weight: 300;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7); /* Blanc légèrement transparent */

    background: linear-gradient(to right, rgba(255,255,255,0.4) 20%, #fff 50%, rgba(255,255,255,0.4) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    animation: shine 3s linear infinite; /* Animation plus lente que le titre */
}

@keyframes shine {
    to { background-position: 200% center; }
}

@media (max-width: 767px) {
    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
        margin-top: 15px;
        padding: 0 10px;
    }
}

.content-wrapper {
    width: 95%;
    max-width: 1600px;
    margin: 100px auto 0;
}

.tm-bg-dark {
    background-color: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tm-bg-dark:hover {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.border-custom {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.service-img-fixed {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #ffffff;
    filter: grayscale(100%);
}

.feature-item { position: relative; padding-top: 20px; }
.feature-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}
.feature-content { position: relative; z-index: 1; }

.tm-bg-dark a { text-decoration: none; transition: all 0.3s ease; }
.tm-bg-dark a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
.border-top.border-secondary { border-top: 1px solid rgba(255, 255, 255, 0.05) !important; }

#about-section .feature-item {
    position: relative;
    padding-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about-section .feature-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

#about-section .feature-content {
    position: relative;
    z-index: 1;
}

#about-section h3 {
    margin-top: 10px;
    letter-spacing: 4px;
}

#about-section p {
    max-width: 320px;
    margin: 0 auto;
    color: #aaa;
}

@media (min-width: 768px) {
    .feature-item-wrap:not(:last-child):after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 50px;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    }
}


.feature-item-wrap {
    position: relative;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px); /* Montée plus courte */
    filter: none; /* On dégage le flou comme demandé */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Plus rapide : 0.5s au lieu de 1.2s */
    will-change: transform, opacity;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .hero-central-logo {
        width: 150px;
        margin-bottom: 25px;
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* CHANGEMENT : 100% au lieu de 100vw pour s'aligner sur le html scroll */
    height: 100vh;
    background-color: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay .overlay-nav ul li a {
    color: #ffffff;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 5px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.menu-overlay.active { transform: translateY(0); }

.overlay-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.overlay-nav ul li { margin: 30px 0; }

.menu-overlay .overlay-nav ul li a {
    color: #ffffff !important; /* Force le blanc */
    font-size: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 5px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.overlay-nav ul li a:hover {
    letter-spacing: 10px;
    font-weight: 400;
}

[id] {
    scroll-margin-top: 100px;
}

.tm-text-gray { color: #CCCCCC; }
.tm-text-white { color: #FFFFFF; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 2px; }
.small { font-size: 0.8rem; }
.tm-section-mb { margin-bottom: 85px; }
.tm-section-mt { margin-top: 85px; }

.scroll-bottom-btn {
    position: fixed;
    bottom: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.scroll-bottom-btn:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff !important;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.scroll-bottom-btn svg { transition: all 0.4s ease; }

.scroll-bottom-btn:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: translateY(3px);
}

@media (max-width: 991px) {
    .tm-welcome-text { font-size: 1.8rem; }
    .content-wrapper { width: 92%; }
}

@media (max-width: 767px) {
    .main-header {
        padding: 0 20px;
        height: 60px;
    }

    .scroll-bottom-btn {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .logo-left { height: 60px; }
    .logo-minimal { height: 40px; }
    .hero-text-container { top: calc(50% + 30px); }
    .tm-welcome-text { font-size: 1.5rem; letter-spacing: 4px; }
    .tm-bg-dark a[href^="tel:"] { font-size: 1.5rem !important; }
    .d-flex.justify-content-center.align-items-center.opacity-50 { flex-direction: column !important; gap: 15px !important; }
    .d-flex.justify-content-center.align-items-center.opacity-50 span:nth-child(even) { display: none !important; }
    .menu-overlay .overlay-nav ul li a {
        font-size: 1.2rem !important;
        letter-spacing: 3px;
    }

    .overlay-nav ul li {
        margin: 15px 0;
    }

    /* 3. AJUSTEMENT DU TEXTE WELCOME (Optionnel mais conseillé) */
    .tm-welcome-text {
        font-size: 1.3rem; /* On s'assure que le titre ne dépasse pas */
        padding: 0 10px;
    }
}