/**
 * Design Premium & Architecture CSS du Configurateur Cosmétique Aimie LCC
 */

:root {
    --alcc-primary: #1e293b;        /* Bleu nuit profond */
    --alcc-primary-light: #334155;  /* Bleu ardoise */
    --alcc-accent: #0f766e;         /* Sarcelle chic / Teal */
    --alcc-accent-light: #14b8a6;   /* Sarcelle lumineux */
    --alcc-success: #15803d;        /* Vert forêt premium */
    --alcc-success-light: #d1e7dd;  /* Vert de fond */
    --alcc-bg: #f8fafc;             /* Gris de fond très doux */
    --alcc-card-bg: #ffffff;
    --alcc-border: #e2e8f0;         /* Bordure fine */
    --alcc-text: #0f172a;           /* Texte sombre */
    --alcc-text-muted: #64748b;     /* Texte atténué */
    --alcc-radius-sm: 6px;
    --alcc-radius-md: 12px;
    --alcc-radius-lg: 20px;
    --alcc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --alcc-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

.alcc-spa-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: var(--alcc-bg);
    border-radius: var(--alcc-radius-lg);
    box-shadow: var(--alcc-shadow);
    color: var(--alcc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.alcc-spa-container * {
    box-sizing: border-box;
}

/* --- STEPPER PREMIUM --- */
.alcc-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.alcc-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--alcc-border);
    z-index: 1;
}

.alcc-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--alcc-bg);
    padding: 0 10px;
}

.alcc-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--alcc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 3px solid var(--alcc-bg);
    transition: all 0.3s ease;
}

.alcc-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--alcc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.alcc-step.active .alcc-step-number {
    background: var(--alcc-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.alcc-step.active .alcc-step-label {
    color: var(--alcc-accent);
}

/* --- TITRES --- */
.alcc-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--alcc-primary);
    margin: 0 0 8px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.alcc-section-subtitle {
    font-size: 15px;
    color: var(--alcc-text-muted);
    margin: 0 0 35px 0;
    text-align: center;
}

.alcc-subsection-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--alcc-primary);
    margin: 30px 0 15px 0;
    border-top: 1px solid var(--alcc-border);
    padding-top: 25px;
}

/* --- GRILLES DE CARTES --- */
.alcc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media(max-width: 768px) {
    .alcc-grid-2 {
        grid-template-columns: 1fr;
    }
}

.alcc-card-option {
    background: var(--alcc-card-bg);
    border: 2px solid var(--alcc-border);
    border-radius: var(--alcc-radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--alcc-shadow);
}

.alcc-card-option:hover {
    border-color: var(--alcc-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--alcc-shadow-hover);
}

.alcc-card-option.active {
    border-color: var(--alcc-accent);
    background: rgba(15, 118, 110, 0.02);
}

.alcc-card-option.active::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--alcc-accent);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.alcc-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.alcc-card-option h3, .alcc-card-option h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--alcc-primary);
}

.alcc-card-option p {
    margin: 0;
    font-size: 13px;
    color: var(--alcc-text-muted);
    line-height: 1.5;
}

/* --- SECTION STRUCTURES --- */
.alcc-section {
    display: none;
}

.alcc-section.active {
    display: block;
    animation: alccFadeIn 0.35s ease;
}

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

/* --- BOUTONS --- */
.alcc-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--alcc-radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.alcc-btn-primary {
    background: var(--alcc-accent);
    color: #ffffff;
}

.alcc-btn-primary:hover {
    background: #0d635c;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.alcc-btn-primary:disabled {
    background: var(--alcc-text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.alcc-btn-secondary {
    background: #e2e8f0;
    color: var(--alcc-primary-light);
}

.alcc-btn-secondary:hover {
    background: #cbd5e1;
}

.alcc-btn-block {
    display: flex;
    width: 100%;
    margin-top: 15px;
}

.alcc-footer-nav {
    display: flex;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--alcc-border);
}

.alcc-footer-nav.align-right {
    justify-content: flex-end;
}

.alcc-footer-nav.space-between {
    justify-content: space-between;
}

/* --- ÉTAPE 2 : MATRICE DESIGN --- */
.alcc-matrix-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
}

@media(max-width: 900px) {
    .alcc-matrix-grid {
        grid-template-columns: 1fr;
    }
}

.alcc-matrix-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.alcc-control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alcc-control-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--alcc-primary);
}

/* 1. Radio Cards Livrable */
.alcc-radio-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alcc-radio-card {
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: var(--alcc-radius-sm);
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.2s;
}

.alcc-radio-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--alcc-accent);
}

.alcc-radio-content {
    display: flex;
    flex-direction: column;
}

.alcc-radio-content strong {
    font-size: 14px;
    color: var(--alcc-primary);
}

.alcc-radio-content span {
    font-size: 12px;
    color: var(--alcc-text-muted);
    margin-top: 2px;
}

.alcc-radio-card:hover {
    border-color: var(--alcc-accent-light);
    background: rgba(15, 118, 110, 0.01);
}

/* 2. Boutons bascule */
.alcc-toggle-buttons {
    display: flex;
    gap: 10px;
}

.alcc-toggle-btn {
    flex: 1;
    background: #fff;
    border: 1px solid var(--alcc-border);
    padding: 10px;
    border-radius: var(--alcc-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--alcc-text-muted);
    transition: all 0.2s;
}

.alcc-toggle-btn.active {
    background: var(--alcc-accent);
    color: #fff;
    border-color: var(--alcc-accent);
}

/* 3. Segmented Control */
.alcc-segmented-control {
    display: flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: var(--alcc-radius-sm);
}

.alcc-segment {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.alcc-segment input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.alcc-segment span {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--alcc-text-muted);
    border-radius: var(--alcc-radius-sm);
    transition: all 0.2s;
}

.alcc-segment input[type="radio"]:checked + span {
    background: #fff;
    color: var(--alcc-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 4. Range Slider */
.alcc-slider-wrap {
    padding: 10px 0;
}

.alcc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}

.alcc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--alcc-accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.1s;
}

.alcc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.alcc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--alcc-text-muted);
    font-weight: 600;
}

/* 5. Checkbox standard */
.alcc-checkbox-wrap {
    margin-top: 10px;
    background: #f1f5f9;
    padding: 14px;
    border-radius: var(--alcc-radius-sm);
    border-left: 4px solid var(--alcc-accent);
}

.alcc-checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.4;
    user-select: none;
    color: var(--alcc-primary);
}

.alcc-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.alcc-checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: 4px;
    transition: all 0.2s;
}

.alcc-checkbox-container:hover input ~ .alcc-checkmark {
    border-color: var(--alcc-accent);
}

.alcc-checkbox-container input:checked ~ .alcc-checkmark {
    background-color: var(--alcc-accent);
    border-color: var(--alcc-accent);
}

.alcc-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.alcc-checkbox-container input:checked ~ .alcc-checkmark:after {
    display: block;
}

.alcc-checkbox-container .alcc-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.alcc-checkbox-hint {
    margin: 5px 0 0 28px;
    font-size: 11.5px;
    color: var(--alcc-text-muted);
}

/* --- RÉCAPITULATIF STICKY --- */
.alcc-sticky-card {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: var(--alcc-radius-md);
    padding: 24px;
    box-shadow: var(--alcc-shadow);
}

.alcc-sticky-card h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--alcc-primary);
    border-bottom: 1px solid var(--alcc-border);
    padding-bottom: 10px;
}

.alcc-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: var(--alcc-text-muted);
}

.alcc-price-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--alcc-border);
}

.alcc-price-total .alcc-price-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--alcc-primary);
}

.alcc-price-total .alcc-price-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--alcc-accent);
}

.alcc-price-note {
    font-size: 10px;
    color: var(--alcc-text-muted);
    margin: 15px 0 0 0;
    line-height: 1.4;
}

/* --- FORMULAIRES GENERIQUES --- */
.alcc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alcc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alcc-form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--alcc-primary);
}

.alcc-input, .alcc-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--alcc-radius-sm);
    border: 1px solid var(--alcc-border);
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: all 0.2s;
}

.alcc-input:focus, .alcc-textarea:focus {
    border-color: var(--alcc-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* --- TUNNEL DE PAIEMENT --- */
.alcc-checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

@media(max-width: 900px) {
    .alcc-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.alcc-payment-card {
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: var(--alcc-radius-md);
    padding: 24px;
    box-shadow: var(--alcc-shadow);
}

.alcc-payment-card h3 {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--alcc-primary);
}

.alcc-recap-table {
    background: #f8fafc;
    border-radius: var(--alcc-radius-sm);
    padding: 16px;
    margin-bottom: 25px;
}

.alcc-recap-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--alcc-text-muted);
}

.alcc-recap-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    border-top: 1px dashed var(--alcc-border);
    padding-top: 10px;
    margin-top: 10px;
    color: var(--alcc-primary);
}

.alcc-recap-total strong {
    color: var(--alcc-accent);
    font-size: 16px;
}

.alcc-payment-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--alcc-primary);
    margin: 0 0 12px 0;
}

.alcc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.alcc-payment-method {
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: var(--alcc-radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.alcc-payment-method input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--alcc-accent);
}

.alcc-payment-method.active {
    border-color: var(--alcc-accent);
    background: rgba(15, 118, 110, 0.01);
}

.alcc-payment-gateways {
    background: #f8fafc;
    border: 1px solid var(--alcc-border);
    border-radius: var(--alcc-radius-sm);
    padding: 16px;
}

.alcc-gateway-desc {
    font-size: 11.5px;
    color: var(--alcc-text-muted);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Stripe elements */
.alcc-stripe-input {
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

.alcc-error-message {
    color: #b32d2e;
    background: #fdf2f2;
    border: 1px solid #f8b4b4;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

/* Virement bancaire details */
.alcc-bank-details {
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

.alcc-bank-details p {
    margin: 0 0 6px 0;
    font-size: 12.5px;
}

.alcc-bank-details p:last-child {
    margin-bottom: 0;
}

.alcc-bank-note {
    font-size: 10.5px !important;
    color: var(--alcc-text-muted);
    margin-top: 8px !important;
}

/* --- ECRAN DE SUCCÈS --- */
.alcc-success-card {
    background: #fff;
    border: 1px solid var(--alcc-border);
    border-radius: var(--alcc-radius-md);
    padding: 40px;
    text-align: center;
    box-shadow: var(--alcc-shadow);
}

.alcc-success-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.alcc-success-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--alcc-primary);
    margin: 0 0 10px 0;
}

.alcc-success-desc {
    font-size: 14.5px;
    color: var(--alcc-text-muted);
    margin: 0 auto 25px auto;
    max-width: 600px;
    line-height: 1.5;
}

.alcc-success-details {
    background: #f8fafc;
    border-radius: var(--alcc-radius-sm);
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.alcc-success-details h3 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--alcc-text-muted);
    letter-spacing: 0.05em;
}

.alcc-success-details p {
    margin: 0 0 8px 0;
    font-size: 13.5px;
}

.alcc-success-details p:last-child {
    margin-bottom: 0;
}

.alcc-success-next {
    font-size: 13px;
    color: var(--alcc-primary-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    background: rgba(15, 118, 110, 0.03);
    padding: 15px;
    border-radius: var(--alcc-radius-sm);
}

/* --- LOADER D'APPLICATIONS --- */
.alcc-loader {
    font-size: 12px;
    color: var(--alcc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    font-weight: 600;
}

.alcc-loader::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid var(--alcc-border);
    border-top-color: var(--alcc-accent);
    border-radius: 50%;
    animation: alccRotate 0.6s linear infinite;
}

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

/* --- UTILS --- */
.alcc-hidden {
    display: none !important;
}
