.search-tabs {
    width: 100%;
}
.tab-btn {
    width: 33%;
}
/* Style pour les erreurs de formulaire inspiré de ton rouge --primary-color */
.invalid-feedback {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}
.search-box:has(.is-invalid) {
    border-color: var(--primary-color) !important;
    background-color: rgba(172, 13, 13, 0.03);
}

.compact-search-form input,.compact-search-form select,.compact-search-form checkbox{
    border: 1px solid #eee;
}

.prev-step {
    border-radius: var(--radius-btn) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid #ddd;
}

.next-step {
    /* On s'assure qu'il ressemble au bouton Submit */
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Force la visibilité du switch même dans des formulaires compacts */
.is-closed-switch.form-check-input {
    background-color: var(--secondary-color);;
    border-color: #adb5bd;
    cursor: pointer;
    transition: background-color .15s ease-in-out, background-position .15s ease-in-out;
}

/* Couleur quand c'est coché (Vert Canard ou Rouge selon ton choix) */
.is-closed-switch.form-check-input:checked {
    background-color: var(--primary-color); /* Ton Rouge #AC0D0D */
    border-color: var(--primary-color);
}

/* On s'assure que le switch ne disparait pas sur mobile */
.form-switch .form-check-input {
    margin-left: 0 !important;
    float: none !important;
}
.summary-card {
    transition: transform 0.2s;
    border-left: 4px solid var(--primary-color) !important; /* Ton rouge AC0D0D */
}
.summary-card:hover {
    transform: translateY(-3px);
}
.confirmation-summary hr {
    opacity: 0.1;
}
#summary-hours .col {
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}
/* 1. Base : On verrouille tout sauf l'actif et les complétés */
.search-tabs .tab-btn {
    pointer-events: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: default;
    border-bottom: 3px solid transparent;
    /* Tes styles actuels (padding, background, etc.) sont conservés */
}

/* 2. Réactivation : Actif et Complétés */
.search-tabs .tab-btn.active,
.search-tabs .tab-btn.completed {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}

/* 3. Style pour les onglets complétés (Vert) */
.search-tabs .tab-btn.completed {
    color: #198754 !important;
    border-bottom-color: #198754 !important;
	pointer-events: none;
}

/* 4. Style pour l'onglet actif (Ton Rouge Primaire) */
.search-tabs .tab-btn.active {
    border-bottom-color: var(--primary-color) !important;
    font-weight: bold;
    opacity: 1;
}

/* Animation icône check */
.search-tabs .tab-btn.completed i {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.gallery-container {
    min-height: 150px;
    border: 2px dashed #dee2e6 !important;
}

.upload-trigger {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.upload-trigger:hover {
    background: rgba(172, 13, 13, 0.05); /* Ton rouge AC0D0D très clair */
    transform: scale(0.98);
}

.upload-trigger span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-item {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: zoomIn 0.3s ease;
}

.gallery-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.remove-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff4d4d;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.remove-img-btn:hover {
    background: #ff4d4d;
    color: #fff;
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
