
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f8fafc;
    --accent: #10b981;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --error: #dc3545;
    --speed: 3.8s;
    --delay: 0.5s;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
    background: url('../images/kapot-open.webp') center/cover no-repeat, linear-gradient(135deg, #3C91E6, #071F36);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

/* Reservation Section */
.reservation {
    background: var(--secondary);
    padding: 60px 0;
    position: relative;
}

.reservation-section {
    background: url('https://static.life.ru/publications/2022/6/30/1508166565130.0505.jpg') center/cover fixed;
    position: relative;
}

.reservation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.reservation-section .container {
    position: relative;
    z-index: 1;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--error);
}

.invalid-feedback {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* progress */

/* Container principal */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem auto;
    position: relative;
    max-width: 600px;
    padding: 0 10px;
}

/* Ligne grise (fond) */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: var(--border);
    z-index: 0;
}

/* Ligne colorée (progression) */
.progress-fill {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Largeurs selon étape */
.progress-fill.step-1 { width: 0%; }
.progress-fill.step-2 { width: 33.33%; }
.progress-fill.step-3 { width: 66.66%; }
.progress-fill.step-4 { width: 100%; }

/* Étapes */
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.progress-step i {
    font-size: 1.3rem;
}

/* Actif */
.progress-step.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Terminé */
.progress-step.completed {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.progress-step.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Hover */
.progress-step:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Label */
.step-label {
    position: absolute;
    top: 60px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text);
    font-weight: 500;
}






/* Services Section */
.services {
    padding: 60px 0;
    background: white;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 48px 0 24px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
}

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-gif {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.loading-message {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.loading-progress {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Calendar */
.calendar-container {
    margin-bottom: 24px;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-btn i {
    margin-right: 4px;
}

.calendar-title {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-header {
    font-weight: 600;
    color: var(--text);
    padding: 8px;
    background: var(--secondary);
    border-radius: 8px 8px 0 0;
}

.calendar-day {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.unavailable {
    background: var(--border);
    color: var(--text-light);
}

.calendar-day.available {
    background: var(--accent);
    color: white;
    cursor: pointer;
}

.calendar-day.available:hover {
    background: #0a875b;
    transform: scale(1.1);
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.calendar-day.hover-lift {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.day-number {
    font-weight: 600;
}

.day-info {
    font-size: 0.75rem;
}

#time-slots-container {
    margin-top: 16px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.time-slot {
    background: var(--secondary);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    width: 100px;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--primary);
    color: white;
}

.time-slot.hover-lift {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Recap Card */
.recap-card {
    background: var(--secondary);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.recap-item span:first-child {
    font-weight: 600;
}

.recap-item span:last-child {
    color: var(--text);
}

/* Payment Options */
.payment-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-option {
    text-align: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.payment-option.selected {
    border-color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00f0ff;
    font: 700 2rem/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
    width: 0;
    animation: typing var(--speed) steps(36, end) var(--delay) infinite alternate both,
               blink-caret 0.8s step-end infinite;
}

.typewriter::after {
    content: " ";
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    0%, 100% { border-color: transparent; }
    50% { border-color: #00f0ff; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .form-container {
        padding: 24px;
        margin: 16px;
    }

    .floating-card {
        display: none;
    }

    .progress-bar {
        margin-bottom: 2.5rem;
        padding: 0 5px;
    }

    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-step i {
        font-size: 1.1rem;
    }

    .step-label {
        font-size: 0.75rem;
        top: 50px;
    }

    .progress-bar::before,
    .progress-bar::after {
        top: 16px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .progress-step {
        width: 36px;
        height: 36px;
    }

    .step-label {
        font-size: 0.7rem;
        top: 45px;
    }

    .form-control {
        padding: 10px 12px;
    }

    .submit-btn {
        padding: 10px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .typewriter {
        font-size: 1rem;
    }
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.loading-slots,
.no-slots,
.error-slots {
    text-align: center;
    padding: 16px;
    color: var(--text-light);
}

.checked-glow {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}
