:root {
    /* Palette OKLCH — chroma tinted vers hudayi-green */
    --hudayi-green: oklch(0.467 0.131 152.5);
    --hudayi-green-soft: oklch(0.62 0.10 152.5);
    --hudayi-gold: oklch(0.70 0.107 79.4);
    --surface-cream: oklch(0.97 0.006 78);
    --surface-tinted: oklch(0.94 0.012 152.5);
    --ink: oklch(0.25 0.012 152.5);
    --ink-muted: oklch(0.45 0.010 152.5);
    --border: oklch(0.88 0.008 152.5);

    /* Typography stacks */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.5rem;
    --space-6: 4rem;
    --space-7: 6rem;
    --space-8: 8rem;
    --space-9: 10rem;
}

body {
    background-color: var(--surface-cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-feature-settings: 'cv11', 'ss01';
    line-height: 1.65;
}

/* Brand bar */
.brand-bar {
    background-color: var(--surface-cream);
    border-bottom: 1px solid var(--border);
    color: var(--ink);
}
.brand-accent { color: var(--hudayi-gold); }

/* ===== Inscription form (modernised) ===== */

.card-soft {
    background-color: oklch(1 0 0);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 2px oklch(0 0 0 / 0.03);
    transition: box-shadow 200ms ease-out;
}
.card-soft:focus-within {
    box-shadow: 0 4px 16px oklch(0.467 0.131 152.5 / 0.08);
    border-color: var(--hudayi-green-soft);
}

.eyebrow-step {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--hudayi-gold);
    letter-spacing: 0.02em;
}

.form-section .form-control,
.form-section .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: oklch(0.99 0.003 78);
    transition: border-color 150ms, box-shadow 150ms;
}
.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--hudayi-green);
    box-shadow: 0 0 0 3px oklch(0.467 0.131 152.5 / 0.12);
    background-color: oklch(1 0 0);
    outline: none;
}

/* Payment summary (single SumUp option) */
.payment-summary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1.5px solid var(--hudayi-green);
    border-radius: 10px;
    background-color: oklch(0.467 0.131 152.5 / 0.04);
}
.payment-summary__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: oklch(1 0 0);
    color: var(--hudayi-green);
    border: 1px solid oklch(0.467 0.131 152.5 / 0.2);
}
.payment-summary__title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.payment-summary__help {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Payment radio cards (kept for future multi-provider) */
.payment-card {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
    position: relative;
}
.payment-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.payment-card__inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background-color: oklch(0.99 0.003 78);
    transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
    height: 100%;
}
.payment-card:hover .payment-card__inner {
    border-color: var(--hudayi-green-soft);
    background-color: oklch(1 0 0);
}
.payment-card__input:checked + .payment-card__inner {
    border-color: var(--hudayi-green);
    background-color: oklch(1 0 0);
    box-shadow: 0 0 0 3px oklch(0.467 0.131 152.5 / 0.12);
}
.payment-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.payment-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
}
.payment-card__badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background-color: oklch(0.467 0.131 152.5 / 0.1);
    color: var(--hudayi-green);
}
.payment-card__help {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.45;
}

/* Locale switcher (FR/TR) */
.locale-switcher .nav-link {
    color: var(--ink-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 150ms ease-out;
}
.locale-switcher .nav-link:hover {
    color: var(--ink);
}
.locale-switcher .nav-link.fw-bold {
    color: var(--ink);
}

/* Editorial typography */
.display-1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3.75rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.display-2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.display-3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--ink);
}
.eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hudayi-gold);
    margin-bottom: var(--space-3);
}
.eyebrow-muted {
    color: var(--ink-muted);
}

/* Lead paragraph */
.lead {
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 60ch;
}

/* Sections */
.section {
    padding-block: var(--space-7);
}
.section-tinted {
    background-color: var(--surface-tinted);
}
@media (min-width: 768px) {
    .section { padding-block: var(--space-8); }
}

/* Buttons (override Bootstrap subtly) */
.btn-primary {
    background-color: var(--hudayi-green);
    border-color: var(--hudayi-green);
    color: oklch(0.98 0 0);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: oklch(0.42 0.131 152.5);
    border-color: oklch(0.42 0.131 152.5);
    color: oklch(0.98 0 0);
}
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}
.btn-ghost:hover {
    color: var(--hudayi-green);
}

/* Class card */
.classe-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-5);
    background: var(--surface-cream);
    transition: border-color 200ms ease-out;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    height: 100%;
}
.classe-card:hover {
    border-color: var(--hudayi-green);
}
.classe-card__tarif {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--ink);
}
.classe-card__cta {
    color: var(--hudayi-green);
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
}
.classe-card__cta:hover {
    text-decoration: underline;
}

/* Step number */
.step-number {
    font-family: var(--font-display);
    font-weight: 200;
    font-size: 5rem;
    line-height: 1;
    color: var(--hudayi-gold);
    opacity: 0.6;
}

/* Login split-screen */
.auth-split { min-height: 100vh; }
.auth-panel-left {
    background-color: var(--surface-tinted);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-panel-right {
    background-color: var(--surface-cream);
    padding: var(--space-6) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-motif {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-5);
    width: 80px;
    color: var(--hudayi-gold);
    opacity: 0.3;
}

/* Footer */
.site-footer {
    background-color: var(--surface-cream);
    border-top: 1px solid var(--border);
    padding-block: var(--space-6);
    color: var(--ink);
}
.site-footer__heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: var(--space-3);
}
.site-footer__link {
    color: var(--ink);
    text-decoration: none;
    display: block;
    padding-block: var(--space-1);
}
.site-footer__link:hover { color: var(--hudayi-green); }

/* Mobile responsive */
@media (max-width: 767px) {
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2rem; }
    .auth-panel-left { padding: var(--space-5) var(--space-4); min-height: 200px; }
    .auth-motif { width: 50px; }
}

/* ============================================================
 * Inscription form — hero star + step progress indicator
 * ============================================================ */

.inscription-hero__star {
    display: block;
    margin: 0 auto;
    color: var(--hudayi-gold);
}

.inscription-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-5);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    counter-reset: step;
}

.inscription-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-muted);
    position: relative;
}

.inscription-steps li::before {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: var(--space-2);
    height: 1px;
    background: var(--border);
    transform: translateY(-50%);
}

.inscription-steps li:last-child::before {
    display: none;
}

.inscription-steps .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hudayi-green) 12%, transparent);
    color: var(--hudayi-green);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inscription-steps .lbl {
    font-weight: 500;
    color: var(--ink);
}

@media (max-width: 640px) {
    .inscription-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .inscription-steps li::before { display: none; }
    .inscription-steps .lbl { font-size: 11.5px; }
}
