/* ============================================
   COTATION MRH - STYLES PERSONNALISÉS
   Modernisation de l'interface cotation MRH
   ============================================ */

/* Variables couleurs site */
:root {
    --sherpa-primary: #831717;
    --sherpa-secondary: #574142;
    --sherpa-accent: #c60000;
    --sherpa-bg-light: #f5f5f9;
    --sherpa-text-dark: #051922;
    --sherpa-white: #ffffff;
    --sherpa-border: #e0e0e0;
    --sherpa-success: #28a745;
    --sherpa-shadow: rgba(131, 23, 23, 0.1);
    --transition-smooth: all 0.3s ease;
}

/* ============================================
   1. WIZARD - INDICATEUR DE PROGRESSION
   ============================================ */

.wizard-progress-container {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--sherpa-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.wizard-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sherpa-border);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sherpa-white);
    border: 3px solid var(--sherpa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.wizard-step.active .wizard-step-circle {
    background: var(--sherpa-primary);
    border-color: var(--sherpa-primary);
    color: var(--sherpa-white);
    transform: scale(1.1);
}

.wizard-step.completed .wizard-step-circle {
    background: var(--sherpa-success);
    border-color: var(--sherpa-success);
    color: var(--sherpa-white);
}

.wizard-step-circle i {
    font-size: 18px;
}

.wizard-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.wizard-step.active .wizard-step-label {
    color: var(--sherpa-primary);
    font-weight: 600;
}

/* ============================================
   2. OFFRES COMPAGNIES - CARDS MODERNES
   ============================================ */

.offres-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* ============================================
   OFFRES — SCROLL HORIZONTAL CSS PUR (scroll-snap)
   ============================================ */

.offres-carousel-wrapper {
    position: relative;
    margin-top: 20px;
    padding: 0 44px;
}

.offres-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 24px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--sherpa-primary) transparent;
}

.offres-carousel::-webkit-scrollbar {
    height: 8px;
}

.offres-carousel::-webkit-scrollbar-track {
    background: var(--sherpa-bg-light);
    border-radius: 4px;
}

.offres-carousel::-webkit-scrollbar-thumb {
    background: var(--sherpa-primary);
    border-radius: 4px;
}

.offres-carousel .offre-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

@media (max-width: 576px) {
    .offres-carousel-wrapper {
        padding: 0;
    }
    .offres-carousel .offre-card {
        flex: 0 0 85%;
    }
    .offres-nav-btn {
        display: none;
    }
}

/* Flèches de navigation (desktop) */
.offres-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--sherpa-white);
    border: 2px solid var(--sherpa-primary);
    color: var(--sherpa-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    z-index: 5;
    transition: all 0.2s ease;
    font-size: 14px;
}

.offres-nav-btn:hover {
    background: var(--sherpa-primary);
    color: var(--sherpa-white);
}

.offres-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.offres-nav-btn.prev { left: 0; }
.offres-nav-btn.next { right: 0; }

/* ============================================
   BARRE D'ACTIONS STICKY (toujours accessible)
   ============================================ */

.actions-cotation-sticky {
    position: sticky;
    bottom: 0;
    background: var(--sherpa-white);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    border-top: 1px solid var(--sherpa-border);
    padding: 8px 16px;
    margin-top: 16px;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.actions-cotation-sticky.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.actions-cotation-sticky .ui-button,
.actions-cotation-sticky .btn,
.actions-cotation-sticky .ui-commandlink {
    margin: 0 !important;
}

/* Action principale : CTA coloré et compact */
.actions-cotation-sticky .action-primary.ui-button {
    background: var(--sherpa-primary) !important;
    border-color: var(--sherpa-primary) !important;
    color: var(--sherpa-white) !important;
    border-radius: 24px !important;
    padding: 6px 18px !important;
    height: 38px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.actions-cotation-sticky .action-primary.ui-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Boutons icône (actions secondaires) */
.actions-cotation-sticky .action-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--sherpa-bg-light) !important;
    color: var(--sherpa-text-dark) !important;
    border: 1px solid var(--sherpa-border) !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.actions-cotation-sticky .action-icon:hover {
    background: var(--sherpa-primary) !important;
    color: var(--sherpa-white) !important;
    border-color: var(--sherpa-primary) !important;
    transform: translateY(-1px);
}

.actions-cotation-sticky .action-icon .ui-button-icon-left,
.actions-cotation-sticky .action-icon .ui-icon {
    margin: 0 !important;
    font-size: 15px;
}

.actions-cotation-sticky .action-icon .ui-button-text {
    display: none !important;
}

.offre-card {
    background: var(--sherpa-white);
    border: 2px solid var(--sherpa-border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.offre-card:hover {
    border-color: var(--sherpa-primary);
    box-shadow: 0 8px 24px var(--sherpa-shadow);
    transform: translateY(-4px);
}

.offre-card.selected {
    border-color: var(--sherpa-primary);
    border-width: 3px;
    box-shadow: 0 8px 24px var(--sherpa-shadow);
}

.offre-card.selected::before {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--sherpa-success);
    color: var(--sherpa-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.offre-badge {
    position: absolute;
    top: 0;
    left: 24px;
    background: var(--sherpa-accent);
    color: var(--sherpa-white);
    padding: 6px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offre-logo-container {
    text-align: center;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offre-logo-container img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.offre-prix-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--sherpa-bg-light);
    border-radius: 12px;
}

.offre-prix-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.offre-prix-montant {
    font-size: 32px;
    font-weight: 700;
    color: var(--sherpa-primary);
    line-height: 1;
}

.offre-prix-devise {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.offre-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.offre-detail-item {
    display: flex;
    flex-direction: column;
}

.offre-detail-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.offre-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--sherpa-text-dark);
}

/* Boutons actions ancienne version (cotationVehiculeFlotte, cotationHabitation) */
.offre-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.offre-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.offre-btn-primary {
    background: var(--sherpa-primary);
    color: var(--sherpa-white);
}

.offre-btn-primary:hover {
    background: var(--sherpa-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--sherpa-shadow);
}

.offre-btn-secondary {
    background: transparent;
    color: var(--sherpa-primary);
    border: 2px solid var(--sherpa-primary);
}

.offre-btn-secondary:hover {
    background: var(--sherpa-bg-light);
}

/* Footer actions permanent — cotationVehiculeMono */
.offre-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sherpa-border);
}

.offre-card-secondary-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.offre-card-link {
    flex: 1;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--sherpa-primary) !important;
    border: 1.5px solid var(--sherpa-primary) !important;
    text-decoration: none !important;
}

.offre-card-link:hover,
.offre-card-link:focus {
    background: var(--sherpa-bg-light) !important;
    background-color: var(--sherpa-bg-light) !important;
}

.offre-card-cta {
    width: 100%;
    display: block;
    padding: 12px !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--sherpa-primary) !important;
    background-color: var(--sherpa-primary) !important;
    color: #fff !important;
    border: none !important;
}

.offre-card-cta:hover,
.offre-card-cta:focus {
    background: var(--sherpa-accent) !important;
    background-color: var(--sherpa-accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--sherpa-shadow);
}

/* ============================================
   3. GARANTIES OPTIONNELLES - TOGGLE CARDS
   ============================================ */

.garanties-optionnelles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.garantie-option-card {
    background: var(--sherpa-white);
    border: 2px solid var(--sherpa-border);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.garantie-option-card:hover {
    border-color: var(--sherpa-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.garantie-option-card.active {
    border-color: var(--sherpa-primary);
    background: rgba(131, 23, 23, 0.02);
}

.garantie-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--sherpa-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--sherpa-primary);
    flex-shrink: 0;
}

.garantie-option-card.active .garantie-option-icon {
    background: var(--sherpa-primary);
    color: var(--sherpa-white);
}

.garantie-option-content {
    flex: 1;
}

.garantie-option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--sherpa-text-dark);
    margin-bottom: 6px;
}

.garantie-option-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.garantie-option-prix {
    font-size: 14px;
    font-weight: 700;
    color: var(--sherpa-primary);
}

.garantie-option-toggle {
    width: 48px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    position: relative;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.garantie-option-card.active .garantie-option-toggle {
    background: var(--sherpa-success);
}

.garantie-option-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--sherpa-white);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.garantie-option-card.active .garantie-option-toggle::after {
    transform: translateX(22px);
}

.garantie-option-card.garantie-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.garantie-option-card.garantie-disabled .garantie-option-icon {
    background: linear-gradient(135deg, #d0d0d0, #b0b0b0);
    color: #888;
}

/* ============================================
   4. ONGLET HABITATION - GROUPES VISUELS
   ============================================ */

.habitation-section {
    margin-bottom: 32px;
}

.habitation-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sherpa-border);
}

.habitation-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sherpa-primary);
    color: var(--sherpa-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.habitation-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sherpa-text-dark);
    margin: 0;
}

.habitation-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.habitation-field-group {
    display: flex;
    flex-direction: column;
}

.habitation-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sherpa-text-dark);
    margin-bottom: 8px;
}

.habitation-field-label.required::after {
    content: '*';
    color: var(--sherpa-accent);
    margin-left: 4px;
}

/* Type de bien - Cards visuels */
.type-bien-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.type-bien-card {
    background: var(--sherpa-white);
    border: 2px solid var(--sherpa-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.type-bien-card:hover {
    border-color: var(--sherpa-primary);
    transform: translateY(-2px);
}

.type-bien-card.selected {
    border-color: var(--sherpa-primary);
    background: rgba(131, 23, 23, 0.05);
}

.type-bien-card i {
    font-size: 32px;
    color: var(--sherpa-primary);
    margin-bottom: 8px;
}

.type-bien-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sherpa-text-dark);
}

/* Checkboxes équipements */
.equipements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.equipement-item {
    background: var(--sherpa-white);
    border: 2px solid var(--sherpa-border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.equipement-item:hover {
    border-color: var(--sherpa-primary);
}

.equipement-item.checked {
    border-color: var(--sherpa-primary);
    background: rgba(131, 23, 23, 0.05);
}

.equipement-item i {
    color: var(--sherpa-primary);
    font-size: 18px;
}

.equipement-label {
    font-size: 14px;
    color: var(--sherpa-text-dark);
    flex: 1;
}

/* ============================================
   5. MODERN CARDS
   (styles globaux définis dans styleRemo.css)
   ============================================ */

/* ===== Classe MRH Picker (trigger + panel déroulant, miroir du puiss-picker) ===== */
.classe-picker {
    position: relative;
}

.classe-picker__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sherpa-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.classe-picker__trigger:hover,
.classe-picker--open .classe-picker__trigger {
    border-color: var(--sherpa-primary);
    box-shadow: 0 0 0 3px rgba(131, 23, 23, 0.12);
}

.classe-picker__current-label {
    flex: 1;
    color: #333;
}

.classe-picker__current-label.placeholder {
    color: #888;
}

.classe-picker__chevron {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.classe-picker--open .classe-picker__chevron {
    transform: rotate(180deg);
}

.classe-picker__panel {
    margin-top: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--sherpa-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.classe-picker:not(.classe-picker--open) .classe-picker__panel {
    display: none;
}

/* ===== Durée MRH Cards (6 / 9 / 12 mois) ===== */
.duree-mrh-cards-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.duree-mrh-card {
    min-width: 90px;
    border: 2px solid var(--sherpa-border);
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.duree-mrh-card:hover {
    border-color: var(--sherpa-primary);
    box-shadow: 0 4px 12px rgba(131, 23, 23, 0.15);
    transform: translateY(-2px);
}

.duree-mrh-card--active {
    border-color: var(--sherpa-primary);
    background: linear-gradient(135deg, #831717, #a91d1d);
    color: #fff;
    box-shadow: 0 4px 16px rgba(131, 23, 23, 0.3);
}

.duree-mrh-card--active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 23, 23, 0.4);
}

.duree-mrh-card__label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* ===== MRH Selectable Cards (Classe, Couverture, Usage, Gardiennage) ===== */
.mrh-select-cards-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mrh-select-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--sherpa-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--sherpa-text-dark);
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mrh-select-card:hover {
    border-color: var(--sherpa-primary);
    box-shadow: 0 4px 12px rgba(131, 23, 23, 0.12);
    transform: translateY(-2px);
}

.mrh-select-card--active {
    border-color: var(--sherpa-primary);
    background: linear-gradient(135deg, var(--sherpa-primary), #a91d1d);
    color: #fff;
    box-shadow: 0 4px 14px rgba(131, 23, 23, 0.25);
}

.mrh-select-card--active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(131, 23, 23, 0.35);
}

.mrh-select-card__icon {
    font-size: 1rem;
}

.mrh-select-card__label {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .mrh-select-card {
        padding: 8px 12px;
        font-size: 12px;
    }
    .mrh-select-card__icon {
        font-size: 0.9rem;
    }
}

/* ============================================
   6. AMÉLIORATIONS GÉNÉRALES
   ============================================ */

/* ===== Dialog Détail Garanties MRH ===== */
.dialog-compagnie-header {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.dialog-compagnie-logo {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
}

.dialog-garanties-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.garantie-detail-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
}

.garantie-detail-card:hover {
    box-shadow: 0 4px 14px rgba(131, 23, 23, 0.12);
}

.garantie-detail-card__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--sherpa-primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0e0e0;
}

.garantie-detail-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

.garantie-detail-card__row span:last-child {
    font-weight: 600;
    color: #343a40;
}

.garantie-detail-card__prime {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #831717, #a91d1d);
    color: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 576px) {
    .dialog-garanties-cards {
        grid-template-columns: 1fr;
    }
}



/* Fieldsets améliorés (si encore utilisés ailleurs) */
.ui-fieldset {
    border: none !important;
    background: var(--sherpa-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.ui-fieldset-legend {
    background: var(--sherpa-primary) !important;
    color: var(--sherpa-white) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* Boutons améliorés */
.ui-button-secondary {
    background: var(--sherpa-primary) !important;
    border-color: var(--sherpa-primary) !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

.ui-button-secondary:hover {
    background: var(--sherpa-accent) !important;
    border-color: var(--sherpa-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--sherpa-shadow) !important;
}

/* Inputs améliorés */
.ui-inputfield {
    border: 2px solid var(--sherpa-border) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    transition: var(--transition-smooth) !important;
}

.ui-inputfield:focus {
    border-color: var(--sherpa-primary) !important;
    box-shadow: 0 0 0 3px var(--sherpa-shadow) !important;
    outline: none !important;
}

/* ============================================
   WIZARD PRIMEFACES - DESIGN STEPS MODERNE V2
   ============================================ */

/* Container principal du wizard */
.ui-wizard {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---- NAVBAR : bande dégradée sombre ---- */
/* .ui-wizard .ui-wizard-navbar {
    background: linear-gradient(135deg, #6b1010 0%, var(--sherpa-primary) 50%, #a01c1c 100%) !important;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 6px 24px rgba(131, 23, 23, 0.40) !important;
    overflow: visible !important;
    position: relative !important;
} */

/* Ligne de connexion entre les étapes */
.ui-wizard .ui-wizard-step-titles {
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 20px 16px !important;
    list-style: none !important;
    background: transparent !important;
    position: relative !important;
    counter-reset: step-counter !important;
    align-items: center !important;
}

/* Trait horizontal reliant les bulles (pseudo-élément sur le ul) */
.ui-wizard .ui-wizard-step-titles::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: calc(10% + 16px) !important;
    right: calc(10% + 16px) !important;
    height: 2px !important;
    background: rgba(5, 25, 34, 0.18) !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

/* ---- Chaque étape ---- */
.ui-wizard .ui-wizard-step-title {
    flex: 1 !important;
    margin: 0 !important;
    padding: 8px 10px 12px !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    transition: var(--transition-smooth) !important;
    counter-increment: step-counter !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: rgba(5, 25, 34, 0.70) !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    transition: var(--transition-smooth) !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    overflow: hidden !important;
}

/* ---- Bulle numérotée ---- */
.ui-wizard .ui-wizard-step-title::before {
    content: counter(step-counter) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(131, 23, 23, 0.08) !important;
    color: var(--sherpa-text-dark) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: 2px solid rgba(131, 23, 23, 0.18) !important;
    box-shadow: 0 2px 8px rgba(5, 25, 34, 0.08) !important;
    transition: var(--transition-smooth) !important;
    margin-bottom: 2px !important;
    font-family: inherit !important;
}

/* ---- Hover ---- */
.ui-wizard .ui-wizard-step-title:not(.ui-state-disabled):hover {
    color: var(--sherpa-primary) !important;
    background: rgba(131, 23, 23, 0.04) !important;
}

.ui-wizard .ui-wizard-step-title:not(.ui-state-disabled):hover::before {
    background: rgba(131, 23, 23, 0.12) !important;
    border-color: rgba(131, 23, 23, 0.35) !important;
    transform: scale(1.08) !important;
}

/* ---- Étape ACTIVE ---- */
body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-highlight:not(.ui-state-disabled),
body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-active:not(.ui-state-disabled) {
    color: var(--sherpa-primary) !important;
    font-weight: 700 !important;
    background: rgba(131, 23, 23, 0.05) !important;
    border-radius: 10px !important;
    text-shadow: none !important;
    transform: translateY(-1px) !important;
    animation: wizardActiveTitlePulse 1.8s ease-in-out infinite !important;
}

body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-highlight:not(.ui-state-disabled)::before,
body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-active:not(.ui-state-disabled)::before {
    background: var(--sherpa-primary) !important;
    color: var(--sherpa-white) !important;
    border-color: var(--sherpa-primary) !important;
    box-shadow: 0 0 0 5px rgba(131, 23, 23, 0.16), 0 6px 18px rgba(131, 23, 23, 0.22) !important;
    transform: scale(1.14) !important;
    animation: wizardActiveBadgePulse 1.8s ease-in-out infinite !important;
}

body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-highlight:not(.ui-state-disabled)::after,
body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-active:not(.ui-state-disabled)::after {
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, rgba(131, 23, 23, 0.18) 0%, var(--sherpa-primary) 50%, rgba(131, 23, 23, 0.18) 100%) !important;
    box-shadow: 0 0 12px rgba(131, 23, 23, 0.28) !important;
    animation: wizardActiveUnderlinePulse 1.8s ease-in-out infinite !important;
}

/* ---- Étape COMPLÉTÉE ---- */
.ui-wizard .ui-wizard-step-title.ui-state-complete {
    color: rgba(5, 25, 34, 0.82) !important;
}

.ui-wizard .ui-wizard-step-title.ui-state-complete::before {
    content: '\f00c' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    background: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.45) !important;
}

/* ---- Étape désactivée ---- */
.ui-wizard .ui-wizard-step-title.ui-state-disabled {
    color: rgba(5, 25, 34, 0.35) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.ui-wizard .ui-wizard-step-title.ui-state-disabled::before {
    opacity: 0.40 !important;
}

/* ---- Zone de contenu ---- */
/* .ui-wizard .ui-wizard-content {
    background: var(--sherpa-white) !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 36px 32px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    margin-top: 0 !important;
    min-height: 420px !important;
} */

/* ---- Barre de navigation (boutons Précédent / Suivant) ---- */
.ui-wizard .ui-wizard-navbar-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 32px !important;
    background: var(--sherpa-bg-light) !important;
    border-top: 1px solid var(--sherpa-border) !important;
    border-radius: 0 0 16px 16px !important;
}

.ui-wizard-nav-back,
.ui-wizard-nav-next {
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
    letter-spacing: 0.3px !important;
}

.ui-wizard-nav-next {
    background: linear-gradient(135deg, var(--sherpa-primary), var(--sherpa-accent)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(131, 23, 23, 0.35) !important;
}

.ui-wizard-nav-next:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(131, 23, 23, 0.45) !important;
}

.ui-wizard-nav-back {
    background: transparent !important;
    color: var(--sherpa-primary) !important;
    border: 2px solid var(--sherpa-primary) !important;
}

.ui-wizard-nav-back:hover {
    background: var(--sherpa-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Messages d'aide */
.help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e8f4f8;
    border-left: 4px solid #0288d1;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    color: #01579b;
}

.help-text i {
    font-size: 18px;
}

/* Résumé latéral */
.summary-sidebar {
    position: sticky;
    top: 20px;
    background: var(--sherpa-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sherpa-text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sherpa-border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-item-label {
    color: #666;
}

.summary-item-value {
    font-weight: 600;
    color: var(--sherpa-text-dark);
}

/* ============================================
   7. RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .wizard-progress-bar {
        flex-wrap: wrap;
    }

    .wizard-step {
        margin-bottom: 16px;
    }

    .offres-container {
        grid-template-columns: 1fr;
    }

    .garanties-optionnelles-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .habitation-fields-grid {
        grid-template-columns: 1fr;
    }

    .type-bien-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .offre-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offre-card,
.garantie-option-card {
    animation: slideIn 0.3s ease-out;
}

/* ============================================
   ANIMATIONS WIZARD
   ============================================ */

/* Animation du contenu lors du changement d'étape */
.ui-wizard-content {
    animation: fadeSlideIn 0.4s ease-out !important;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wizardActiveTitlePulse {
    0%, 100% {
        color: var(--sherpa-primary);
        transform: translateY(-1px);
    }
    50% {
        color: var(--sherpa-accent);
        transform: translateY(-2px);
    }
}

@keyframes wizardActiveBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(131, 23, 23, 0.16), 0 6px 18px rgba(131, 23, 23, 0.22);
        transform: scale(1.14);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(198, 0, 0, 0.12), 0 8px 22px rgba(131, 23, 23, 0.28);
        transform: scale(1.18);
    }
}

@keyframes wizardActiveUnderlinePulse {
    0%, 100% {
        opacity: 0.75;
        box-shadow: 0 0 10px rgba(131, 23, 23, 0.20);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(131, 23, 23, 0.34);
    }
}

/* Animation des onglets au hover */
.ui-wizard .ui-wizard-step-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: rgba(131, 23, 23, 0.45);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ui-wizard .ui-wizard-step-title:hover::after {
    width: 80%;
}

/* Numérotation automatique des étapes */
.ui-wizard .ui-wizard-step-title {
    counter-increment: wizard-step;
}

.ui-wizard .ui-wizard-step-titles {
    counter-reset: wizard-step;
}

/* Override pour étapes complétées (checkmark au lieu de numéro) */
.ui-wizard .ui-wizard-step-title.ui-state-complete::before {
    content: '\f00c' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 12px !important;
}

/* Responsive Wizard Navbar pour mobile */
@media (max-width: 768px) {
    .ui-wizard .ui-wizard-step-titles {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px 0 8px !important;
        align-items: stretch !important;
    }

    .ui-wizard .ui-wizard-step-titles::before {
        display: none !important;
    }

    .ui-wizard .ui-wizard-step-title {
        width: 100% !important;
        min-height: 68px !important;
        padding: 14px 16px 16px !important;
        font-size: 13px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
        text-transform: none !important;
        letter-spacing: 0.2px !important;
        background: var(--sherpa-white) !important;
        border: 1px solid rgba(131, 23, 23, 0.10) !important;
        border-left: 4px solid transparent !important;
        box-shadow: 0 3px 12px rgba(5, 25, 34, 0.06) !important;
    }

    .ui-wizard .ui-wizard-step-title::before {
        width: 34px !important;
        height: 34px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }

    .ui-wizard .ui-wizard-step-title::after {
        left: 62px !important;
        right: 16px !important;
        bottom: 8px !important;
        width: auto !important;
        transform: none !important;
        opacity: 0 !important;
    }

    .ui-wizard .ui-wizard-step-title:hover::after {
        opacity: 1 !important;
    }

    body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-highlight:not(.ui-state-disabled),
    body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-active:not(.ui-state-disabled) {
        background: rgba(131, 23, 23, 0.08) !important;
        border-color: rgba(131, 23, 23, 0.18) !important;
        border-left-color: var(--sherpa-primary) !important;
        box-shadow: 0 6px 18px rgba(131, 23, 23, 0.12) !important;
    }

    body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-highlight:not(.ui-state-disabled)::after,
    body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-active:not(.ui-state-disabled)::after {
        left: 62px !important;
        right: 16px !important;
        width: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .ui-wizard .ui-wizard-content {
        padding: 18px 14px !important;
        min-height: auto !important;
        border-radius: 16px !important;
    }

    .ui-wizard .ui-wizard-navbar {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 12px !important;
        padding: 16px !important;
        margin-top: 12px !important;
        background: var(--sherpa-white) !important;
        border: 1px solid rgba(131, 23, 23, 0.08) !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(5, 25, 34, 0.06) !important;
    }

    .ui-wizard-nav-back,
    .ui-wizard-nav-next {
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 18px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .wizard-progress-container {
        display: none !important;
        /* Cacher l'indicateur personnalisé sur mobile */
    }
}

@media (max-width: 575px) {
    .garanties-optionnelles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ui-wizard .ui-wizard-step-title {
        padding: 12px 14px 14px !important;
        font-size: 12px !important;
        gap: 10px !important;
    }

    .ui-wizard .ui-wizard-step-title::before {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }

    .ui-wizard .ui-wizard-step-title::after,
    body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-highlight:not(.ui-state-disabled)::after,
    body .ui-wizard .ui-wizard-step-titles .ui-wizard-step-title.ui-state-active:not(.ui-state-disabled)::after {
        left: 54px !important;
        right: 14px !important;
    }

    .ui-wizard .ui-wizard-navbar {
        padding: 14px !important;
    }
}

/* ============================================
   MODALES / DIALOGUES — STYLES MODERNES
   ============================================ */

/* Contrainte largeur maximale — empêche le débordement */
.ui-dialog {
    max-width: 95vw !important;
    box-sizing: border-box !important;
}

.ui-dialog .ui-dialog-content {
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    word-break: break-word;
}

/* Overlay des dialogues PrimeFaces */
.ui-dialog .ui-dialog-titlebar {
    background: linear-gradient(135deg, var(--sherpa-primary), #A91D4A) !important;
    color: var(--sherpa-white) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 14px 18px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.ui-dialog .ui-dialog-titlebar .ui-dialog-title {
    color: var(--sherpa-white) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.ui-dialog .ui-dialog-titlebar-close {
    color: rgba(255,255,255,0.8) !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    color: var(--sherpa-white) !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 4px !important;
}

.ui-dialog .ui-dialog-content {
    padding: 20px !important;
    border-radius: 0 0 8px 8px !important;
}

/* Conteneur principal du contenu de la modale */
.dialog-info-content {
    font-size: 14px;
    color: var(--sherpa-text-dark);
    line-height: 1.6;
}

.dialog-info-content p {
    margin-bottom: 14px;
    color: #555;
}

/* Icône centrée en haut de la modale */
.dialog-info-icon-row {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.dialog-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sherpa-primary), #A91D4A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--sherpa-white);
}

/* Notes informatives */
.dialog-info-note {
    background: #f0f4ff;
    border-left: 3px solid var(--sherpa-primary);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dialog-info-note i {
    color: var(--sherpa-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.dialog-info-note-secondary {
    background: #f8f0f8;
    border-left-color: #9c27b0;
}

.dialog-info-note-secondary i {
    color: #9c27b0;
}

.dialog-info-note-success {
    background: #f0faf4;
    border-left-color: var(--sherpa-success);
}

.dialog-info-note-success i {
    color: var(--sherpa-success);
}

/* Liste des options garanties */
.dialog-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.dialog-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 13px;
}

/* Badges colorés pour les options */
.dialog-option-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.badge-tiers-simple {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.badge-tiers-ameliore {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.badge-tierce {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.badge-tous-risques {
    background: #fce4ec;
    color: #880e4f;
    border: 1px solid #f48fb1;
}

/* Grille des formules d'assistance */
.dialog-formules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

/* Contenu de modale scrollable en hauteur */
.dialog-scrollable-content {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
}
.dialog-scrollable-content::-webkit-scrollbar {
    width: 5px;
}
.dialog-scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.dialog-scrollable-content::-webkit-scrollbar-thumb {
    background: var(--sherpa-primary);
    border-radius: 4px;
}

.dialog-formule-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}

.dialog-formule-card:hover {
    border-color: var(--sherpa-primary);
    background: #fff;
}

.dialog-formule-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--sherpa-primary), #A91D4A);
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.dialog-formule-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #555;
}

.dialog-formule-card ul li {
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
}

.dialog-formule-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sherpa-success);
    font-weight: 700;
    font-size: 11px;
}

/* Tableau sécurité routière */
.dialog-securite-table {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
}

.dialog-securite-header,
.dialog-securite-row {
    min-width: 360px;
}

.dialog-securite-header {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr;
    background: #f5f5f5;
    padding: 10px 14px;
    font-weight: 600;
    color: #444;
    gap: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.dialog-securite-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr;
    padding: 10px 14px;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.dialog-securite-row:last-child {
    border-bottom: none;
}

.dialog-securite-row:hover {
    background: #fafafa;
}

/* Header logo compagnie dans garOP */
.dialog-compagnie-header {
    display: flex;
    justify-content: center;
    padding: 16px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.dialog-compagnie-logo {
    max-width: 120px;
    max-height: 70px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Wrapper scrollable pour le dataTable garanties */
.dialog-garanties-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.dialog-garanties-wrapper::-webkit-scrollbar {
    height: 5px;
}

.dialog-garanties-wrapper::-webkit-scrollbar-thumb {
    background: var(--sherpa-primary);
    border-radius: 4px;
}

/* DataTable garanties dans garOP */
.dialog-garanties-table.ui-datatable {
    width: 100% !important;
    min-width: 420px;
    border: none !important;
}

.dialog-garanties-table .ui-datatable-header,
.dialog-garanties-table.ui-datatable th {
    background: linear-gradient(135deg, var(--sherpa-primary), #A91D4A) !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 10px 12px !important;
    white-space: nowrap;
}

.dialog-garanties-table.ui-datatable td {
    font-size: 13px !important;
    padding: 9px 12px !important;
    border-color: #f0f0f0 !important;
    white-space: nowrap;
}

.dialog-garanties-table.ui-datatable tr:nth-child(even) td {
    background: #fafafa !important;
}

/* Responsive modales */
@media (max-width: 600px) {
    .dialog-formules-grid {
        grid-template-columns: 1fr;
    }

    .dialog-securite-header,
    .dialog-securite-row {
        grid-template-columns: 80px 1fr 1fr 1fr;
        font-size: 11px;
        padding: 8px 10px;
        gap: 4px;
    }

    .dialog-option-badge {
        font-size: 10px;
        padding: 2px 7px;
    }
}

/* ============================================
   DIALOG MODIFICATION VÉHICULE — ERGONOMIQUE & RESPONSIVE
   ============================================ */

/* Supprimer le padding par défaut de la content-area pour ce dialog */
.dlg-modif-vehicule .ui-dialog-content {
    padding: 0 !important;
    overflow: hidden !important;
}

/* Corps du dialog : flex colonne pour zone scrollable + actions fixes */
.dlg-modif-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Zone scrollable des sections */
.dlg-sections-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: calc(78vh - 80px);
}
.dlg-sections-scroll::-webkit-scrollbar { width: 5px; }
.dlg-sections-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.dlg-sections-scroll::-webkit-scrollbar-thumb { background: var(--sherpa-primary); border-radius: 4px; }

/* Section individuelle */
.dlg-section {
    border-bottom: 1px solid #f0f0f0;
}
.dlg-section:last-child { border-bottom: none; }

.dlg-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #f8f1f1 0%, #fff5f5 100%);
    border-bottom: 2px solid #e8d0d0;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--sherpa-primary, #831717);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dlg-section-icon {
    font-size: 0.92rem;
    color: var(--sherpa-accent, #c60000);
}

.dlg-section-body {
    padding: 14px 18px;
}

/* Grille responsive 2 colonnes */
.dlg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
@media (max-width: 540px) {
    .dlg-grid-2 { grid-template-columns: 1fr; }
}

/* Champ formulaire */
.dlg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dlg-field label,
.dlg-field .ui-outputlabel {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

/* Cards toggle (Remorque / GPS) */
.dlg-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    gap: 8px;
    transition: border-color 0.2s;
}
.dlg-toggle-card:hover { border-color: var(--sherpa-primary); }
.dlg-toggle-card__info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dlg-toggle-card__icon {
    font-size: 1.05rem;
    color: var(--sherpa-accent, #c60000);
    min-width: 20px;
}
.dlg-toggle-card__label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #333;
}
.dlg-toggle-card__desc {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}

/* Ligne toggle simple (double commande) */
.dlg-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.dlg-toggle-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #333;
}

/* Barre d'action collée en bas */
.dlg-actions {
    flex-shrink: 0;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}
.dlg-save-btn {
    background: var(--sherpa-primary, #831717) !important;
    border-color: var(--sherpa-primary, #831717) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.65rem 1rem !important;
    width: 100% !important;
    justify-content: center !important;
}
.dlg-save-btn:hover {
    background: var(--sherpa-accent, #c60000) !important;
    border-color: var(--sherpa-accent, #c60000) !important;
}

/* Inputs pleine largeur dans le dialog */
.dlg-modif-body .ui-inputtext,
.dlg-modif-body .ui-selectonemenu,
.dlg-modif-body .ui-calendar {
    width: 100% !important;
    box-sizing: border-box !important;
}
.dlg-modif-body .ui-calendar { display: block !important; }
.dlg-modif-body .ui-calendar .ui-inputtext { width: 100% !important; }

/* Responsive : 1 colonne sous 560px */
@media (max-width: 560px) {
    .dlg-section-body { padding: 12px 12px; }
    .dlg-section-header { padding: 10px 12px; font-size: 0.76rem; }
}

/* Loading indicator pour changement d'étape */
.ui-wizard-content.ui-helper-loading {
    position: relative;
    opacity: 0.6;
}

.ui-wizard-content.ui-helper-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--sherpa-bg-light);
    border-top-color: var(--sherpa-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}