@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & GLOBAL STYLES (Anti-Plaisantins)
   ========================================================================== */

:root {
    --bg-dark: #09090b;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-hover: rgba(28, 28, 35, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Harmonious Palette */
    --color-primary: #eab308; /* Gold / Amber */
    --color-primary-hover: #ca8a04;
    --color-secondary: #a855f7; /* Purple */
    
    /* Text Colors */
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    
    /* Status Colors */
    --color-success: #10b981; /* Emerald */
    --color-warning: #f59e0b; /* Amber */
    --color-danger: #ef4444;  /* Rose */
    --color-info: #06b6d4;    /* Cyan */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom Scrollbar Webkit Fallback */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Font classes */
.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ==========================================================================
   BACKGROUND GLOWS & ANIMATIONS
   ========================================================================== */

.app-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.ambient-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: -10%;
    left: 10%;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 80%);
    animation: pulse-glow 15s infinite alternate;
}

.glow-2 {
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
    animation: pulse-glow 20s infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.1; }
    50% { transform: scale(1.15) translate(5%, 5%); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-5%, -5%); opacity: 0.08; }
}

/* ==========================================================================
   GLASSMORPHISM COMPONENT
   ========================================================================== */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(234, 179, 8, 0.08);
}

/* ==========================================================================
   HEADER & FOOTER
   ========================================================================== */

.main-header {
    background: rgba(9, 9, 11, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo-accent {
    color: var(--color-primary);
}

.main-footer {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-hover);
    transform: scale(1.02);
}
.btn-primary:disabled {
    background-color: var(--text-dim);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-success {
    background-color: var(--color-success);
    color: #fff;
}
.btn-success:hover {
    background-color: #059669;
    transform: scale(1.02);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #fff;
}
.btn-danger:hover {
    background-color: #dc2626;
    transform: scale(1.02);
}

/* ==========================================================================
   LANDING PAGE (HOME)
   ========================================================================== */

.home-hero {
    padding: 6rem 0 4rem 0;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.home-features {
    padding: 4rem 0 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   BOOKING PORTAL PAGE
   ========================================================================== */

/* Hero Prestataire */
.provider-hero {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    margin-top: 2rem;
    align-items: center;
}

.provider-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    border: 3px solid var(--border-hover);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.provider-info h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.provider-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 700px;
}

.provider-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Stepper (Progress indicators) */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    margin: 1.5rem 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed .step-num {
    background-color: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-num {
    border-color: var(--color-primary);
    background-color: rgba(234, 179, 8, 0.15);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1.5rem;
    transition: background-color 0.3s ease;
}

.step-line.active {
    background-color: var(--color-primary);
}

/* Segmented Control Filter */
.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.segmented-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 10px;
    display: flex;
    gap: 0.25rem;
}

.segmented-control button {
    background: transparent;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segmented-control button:hover {
    color: var(--text-main);
}

.segmented-control button.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Services list */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    padding: 1.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
}

.service-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.service-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.location-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.location-badge.salon {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.location-badge.domicile {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.service-pricing {
    text-align: right;
}

.service-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.service-deposit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
    margin-top: 0.1rem;
}

.empty-state {
    padding: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.column-span-all {
    grid-column: 1 / -1;
}

/* ==========================================================================
   STEP 2: SCHEDULER LAYOUT
   ========================================================================== */

.scheduler-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.1);
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
}

.calendar-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.empty-slots {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.85rem;
}

/* Grid d'heures */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.time-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.time-btn.active {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.25);
}

.error-msg {
    color: var(--color-danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.step-actions {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   STEP 3: CHECKOUT / VALIDATION
   ========================================================================== */

.checkout-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.5rem;
    align-items: start;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.gap-4 {
    gap: 1rem;
}

.payment-policy-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: start;
    margin-top: 1.5rem;
}

.payment-policy-box p {
    color: var(--text-muted);
    line-height: 1.5;
}

.payment-policy-box strong {
    color: var(--color-warning);
}

.badge-price {
    background-color: rgba(0,0,0,0.25);
    color: var(--color-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Résumé Card */
.summary-card {
    border-color: rgba(168, 85, 247, 0.2);
}

.summary-service-info {
    margin-bottom: 1.5rem;
}

.summary-service-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.summary-service-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.summary-row .label {
    color: var(--text-muted);
}

.summary-row .value {
    font-weight: 500;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.25rem 0;
}

.pricing-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.pricing-row .label {
    color: var(--text-muted);
}

.pricing-row.highlight-payment {
    padding: 0.5rem;
    background-color: rgba(16, 185, 129, 0.05);
    border-radius: 6px;
    font-weight: 600;
}

.pricing-row.total-row {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ==========================================================================
   MOBILE MONEY PAYMENT SIMULATOR
   ========================================================================== */

.payment-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.payment-container {
    width: 100%;
    max-width: 480px;
    border-color: rgba(255, 255, 255, 0.12);
}

.payment-header {
    text-align: center;
    padding: 2.25rem 2rem 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.payment-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.payment-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.amount-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 1rem;
    text-shadow: 0 0 15px rgba(234, 179, 8, 0.15);
}

.payment-body {
    padding: 2rem;
}

/* Sélecteur de méthode */
.method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.method-btn {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.method-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--text-dim);
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.method-btn.active .method-indicator {
    border-color: var(--color-primary);
}

.method-btn.active .method-indicator::after {
    background-color: var(--color-primary);
}

.method-btn.active {
    background: rgba(255, 255, 255, 0.06);
}

.method-btn.wave.active {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

.method-btn.orange_money.active {
    border-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.method-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 0.25rem;
}

.method-helper-text {
    color: var(--text-muted);
}

.back-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: var(--text-muted);
}

/* Écran Mobile Simulateur (Loading Step) */
.simulation-phone-screen {
    width: 100%;
    border-radius: 20px;
    border: 3px solid #3f3f46;
    background-color: #18181b;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 0 auto 1.5rem auto;
}

.phone-screen-header {
    background-color: #27272a;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid #3f3f46;
}

.phone-screen-body {
    padding: 2.5rem 1.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Phone colors matching Wave vs Orange Money */
.simulation-phone-screen.wave {
    border-color: #0284c7;
}
.simulation-phone-screen.wave .phone-screen-header {
    background-color: #0c4a6e;
    color: #bae6fd;
}

.simulation-phone-screen.orange_money {
    border-color: #ea580c;
}
.simulation-phone-screen.orange_money .phone-screen-header {
    background-color: #7c2d12;
    color: #ffedd5;
}

.screen-instructions {
    margin-top: 1.5rem;
}

.screen-instructions p {
    font-size: 0.8rem;
    color: #e4e4e7;
    line-height: 1.4;
}

/* Dots Pulsing Animation */
.loading-wave-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-primary);
    animation: pulse-dot 1.2s infinite ease-in-out;
}

.wave .dot-pulse {
    background-color: #38bdf8;
}

.orange_money .dot-pulse {
    background-color: #f97316;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

@keyframes pulse-dot {
    0%, 100% { transform: scale(0.6); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; }
}

.simulation-actions-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.border-dashed {
    border: 1px dashed var(--border-hover);
}

.mb-3 { margin-bottom: 0.75rem; }

/* Écrans de fin (Success / Failed) */
.success-icon-wrapper, .failed-icon-wrapper {
    display: inline-flex;
    padding: 1.25rem;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.success-icon-wrapper {
    background-color: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
}

.failed-icon-wrapper {
    background-color: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.15);
}

.success-checkmark, .failed-cross {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-title, .failed-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mb-6 { margin-bottom: 1.5rem; }

.receipt-card {
    text-align: left;
    border: 1px solid var(--border-color);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.receipt-row .label {
    color: var(--text-muted);
}

.receipt-row .value {
    font-weight: 600;
}

.font-mono {
    font-family: monospace;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

.animate-fade-in {
    animation: fade-in 0.5s ease forwards;
}

.animate-slide-up {
    animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        order: -1; /* Placer le résumé en premier sur mobile */
    }
}

@media (max-width: 768px) {
    /* Désactiver les flous de fond intensifs sur mobile pour optimiser les performances */
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 25, 0.95);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .provider-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .stepper {
        padding: 1rem;
    }
    
    .step-line {
        margin: 0 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .scheduler-layout {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   PORTFOLIO SECTION & IMAGES GALLERY
   ========================================================================== */

.portfolio-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.12);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-demo-box {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
}

.portfolio-demo-box.gradient-1 {
    background: linear-gradient(135deg, #7c3aed 0%, #ca8a04 100%);
}
.portfolio-demo-box.gradient-2 {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}
.portfolio-demo-box.gradient-3 {
    background: linear-gradient(135deg, #3b82f6 0%, #ca8a04 100%);
}
.portfolio-demo-box.gradient-4 {
    background: linear-gradient(135deg, #10b981 0%, #7c3aed 100%);
}

.demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    padding: 2rem 0.75rem 0.75rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item {
        height: 240px;
    }
}

/* ==========================================================================
   PLACE DE MARCHE (MARKETPLACE)
   ========================================================================== */

.marketplace-wrapper {
    padding-top: 1rem;
}

.market-hero {
    padding: 5rem 1rem 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.luxe-badge {
    background: linear-gradient(135deg, rgba(234,179,8,0.15) 0%, rgba(168,85,247,0.15) 100%);
    border: 1px solid rgba(234,179,8,0.3);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 1.15rem;
    border-radius: 50px;
    letter-spacing: 0.15em;
    display: inline-block;
    text-shadow: 0 0 10px rgba(234,179,8,0.2);
}

.search-filter-box {
    border-color: rgba(168, 85, 247, 0.15);
    background: rgba(15, 15, 20, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 1.15rem 1.25rem 1.15rem 3.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.neighborhood-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pill-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.06);
}

.pill-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #000;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.market-card {
    border-color: rgba(255,255,255,0.06);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.market-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.1);
}

.market-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(234,179,8,0.15);
}

.market-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    border: 2px solid var(--border-hover);
}

.neighborhood-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.market-card-desc {
    line-height: 1.5;
    min-height: 63px; /* Env 3 lignes */
}

.market-portfolio-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    height: 85px;
}

.market-portfolio-thumb {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.05);
}

.market-portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.market-portfolio-thumb:hover img {
    transform: scale(1.1);
}

.market-portfolio-thumb.placeholder {
    width: 100%;
    height: 100%;
}
.market-portfolio-thumb.placeholder.gradient-1 {
    background: linear-gradient(135deg, #7c3aed 0%, #ca8a04 100%);
    opacity: 0.15;
}
.market-portfolio-thumb.placeholder.gradient-2 {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    opacity: 0.15;
}
.market-portfolio-thumb.placeholder.gradient-3 {
    background: linear-gradient(135deg, #3b82f6 0%, #ca8a04 100%);
    opacity: 0.15;
}

@media (max-width: 992px) {
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
    .market-hero {
        padding: 3rem 1rem 2rem 1rem;
    }
}

/* Bouton flottant de changement de thème */
.theme-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(234,179,8,0.25);
}

.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */

.light-theme {
    --bg-dark: #f8fafc; /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.75); /* White glass */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(15, 23, 42, 0.08); /* Dark slate thin border */
    --border-hover: rgba(15, 23, 42, 0.16);
    
    /* Adjusted palette for light mode */
    --color-primary: #ca8a04; /* Deeper gold for contrast */
    --color-primary-hover: #a16207;
    --color-secondary: #7c3aed; /* Deeper purple */
    
    /* Text Colors */
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --text-dim: #64748b; /* Slate 500 */
}

/* Light Mode specific element styles */
.light-theme .logo {
    color: #0f172a;
}

.light-theme .logo-accent {
    color: var(--color-secondary);
}

.light-theme .ambient-glow.glow-1 {
    opacity: 0.04;
}
.light-theme .ambient-glow.glow-2 {
    opacity: 0.04;
}

.light-theme .search-filter-box {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

.light-theme .search-input {
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
}

.light-theme .search-input:focus {
    background: #ffffff;
}

.light-theme .pill-btn {
    background: rgba(15, 23, 42, 0.03);
    color: #475569;
}

.light-theme .pill-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.light-theme .pill-btn.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
}

.light-theme .market-card-desc {
    color: #475569;
}

.light-theme .market-avatar-placeholder {
    color: #ffffff;
}

.light-theme .success-icon-wrapper {
    background-color: rgba(16, 185, 129, 0.08);
}

.light-theme .failed-icon-wrapper {
    background-color: rgba(239, 68, 68, 0.08);
}

.light-theme .payment-policy-box {
    background: rgba(202, 138, 4, 0.04);
    border: 1px solid rgba(202, 138, 4, 0.12);
}

.light-theme .segmented-control {
    background: rgba(15, 23, 42, 0.03);
}

.light-theme .segmented-control button.active {
    background-color: rgba(15, 23, 42, 0.06);
}

.light-theme .form-input {
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

.light-theme .form-input:focus {
    background: #ffffff;
    border-color: var(--color-secondary);
}

.light-theme .time-btn {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.light-theme .time-btn:hover {
    background: rgba(15, 23, 42, 0.06);
}

.light-theme .time-btn.active {
    color: #ffffff;
}

.light-theme .btn-outline {
    border-color: rgba(15, 23, 42, 0.15);
    color: #334155;
}

.light-theme .btn-outline:hover {
    background: rgba(15, 23, 42, 0.03);
}

.light-theme .main-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.light-theme .main-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    color: #64748b;
}

.light-theme .service-card {
    background: rgba(255, 255, 255, 0.6);
}

.light-theme .service-card:hover {
    background: rgba(255, 255, 255, 0.9);
}

.light-theme .calendar-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.light-theme .day-btn {
    background: rgba(15, 23, 42, 0.02);
}

.light-theme .day-btn:hover {
    background: rgba(15, 23, 42, 0.05);
}

.light-theme .day-btn.active {
    color: #ffffff;
}

.light-theme .divider {
    background: rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   MICRO-ANIMATIONS & INTERACTIVE STYLES
   ========================================================================== */

/* Animation de pulsation active pour les éléments sélectionnés */
@keyframes active-pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.pill-btn.active, .btn-primary {
    animation: active-pulse 2.5s infinite;
}

/* Animation fluide de l'arrière-plan */
@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
    33% { transform: scale(1.2) translate(8%, -6%); opacity: 0.22; }
    66% { transform: scale(0.8) translate(-10%, 10%); opacity: 0.12; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.15; }
}

.glow-1 {
    animation: pulse-glow 16s infinite alternate !important;
}

.glow-2 {
    animation: pulse-glow 22s infinite alternate-reverse !important;
}

/* Effet de transition pour toutes les cartes et boutons */
.market-card, .btn, .pill-btn, .service-card, .time-btn, .day-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Safari Backdrop Blur Support */
.backdrop-blur-md {
    -webkit-backdrop-filter: blur(12px) !important;
}
.backdrop-blur-lg {
    -webkit-backdrop-filter: blur(16px) !important;
}
.backdrop-blur-xl {
    -webkit-backdrop-filter: blur(24px) !important;
}

/* Safari & Fallback Font Weights Overrides */
.font-bold, bold, strong {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 500 !important;
}

/* Force standard tags using Tailwind weight utility classes to render with correct weight on Safari */
h1.font-extrabold, h2.font-extrabold, h3.font-extrabold, span.font-extrabold, div.font-extrabold {
    font-weight: 800 !important;
}

h1.font-bold, h2.font-bold, h3.font-bold, span.font-bold, div.font-bold, a.font-bold {
    font-weight: 700 !important;
}

h1.font-semibold, h2.font-semibold, h3.font-semibold, span.font-semibold, div.font-semibold, a.font-semibold {
    font-weight: 600 !important;
}
