/* ==========================================================================
   X'PRESS DIAG - Style & Design System (Premium Premium Dark Aesthetic)
   ========================================================================== */

/* --- Base & Reset Elements --- */
body {
    background-color: #0C0C0C;
    color: #ffffff;
}

/* --- Layout Components --- */
.glass-nav {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
    background: rgba(26, 26, 26, 0.6); /* Equivalent to #1A1A1A with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top reflection */
}

/* --- Buttons & UI Elements --- */
.btn-primary {
    background-color: #E31B23;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(227, 27, 35, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* --- Premium Cards (Hover & Micro-interactions) --- */
.surface-card {
    background-color: #1A1A1A;
    border: 1px solid #262626;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.surface-card:hover {
    transform: translateY(-8px);
    border-color: rgba(227, 27, 35, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(227, 27, 35, 0.05);
}

.surface-card .material-symbols-outlined {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.surface-card:hover .material-symbols-outlined {
    transform: scale(1.15) translateY(-2px);
    color: #ff333a;
}

.glow-backdrop {
    display: none;
}

@media (min-width: 768px) {
    .glow-backdrop {
        display: block;
        position: absolute;
        background: radial-gradient(circle, rgba(227, 27, 35, 0.15) 0%, rgba(12, 12, 12, 0) 70%);
        width: 600px;
        height: 600px;
        border-radius: 50%;
        pointer-events: none;
        z-index: -1;
    }
}

.glow-effect {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(227, 27, 35, 0.4);
}

@keyframes floatGlow {
    0% {
        transform: translate(-50%, 0px) scale(1);
    }
    50% {
        transform: translate(-45%, 30px) scale(1.1);
    }
    100% {
        transform: translate(-50%, 0px) scale(1);
    }
}

.glow-float {
    animation: floatGlow 12s ease-in-out infinite;
}

/* --- Hero Entrance Staggered Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-up {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-delay-1 {
    animation-delay: 0.15s;
}

.hero-delay-2 {
    animation-delay: 0.35s;
}

.hero-delay-3 {
    animation-delay: 0.55s;
}

/* --- Premium Scroll Reveal Animations --- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes revealLeft {
        from { opacity: 0; transform: translateX(-60px) scale(0.95); }
        to { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes revealRight {
        from { opacity: 0; transform: translateX(60px) scale(0.95); }
        to { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes revealUp {
        from { opacity: 0; transform: translateY(40px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .scroll-reveal-left, .scroll-reveal-right, .scroll-reveal-up {
        opacity: 0;
        will-change: transform, opacity;
    }

    .scroll-reveal-left.reveal-active {
        animation: revealLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .scroll-reveal-right.reveal-active {
        animation: revealRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .scroll-reveal-up.reveal-active {
        animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* --- Premium Cross-Document View Transitions --- */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
    
    ::view-transition-old(root) {
        animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
                   0.3s cubic-bezier(0.4, 0, 0.2, 1) both slide-left;
    }
    
    ::view-transition-new(root) {
        animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
                   0.3s cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
    }
    
    @keyframes fade-out { to { opacity: 0; } }
    @keyframes fade-in { from { opacity: 0; } }
    @keyframes slide-left { to { transform: translateX(-40px); } }
    @keyframes slide-from-right { from { transform: translateX(40px); } }
}

/* --- Utilities --- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Specific Page Elements (Contact Map & Input Glows) --- */
.input-glow:focus {
    border-color: #E31B23 !important;
    box-shadow: inset 0 0 8px rgba(227, 27, 35, 0.1), 0 0 10px rgba(227, 27, 35, 0.15);
}

.input-glow:focus-within {
    border-color: #E31B23 !important;
    box-shadow: inset 0 0 8px rgba(227, 27, 35, 0.15), 0 0 10px rgba(227, 27, 35, 0.1);
}

.map-mockup {
    border: 1px solid #262626;
    position: relative;
    overflow: hidden;
    background-color: #0C0C0C;
}

.map-mockup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/schoelcher_dark_map.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.ambient-glow {
    background: radial-gradient(circle at center, rgba(227, 27, 35, 0.12) 0%, rgba(12, 12, 12, 0) 65%);
}

/* --- Custom Checkboxes & Toggles (Form Controls) --- */
input[type="checkbox"].custom-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: transparent !important;
    background-image: none !important; /* Supprime l'icône de coche par défaut de Tailwind Forms */
    margin: 0 !important;
    font: inherit !important;
    color: transparent !important; /* Cache toute couleur de texte par défaut */
    width: 1.15em !important;
    height: 1.15em !important;
    border: 2px solid #262626 !important;
    border-radius: 0.15em !important;
    display: grid !important;
    place-content: center !important;
    cursor: pointer !important;
    transition: border-color 120ms ease-in-out, background-color 120ms ease-in-out !important;
}

input[type="checkbox"].custom-checkbox::before {
    content: "" !important;
    width: 0.65em !important;
    height: 0.65em !important;
    transform: scale(0) !important;
    transition: 120ms transform ease-in-out !important;
    box-shadow: inset 1em 1em #E31B23 !important; /* Dessine la couleur rouge de la coche */
    background-color: #E31B23 !important;
    transform-origin: center !important;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%) !important; /* Forme de la coche */
}

input[type="checkbox"].custom-checkbox:checked::before {
    transform: scale(1) !important;
}

input[type="checkbox"].custom-checkbox:checked {
    border-color: #E31B23 !important;
    background-color: transparent !important; /* Empêche le fond de devenir bleu */
    background-image: none !important; /* Empêche la coche par défaut de Tailwind de réapparaître */
}

/* Neutralise complètement l'anneau de focus bleu généré par Tailwind Forms */
input[type="checkbox"].custom-checkbox:focus,
input[type="checkbox"].custom-checkbox:active,
input[type="checkbox"].custom-checkbox:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-width: 0px !important;
    --tw-ring-offset-width: 0px !important;
}

/* --- Toggle Switch --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #262626;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #E31B23;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* --- Glow Active Card States --- */
.glow-active {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(227, 27, 35, 0.3) !important;
    border-color: #E31B23 !important;
    background-color: rgba(227, 27, 35, 0.05) !important;
}

/* --- Dark Input Focus States --- */
.dark-input:focus {
    border-color: #E31B23 !important;
    box-shadow: inset 0 0 5px rgba(227, 27, 35, 0.2), 0 0 10px rgba(227, 27, 35, 0.1) !important;
    outline: none;
}

/* --- Premium Bottom Sheet CSS Animations --- */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}




