/* Déclaration des polices MazzardL */
@font-face {
    font-family: 'MazzardL';
    src: url('fonts/MazzardL-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MazzardL';
    src: url('fonts/MazzardL-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'MazzardL';
    src: url('fonts/MazzardL-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'MazzardL';
    src: url('fonts/MazzardL-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

* {
    font-family: 'MazzardL', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.scroll-enabled {
    overflow: hidden;
}

/* Masquer toutes les scrollbars */
body::-webkit-scrollbar,
main::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none;
}

body, main, html {
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;  /* Firefox */
}

.scroll-section {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

main {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

@supports not (height: 100dvh) {
    .scroll-section {
        height: 100vh;
        min-height: -webkit-fill-available;
    }
}

.glow {
    box-shadow: 0 0 20px rgba(0, 212, 221, 0.3);
}

.wave-bg {
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(45deg, 
        #0F172A 0%, 
        #1E293B 20%, 
        #334155 35%, 
        #1E293B 50%, 
        #0F172A 65%);
    animation: heartbeat 2s ease-in-out infinite;
    z-index: -10;
}

@keyframes heartbeat {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Logo intro animation */
.logo-intro {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 420px;
    height: auto;
    opacity: 1;
    animation: logoIntroSequence 2.8s cubic-bezier(0.68, -0.15, 0.32, 1.15) forwards;
}

@keyframes logoIntroSequence {
    0% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
    54% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
    100% { transform: translate(-42vw, -45vh) scale(0.12); opacity: 0; }
}

.logo-final {
    opacity: 0;
    animation: logoFadeIn 0.5s ease-in-out 2.5s forwards;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.nav-hidden {
    opacity: 0;
    animation: navFadeIn 0.5s ease-in-out 2.1s forwards;
}

.hero-content {
    opacity: 0;
    animation: heroContentFadeIn 1s ease-in-out 2.8s forwards;
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroContentFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animated text effects */
.white-silver-animated-text1, .white-silver-animated-text2 {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #999, #fff 50%, #999) 0 0 / 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
}

.white-silver-animated-text1 {
    animation: shimmer1 6s linear infinite;
}

.white-silver-animated-text2 {
    animation: shimmer2 6s linear infinite 3s;
}

@keyframes shimmer1 {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

@keyframes shimmer2 {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

/* Cyan version for brand consistency */
.cyan-silver-animated-text {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #0891b2, #00d4dd 50%, #0891b2) 0 0 / 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
    animation: shimmerCyan 7s linear infinite;
}

@keyframes shimmerCyan {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

.step-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(0, 212, 221, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin: 1rem;
    opacity: 0;
    transform: translateY(100px);
    backdrop-filter: blur(10px);
    transition: all 0.6s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar for form */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 221, 0.5);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 221, 0.8);
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-button {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid rgba(0, 212, 221, 0.3);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-button:hover {
    border-color: rgba(0, 212, 221, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.lang-button.active {
    background: rgba(0, 212, 221, 0.1);
    border-color: #00d4dd;
    color: #00d4dd;
}

@media screen and (max-width: 768px) {
    body, html {
        height: 100%;
        height: -webkit-fill-available;
        overscroll-behavior: none;
    }
    
    .scroll-section {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        min-height: 100dvh;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    * {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        overscroll-behavior: none;
    }
    
    .logo-intro {
        width: 200px;
        top: calc(45% + env(safe-area-inset-top));
    }
    
    .step-card {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    /* Amélioration du formulaire mobile */
    #contactFormPanel {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
    }
    
    #contactFormPanel .shadow-2xl {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    #contactFormPanel .h-[calc(100%-120px)] {
        height: calc(100vh - 120px) !important;
        height: calc(100dvh - 120px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Intersection Observer styles pour les animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Style pour les messages "Requis" */
.required-message {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.required-message.show {
    opacity: 1;
}

button:disabled {
    cursor: not-allowed;              /* change le curseur */
    opacity: 0.5;                     /* feedback visuel */
    border-color: rgba(0, 212, 221, 0.3);
    color: rgba(0, 212, 221, 0.5);
    background: transparent;
}

button:disabled:hover {
    background: transparent;          /* pas de hover */
    color: rgba(0, 212, 221, 0.5);    /* couleur figée */
}