/* Toast notifications */
.kd-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kd-toast {
    min-width: 300px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.kd-toast.success {
    border-left-color: #10b981;
}

.kd-toast.error {
    border-left-color: #ef4444;
}

.kd-toast.info {
    border-left-color: #3b82f6;
}

.kd-toast-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.kd-toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: #1f2937;
}

.kd-toast-close {
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
}

.kd-toast-close:hover {
    color: #374151;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.kd-toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .kd-toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .kd-toast {
        min-width: auto;
        width: 100%;
    }
}

:root {
    --kd-primary: #2563eb;
    --kd-primary-dark: #1d4ed8;
    --kd-secondary: #64748b;
    --kd-success: #059669;
    --kd-warning: #d97706;
    --kd-error: #dc2626;
    --kd-bg-light: #f8fafc;
    --kd-bg-card: #ffffff;
    --kd-border: #e2e8f0;
    --kd-text: #334155;
    --kd-text-light: #64748b;
    --kd-radius: 12px;
    --kd-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --kd-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.kd-booking-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.kd-booking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kd-booking-header h2 {
    color: var(--kd-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.kd-booking-header p {
    color: var(--kd-text-light);
    font-size: 1.1rem;
    margin: 0;
}

.kd-booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.kd-booking-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--kd-border) 0%, var(--kd-border) 100%);
    border-radius: 4px;
    z-index: 1;
    transition: all 0.5s ease;
}

.kd-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: var(--kd-bg-card);
    padding: 0 0.5rem;
    flex: 1;
}

.kd-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--kd-border);
    color: var(--kd-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--kd-bg-card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kd-progress-step span {
    font-size: 0.85rem;
    color: var(--kd-text-light);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kd-progress-step.active .kd-step-number {
    background: linear-gradient(135deg, var(--kd-primary) 0%, #1d4ed8 100%);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.kd-progress-step.active span {
    color: var(--kd-primary);
    font-weight: 600;
}

.kd-progress-step.completed .kd-step-number {
    background: linear-gradient(135deg, var(--kd-success) 0%, #059669 100%);
    color: white;
    animation: checkmarkPulse 0.6s ease-out;
}

.kd-progress-step.completed span {
    color: var(--kd-success);
}

@keyframes checkmarkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.kd-booking {
    background: var(--kd-bg-card);
    border-radius: var(--kd-radius);
    box-shadow: var(--kd-shadow-lg);
    overflow: hidden;
}

.kd-step-panel {
    padding: 2rem;
    display: none;
    min-height: 400px;
    opacity: 0;
}

.kd-step-panel.active {
    display: block;
    animation: kdFadeSlideIn 0.35s ease-out forwards;
}

@keyframes kdFadeSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.kd-step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kd-step-header h3 {
    color: var(--kd-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.kd-step-header p {
    color: var(--kd-text-light);
    margin: 0;
}

/* Cartes véhicules */
.kd-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.kd-vehicle-card {
    border: 2px solid var(--kd-border);
    border-radius: var(--kd-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--kd-bg-card);
    overflow: hidden;
}

.kd-vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.kd-vehicle-card:hover {
    border-color: var(--kd-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.kd-vehicle-card:hover::before {
    opacity: 1;
}

.kd-vehicle-card:hover .kd-vehicle-icon {
    transform: scale(1.1);
}

.kd-vehicle-card.selected {
    border-color: var(--kd-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.kd-vehicle-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kd-vehicle-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--kd-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.kd-vehicle-brand {
    color: var(--kd-text-light);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.kd-vehicle-type {
    display: inline-block;
    background: var(--kd-bg-light);
    color: var(--kd-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.kd-license-req {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.kd-license-req.license-moto {
    background: #fef3c7;
    color: #d97706;
}

.kd-license-req.license-b {
    background: #dbeafe;
    color: var(--kd-primary);
}

.kd-license-req.license-none {
    background: #d1fae5;
    color: #059669;
}

.kd-vehicle-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--kd-success);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.kd-vehicle-card.selected .kd-vehicle-check {
    display: flex;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Options génériques (événements, dates, créneaux) */
.kd-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.kd-option-card {
    border: 2px solid var(--kd-border);
    border-radius: var(--kd-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--kd-bg-card);
    position: relative;
    overflow: hidden;
}

.kd-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.kd-option-card:hover {
    border-color: var(--kd-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.kd-option-card:hover::before {
    opacity: 1;
}

.kd-option-card.selected {
    border-color: var(--kd-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.kd-option-card .kd-option-title {
    font-weight: 600;
    color: var(--kd-text);
    margin-bottom: 0.5rem;
}

.kd-option-card .kd-option-details {
    color: var(--kd-text-light);
    font-size: 0.9rem;
}

.kd-option-card .kd-option-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kd-success);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.kd-option-card.selected .kd-option-check {
    display: flex;
    animation: bounceIn 0.5s ease-out;
}

/* Grille de créneaux */
.kd-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.kd-slot-card {
    border: 2px solid var(--kd-border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: var(--kd-bg-card);
    position: relative;
    overflow: hidden;
}

.kd-slot-card:hover {
    border-color: var(--kd-primary);
    background: var(--kd-bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.kd-slot-card.selected {
    border-color: var(--kd-primary);
    background: linear-gradient(135deg, var(--kd-primary) 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.kd-slot-card.selected .kd-gauge-text {
    color: white;
}

/* Créneau complet */
.kd-slot-card.kd-slot-full {
    border-color: #fca5a5;
    background: #fef2f2;
    opacity: 0.9;
}

.kd-slot-card.kd-slot-full:hover {
    border-color: #f87171;
    background: #fee2e2;
}

.kd-slot-card.kd-slot-full.selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.kd-slot-time {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.kd-slot-info {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Grille de créneaux horaires pour demandes libres */
.kd-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.kd-time-slot-btn {
    border: 2px solid var(--kd-border);
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: var(--kd-bg-card);
    font-weight: 600;
    font-size: 15px;
    color: var(--kd-text);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kd-time-slot-btn::before {
    content: '🕐';
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.kd-time-slot-btn:hover {
    border-color: var(--kd-primary);
    background: var(--kd-bg-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
    animation: pulse 1.5s infinite;
}

.kd-time-slot-btn:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.kd-time-slot-btn.selected {
    border-color: var(--kd-primary);
    background: linear-gradient(135deg, var(--kd-primary) 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.kd-time-slot-btn.selected::before {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    }
}

@media (max-width: 768px) {
    .kd-time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Météo par périodes sur les cartes de dates */
.kd-weather-periods {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.kd-weather-period {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0,0,0,0.08);
    flex: 1;
}

.kd-weather-period-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.kd-weather-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.kd-weather-temp {
    font-weight: 600;
    color: var(--kd-primary);
    font-size: 0.85rem;
}

.kd-option-card.selected .kd-weather-period {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .kd-weather-periods {
        gap: 5px;
    }
    .kd-weather-period {
        font-size: 0.7rem;
        padding: 4px 6px;
        gap: 3px;
    }
    .kd-weather-period-label {
        font-size: 0.65rem;
    }
    .kd-weather-icon {
        font-size: 0.95rem;
    }
    .kd-weather-temp {
        font-size: 0.75rem;
    }
}

/* Informations personnelles */
.kd-personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kd-input-group {
    display: flex;
    flex-direction: column;
}

.kd-input-group label {
    font-weight: 500;
    color: var(--kd-text);
    margin-bottom: 0.5rem;
}

.kd-input-group input {
    padding: 0.75rem;
    border: 2px solid var(--kd-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.kd-input-group input:focus {
    outline: none;
    border-color: var(--kd-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.kd-license-check {
    background: var(--kd-bg-light);
    border: 2px solid var(--kd-border);
    border-radius: var(--kd-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.kd-consent {
    margin-bottom: 2rem;
}

.kd-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.kd-checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.kd-booking-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: var(--kd-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.kd-summary-title {
    font-weight: 600;
    color: #0284c7;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kd-summary-details {
    display: grid;
    gap: 0.5rem;
}

.kd-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #bae6fd;
}

.kd-summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #0284c7;
}

/* Navigation */
.kd-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--kd-bg-light);
    border-top: 1px solid var(--kd-border);
}

.kd-nav-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.kd-nav-btn.secondary {
    background: var(--kd-bg-card);
    color: var(--kd-text);
    border: 2px solid var(--kd-border);
}

.kd-nav-btn.secondary:hover {
    background: var(--kd-bg-light);
    border-color: var(--kd-secondary);
}

.kd-nav-btn.primary {
    background: var(--kd-primary);
    color: white;
}

.kd-nav-btn.primary:hover {
    background: var(--kd-primary-dark);
    transform: translateY(-1px);
}

.kd-nav-btn.submit {
    background: linear-gradient(135deg, var(--kd-success) 0%, #047857 100%);
    color: white;
    padding: 1rem 2.5rem;
}

.kd-nav-btn.submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--kd-shadow);
}

/* Messages */
.kd-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--kd-radius);
    font-weight: 500;
}

.kd-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--kd-success);
    color: #065f46;
}

.kd-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid var(--kd-error);
    color: #991b1b;
}

/* États de chargement */
.kd-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--kd-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.kd-loading::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border: 4px solid var(--kd-border);
    border-top: 4px solid var(--kd-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton loaders pour les cartes */
.kd-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.kd-skeleton-card {
    border: 2px solid var(--kd-border);
    border-radius: var(--kd-radius);
    padding: 1.5rem;
    background: var(--kd-bg-card);
}

.kd-skeleton-title {
    height: 24px;
    width: 70%;
    margin-bottom: 1rem;
}

.kd-skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.kd-skeleton-text.short {
    width: 50%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .kd-booking-container {
        margin: 0.5rem auto;
        padding: 0 0.5rem;
    }

    .kd-booking-header h2 {
        font-size: 1.75rem;
    }

    .kd-booking-header p {
        font-size: 0.95rem;
    }

    .kd-booking-progress {
        margin-bottom: 1.5rem;
    }

    .kd-step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .kd-progress-step span {
        font-size: 0.7rem;
        max-width: 70px;
        line-height: 1.2;
    }

    .kd-step-panel {
        padding: 1rem;
        min-height: 300px;
    }

    .kd-step-header h3 {
        font-size: 1.25rem;
    }

    .kd-step-header p {
        font-size: 0.9rem;
    }

    .kd-vehicle-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .kd-vehicle-card {
        padding: 1.25rem;
    }

    .kd-options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .kd-option-card {
        padding: 1.25rem;
    }


    .kd-slots-grid {
        grid-template-columns: 1fr;
    }

    .kd-slot-card {
        padding: 1rem;
    }

    .kd-personal-info {
        grid-template-columns: 1fr;
    }

    .kd-input-group input {
        font-size: 16px; /* Empêche le zoom sur iOS */
    }

    .kd-booking-summary {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .kd-summary-item {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .kd-navigation {
        padding: 1rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .kd-nav-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .kd-time-slot-btn {
        padding: 14px 10px;
        font-size: 16px;
    }

    .kd-weather-periods {
        flex-direction: column;
        gap: 6px;
    }

    .kd-weather-period {
        justify-content: center;
    }
}

/* Ajoutez ce CSS dans votre section wp_head */
.kd-success-detailed {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #059669;
    border-radius: var(--kd-radius);
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: var(--kd-shadow-lg);
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kd-success-header {
    background: #059669;
    color: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.kd-success-icon {
    font-size: 2rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.kd-success-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.kd-success-content {
    padding: 2rem;
    line-height: 1.6;
    color: #065f46;
}

.kd-success-content p {
    margin-bottom: 1rem;
}

.kd-booking-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #059669;
}

.kd-license-req.license-client {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #f59e0b;
}

.kd-booking-details h4 {
    margin: 0 0 1rem 0;
    color: #047857;
    font-size: 1.1rem;
}

.kd-booking-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.kd-booking-details li {
    margin-bottom: 0.5rem;
}

.kd-important-reminders {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.kd-important-reminders h4 {
    margin: 0 0 1rem 0;
    color: #92400e;
    font-size: 1.1rem;
}

.kd-important-reminders ul {
    margin: 0;
    padding-left: 1.5rem;
}

.kd-important-reminders li {
    margin-bottom: 0.5rem;
    color: #92400e;
}

.kd-contact-info {
    text-align: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid #3b82f6;
}

.kd-email-info {
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #0891b2;
}

.kd-email-info p {
    margin-bottom: 0.5rem;
}

.kd-thanks {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem 0 1rem 0;
    color: #047857;
}

/* Scroll automatique vers le message */
.kd-success-detailed {
    scroll-margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .kd-success-content {
        padding: 1.5rem;
    }
    
    .kd-success-header {
        padding: 1rem;
    }
    
    .kd-success-header h3 {
        font-size: 1.25rem;
    }
}

.kd-balade-specific {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.kd-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.kd-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.kd-radio-label input[type="radio"] {
    margin: 0;
}

/* Styles pour le système de highlighting des véhicules */

/* Container principal - forcer l'affichage en colonne */
.kd-vehicle-grid {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* Section des véhicules mis en avant */
.kd-highlighted-section {
    margin-bottom: 3rem;
    width: 100%;
}

.kd-highlight-title {
    display: none !important;
    text-align: center;
    color: var(--kd-primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--kd-radius);
    border-left: 4px solid var(--kd-primary);
}

/* Véhicules highlighted : toute la largeur, en bloc */
.kd-highlighted-card {
    border: 3px solid var(--kd-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    /* padding: 3rem; */
    border-radius: var(--kd-radius);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    position: relative;
    margin: 1.5rem 0;
    width: 100% !important;
    display: flex !important;
    align-items: center;
    gap: 3rem;
    /* min-height: 200px; */
    float: none !important;
    clear: both !important;
}

.kd-highlighted-card::before {
    content: "SÉLECTION";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--kd-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.kd-highlighted-card:hover {
    border-color: var(--kd-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.25);
}

/* Icon à gauche, large */
.kd-highlighted-card .kd-vehicle-icon {
    font-size: 5rem;
    flex-shrink: 0;
    width: 120px;
    text-align: center;
    margin-bottom: 0;
}

/* Contenu principal au centre, étendu */
.kd-highlighted-card .kd-vehicle-info {
    /* flex-grow: 1; */
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 1rem; */
}

.kd-highlighted-card .kd-vehicle-info h4 {
    /* font-size: 2rem; */
    /* margin: 0; */
    color: var(--kd-primary);
    font-weight: 700;
}

.kd-highlighted-card .kd-vehicle-brand {
    /* font-size: 1.3rem; */
    /* margin: 0; */
    font-style: italic;
    color: var(--kd-text-light);
}

.kd-highlighted-card .kd-vehicle-type {
    /* padding: 0.75rem 1.5rem; */
    /* font-size: 1.2rem; */
    font-weight: 600;
    background: var(--kd-primary);
    color: white;
    border-radius: 25px;
    display: inline-block;
    width: fit-content;
}

.kd-highlighted-card .kd-license-req {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 500;
    width: fit-content;
}

/* Check à droite, grand */
.kd-highlighted-card .kd-vehicle-check {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    position: static;
    flex-shrink: 0;
    margin-left: auto;
}

/* Séparateur entre highlighted et regular */
.kd-separator {
    text-align: center;
    margin: 3rem 0 2rem 0;
    position: relative;
    clear: both;
    width: 100%;
}

.kd-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--kd-border);
    z-index: 1;
}

.kd-separator h4 {
    display: inline-block;
    background: var(--kd-bg-card);
    color: var(--kd-text-light);
    padding: 0 2rem;
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Section des véhicules reguliers - GRID ICI */
.kd-regular-section {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
    width: 100%;
    clear: both;
}

/* Véhicules reguliers : taille normale */
.kd-regular-card {
    border: 2px solid var(--kd-border);
    padding: 1.2rem;
    opacity: 0.9;
    transform: scale(0.95);
    border-radius: var(--kd-radius);
    background: var(--kd-bg-card);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.kd-regular-card:hover {
    opacity: 1;
    transform: scale(0.98) translateY(-1px);
    border-color: var(--kd-primary);
    box-shadow: var(--kd-shadow);
}

.kd-regular-card.selected {
    transform: scale(1);
    opacity: 1;
    border-color: var(--kd-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.kd-regular-card .kd-vehicle-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--kd-success);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.kd-regular-card.selected .kd-vehicle-check {
    display: flex;
}

/* Responsive pour le highlighting */
@media (max-width: 768px) {
    .kd-highlighted-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .kd-highlighted-card .kd-vehicle-icon {
        font-size: 4rem;
        width: auto;
    }
    
    .kd-highlighted-card .kd-vehicle-info {
        align-items: center;
        text-align: center;
    }
    
    .kd-highlighted-card .kd-vehicle-info h4 {
        font-size: 1.8rem;
    }
    
    .kd-highlighted-card .kd-vehicle-brand {
        font-size: 1.1rem;
    }
    
    .kd-highlighted-card .kd-vehicle-type {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .kd-highlighted-card .kd-vehicle-check {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .kd-highlight-title {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
    
    .kd-regular-section {
        grid-template-columns: 1fr !important;
    }
}

/* Animation d'entrée pour les cards highlighted */
.kd-highlighted-card {
    animation: highlightFadeIn 0.8s ease-out;
}

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

/* Effet de pulsation subtile pour les véhicules highlighted */
.kd-highlighted-card::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: var(--kd-radius);
    border: 2px solid var(--kd-primary);
    opacity: 0;
    animation: highlightPulse 3s infinite;
    pointer-events: none;
}

@keyframes highlightPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.01);
    }
}

/* Styles pour l'affichage de la capacité des balades */
.kd-capacity-info {
    margin: 2rem 0;
    text-align: center;
}

.kd-capacity-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: var(--kd-radius);
    padding: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--kd-shadow);
}

.kd-capacity-box h3 {
    margin: 0 0 1rem 0;
    color: #0284c7;
    font-size: 1.2rem;
}

.kd-capacity-details {

}

.kd-places-remaining {
    font-size: 2rem;
    font-weight: bold;
    color: #0284c7;
    display: block;
}

.kd-places-label {
    font-size: 1rem;
    color: #0369a1;
}

.kd-capacity-bar {
    background: #e2e8f0;
    border-radius: 10px;
    height: 12px;
    margin: 1rem 0;
    overflow: hidden;
}

.kd-capacity-progress {
    background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.kd-capacity-text {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .kd-capacity-box {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .kd-places-remaining {
        font-size: 2rem;
    }
}

/* ===== Préférences véhicule (checkboxes balade) ===== */
.kd-field-hint {
    font-size: 0.88rem;
    color: #64748b;
    margin: 4px 0 12px;
    line-height: 1.4;
}

.kd-preference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.kd-preference-label {
    cursor: pointer;
    display: block;
}

.kd-preference-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.kd-pref-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.kd-pref-box:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.kd-pref-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kd-preference-label input:checked + .kd-pref-box {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 1px #2563eb;
}

.kd-preference-label input:checked + .kd-pref-box .kd-pref-check {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.kd-preference-label input:disabled + .kd-pref-box {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.kd-pref-name {
    font-weight: 500;
    color: #1e293b;
}

.kd-preference-label input:checked + .kd-pref-box .kd-pref-name {
    color: #1d4ed8;
    font-weight: 600;
}

.kd-pref-limit-msg {
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 6px;
    display: none;
    font-style: italic;
}

.kd-pref-limit-msg.visible {
    display: block;
}

@media (max-width: 480px) {
    .kd-preference-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== Indicateur de places disponibles (#12) ===================== */
.kd-slot-info {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.9;
}

.kd-slot-info.kd-places-ok {
    color: #16a34a;
}

.kd-slot-info.kd-places-low {
    color: #ea580c;
}

.kd-slot-info.kd-places-full {
    color: #dc2626;
    font-weight: 700;
}

.kd-slot-card.selected .kd-slot-info {
    color: rgba(255,255,255,0.9);
}

/* Waitlist sur slot complet */
.kd-slot-waitlist-info {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

.kd-slot-waitlist-btn {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 4px 10px;
    transition: all 0.2s;
}

.kd-slot-card.kd-slot-full:hover .kd-slot-waitlist-btn {
    background: #fef3c7;
    border-color: #f59e0b;
}

/* Bouton liste d'attente inline dans l'erreur */
.kd-waitlist-inline-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 16px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.kd-waitlist-inline-btn:hover {
    background: #d97706;
}

/* ===================== Pulse animation de sélection (#11) ===================== */
@keyframes kdPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.kd-slot-card.kd-pulse {
    animation: kdPulse 0.6s ease-out;
}

/* ===================== Barre de progression continue (#15) ===================== */
.kd-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: -1.5rem 0 2rem;
    overflow: hidden;
    position: relative;
}

.kd-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kd-primary), #1d4ed8, #7c3aed);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.kd-progress-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 8px;
    height: 8px;
    background: white;
    border: 2px solid var(--kd-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}

/* ===================== Animations de transition entre étapes (#14) ===================== */

.kd-step-panel.kd-slide-out-left {
    display: block;
    animation: kdSlideOutLeft 0.35s ease-in forwards;
}

.kd-step-panel.kd-slide-out-right {
    display: block;
    animation: kdSlideOutRight 0.35s ease-in forwards;
}

.kd-step-panel.kd-slide-in-right {
    display: block;
    animation: kdSlideInRight 0.35s ease-out forwards;
}

.kd-step-panel.kd-slide-in-left {
    display: block;
    animation: kdSlideInLeft 0.35s ease-out forwards;
}

@keyframes kdSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); }
}

@keyframes kdSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

@keyframes kdSlideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes kdSlideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===================== Email autocorrect suggestion (#17) ===================== */
.kd-email-suggest {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #1e40af;
    animation: kdFadeSlideIn 0.3s ease-out;
}

.kd-email-suggest strong {
    color: #1d4ed8;
}

.kd-email-suggest a.kd-email-fix {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 6px;
}

.kd-email-suggest a.kd-email-dismiss {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-left: 4px;
    text-decoration: none;
}

.kd-email-suggest a.kd-email-dismiss:hover {
    color: #6b7280;
}

/* ===================== Lien d'annulation dans les confirmations ===================== */
.kd-cancel-link {
    margin-top: 16px;
    padding: 10px 16px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    text-align: center;
}

.kd-cancel-link a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.kd-cancel-link a:hover {
    text-decoration: underline;
}

/* ===================== Responsive pour nouveaux éléments ===================== */
@media (max-width: 768px) {
    .kd-slot-gauge {
        height: 6px;
    }
    .kd-progress-bar {
        margin: -1rem 0 1.5rem;
    }
    .kd-email-suggest {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}