from pathlib import Path

css = r'''/* =========================================================
   HVSR - Assistant d'hébergement
   Fichier : assets/css/assistant.css
   ========================================================= */


/* =========================================================
   1. PAGE GÉNÉRALE
   ========================================================= */

.assistant-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(0, 87, 184, 0.08),
            transparent 35%
        ),
        #f7faff;
}


/* =========================================================
   2. HERO
   ========================================================= */

.assistant-hero {
    padding: 80px 20px 45px;

    text-align: center;
}

.assistant-hero-content {
    max-width: 850px;

    margin: 0 auto;
}

.assistant-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    padding: 8px 16px;

    border: 1px solid rgba(0, 87, 184, 0.16);
    border-radius: 999px;

    background: rgba(0, 87, 184, 0.08);

    color: #0057b8;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.assistant-hero h1 {
    margin: 0;

    color: #003b73;

    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

.assistant-hero p {
    max-width: 700px;

    margin: 22px auto 0;

    color: #64748b;

    font-size: 19px;
    line-height: 1.7;
}


/* =========================================================
   3. CONTENEUR PRINCIPAL
   ========================================================= */

.assistant-section {
    padding: 0 20px 90px;
}

.assistant-wrapper {
    max-width: 980px;

    margin: 0 auto;
}


/* =========================================================
   4. BARRE DE PROGRESSION
   ========================================================= */

.assistant-progress {
    position: relative;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-bottom: 28px;

    padding: 0 10px;
}

.progress-line {
    position: absolute;

    top: 23px;
    left: 17%;
    right: 17%;

    height: 4px;

    overflow: hidden;

    border-radius: 999px;

    background: #dbe5f0;
}

.progress-line-fill {
    width: 0;
    height: 100%;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #0057b8,
        #1a83f7
    );

    transition: width 0.35s ease;
}

.progress-step {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    color: #94a3b8;

    text-align: center;
}

.progress-step span {
    display: flex;

    width: 48px;
    height: 48px;

    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border: 4px solid #eef4fb;
    border-radius: 50%;

    background: #dbe5f0;

    color: #64748b;

    font-size: 16px;
    font-weight: 800;

    box-shadow: 0 0 0 4px #f7faff;

    transition: all 0.3s ease;
}

.progress-step strong {
    font-size: 14px;
    font-weight: 700;
}

.progress-step.active,
.progress-step.completed {
    color: #0057b8;
}

.progress-step.active span,
.progress-step.completed span {
    border-color: #cfe5ff;

    background: #0057b8;

    color: #ffffff;
}


/* =========================================================
   5. BLOC FORMULAIRE
   ========================================================= */

.assistant-form {
    overflow: hidden;

    border: 1px solid #e4ebf3;
    border-radius: 26px;

    background: #ffffff;

    box-shadow: 0 24px 70px rgba(15, 44, 78, 0.12);
}


/* =========================================================
   6. ÉTAPES DU FORMULAIRE
   ========================================================= */

.form-step {
    display: none;

    padding: 42px;

    animation: assistantFade 0.35s ease;
}

.form-step.active {
    display: block;
}

@keyframes assistantFade {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   7. EN-TÊTE DES ÉTAPES
   ========================================================= */

.step-heading {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    margin-bottom: 34px;
}

.step-icon {
    display: flex;

    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #e7f2ff,
        #f3f8ff
    );

    font-size: 27px;
}

.step-label {
    margin: 0 0 5px;

    color: #0057b8;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.step-heading h2 {
    margin: 0;

    color: #12304e;

    font-size: 29px;
    line-height: 1.25;
}

.step-heading p:last-child {
    margin: 9px 0 0;

    color: #64748b;

    line-height: 1.65;
}


/* =========================================================
   8. GRILLE DU FORMULAIRE
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.form-group {
    display: flex;

    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   9. LABELS
   ========================================================= */

.form-group label {
    margin-bottom: 9px;

    color: #27415c;

    font-size: 15px;
    font-weight: 700;
}

.form-group label span {
    color: #e11d48;
}


/* =========================================================
   10. CHAMPS DU FORMULAIRE
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #d7e1ec;
    border-radius: 13px;

    outline: none;

    background: #fbfdff;

    color: #1e293b;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    min-height: 52px;

    padding: 0 15px;
}

.form-group textarea {
    min-height: 160px;

    padding: 15px;

    resize: vertical;

    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a83f7;

    background: #ffffff;

    box-shadow: 0 0 0 4px rgba(26, 131, 247, 0.11);
}


/* =========================================================
   11. CARTES DE CHOIX
   ========================================================= */

.choice-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.choice-card {
    position: relative;

    display: block;

    margin: 0 !important;

    cursor: pointer;
}

.choice-card input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.choice-content {
    display: flex;

    min-height: 94px;

    flex-direction: column;

    justify-content: center;

    padding: 19px;

    border: 1px solid #d7e1ec;
    border-radius: 15px;

    background: #fbfdff;

    transition: all 0.2s ease;
}

.choice-content strong {
    margin-bottom: 5px;

    color: #193a59;

    font-size: 17px;
}

.choice-content small {
    color: #718096;

    font-size: 14px;
    font-weight: 500;
}

.choice-card:hover .choice-content {
    border-color: #8fc2fb;

    background: #f5faff;
}

.choice-card input:checked + .choice-content {
    border-color: #0057b8;

    background: #edf6ff;

    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.10);
}


/* =========================================================
   12. BLOC D'INFORMATION
   ========================================================= */

.assistant-information {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-top: 28px;

    padding: 18px 20px;

    border: 1px solid #d7e9fc;
    border-radius: 15px;

    background: #f2f8ff;
}

.information-icon {
    flex: 0 0 auto;

    font-size: 22px;
}

.assistant-information p {
    margin: 0;

    color: #44617d;

    line-height: 1.65;
}


/* =========================================================
   13. ZONE DES BOUTONS
   ========================================================= */

.form-actions {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-top: 38px;

    padding-top: 28px;

    border-top: 1px solid #e7edf4;
}

.form-actions-right {
    justify-content: flex-end;
}


/* =========================================================
   14. BOUTONS
   ========================================================= */

.btn-next,
.btn-back,
.btn-submit {
    display: inline-flex;

    min-height: 52px;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: none;
    border-radius: 13px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-next,
.btn-submit {
    padding: 0 24px;

    background: linear-gradient(
        135deg,
        #0057b8,
        #1478df
    );

    color: #ffffff;

    box-shadow: 0 12px 25px rgba(0, 87, 184, 0.22);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);

    box-shadow: 0 16px 30px rgba(0, 87, 184, 0.28);
}

.btn-back {
    padding: 0 21px;

    border: 1px solid #d4dee9;

    background: #ffffff;

    color: #425b74;
}

.btn-back:hover {
    background: #f4f8fc;

    transform: translateY(-2px);
}

.btn-submit {
    min-width: 315px;
}


/* =========================================================
   15. ERREURS DE VALIDATION
   ========================================================= */

.input-error {
    border-color: #dc2626 !important;

    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09) !important;
}


/* =========================================================
   16. RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 760px) {

    .assistant-hero {
        padding-top: 55px;
    }

    .assistant-hero p {
        font-size: 17px;
    }

    .assistant-progress {
        padding: 0;
    }

    .progress-line {
        left: 18%;
        right: 18%;
    }

    .progress-step strong {
        font-size: 12px;
    }

    .form-step {
        padding: 28px 20px;
    }

    .step-heading {
        gap: 13px;
    }

    .step-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        border-radius: 14px;

        font-size: 23px;
    }

    .step-heading h2 {
        font-size: 24px;
    }

    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-next,
    .btn-back,
    .btn-submit {
        width: 100%;

        min-width: 0;
    }

}


/* =========================================================
   17. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .assistant-section {
        padding-right: 12px;
        padding-left: 12px;
    }

    .assistant-progress {
        margin-bottom: 20px;
    }

    .progress-step span {
        width: 42px;
        height: 42px;
    }

    .progress-line {
        top: 20px;
    }

    .progress-step strong {
        display: none;
    }

    .assistant-form {
        border-radius: 20px;
    }

}
'''

path = Path("/mnt/data/assistant.css")
path.write_text(css, encoding="utf-8")

print(path)
print(f"{len(css.splitlines())} lignes")


/* =====================================================
   HVSR - Assistant Housing - Mise en page premium
   ===================================================== */


/* Conteneur principal */

.housing-layout {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 330px;

    gap: 40px;

    align-items: start;

}



/* Colonne droite */

.housing-sidebar {

    position: sticky;

    top: 30px;

}



/* Encart bleu HVSR */

.housing-side-card {

    background: linear-gradient(
        135deg,
        #003b73,
        #0057b8
    );

    color: white;

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.15);

    margin-bottom: 25px;

}



.housing-side-card h3 {

    color: white;

    font-size: 24px;

    margin-bottom: 18px;

}



.housing-side-card p {

    color: #e0efff;

    line-height: 1.7;

}



/* Liste dans l'encart */

.housing-side-card ul {

    list-style: none;

    padding: 0;

    margin-top: 25px;

}



.housing-side-card li {

    margin-bottom: 15px;

    font-size: 16px;

}



/* Encart aide */

.housing-help-card {

    background: #ffffff;

    border-radius: 18px;

    padding: 28px;

    border: 2px solid #dbeafe;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);

}



.housing-help-card h3 {

    color: #003b73;

    margin-bottom: 15px;

}



.housing-help-card p {

    color: #475569;

    line-height: 1.7;

}



/* Bloc formulaire */

.housing-form-card {

    background: white;

    border-radius: 18px;

    padding: 35px;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.08);

}



/* Responsive */

@media(max-width: 1000px) {


    .housing-layout {

        grid-template-columns: 1fr;

    }


    .housing-sidebar {

        position: static;

        order: 2;

    }


}

/* =====================================================
   HVSR - Cases à cocher assistant Housing
   ===================================================== */


.checkbox-group {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px 20px;

    margin-top: 15px;

}



.checkbox-group label {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    background: #f8fafc;

    border: 1px solid #dbeafe;

    border-radius: 10px;

    cursor: pointer;

    color: #334155;

    font-size: 15px;

    transition: all 0.2s ease;

}



.checkbox-group label:hover {

    background: #eff6ff;

    border-color: #0057b8;

}



.checkbox-group input[type="checkbox"] {

    width: 18px;

    height: 18px;

    margin: 0;

    accent-color: #0057b8;

    flex-shrink: 0;

}
