/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f7;
    padding-top: 130px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    height: 56px;
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link { text-decoration: none; }

.logo-text {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.logo-m {
    color: rgba(110,70,230,0.9);
    text-shadow: 0 0 8px rgba(100,60,220,0.55), 0 0 20px rgba(100,60,220,0.25);
    font-weight: 500;
}

nav {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #888;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s;
}

nav a:hover { color: #1a1a1a; }

/* ============================================
   TIMELINE
   ============================================ */
.progress-container {
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    z-index: 999;
    padding: 1.25rem 2rem;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.tl-line-bg {
    position: absolute;
    top: 14px; left: 28px; right: 28px;
    height: 1px;
    background: #ececec;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.progress-step.active .step-number {
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(90,60,220,0.45), 0 0 12px rgba(90,60,220,0.30);
}

.step-label {
    font-size: 11px;
    color: #ccc;
    white-space: nowrap;
    font-weight: 400;
}

.progress-step.active .step-label {
    color: #1a1a1a;
    font-weight: 500;
}

.progress-line { display: none; }

/* ============================================
   CONTENU
   ============================================ */
.step-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

.step-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.step-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.step-header p {
    font-size: 13px;
    color: #aaa;
}

/* ============================================
   ACCORDEON CATEGORIES
   ============================================ */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.category-item {
    background: white;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(90,60,220,0.08);
    transition: box-shadow 0.2s;
}

.category-item.active {
    box-shadow: 0 4px 14px rgba(90,60,220,0.18);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    border-radius: 16px;
    transition: background 0.12s;
}

.category-item.active .category-header {
    border-radius: 16px 16px 0 0;
}

.category-header:hover { background: #fafafa; }

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon-wrap {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.category-arrow {
    font-size: 10px;
    color: #ccc;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.category-item.active .category-arrow { transform: rotate(180deg); }

/* ============================================
   SOUS-CATEGORIES
   ============================================ */
.subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-radius: 0 0 16px 16px;
    background: white;
}

.category-item.active .subcategories {
    max-height: 600px;
    border-top: 1px solid #f2f2f2;
}

.subcategory-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    background: white;
    border-bottom: 1px solid #f7f7f7;
    transition: background 0.12s, box-shadow 0.2s, color 0.12s;
}

.subcategory-option:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.subcategory-option:hover {
    background: #fafafa;
    color: #1a1a1a;
}

.subcategory-option.selected {
    color: #1a1a1a;
    font-weight: 500;
    background: white;
    box-shadow:
        inset 4px 0 0 rgba(90,60,220,0.55),
        -6px 0 12px -4px rgba(90,60,220,0.35);
}

.subcategory-name { pointer-events: none; }

.check-icon {
    font-size: 11px;
    color: rgba(90,60,220,0.7);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.subcategory-option.selected .check-icon { opacity: 1; }

/* ============================================
   BOUTON CONTINUER
   ============================================ */
.continue-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(90,60,220,0.22);
    transition: box-shadow 0.2s, opacity 0.2s;
}

.continue-button:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(90,60,220,0.35);
    opacity: 0.85;
}

.continue-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    padding-bottom: 1rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: white;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(90,60,220,0.10);
    transition: box-shadow 0.2s, color 0.2s;
}

.back-button:hover {
    box-shadow: 0 4px 14px rgba(90,60,220,0.22);
    color: #1a1a1a;
}

.back-to-generation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: white;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(90,60,220,0.10);
    transition: box-shadow 0.2s, color 0.2s;
}

.back-to-generation:hover {
    box-shadow: 0 4px 14px rgba(90,60,220,0.22);
    color: #1a1a1a;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0f0f0f;
    margin-top: 1rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2.5rem 0;
    display: block !important;
}

.footer-top {
    display: flex;
    gap: 2rem;
    padding-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1.4;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo-text {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-logo-m {
    color: rgba(110,70,230,0.9);
    text-shadow: 0 0 8px rgba(100,60,220,0.55), 0 0 20px rgba(100,60,220,0.25);
    font-weight: 400;
}

.footer-logo-rest { color: rgba(255,255,255,0.85); }

.footer-tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    max-width: 220px;
}

.footer-col {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1;
}

.footer-link:hover { color: rgba(255,255,255,0.75); }

.footer-stripe { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-stripe strong { color: rgba(255,255,255,0.6); font-weight: 500; }

.footer-divider-wrap {
    position: relative;
    height: 1px;
    margin: 0 -2.5rem;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.footer-divider-glow {
    position: absolute;
    top: 0; left: 10%;
    width: 30%;
    height: 1px;
    background: rgba(100,60,220,0.4);
    box-shadow: 0 0 6px 2px rgba(100,60,220,0.35), 0 0 16px 4px rgba(100,60,220,0.15);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy { font-size: 11px; color: rgba(255,255,255,0.18); }

.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-bottom-link {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom-link:hover { color: rgba(255,255,255,0.5); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body { padding-top: 120px; }
    header .container { padding: 0 1.25rem; }
    .progress-container { padding: 1rem 1.25rem; }
    .step-content { padding: 1rem; }
    .footer .container { padding: 2rem 1.25rem 0; }
    .footer-top { gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .footer-divider-wrap { margin: 0 -1.25rem; }
}

@media (max-width: 480px) {
    .step-label { font-size: 9px; }
}