/* ═══════════════════════════════════════════════════════════════════════════
   SERENYS - MAISON DE BEAUTÉ
   Styles principaux - Design élégant avec contraste clair/foncé
   ═══════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ──────────────────────────────────────────────────────────────────────────
   ANIMATIONS KEYFRAMES
   ────────────────────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(201, 168, 114, 0.2); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(201, 168, 114, 0.4); 
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

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

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

/* ──────────────────────────────────────────────────────────────────────────
   BACKGROUND PATTERNS
   ────────────────────────────────────────────────────────────────────────── */
.bg-dark-header {
    background: linear-gradient(180deg, #0A0908 0%, #151413 100%);
}

.bg-cream {
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(201, 168, 114, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(201, 168, 114, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #FAF7F2 0%, #F5F0E8 50%, #EDE6DC 100%);
}

.bg-warm-cream {
    background: linear-gradient(180deg, #F8F4EE 0%, #F2EBE1 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #C9A872 0%, #B8956B 50%, #9A7B56 100%);
}

/* ──────────────────────────────────────────────────────────────────────────
   GLASSMORPHISM & CARDS - Light Theme
   ────────────────────────────────────────────────────────────────────────── */
.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 114, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-gold-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 114, 0.3);
    box-shadow: 0 8px 32px rgba(201, 168, 114, 0.1);
}

/* ──────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ────────────────────────────────────────────────────────────────────────── */
.text-gold-gradient {
    background: linear-gradient(135deg, #E8CFA3 0%, #C9A872 50%, #B8956B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.font-display {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.text-spacing {
    letter-spacing: 0.3em;
}

/* ──────────────────────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────────────────────── */
.btn-gold {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(184, 149, 107, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #C9A872 0%, #B8956B 100%);
    box-shadow: 0 8px 25px rgba(184, 149, 107, 0.4);
    transform: translateY(-2px);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: #9A7B56;
    border: 1px solid rgba(154, 123, 86, 0.5);
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-outline:hover {
    background: rgba(154, 123, 86, 0.1);
    border-color: #9A7B56;
}

/* ──────────────────────────────────────────────────────────────────────────
   CARDS - Light Theme
   ────────────────────────────────────────────────────────────────────────── */
.card-service {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 114, 0.15);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.card-service:hover {
    border-color: rgba(201, 168, 114, 0.4);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 114, 0.15);
}

.card-service.selected {
    border-color: #B8956B;
    background: linear-gradient(135deg, rgba(201, 168, 114, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 8px 30px rgba(201, 168, 114, 0.2);
}

/* Cartes catégories - Carrées */
.card-category {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 114, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.card-category:hover {
    border-color: rgba(201, 168, 114, 0.5);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(201, 168, 114, 0.18);
}

.card-category.selected {
    border-color: #B8956B;
    background: linear-gradient(135deg, rgba(201, 168, 114, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 12px 35px rgba(201, 168, 114, 0.25);
}

/* Sur mobile (2 colonnes) : centrer la 9ème carte si impaire */
@media (max-width: 639px) {
    .card-category:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.375rem);
        justify-self: center;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   STEPPER / PROGRESS - Light Theme
   ────────────────────────────────────────────────────────────────────────── */
.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(184, 149, 107, 0.4);
}

.step-indicator.completed {
    background: #9A7B56;
    color: #FFFFFF;
}

.step-indicator.pending {
    background: rgba(201, 168, 114, 0.1);
    color: rgba(154, 123, 86, 0.5);
    border: 1px solid rgba(201, 168, 114, 0.2);
}

.step-line {
    height: 2px;
    flex: 1;
    background: rgba(201, 168, 114, 0.2);
    transition: all 0.3s ease;
}

.step-line.completed {
    background: linear-gradient(90deg, #B8956B, #9A7B56);
}

/* ──────────────────────────────────────────────────────────────────────────
   CALENDAR - Light Theme
   ────────────────────────────────────────────────────────────────────────── */
.calendar-day {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #2A2725;
}

.calendar-day:hover:not(.disabled) {
    background: rgba(201, 168, 114, 0.15);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(184, 149, 107, 0.3);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid rgba(184, 149, 107, 0.5);
}

/* ──────────────────────────────────────────────────────────────────────────
   TIME SLOTS - Light Theme
   ────────────────────────────────────────────────────────────────────────── */
.time-slot {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(201, 168, 114, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    color: #2A2725;
}

.time-slot:hover:not(.disabled) {
    border-color: rgba(201, 168, 114, 0.6);
    background: rgba(255, 255, 255, 0.9);
}

.time-slot.selected {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    border-color: transparent;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(184, 149, 107, 0.3);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ──────────────────────────────────────────────────────────────────────────
   SCROLLBAR
   ────────────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(201, 168, 114, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 114, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 114, 0.6);
}

/* ──────────────────────────────────────────────────────────────────────────
   DECORATIVE ELEMENTS
   ────────────────────────────────────────────────────────────────────────── */
.divider-gold {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 168, 114, 0.4) 50%,
        transparent 100%
    );
}

.border-gold-subtle {
    border: 1px solid rgba(201, 168, 114, 0.2);
}

/* ──────────────────────────────────────────────────────────────────────────
   SUMMARY CARD - Light Theme
   ────────────────────────────────────────────────────────────────────────── */
.summary-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 168, 114, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ──────────────────────────────────────────────────────────────────────────
   CONFIRMATION SCREEN
   ────────────────────────────────────────────────────────────────────────── */
.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 40px rgba(184, 149, 107, 0.3);
}

/* ──────────────────────────────────────────────────────────────────────────
   CARDS - Praticienne
   ────────────────────────────────────────────────────────────────────────── */
.card-praticienne {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 114, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

.card-praticienne:hover {
    border-color: rgba(201, 168, 114, 0.4);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 114, 0.12);
}

.card-praticienne.selected {
    border-color: var(--prat-color, #B8956B);
    background: linear-gradient(135deg, rgba(201, 168, 114, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 8px 25px rgba(201, 168, 114, 0.15);
}

/* ──────────────────────────────────────────────────────────────────────────
   CARDS - Catégorie petite
   ────────────────────────────────────────────────────────────────────────── */
.card-category-sm {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 114, 0.15);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

.card-category-sm:hover {
    border-color: rgba(201, 168, 114, 0.4);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 114, 0.12);
}

.card-category-sm.selected {
    border-color: #B8956B;
    background: linear-gradient(135deg, rgba(201, 168, 114, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

/* ──────────────────────────────────────────────────────────────────────────
   CARDS - Service petit
   ────────────────────────────────────────────────────────────────────────── */
.card-service-sm {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 114, 0.12);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

.card-service-sm:hover {
    border-color: rgba(201, 168, 114, 0.35);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.card-service-sm.selected {
    border-color: #B8956B;
    background: linear-gradient(135deg, rgba(201, 168, 114, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 4px 15px rgba(201, 168, 114, 0.12);
}

/* ──────────────────────────────────────────────────────────────────────────
   CARDS - Option
   ────────────────────────────────────────────────────────────────────────── */
.card-option {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 114, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: fadeInUp 0.3s ease-out forwards;
    opacity: 0;
}

.card-option:hover {
    border-color: rgba(201, 168, 114, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.card-option.selected {
    border-color: #B8956B;
    background: linear-gradient(135deg, rgba(201, 168, 114, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

/* ──────────────────────────────────────────────────────────────────────────
   STEPPER - Compact
   ────────────────────────────────────────────────────────────────────────── */
.step-indicator-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-indicator-sm.active {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(184, 149, 107, 0.35);
}

.step-indicator-sm.completed {
    background: #9A7B56;
    color: #FFFFFF;
}

.step-indicator-sm.pending {
    background: rgba(201, 168, 114, 0.08);
    color: rgba(154, 123, 86, 0.4);
    border: 1px solid rgba(201, 168, 114, 0.15);
}

.step-line-sm {
    height: 1px;
    flex: 1;
    max-width: 20px;
    background: rgba(201, 168, 114, 0.2);
    transition: all 0.3s ease;
}

.step-line-sm.completed {
    background: linear-gradient(90deg, #B8956B, #9A7B56);
}

/* ──────────────────────────────────────────────────────────────────────────
   CALENDAR - Compact
   ────────────────────────────────────────────────────────────────────────── */
.calendar-day-sm {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #2A2725;
}

.calendar-day-sm:hover:not(.disabled) {
    background: rgba(201, 168, 114, 0.12);
}

.calendar-day-sm.selected {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(184, 149, 107, 0.25);
}

.calendar-day-sm.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ──────────────────────────────────────────────────────────────────────────
   TIME SLOTS - Compact
   ────────────────────────────────────────────────────────────────────────── */
.time-slot-sm {
    padding: 0.75rem 0.5rem;
    border: 1px solid rgba(201, 168, 114, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    color: #2A2725;
    animation: fadeInUp 0.25s ease-out forwards;
    opacity: 0;
}

.time-slot-sm:hover {
    border-color: rgba(201, 168, 114, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

.time-slot-sm.selected {
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    color: #FFFFFF;
    border-color: transparent;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(184, 149, 107, 0.25);
}

/* ──────────────────────────────────────────────────────────────────────────
   BUTTONS - Compact
   ────────────────────────────────────────────────────────────────────────── */
.btn-outline-sm {
    background: transparent;
    color: #9A7B56;
    border: 1px solid rgba(154, 123, 86, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-outline-sm:hover {
    background: rgba(154, 123, 86, 0.08);
    border-color: #9A7B56;
}

/* ──────────────────────────────────────────────────────────────────────────
   CONFIRMATION ICON - Compact
   ────────────────────────────────────────────────────────────────────────── */
.confirmation-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #B8956B 0%, #9A7B56 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 30px rgba(184, 149, 107, 0.3);
}

/* ──────────────────────────────────────────────────────────────────────────
   FORM INPUTS
   ────────────────────────────────────────────────────────────────────────── */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 168, 114, 0.25);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2A2725;
    transition: all 0.2s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.input-field::placeholder {
    color: rgba(42, 39, 37, 0.4);
}

.input-field:focus {
    outline: none;
    border-color: #B8956B;
    box-shadow: 0 0 0 3px rgba(184, 149, 107, 0.15);
    background: #FFFFFF;
}

.input-field:hover:not(:focus) {
    border-color: rgba(201, 168, 114, 0.5);
}

.input-field.border-red-400 {
    border-color: #f87171;
}

.input-field.border-red-400:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* ──────────────────────────────────────────────────────────────────────────
   MOBILE OPTIMIZATIONS
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .btn-gold, .btn-outline {
        padding: 0.8rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    
    .calendar-day-sm {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .step-indicator-sm {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .step-line-sm {
        max-width: 12px;
    }
    
    .time-slot {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .time-slot-sm {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .card-praticienne {
        padding: 0.875rem 1rem;
    }
    
    .card-service-sm {
        padding: 0.875rem 1rem;
    }
    
    .input-field {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .summary-card {
        padding: 1rem !important;
    }
}
