/**
 * Styles Personnalisés - Paintball Adventure
 * Complète Tailwind CSS avec des styles spécifiques
 */

/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
    /* Couleurs principales */
    --primary-orange: #f97316;
    --primary-red: #dc2626;
    --dark-bg: #1a1a2e;
    --dark-secondary: #16213e;
    --dark-accent: #0f3460;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   RESET ET BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

/* Limitation de lignes */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   GRADIENTS
   ========================================== */
.hero-gradient {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 50%, var(--dark-accent) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Slide In */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideInRight 0.5s ease-out;
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Spin */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ==========================================
   CARTES ET HOVER EFFECTS
   ========================================== */
.card-hover {
    transition: all var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-active {
    color: var(--primary-orange) !important;
    border-bottom: 2px solid var(--primary-orange);
}

/* Smooth scroll offset pour menu sticky */
html {
    scroll-padding-top: 100px;
}

/* ==========================================
   FORMULAIRES
   ========================================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Placeholder */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* ==========================================
   BOUTONS
   ========================================== */
button,
.btn {
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

button:active,
.btn:active {
    transform: scale(0.98);
}

button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================
   BADGES ET LABELS
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================
   LIGHTBOX GALERIE
   ========================================== */
.lightbox {
    backdrop-filter: blur(10px);
}

.lightbox img,
.lightbox video {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

/* ==========================================
   LOADER / SPINNER
   ========================================== */
.loader {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* ==========================================
   NOTIFICATIONS / TOASTS
   ========================================== */
.toast {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    animation: slideInRight 0.3s ease-out;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    transition: width var(--transition-normal);
}

/* ==========================================
   RÉSERVATION - ÉTAPES
   ========================================== */
.step-indicator {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

/* ==========================================
   SCROLLBAR PERSONNALISÉE
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 2rem 1rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    nav,
    footer,
    .btn,
    button {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible pour accessibilité clavier */
*:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ==========================================
   DARK MODE (optionnel)
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Décommentez pour activer le dark mode auto
    body {
        background: #1f2937;
        color: #f9fafb;
    }
    */
}