
/* =============================================================================
 *  LAYOUT 2 COLONNES
 * ============================================================================= */
.cst-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 60px;
}
/* =============================================================================
 *  COLONNE IMAGE
 * ============================================================================= */
.cst-image-col {
    position: sticky;
    top: 100px;
}
.cst-image-wrapper {
    background: #F9F9F9;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 20px;
    text-align: center;
}

.cst-cube-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Espace entre le cube et le texte */
}

/* Image du cube */
.cst-cube-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Conteneur des textes */
.cst-placeholder-texts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* "Visuel indisponible" */
.cst-placeholder-title {
    font-family: "gilroymedium", sans-serif;
    font-size: 1.8rem;
    color: #2D3339;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
/* =============================================================================
 * COLONNE FORMULAIRE
 * ============================================================================= */
.cst-form-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
}
.cst-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cst-title {
    font-family: "gilroymedium", sans-serif;
    font-size: 1.5rem;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.2;
}
.cst-stepper-wrapper .stepper {
    width: 100%;
    justify-content: stretch;
}
.cst-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.cst-section-title {
    font-family: "gilroymedium", sans-serif;
    font-size: 1rem;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.4;
}

/* =============================================================================
 *  LISTE DE FICHIERS UPLOADÉS
 * ============================================================================= */

/* Alerte globale */
.cst-files-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: "gilroymedium", sans-serif;
    margin-bottom: 8px;
}
.cst-files-alert .material-icons { font-size: 18px; flex-shrink: 0; }
.cst-files-alert--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}

.cst-file-item--valide       .cst-file-icon { color: #1A7A4A; }
.cst-file-item--verification .cst-file-icon { color: #F59E0B; }
.cst-file-item--refuse       .cst-file-icon { color: #DC2626; }

/* Groupe nom + badge sur la même ligne */

.cst-files-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    min-width: 0;
    overflow: hidden;
}


/* Badge statut */
.cst-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: "gilroymedium", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cst-file-badge .material-icons { font-size: 13px; }
.cst-file-badge--valide       { background: #EDFDF5; border: 1px solid #1A7A4A; color: #1A7A4A; }
.cst-file-badge--verification { background: #FEFCE8; border: 1px solid #F59E0B; color: #B45309; }
.cst-file-badge--refuse       { background: #FEF2F2; border: 1px solid #DC2626; color: #DC2626; }


.cst-file-action-btn.cst-file-remove:hover {
    background-color: #DC2626;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

/* Motif de refus */
.cst-file-motif {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #FEF2F2;
    border-radius: 6px;
    border-left: 3px solid #DC2626;
}
.cst-file-motif .material-icons { font-size: 15px; color: #DC2626; flex-shrink: 0; margin-top: 1px; }
.cst-file-motif span { font-size: 0.82rem; color: #DC2626; line-height: 1.4; }

@media only screen and (max-width: 768px) {
    .cst-file-badge {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
    .cst-file-badge .material-icons { font-size: 12px; }
}
/* =============================================================================
 *  INFO BOXES (délai + avertissement)
 * ============================================================================= */
.cst-deadline-boxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cst-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.cst-info-box .material-icons {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.cst-info-box div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cst-info-box strong {
    font-family: "gilroymedium", sans-serif;
    font-size: 0.88rem;
    display: block;
}
.cst-info-box span {
    color: inherit;
    opacity: 0.85;
}
.cst-info-box--neutral {
    background: #F0F5FF;
    color: var(--blue-color);
    border: 1px solid #C8D6FF;
}
.cst-info-box--neutral .material-icons {
    color: var(--blue-color);
}
.cst-info-box--warning {
    background: #FFF8EE;
    color: #B45309;
    border: 1px solid #FDE68A;
}
.cst-info-box--warning .material-icons {
    color: #F59E0B;
}
/* =============================================================================
 *  INSTRUCTIONS D'IMPRESSION (commentaires + textarea)
 * ============================================================================= */
.cst-instructions-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cst-comments-history {
    background: #F9F9F9;
    border: 1px solid #EEEEEE;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cst-comment-entry {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}
.cst-comment-date {
    font-family: "gilroymedium", sans-serif;
    color: #333;
}
.cst-textarea {
    width: 100% !important;
    min-height: 80px;
    padding: 12px 14px !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px !important;
    font-family: "gilroyregular", sans-serif !important;
    font-size: 0.9rem !important;
    color: #1A1A1A !important;
    resize: vertical !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    height: auto !important;
}
.cst-textarea:focus {
    border-color: var(--blue-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(43, 99, 255, 0.08) !important;
}
/* =============================================================================
 * BOUTON VALIDER + DISABLED NOTICE
 * ============================================================================= */
.cst-submit-row {
    display: flex;
    justify-content: flex-end;
}
.cst-disabled-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 18px 20px;
    color: #888;
    font-size: 0.9rem;
}
.cst-disabled-notice .material-icons {
    font-size: 22px;
    color: #BDBDBD;
    flex-shrink: 0;
}
/* =============================================================================
 *  RESPONSIVE
 * ============================================================================= */
@media only screen and (max-width: 960px) {
    .cst-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cst-image-col {
        position: static;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    .cst-image-wrapper {
        min-height: 240px;
    }
}
@media only screen and (max-width: 768px) {
    .cst-layout {
        gap: 20px;
        padding-bottom: 40px;
    }
    .cst-title {
        font-size: 1.25rem;
    }
    .cst-section-title {
        font-size: 0.95rem;
    }
    .cst-submit-row {
        justify-content: stretch;
    }
    .cst-image-col {
        max-width: 100%;
    }
    .cst-dropzone {
        padding: 20px 12px;
    }
}