/* Sécurité pour le fonctionnement du bouton Continuer */
.hidden {
    display: none !important;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-attachment: fixed;
    color: #0f172a;
    background-color: #f8fafc;
}

/* Overlay de grain pour un look futuriste texturé */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Curseur HUD */
#cursor-dot, #cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10001;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cursor-dot {
    width: 6px; height: 6px;
    background-color: #2563eb;
}

#cursor-outline {
    width: 30px; height: 30px;
    border: 1px solid rgba(37, 99, 235, 0.5);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

@media (max-width: 1024px) {
    #cursor-dot, #cursor-outline { display: none; }
}

/* On cache le curseur par défaut quand on survole des éléments interactifs */
a, button, label, .map-path { cursor: none; }

/* Background Animations */
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(50px, -30px) rotate(5deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes float-alt {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
    100% { transform: translate(0, 0); }
}

.step-indicator {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-blob {
    animation: float 12s infinite ease-in-out;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, rgba(79,70,229,0.2) 100%);
}

.floating-blob-delay {
    animation: float-alt 18s infinite ease-in-out;
    filter: blur(100px);
    background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, rgba(37,99,235,0.1) 100%);
}

/* Navigation Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* Main Cards Glass Style */
.glass-card-main {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2.5rem;
    box-shadow: 
        0 20px 50px -15px rgba(0, 0, 0, 0.05),
        inset 0 0 1px rgba(255, 255, 255, 1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card-main:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 30px 70px -10px rgba(37, 99, 235, 0.1);
}

/* Trust Badges specific animation */
.trust-badge {
    animation: badge-float 6s infinite ease-in-out;
    animation-delay: calc(var(--badge-index, 0) * 1.2s);
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Effet de balayage lumineux périodique */
.glass-card-main::after {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer-sweep 10s infinite;
}

@keyframes shimmer-sweep {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    20%, 100% { transform: translate(100%, 100%) rotate(45deg); }
}

.glass-card input:checked + div {
    border-color: #2563eb;
    background: white;
    box-shadow: 
        0 20px 30px -10px rgba(37, 99, 235, 0.2),
        0 0 0 2px #2563eb;
    transform: scale(1.03) translateY(-5px);
    border-width: 2px;
}
.glass-card input:checked + div img { opacity: 1; }


#visual-preview svg {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.glass-card div {
    background: white;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card div:hover {
    transform: translateY(-4px);
    border-color: #dbeafe;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

/* Inputs Design */
.custom-input {
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.custom-input:focus {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Categories Selection Design */
.peer:checked + div {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Typography & Refinements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

h1, h2, h3 {
    letter-spacing: -0.025em;
}

.italic {
    font-style: italic;
}

/* Map Specific Styles */
.map-path.selected {
    fill: #2563eb !important;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.map-path:hover {
    transform: scale(1.01);
}

/* Animation Camion de Livraison */
@keyframes delivery-drive {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(4px) translateY(-1px); }
    50% { transform: translateX(8px) translateY(0); }
    75% { transform: translateX(4px) translateY(-1px); }
}
.animate-delivery {
    display: inline-block;
    animation: delivery-drive 2.5s infinite ease-in-out;
}

/* Animation Éclat Logo */
@keyframes logo-shine-sweep {
    0% { transform: translateX(0) skewX(-20deg); }
    15% { transform: translateX(250px) skewX(-20deg); }
    100% { transform: translateX(250px) skewX(-20deg); }
}
.logo-shine-rect {
    animation: logo-shine-sweep 5s infinite ease-in-out;
}

/* HUD Tech Elements */
.hud-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
    height: 1px;
    width: 100%;
    animation: hud-scan 4s infinite linear;
}

@keyframes hud-scan {
    0% { transform: translateY(-100px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100px); opacity: 0; }
}

.tech-bracket {
    border: 1px solid rgba(37, 99, 235, 0.3);
    width: 20px; height: 20px;
}

/* Animation 3D Crédence */
.perspective-container {
    perspective: 1200px;
}

.credence-scene {
    width: 320px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.kitchen-wall {
    transform: rotateY(-15deg) rotateX(5deg);
    opacity: 0.5;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
}

.transform-3d {
    transform-style: preserve-3d;
}

.glass-tag-3d {
    transform-style: preserve-3d;
    transform: translateZ(60px) rotateY(-20deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    animation: tagBorderColorCycle 4s infinite ease-in-out;
}

.credence-glass-3d:hover .glass-tag-3d {
    transform: translateZ(110px) rotateY(0deg) translateX(15px);
}

.credence-glass-3d {
    transform-style: preserve-3d;
    animation: floating-glass 6s infinite ease-in-out;
    cursor: pointer;
}

.glass-panel {
    transform: rotateY(-25deg) translateZ(30px);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: glassColorCycle 4s infinite ease-in-out;
}

.glass-reflection {
    background-color: rgba(37, 99, 235, 0.1);
    animation: reflection-float 6s infinite ease-in-out, reflectionColorCycle 4s infinite ease-in-out;
}

@keyframes glassColorCycle {
    0%, 100% { background-color: rgba(37, 99, 235, 0.95) !important; } /* Bleu Bouts de Verre */
    25% { background-color: rgba(51, 65, 85, 0.95) !important; }      /* Gris Ardoise */
    50% { background-color: rgba(13, 148, 136, 0.95) !important; }     /* Teal Vibrant */
    75% { background-color: rgba(67, 56, 202, 0.95) !important; }      /* Indigo Profond */
}

@keyframes reflectionColorCycle {
    0%, 100% { background-color: rgba(37, 99, 235, 0.1); }
    25% { background-color: rgba(71, 85, 105, 0.1); }
    50% { background-color: rgba(20, 184, 166, 0.1); }
    75% { background-color: rgba(79, 70, 229, 0.1); }
}

@keyframes reflection-float {
    0%, 100% { transform: translateY(0) scaleY(-1); opacity: 0.1; }
    50% { transform: translateY(15px) scaleY(-1) scale(1.1); opacity: 0.05; }
}

.credence-glass-3d:hover .glass-panel {
    transform: rotateY(0deg) translateZ(80px);
    box-shadow: 0 50px 80px -20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite ease-in-out;
}

/* Style pour les points de mesure sur la 3D */
.glass-panel div[class*="bg-yellow-400"] {
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
    z-index: 60;
}

@keyframes floating-glass {
    0%, 100% { transform: translateY(0) rotateY(-5deg); }
    50% { transform: translateY(-15px) rotateY(5deg); }
}

.tag-text-sync {
    animation: tagTextColorCycle 4s infinite ease-in-out;
}

.tag-dot-sync {
    animation: tagDotColorCycle 4s infinite ease-in-out;
}

@keyframes tagBorderColorCycle {
    0%, 100% { border-color: rgba(37, 99, 235, 0.3); }
    25% { border-color: rgba(71, 85, 105, 0.3); }
    50% { border-color: rgba(20, 184, 166, 0.3); }
    75% { border-color: rgba(79, 70, 229, 0.3); }
}

@keyframes tagTextColorCycle {
    0%, 100% { color: rgb(37, 99, 235); }
    25% { color: rgb(71, 85, 105); }
    50% { color: rgb(20, 184, 166); }
    75% { color: rgb(79, 70, 229); }
}

@keyframes tagDotColorCycle {
    0%, 100% { background-color: rgb(37, 99, 235); }
    25% { background-color: rgb(71, 85, 105); }
    50% { background-color: rgb(20, 184, 166); }
    75% { background-color: rgb(79, 70, 229); }
}

/* Nouvelles Animations de Texte */
.animate-pulse-glow {
    animation: neon-pulse 2s infinite ease-in-out;
    text-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
}

@keyframes neon-pulse {
    0%, 100% { text-shadow: 0 0 5px rgba(37, 99, 235, 0.2); opacity: 1; }
    50% { text-shadow: 0 0 15px rgba(37, 99, 235, 0.6), 0 0 20px rgba(37, 99, 235, 0.2); opacity: 0.9; }
}

.stagger-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-float-subtle {
    animation: float-subtle 8s infinite ease-in-out;
}

@keyframes float-subtle {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Effet Bordure Laser Tournante pour le Bouton */
.laser-btn {
    position: relative;
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important; /* On rend le fond du bouton transparent pour utiliser le pseudo-élément */
    border: none;
}

.laser-btn::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-image: conic-gradient(
        transparent,
        #60a5fa, /* Bleu clair laser */
        #ffffff, /* Blanc pur pour l'éclat */
        #60a5fa,
        transparent 25%
    );
    animation: laser-rotate 4s linear infinite;
}

.laser-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 2px; /* Épaisseur de la bordure laser */
    background: #2563eb; /* Couleur bleue d'origine (bg-blue-600) */
    border-radius: 14px; /* Adaptation au rounded-2xl (16px) moins l'inset */
    transition: background 0.3s ease;
}

@keyframes laser-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.laser-btn:hover::after {
    background: #1d4ed8; /* Correspond au hover:bg-blue-700 */
}