/* CLAQUE DOIGTS - STYLES GLOBAUX */

/* Header */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 32px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Barre de progression CORRIGÉE */
.progress-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    gap: 8px;
}

.progress-step {
    flex: 1;
}

.progress-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.progress-step-icon {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-gray);
    border-radius: 50%;
    background: var(--color-white);
}

.progress-step.completed .progress-step-icon {
    background: var(--color-green);
    border-color: var(--color-green);
    background-image: url('https://raw.githubusercontent.com/heylynncontact-cpu/claque-doigts/main/assets/icons/okay.svg');
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.progress-step.current .progress-step-icon {
    border-color: var(--color-green);
    border-width: 2px;
}

.progress-step-bar {
    height: 8px;
    background: var(--color-gray);
    border-radius: 8px;
    border: 1px solid #ccc;
    overflow: hidden;
}

.progress-step-bar-fill {
    height: 100%;
    background: var(--color-green);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 8px;
}

.progress-step.clickable {
    cursor: pointer;
}

.progress-step.clickable:hover .progress-step-label {
    color: var(--color-green);
}

/* Couleurs de header */
.header-pink { border-bottom-color: var(--color-pink); }
.header-purple { border-bottom-color: var(--color-purple); }
.header-blue { border-bottom-color: var(--color-blue); }

/* Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

.split-layout-content {
    display: flex;
    align-items: center;
    padding: 48px;
}

.split-layout-gradient {
    background-size: cover;
    background-position: center;
    display: block;
}

.full-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Home */
.home-content {
    max-width: 600px;
}

.home-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.icon-star {
    filter: brightness(0) saturate(100%) invert(72%) sepia(73%) saturate(407%) hue-rotate(27deg) brightness(105%) contrast(98%);
}

.home-description {
    font-size: 18px;
    color: var(--color-gray-dark);
    margin-bottom: 32px;
}

/* Section intro */
.section-intro {
    max-width: 600px;
}

.section-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.section-description {
    font-size: 16px;
    color: var(--color-gray-dark);
    margin-bottom: 32px;
}

.section-description p {
    margin-bottom: 16px;
}

/* Section content */
.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-question {
    margin-bottom: 48px;
}

.section-question-title {
    margin-bottom: 24px;
}

.section-question-title h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Page container */
.page-container {
    min-height: calc(100vh - 300px);
    padding-top: 0;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-title {
    font-size: 36px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.client-card {
    padding: 24px;
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius);
    background: var(--color-white);
}

.client-card-header {
    margin-bottom: 16px;
}

.client-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.client-card-company {
    font-size: 14px;
    color: var(--color-gray-dark);
}

.client-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-gray-dark);
    margin-bottom: 16px;
}

.client-card-actions {
    display: flex;
    gap: 8px;
}

/* Parcours */
.parcours-container {
    max-width: 1000px;
    margin: 0 auto;
}

.parcours-header {
    text-align: center;
    margin-bottom: 48px;
}

.parcours-header h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.parcours-subtitle {
    font-size: 16px;
    color: var(--color-gray-dark);
}

.etapes-wrapper {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
}

.etape-card {
    min-width: 400px;
    padding: 24px;
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius);
    background: var(--color-white);
}

.etape-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.etape-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    background: var(--color-green);
    border-radius: 16px;
}

.btn-add-step {
    min-width: 80px;
    height: 80px;
    border: 2px dashed var(--color-gray);
    border-radius: var(--border-radius);
    background: none;
    font-size: 48px;
    color: var(--color-gray-dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-step:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.btn-remove {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-gray-dark);
}

.btn-remove:hover {
    color: #FF4444;
}

/* Recap */
.recap-container {
    max-width: 1000px;
    margin: 0 auto;
}

.recap-title {
    font-size: 36px;
    margin: 16px 0;
}

.recap-description {
    font-size: 16px;
    color: var(--color-gray-dark);
    margin-bottom: 32px;
}

.recap-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

/* Responsive */
@media (max-width: 768px) {
    /* ===== FORCE CHARGEMENT FONT ===== */
    @import url('https://use.typekit.net/wdg2wjk.css');
    
    /* ===== PROGRESS BAR MOBILE - MASQUER TOUT SAUF LA BARRE ===== */
    .progress-bar-container {
        padding: 8px 16px !important;
        gap: 2px !important;
        background: white;
        overflow: hidden !important;
    }
    
    .progress-step {
        min-width: 0 !important;
        width: auto !important;
        padding: 0 !important;
        flex: 1;
    }
    
    /* MASQUER COMPLÈTEMENT les labels (rond + texte) */
    .progress-step-label {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .progress-step-icon {
        display: none !important;
        visibility: hidden !important;
    }
    
    .progress-step span {
        display: none !important;
        visibility: hidden !important;
        font-size: 0 !important;
        height: 0 !important;
    }
    
    /* GARDER seulement la barre */
    .progress-step-bar {
        display: block !important;
        visibility: visible !important;
        height: 4px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        background: var(--color-gray);
    }
    
    .progress-step-bar-fill {
        height: 4px !important;
    }
    
    /* ===== MASQUER TOUTES LES IMAGES (home + formulaire + intro) ===== */
    .split-layout-gradient {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .split-layout {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    
    .section-intro,
    .home-content,
    .split-layout-content {
        padding: 32px 24px;
        width: 100%;
    }
    
    /* ===== GRILLES - FORCER 1 COLONNE ULTRA AGRESSIF ===== */
    .choice-grid,
    .choice-grid-2,
    .choice-grid-3,
    .grid-2,
    .grid-3,
    [class*="choice-grid"],
    [class*="grid-"],
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    /* FORCER TOUTES LES CARTES À 100% */
    .choice-card,
    .choice-card[style],
    div.choice-card[style*="width"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
    }
    
    /* ===== TYPO FRACTUL PARTOUT - ULTRA AGRESSIF ===== */
    * {
        font-family: 'fractul', 'Fractul', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    html {
        font-family: 'fractul', 'Fractul', -apple-system, BlinkMacSystemFont, sans-serif !important;
    }
    
    body {
        font-family: 'fractul', 'Fractul', -apple-system, BlinkMacSystemFont, sans-serif !important;
    }
    
    .home-title,
    .section-title,
    h1, h2, h3, h4, h5, h6 {
        font-size: 28px !important;
        font-family: 'fractul', 'Fractul', -apple-system, sans-serif !important;
        font-weight: 600 !important;
    }
    
    .home-description,
    .section-description,
    .intro-text,
    p, span, div {
        font-size: 16px !important;
        font-family: 'fractul', 'Fractul', -apple-system, sans-serif !important;
    }
    
    /* ===== CLIENTS GRID ===== */
    .clients-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* ===== ÉTAPES PARCOURS ===== */
    .etape-card {
        min-width: 280px;
    }
    
    /* ===== PAGE RÉCAP - BOUTONS ===== */
    .recap-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .recap-actions .btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
    
    .recap-actions .btn-big {
        padding: 16px 24px !important;
    }
    
    /* ===== FORMULAIRES ===== */
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* ===== POPUPS ===== */
    .popup {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .popup-title,
    .popup-content,
    .popup-content p {
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .popup-actions .btn {
        width: 100%;
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
    
    /* ===== HEADER ===== */
    .header-content {
        padding: 12px 16px;
    }
    
    .header-logo {
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
    
    .header-logo img {
        height: 28px;
    }
    
    /* ===== DASHBOARD ===== */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .dashboard-title {
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
    
    .dashboard-header .btn {
        width: 100%;
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
    
    /* ===== TOUS LES ÉLÉMENTS ===== */
    .btn,
    button,
    input,
    textarea,
    select,
    label,
    .form-label,
    .badge,
    a {
        font-family: 'fractul', 'Fractul', sans-serif !important;
    }
}

