/* ============================================
   Application Chantier BTP - Feuille de style
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #0F1115;
    --bg-card: #1A1D24;
    --bg-elevated: #242833;
    --border: #2D323F;
    --text: #F5F5F7;
    --text-dim: #8B92A5;
    --text-faint: #5A6273;
    --accent: #FF6B1A;
    --accent-dim: #FF8540;
    --success: #00C896;
    --warning: #FFB800;
    --danger: #FF3B30;
    --info: #3498FF;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: contain;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
svg { stroke: currentColor; fill: none; }

/* ============================================
   App shell — structure principale
   ============================================ */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.app-main {
    flex: 1;
    padding-bottom: 84px;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header
   ============================================ */

.app-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-header.with-back {
    padding-top: 12px;
}

.back-btn,
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.header-title-block {
    flex: 1;
    min-width: 0;
}

.header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--text);
}

.header-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Search bar
   ============================================ */

.search-form {
    margin: 4px 20px 12px;
}

.search-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 15px;
    flex: 1;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-faint);
}

.search-icon {
    color: var(--text-faint);
    flex-shrink: 0;
}

/* ============================================
   Filtres horizontaux
   ============================================ */

.filters {
    padding: 0 20px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.filter-chip.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}

/* ============================================
   Content
   ============================================ */

.content {
    padding: 0 20px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-state-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto 24px;
}

/* ============================================
   Carte chantier
   ============================================ */

.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
}

.site-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.site-card.status-planifie::before { background: var(--info); }
.site-card.status-termine::before { background: var(--success); }
.site-card.status-devis::before { background: var(--text-faint); }
.site-card.status-archive::before { background: var(--text-faint); opacity: 0.5; }

.site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.site-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--text);
}

.site-city {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

.site-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.site-meta-item strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   Badges de statut
   ============================================ */

.status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--accent);
    color: #000;
    white-space: nowrap;
}

.status-badge.planifie { background: var(--info); color: #fff; }
.status-badge.termine { background: var(--success); color: #000; }
.status-badge.devis { background: var(--bg-elevated); color: var(--text-dim); }
.status-badge.archive { background: var(--bg-elevated); color: var(--text-faint); }

/* ============================================
   FAB — Floating Action Button
   ============================================ */

.fab {
    position: fixed;
    bottom: 100px;
    right: max(20px, calc(50vw - 280px));
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(255, 107, 26, 0.4);
    z-index: 50;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.fab.success {
    background: var(--success);
    box-shadow: 0 8px 24px rgba(0, 200, 150, 0.4);
}

/* ============================================
   Bottom navigation
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    height: 84px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 40;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Login page
   ============================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-width: 480px;
    margin: 0 auto;
}

.login-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 8px;
    text-align: center;
}

.login-tagline {
    color: var(--text-dim);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 48px;
}

.login-form {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
}

.login-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    width: 100%;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

/* ============================================
   Section titles
   ============================================ */

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin: 20px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.flash-container {
    padding: 12px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: flash-in 0.3s ease;
}

.flash-success {
    background: rgba(0, 200, 150, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.flash-error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.flash-info {
    background: rgba(52, 152, 255, 0.1);
    color: var(--info);
    border: 1px solid rgba(52, 152, 255, 0.3);
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FORMULAIRES — sections, lignes, champs
   ============================================ */

.form-page {
    padding-bottom: 32px;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin: 12px 20px;
}

.form-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 14px;
    flex: 1;
    min-width: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B92A5' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-input.has-error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
}

.form-hint {
    color: var(--text-faint);
    font-size: 12px;
    margin-top: 6px;
}

.form-actions {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

/* ============================================
   FICHE DÉTAIL — info rows, actions rapides
   ============================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.quick-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.info-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 600;
    flex-shrink: 0;
}

.info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
}

.info-value a {
    color: var(--accent);
    text-decoration: none;
}

.section-action {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* ============================================
   CONTACTS (annuaire)
   ============================================ */

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.contact-card.archived {
    opacity: 0.5;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.contact-archived-tag {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 4px;
}

.zone-chevron {
    color: var(--text-faint);
    flex-shrink: 0;
}

/* ============================================
   ZONES - cards
   ============================================ */

.zone-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.zone-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--bg-elevated);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    flex-shrink: 0;
}

.zone-thumb.has-photo {
    color: transparent;
}

.zone-info {
    flex: 1;
    min-width: 0;
}

.zone-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.zone-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 12px;
}

/* Menu actions zone */
.zone-actions-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 0 20px 12px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease;
}

.zone-actions-menu.open {
    max-height: 200px;
}

.zone-action-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 16px;
    text-align: left;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.zone-action-item:last-child {
    border-bottom: none;
}

.zone-action-item.danger {
    color: var(--danger);
}

/* Formulaire renommage inline */
.rename-form {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 14px;
    margin: 0 20px 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rename-form.hidden {
    display: none;
}

/* ============================================
   GALERIE PHOTO
   ============================================ */

.date-group-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin: 16px 0 8px;
    padding: 0 4px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 -20px 8px;
    padding: 0 16px;
}

.photo-thumb {
    aspect-ratio: 1;
    background: var(--bg-elevated);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: block;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumb-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lien "toutes les photos" du chantier */
.all-photos-link {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
}

/* ============================================
   PHOTO VIEWER (plein écran)
   ============================================ */

.photo-viewer {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    margin: 0 -20px;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
}

/* ============================================
   COMMENTAIRES
   ============================================ */

.comment-form {
    margin-bottom: 16px;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.comment-author {
    color: var(--accent);
    font-weight: 700;
}

.comment-date {
    color: var(--text-faint);
}

.comment-content {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-delete {
    background: transparent;
    border: none;
    color: var(--text-faint);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.comment-delete:hover {
    color: var(--danger);
}

/* ============================================
   UPLOAD LOADING
   ============================================ */

.upload-loading {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.upload-loading.visible {
    display: flex;
}

.upload-loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ============================================
   MODALE SÉLECTION DE ZONE (avant prise photo)
   ============================================ */

.zone-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fade-in 0.2s ease;
}

.zone-picker-content {
    background: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    animation: slide-up 0.25s ease;
}

.zone-picker-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text);
    text-align: center;
    margin-bottom: 16px;
}

.zone-picker-item {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s ease;
}

.zone-picker-item:active {
    background: var(--accent);
    color: #000;
}

.zone-picker-cancel {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 16px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ============================================
   SOUS-TRAITANTS
   ============================================ */

/* Grille des spécialités (checkboxes stylées en chips) */
.specialty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.specialty-chip input[type="checkbox"] {
    display: none;
}

.specialty-chip.checked {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}

.specialty-chip:hover:not(.checked) {
    border-color: var(--accent-dim);
    color: var(--text);
}

/* Cards ST sur fiche chantier/zone */
.st-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-card-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.st-card-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.st-card-remove:hover {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

/* Cards documents (KBIS, décennale, etc.) */
.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-card-info {
    flex: 1;
    min-width: 0;
}

.doc-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.doc-card-meta {
    font-size: 12px;
    color: var(--text-dim);
}

.doc-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
