:root {
    --rose: #e8518a;
    --rose-light: #f28ab6;
    --rose-pale: #fce8f3;
    --noir: #0a0a0a;
    --noir-soft: #1a1a1a;
    --gris: #2e2e2e;
    --gris-clair: #ececec;
    --blanc: #ffffff;
    --or: #c9a96e;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 30px 80px rgba(232,81,138,0.08), 0 8px 24px rgba(0,0,0,0.06);
    --radius: 16px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Jost', sans-serif;
    min-height: 100vh;
    background: var(--bg);
    padding: 20px 10px 40px;
    position: relative;
    overflow-x: hidden;
}

/* — Conteneur — */
.container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: containerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
    z-index: 1;
}
@keyframes containerIn {
    from { opacity: 0; transform: translateY(32px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* — Header — */
.header {
    background: var(--noir);
    color: var(--blanc);
    padding: 36px 30px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rose), var(--or), var(--rose), transparent);
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.logo-container { margin-bottom: 14px; }
.logo {
    max-width: 90px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(232,81,138,0.4));
    animation: logoGlow 4s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    from { filter: drop-shadow(0 0 8px rgba(232,81,138,0.2)); }
    to { filter: drop-shadow(0 0 20px rgba(232,81,138,0.6)); }
}
.header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}
.header-subtitle {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rose-light);
    margin-top: 4px;
    font-weight: 300;
}

/* — Barre de progression — */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
    background: var(--noir-soft);
    position: relative;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%; left: 40px; right: 40px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    transform: translateY(-50%);
    z-index: 0;
}
.progress-line {
    position: absolute;
    top: 50%; left: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--rose), var(--or));
    transform: translateY(-50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gris);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    font-family: 'Jost', sans-serif;
}
.step.active .step-circle {
    background: linear-gradient(135deg, var(--rose), #d43d76);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(232,81,138,0.2), 0 4px 16px rgba(232,81,138,0.4);
    transform: scale(1.12);
}
.step.completed .step-circle {
    background: var(--or);
    color: var(--noir);
    border-color: transparent;
}
.step.completed .step-circle::after { content: '✓'; }
.step.completed .step-circle span { display: none; }
.step-label {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}
.step.active .step-label { color: var(--rose-light); }

/* — Formulaire — */
.form-content { padding: 40px 36px; }

.form-step { display: none; }
.form-step.active {
    display: block;
    animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes stepIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--noir);
    margin-bottom: 8px;
}
.step-desc {
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* Séparateur décoratif */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gris-clair));
}
.divider::after {
    background: linear-gradient(270deg, transparent, var(--gris-clair));
}
.divider-icon {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rose);
}

/* — Groupes de formulaire — */
.form-group { margin-bottom: 18px; position: relative; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    color: #888;
    transition: var(--transition);
}

select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gris-clair);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    outline: none;
    transition: var(--transition);
    background: #fafafa;
    color: var(--noir);
    appearance: none;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8518a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
select:focus, input:focus {
    border-color: var(--rose);
    background: white;
    box-shadow: 0 0 0 4px rgba(232,81,138,0.08);
}
.form-group:focus-within label { color: var(--rose); }

/* =============================================
   — CRÉNEAUX : layout 3 colonnes, slots 30min —
   ============================================= */
.hour-groups-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.hour-group {
    background: #fafafa;
    border: 1.5px solid var(--gris-clair);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.hour-group:hover { border-color: var(--rose-light); }
.hour-group.open {
    grid-column: span 3;
    border-color: var(--rose);
    background: white;
    box-shadow: 0 8px 24px rgba(232,81,138,0.08);
}

.hour-header {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Jost', sans-serif;
    color: var(--noir);
    transition: var(--transition);
}
.hour-header:hover { color: var(--rose); }
.hour-header small {
    color: var(--rose);
    font-size: 10px;
    transition: transform var(--transition);
    display: inline-block;
}
.hour-group.open .hour-header small { transform: rotate(180deg); }
.hour-group.open .hour-header { color: var(--rose); }

/* Grille intérieure : 2 colonnes (09:00 | 09:30) */
.minutes-grid {
    display: none;
    padding: 14px;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    background: white;
    border-top: 1px solid var(--gris-clair);
    animation: fadeDown 0.3s ease;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.hour-group.open .minutes-grid { display: grid; }

/* — Slot disponible — */
.sub-slot {
    padding: 14px 8px;
    border: 1.5px solid var(--gris-clair);
    border-radius: 10px;
    text-align: center;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    background: #fafafa;
    color: var(--noir);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 62px;
}
.sub-slot strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}
.sub-slot:hover:not(.booked):not(.insufficient) {
    border-color: var(--rose);
    background: var(--rose-pale);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,81,138,0.15);
}

/* — Slot sélectionné — */
.sub-slot.selected {
    background: linear-gradient(135deg, var(--rose), #d43d76) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 6px 18px rgba(232,81,138,0.4) !important;
    transform: translateY(-2px) !important;
}
.sub-slot.selected strong { color: white; }

/* — Slot complet (réservé) — */
.sub-slot.booked {
    background-color: #bdc3c7;
    color: rgb(255, 255, 255);
    cursor: not-allowed;
    pointer-events: none;
    border-color: transparent;
}

/* — Slot durée insuffisante — */
.sub-slot.insufficient {
    background-color: #ff4d4d;
    color: rgb(255, 255, 255);
    cursor: not-allowed;
    pointer-events: none;
    border-color: transparent;
}

/* — Texte d'état sous l'heure — */
.slot-info {
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 500;
    color: rgb(255, 255, 255);
}

/* — Récap — */
.summary {
    background: var(--noir);
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
.summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--or));
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.summary-item span:last-child { color: rgba(255,255,255,0.9); font-weight: 500; }
.summary-item:last-child {
    border: none;
    padding-top: 14px;
    margin-top: 4px;
    color: var(--rose-light);
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}
.summary-item:last-child span:last-child {
    color: var(--rose-light);
    font-size: 20px;
}
.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.summary-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--rose);
}

/* — Dépôt info — */
.deposit-info {
    background: linear-gradient(135deg, #fff9f0, #fff3e6);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 3px solid var(--or);
    line-height: 1.7;
}
.deposit-info strong { color: var(--gris); }

/* — Code promo — */
.promo-box {
    border: 1.5px dashed var(--rose-light);
    padding: 18px;
    border-radius: 12px;
    background: #fff9fc;
    margin-bottom: 20px;
    transition: var(--transition);
}
.promo-box.validated {
    border-color: #28a745;
    background: #f0fff4;
}
.promo-box label { color: var(--rose); }
.promo-row { display: flex; gap: 10px; align-items: stretch; }
.promo-row input { flex: 1; text-transform: uppercase; letter-spacing: 2px; }
.promo-verify-btn {
    flex: 0 0 auto !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--rose), #d43d76) !important;
    color: white !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    font-family: 'Jost', sans-serif !important;
    border: none !important;
    font-weight: 700 !important;
    height: auto !important;
    box-shadow: 0 4px 14px rgba(232,81,138,0.35) !important;
    transition: var(--transition) !important;
    text-transform: uppercase !important;
}
.promo-verify-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(232,81,138,0.5) !important;
}
#promoMessage { font-size: 11px; margin-top: 6px; font-weight: 600; letter-spacing: 0.5px; }

/* — Prix barré promo — */
.price-display { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.price-original {
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    text-decoration: line-through;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    animation: strikeIn 0.4s ease both;
}
@keyframes strikeIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}
.price-new {
    color: var(--rose-light);
    font-size: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    animation: priceIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes priceIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.price-badge {
    background: var(--rose);
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    animation: badgeIn 0.4s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes badgeIn {
    from { opacity: 0; transform: scale(0) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

/* — Paiement — */
.payment-options { display: flex; gap: 12px; }
.payment-label {
    border: 1.5px solid var(--gris-clair);
    padding: 13px 16px;
    flex: 1;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.payment-label:hover { border-color: var(--rose); background: var(--rose-pale); }
.payment-label input { display: none; }
.payment-label.selected {
    border-color: var(--rose);
    background: var(--rose-pale);
    color: var(--rose);
    box-shadow: 0 0 0 3px rgba(232,81,138,0.1);
}

#mvolaDetails {
    background: linear-gradient(135deg, #fff9f0, #fff3e6);
    padding: 15px 18px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 13px;
    border-left: 3px solid var(--or);
    line-height: 1.7;
    animation: fadeDown 0.3s ease;
}

/* — Téléphone — */
.phone-container { display: flex; gap: 10px; }
.country-code { flex: 0 0 130px; }

/* — Boutons — */
.btn-group { display: flex; gap: 12px; margin-top: 32px; }
button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-family: 'Jost', sans-serif;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--rose), #d43d76);
    color: white;
    box-shadow: 0 6px 20px rgba(232,81,138,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232,81,138,0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    border-radius: inherit;
}
.btn-secondary {
    background: transparent;
    color: var(--noir);
    border: 1.5px solid var(--gris-clair);
}
.btn-secondary:hover {
    border-color: var(--noir);
    background: var(--noir);
    color: white;
    transform: translateY(-2px);
}

/* — Chargement — */
.loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    border-radius: 24px;
}
.loading-overlay.visible { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.spinner {
    width: 36px; height: 36px;
    border: 2.5px solid var(--gris-clair);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose);
    font-weight: 500;
}

/* — Succès — */
.success-message { display: none; text-align: center; padding: 60px 30px; }
.success-message.active { display: block; animation: successIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes successIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
.success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c659);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    box-shadow: 0 8px 32px rgba(40,167,69,0.3);
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-message h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--noir);
    margin-bottom: 14px;
}
.success-message p { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: 32px; }

/* — Slots chargement — */
.slots-loading {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-size: 13px;
    letter-spacing: 1px;
}
.slots-loading .dots span {
    display: inline-block;
    animation: bounce 1.4s ease-in-out infinite;
    font-size: 20px;
    color: var(--rose);
}
.slots-loading .dots span:nth-child(2) { animation-delay: 0.2s; }
.slots-loading .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
}

/* — Responsive — */
@media (max-width: 580px) {
    .form-content { padding: 28px 20px; }
    .progress-bar { padding: 22px 20px; }
    .progress-bar::before, .progress-line { left: 20px; right: 20px; }
    .hour-groups-container { grid-template-columns: repeat(2, 1fr); }
    .hour-group.open { grid-column: span 2; }
    .phone-container { flex-direction: column; }
    .btn-group { flex-direction: column; }
    .header h1 { font-size: 18px; }
}