/**
 * FICHE-PAIE.FR - Générateur de bulletins de paie
 *
 * @copyright 2025-2026 Purple Telecom EURL
 * @license   Proprietary - All Rights Reserved
 * @author    Fabien HIRIART <contact@polygonlab.ai>
 *
 * CSS externalisé depuis generate.php
 */

/* =====================================================
   FLATPICKR - BRANDING FICHE-PAIE.FR
   ===================================================== */
.flatpickr-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: visible !important;
    z-index: 999999 !important;
}
.flatpickr-months {
    background: linear-gradient(135deg, #1d458c 0%, #152d5c 100%);
    border-radius: 12px 12px 0 0;
    padding: 8px 0;
}
.flatpickr-months .flatpickr-month {
    color: white;
    fill: white;
    height: 40px;
}
.flatpickr-current-month {
    color: white;
    font-weight: 600;
    font-size: 15px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: rgba(255, 255, 255, 0.25);
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #ffffff;
    color: #1d458c;
    padding: 8px 12px;
    font-weight: 500;
}
.flatpickr-current-month input.cur-year {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    width: 70px;
    text-align: center;
}
.flatpickr-current-month input.cur-year:hover {
    background: rgba(255, 255, 255, 0.25);
}
.flatpickr-current-month input.cur-year:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}
/* Cacher les spinners du champ année */
.flatpickr-current-month input.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month input.cur-year::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.flatpickr-current-month .numInputWrapper {
    width: auto;
}
.flatpickr-current-month .numInputWrapper span {
    display: none;
}
/* Dropdown année personnalisé - Container */
.flatpickr-year-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 10;
    margin-left: 8px;
}
.flatpickr-year-dropdown-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: all 0.2s ease;
}
.flatpickr-year-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}
.flatpickr-year-dropdown-btn::after {
    content: '▼';
    font-size: 8px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}
.flatpickr-year-dropdown-menu.open + .flatpickr-year-dropdown-btn::after,
.flatpickr-year-dropdown-container:has(.open) .flatpickr-year-dropdown-btn::after {
    transform: rotate(180deg);
}
.flatpickr-year-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 -4px 25px rgba(0,0,0,0.3);
    min-width: 90px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 9999999 !important;
    border: 1px solid #e5e7eb;
}
.flatpickr-year-dropdown-menu.open {
    display: block;
    animation: slideUp 0.15s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.flatpickr-year-dropdown-menu div {
    padding: 10px 18px;
    cursor: pointer;
    color: #1d458c;
    font-weight: 500;
    text-align: center;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}
.flatpickr-year-dropdown-menu div:last-child {
    border-bottom: none;
}
.flatpickr-year-dropdown-menu div:hover {
    background: #e8f0fe;
    color: #1d458c;
}
.flatpickr-year-dropdown-menu div.selected {
    background: #10b981;
    color: white;
    font-weight: 600;
}
.flatpickr-year-dropdown-menu div.selected:hover {
    background: #059669;
    color: white;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white;
    color: white;
    padding: 8px 12px;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: white;
}
.flatpickr-weekdays {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.flatpickr-weekday {
    color: #1d458c;
    font-weight: 600;
    font-size: 12px;
}
.flatpickr-days {
    padding: 5px;
}
.flatpickr-day {
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}
.flatpickr-day:hover {
    background: #e8f0fe;
    border-color: #e8f0fe;
    color: #1d458c;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #10b981;
    border-color: #10b981;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.flatpickr-day.today {
    border-color: #10b981;
    color: #10b981;
    font-weight: 700;
}
.flatpickr-day.today:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}
.flatpickr-day.today.selected {
    background: #10b981;
    border-color: #10b981;
    border-radius: 50%;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #d1d5db;
}
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #f3f4f6;
    color: #9ca3af;
}
/* Animation d'ouverture */
.flatpickr-calendar.animate.open {
    animation: flatpickrOpen 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes flatpickrOpen {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =====================================================
   VARIABLES CSS
   ===================================================== */
:root {
    --primary: #1d458c;
    --primary-light: #2a5bb8;
    --primary-dark: #152d5c;
    --success: #28a745;
    --success-light: #d4edda;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --border: #dee2e6;
}

/* =====================================================
   LAYOUT PRINCIPAL - SIDEBAR + MAIN
   ===================================================== */
.form-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: visible;
    min-height: 650px;
}

/* =====================================================
   SIDEBAR GAUCHE
   ===================================================== */
.form-sidebar {
    width: 300px;
    min-width: 300px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 25px;
    color: white;
    display: flex;
    flex-direction: column;
    border-radius: 16px 0 0 16px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 25px;
}

.sidebar-header h3 {
    font-size: 22px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: white;
}

.sidebar-header p {
    opacity: 0.7;
    font-size: 14px;
    margin: 0;
}

/* Barre de progression */
.progress-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.progress-bar-sidebar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, var(--success));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Timeline des étapes */
.form-steps {
    position: relative;
    flex: 1;
}

.form-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 55px;
    padding-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-step:last-child {
    padding-bottom: 0;
}

/* Ligne verticale entre les étapes */
.form-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% - 15px);
    background: rgba(255,255,255,0.25);
}

.form-step:last-child::before {
    display: none;
}

.form-step.completed::before {
    background: var(--success);
}

/* Icône cercle */
.step-icon {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    border: 3px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
}

.form-step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
}

.form-step.active .step-icon {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.form-step.error .step-icon {
    background: var(--danger);
    border-color: var(--danger);
}

.form-step.pending .step-icon {
    opacity: 0.5;
}

/* Contenu étape */
.step-info h4 {
    font-size: 15px;
    margin: 0 0 4px 0;
    opacity: 0.85;
    font-weight: 600;
    color: white;
}

.form-step.active .step-info h4 {
    opacity: 1;
    font-size: 16px;
}

.step-info p {
    font-size: 12px;
    opacity: 0.6;
    margin: 0;
}

.step-status {
    font-size: 11px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
}

.form-step.completed .step-status {
    background: rgba(40, 167, 69, 0.25);
    color: #7eff7e;
}

.form-step.active .step-status {
    background: rgba(255,255,255,0.2);
    color: white;
}

.form-step.error .step-status {
    background: rgba(220, 53, 69, 0.25);
    color: #ff9999;
}

.form-step.pending .step-status {
    display: none;
}

/* =====================================================
   MAIN CONTENT (DROITE)
   ===================================================== */
.form-main {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Header de l'étape */
.step-header {
    margin-bottom: 32px;
}

.step-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 8px 0;
}

.step-header p {
    color: var(--gray);
    margin: 0;
}

/* =====================================================
   FORMULAIRE
   ===================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: visible;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

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

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 69, 140, 0.1);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

.form-group small {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 4px;
}

/* Input rempli = fond vert */
.form-group input.filled,
.form-group select.filled {
    border-color: var(--success) !important;
    background: linear-gradient(to right, var(--success-light), white) !important;
}

/* Input erreur = fond rouge */
.form-group input.input-error,
.form-group select.input-error {
    border-color: var(--danger) !important;
    background: var(--danger-light) !important;
}

/* Auto-filled (via API SIRET) */
.form-group input.auto-filled {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534;
}

/* CHECKBOX INLINE STYLEE (Sans sécu) */
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-inline input[type="checkbox"]:checked + .checkbox-custom {
    background: #1d458c;
    border-color: #1d458c;
}

.checkbox-inline input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.checkbox-inline:hover .checkbox-custom {
    border-color: #1d458c;
}

.no-secu-checkbox {
    margin-top: 10px;
}

.form-group input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* SIRET */
.siret-input-wrapper {
    position: relative;
}

.siret-input-wrapper input {
    padding-right: 40px;
}

.siret-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #1d458c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.siret-loader.active {
    display: block;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.siret-message {
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.siret-message.siret-success {
    display: block;
    color: #22c55e;
}

.siret-message.siret-error {
    display: block;
    color: #9ca3af;
}

.entreprise-message {
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.entreprise-message.entreprise-error {
    display: block;
    color: #9ca3af;
}

/* Auto-filled */
.form-group input.auto-filled {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534;
}

/* Période */
.periode-selects {
    display: flex;
    gap: 12px;
}

.periode-selects select {
    flex: 1;
}

/* ETAPE 4 - Design liste/détails moderne */
.step4-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Accordéon sections */
.step4-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.step4-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.step4-accordion-item:last-child {
    border-bottom: none;
}

.step4-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.step4-accordion-header:hover {
    background: #f1f5f9;
}

.step4-accordion-header.open {
    background: #e8f0fe;
    border-bottom: 1px solid #e5e7eb;
}

.step4-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.step4-accordion-title svg {
    color: #1d458c;
}

.step4-accordion-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
}

.step4-accordion-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.step4-accordion-badge.info {
    background: #e8f0fe;
    color: #1d458c;
}

.step4-accordion-arrow {
    transition: transform 0.2s;
    color: #6b7280;
}

.step4-accordion-header.open .step4-accordion-arrow {
    transform: rotate(180deg);
}

.step4-accordion-content {
    display: none;
    padding: 20px;
    background: white;
}

.step4-accordion-content.open {
    display: block;
}

/* Section Récapitulatif */
.recap-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.recap-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid #1d458c;
}

.recap-card.highlight {
    border-left-color: #059669;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.recap-card-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recap-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d458c;
}

.recap-card.highlight .recap-card-value {
    color: #059669;
}

.recap-card-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Liste détails */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row-label {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.detail-row-value.primary {
    color: #1d458c;
}

/* Éléments variables - heures sup, absences */
.elements-variables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.element-variable-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.element-variable-item label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.element-variable-item input {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.element-variable-item input:focus {
    outline: none;
    border-color: #1d458c;
    box-shadow: 0 0 0 3px rgba(29, 69, 140, 0.1);
}

.element-variable-item input:disabled {
    background: #f9fafb;
    color: #9ca3af;
}

/* Section cumuls */
.cumuls-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cumul-inline-item {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cumul-inline-item.editable {
    border-color: #1d458c;
    background: #f0f7ff;
}

.cumul-inline-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cumul-inline-value {
    font-size: 16px;
    font-weight: 700;
    color: #1d458c;
}

.cumul-inline-item input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
    display: none;
}

.cumul-inline-item.editable input {
    display: block;
}

.cumul-inline-item.editable .cumul-inline-value {
    display: none;
}

.btn-modifier-small {
    background: none;
    border: none;
    color: #1d458c;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-modifier-small:hover {
    background: #e8f0fe;
    text-decoration: underline;
}

/* Congés inline */
.conges-inline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.conges-inline-item {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.conges-inline-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.conges-inline-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d458c;
}

.conges-inline-item.solde {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.conges-inline-item.solde .conges-inline-value {
    color: #16a34a;
}

.conges-inline-item input {
    width: 40px;
    padding: 4px 2px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    -moz-appearance: textfield;
}

.conges-inline-item input::-webkit-outer-spin-button,
.conges-inline-item input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.conges-inline-item .input-spinner {
    display: none;
    margin-top: 6px;
}

.conges-inline-item.editable .input-spinner {
    display: flex;
}

.conges-inline-item.editable .conges-inline-value {
    display: none;
}

/* Info badge */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ecfdf5;
    border-radius: 6px;
    font-size: 12px;
    color: #059669;
    margin-top: 12px;
}

.info-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.info-badge svg {
    width: 14px;
    height: 14px;
}

/* Heures supplémentaires */
.heures-sup-section {
    background: #fefce8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.heures-sup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.heures-sup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fefce8;
    border-radius: 6px;
}

.heures-sup-item label {
    font-size: 13px;
    color: #854d0e;
}

.heures-sup-item input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #fde047;
    border-radius: 4px;
    font-size: 13px;
    text-align: right;
}

/* Absences section */
.absences-section {
    background: #fef2f2;
    border-radius: 8px;
    padding: 16px;
}

.absences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.absence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fef2f2;
    border-radius: 6px;
}

.absence-item label {
    font-size: 13px;
    color: #991b1b;
}

.absence-item input {
    width: 50px;
    padding: 6px 4px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    text-align: center;
    background: transparent;
    -moz-appearance: textfield;
}

.absence-item input::-webkit-outer-spin-button,
.absence-item input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Input Spinner avec boutons +/- */
.input-spinner {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.input-spinner.yellow {
    border: 1px solid #fde047;
}

.input-spinner.red {
    border: 1px solid #fecaca;
}

.input-spinner.blue {
    border: 1px solid #93c5fd;
}

.input-spinner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.input-spinner-btn:hover {
    background: rgba(0,0,0,0.05);
}

.input-spinner-btn:active {
    background: rgba(0,0,0,0.1);
    transform: scale(0.95);
}

.input-spinner.yellow .input-spinner-btn {
    color: #854d0e;
}

.input-spinner.yellow .input-spinner-btn:hover {
    background: #fef9c3;
}

.input-spinner.red .input-spinner-btn {
    color: #991b1b;
}

.input-spinner.red .input-spinner-btn:hover {
    background: #fee2e2;
}

.input-spinner.blue .input-spinner-btn {
    color: #1d4ed8;
}

.input-spinner.blue .input-spinner-btn:hover {
    background: #dbeafe;
}

.input-spinner-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.input-spinner input {
    width: 45px;
    padding: 4px 2px;
    border: none;
    border-left: 1px solid rgba(0,0,0,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    -moz-appearance: textfield;
}

.input-spinner input::-webkit-outer-spin-button,
.input-spinner input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-spinner input:focus {
    outline: none;
    background: rgba(0,0,0,0.02);
}

/* Heures sup - ajuster pour spinner */
.heures-sup-item input {
    width: 45px;
    padding: 4px 2px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    -moz-appearance: textfield;
}

.heures-sup-item input::-webkit-outer-spin-button,
.heures-sup-item input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Legacy support pour cumuls et conges */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #374151;
}

.btn-modifier-cumuls,
.btn-modifier-conges {
    background: none;
    border: none;
    color: #1d458c;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-modifier-cumuls:hover,
.btn-modifier-conges:hover {
    background: #e8f0fe;
    text-decoration: underline;
}

.btn-modifier-cumuls.active,
.btn-modifier-conges.active {
    color: #22c55e;
}

.cumul-info,
.conges-info {
    margin-top: 12px;
    padding: 10px;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 12px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cumul-info.manual,
.conges-info.manual {
    background: #fef3c7;
    color: #d97706;
}

/* Section Primes */
.primes-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}
.primes-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.primes-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.prime-precarite-container {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    display: none;
}
.prime-precarite-container.active {
    display: block;
}
.prime-precarite-container .prime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.prime-precarite-container label {
    font-weight: 600;
    color: #92400e;
    font-size: 14px;
}
.prime-precarite-value {
    font-size: 18px;
    font-weight: 700;
    color: #d97706;
}
.prime-precarite-info {
    font-size: 12px;
    color: #b45309;
}
.fin-contrat-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
}
.fin-contrat-toggle label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fin-contrat-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}
.primes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prime-item {
    display: grid;
    grid-template-columns: 1fr 120px 40px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.prime-item select,
.prime-item input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.prime-item input[type="number"] {
    text-align: right;
}
.btn-remove-prime {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-remove-prime:hover {
    background: #fecaca;
}
.btn-add-prime {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ecfdf5;
    color: #059669;
    border: 1px dashed #10b981;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}
.btn-add-prime:hover {
    background: #d1fae5;
    border-style: solid;
}
.primes-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid #bbf7d0;
}
.primes-total-label {
    font-weight: 600;
    color: #166534;
}
.primes-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}
.recap-primes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}
.recap-primes-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #059669;
}

.recap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.recap-grid > div {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .step4-layout {
        grid-template-columns: 1fr;
    }

    .recap-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .recap-card {
        padding: 12px;
    }

    .recap-card-value {
        font-size: 16px;
    }

    .heures-sup-grid,
    .absences-grid {
        grid-template-columns: 1fr;
    }

    .conges-inline-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px;
    }

    .step4-accordion-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .cumuls-inline {
        flex-direction: column;
        gap: 12px;
    }

    .cumul-inline-item {
        min-width: auto;
    }

    .step4-accordion-header {
        padding: 14px 16px;
    }

    .step4-accordion-content {
        padding: 16px;
    }
}

/* NAVIGATION */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.btn-wizard {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-prev {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-prev:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-submit {
    background: var(--success);
    color: white;
    padding: 14px 36px;
}

.btn-submit:hover {
    background: #16a34a;
}

/* Contenu des étapes */
.step-content {
    display: none;
    flex: 1;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* RESULTATS */
.resultats-section {
    padding: 32px;
    text-align: center;
}

.resultats-section h2 {
    color: #1d458c;
    margin-bottom: 24px;
}

.resultats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.resultat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.resultat-card.highlight {
    background: #1d458c;
    color: white;
}

.resultat-label {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.resultat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-download {
    background: #1d458c;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #163a75;
    transform: translateY(-2px);
}

.info-text {
    color: #6b7280;
    font-size: 13px;
    margin-top: 12px;
}

/* ========================================
   RECHERCHE ENTREPRISE PAR NOM
======================================== */
.entreprise-search-wrapper {
    position: relative;
    width: 100%;
    overflow: visible !important;
}

.entreprise-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #1d458c;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: none;
}

.entreprise-dropdown.active {
    display: block;
}

.entreprise-option {
    padding: 14px 18px;
    cursor: pointer !important;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.entreprise-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.entreprise-option:hover,
.entreprise-option.selected {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f7ff 100%);
    border-left: 4px solid #1d458c;
    padding-left: 14px;
    cursor: pointer !important;
}

.entreprise-option strong {
    color: #1d458c;
    font-size: 15px;
    font-weight: 700;
}

.entreprise-option:hover strong {
    color: #0d2d5c;
}

.entreprise-option span {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.entreprise-option span::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.entreprise-option:hover span {
    color: #4b5563;
}

/* AUTOCOMPLETE CONVENTION */
.autocomplete-wrapper {
    position: relative;
    overflow: visible !important;
}
#convention_search {
    width: 100%;
    box-sizing: border-box;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #1d458c;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.autocomplete-dropdown.active {
    display: block;
}

/* S'assurer que les conteneurs parents permettent le débordement */
.form-group:has(.autocomplete-wrapper) {
    position: relative;
    overflow: visible !important;
}

.form-grid,
.step-content,
.wizard-card {
    overflow: visible !important;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #eff6ff;
}

.autocomplete-item .idcc-num {
    font-weight: 700;
    color: #1d458c;
    margin-right: 8px;
}

.autocomplete-item .highlight {
    background: #fef08a;
    font-weight: 600;
}

.autocomplete-no-result {
    padding: 12px 16px;
    color: #9ca3af;
    font-style: italic;
}

/* ========================================
   AUTOCOMPLETE ADRESSE - API GOUV
======================================== */
.adresse-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.adresse-autocomplete-wrapper input {
    width: 100%;
    box-sizing: border-box;
}

.adresse-autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #1d458c;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.adresse-autocomplete-suggestions.show {
    display: block;
}

.adresse-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.adresse-autocomplete-item:last-child {
    border-bottom: none;
}

.adresse-autocomplete-item:hover {
    background: #f0f4ff;
}

.adresse-autocomplete-item-main {
    color: #1d458c;
    font-weight: 500;
    font-size: 14px;
}

.adresse-autocomplete-item-detail {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.adresse-autocomplete-loader {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #e0e5eb;
    border-top-color: #1d458c;
    border-radius: 50%;
    animation: adresse-spin 0.8s linear infinite;
    display: none;
}

.adresse-autocomplete-loader.show {
    display: block;
}

@keyframes adresse-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.adresse-autocomplete-no-result {
    padding: 12px 16px;
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .form-container {
        flex-direction: column;
        margin: 15px;
        min-height: auto;
    }

    .form-sidebar {
        width: 100%;
        min-width: auto;
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }

    /* Steps en ligne horizontale sur mobile */
    .form-steps {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }

    .form-step {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        text-align: center;
        min-width: 80px;
        padding-left: 0;
        padding-bottom: 0;
    }

    .form-step::before {
        display: none;
    }

    .step-icon {
        position: relative;
        margin-bottom: 8px;
        left: auto;
    }

    .step-info p,
    .step-status {
        display: none;
    }

    .form-main {
        padding: 25px;
    }

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

    .periode-selects {
        flex-direction: column;
    }

    .resultats-grid {
        grid-template-columns: 1fr;
    }

    .step4-layout {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MODAL CGU
   ===================================================== */
.cgu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cgu-modal-overlay.hidden {
    display: none;
}

.cgu-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.cgu-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.cgu-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #1d458c;
    position: relative;
    display: inline-block;
}

.cgu-brand-name sup {
    position: absolute;
    font-size: 0.45em;
    margin-left: 2px;
}

.cgu-modal-body {
    padding: 24px;
    text-align: center;
}

.cgu-maintenance-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    color: #991b1b;
}

.cgu-maintenance-notice svg {
    flex-shrink: 0;
    color: #dc2626;
    margin-top: 2px;
}

.cgu-maintenance-notice strong {
    color: #dc2626;
}

.cgu-maintenance-notice div {
    font-size: 13px;
    line-height: 1.5;
}

.cgu-rgpd-notice {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
    text-align: left;
}

.cgu-rgpd-notice p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.cgu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    padding: 14px 24px;
    background: #f8fafc;
    border: 2px solid #1d458c;
    border-radius: 10px;
    color: #1d458c;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cgu-link:hover {
    background: #1d458c;
    color: white;
}

.cgu-link svg {
    flex-shrink: 0;
}

/* Bouton accepter CGU (remplace checkbox + continuer) */
.btn-accept-cgu {
    width: 100%;
    padding: 14px 20px;
    background: #1d458c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 16px 0;
    transition: all 0.2s;
}

.btn-accept-cgu:hover {
    background: #163a75;
    transform: translateY(-1px);
}

.btn-accept-cgu svg {
    flex-shrink: 0;
}

.cgu-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: center;
}

.btn-cgu-cancel {
    padding: 12px 32px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-cgu-cancel:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* =====================================================
   MODAL EMAIL STRIPE - CENTREE
   ===================================================== */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.email-modal-overlay.visible {
    display: flex;
}

.email-modal {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.email-modal-header {
    padding: 24px 24px 0 24px;
    text-align: center;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1d458c;
    font-weight: 700;
}

.email-modal-header p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.email-modal-body {
    padding: 24px;
}

.email-input-wrapper {
    position: relative;
}

.email-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.email-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.email-input:focus {
    outline: none;
    border-color: #1d458c;
    box-shadow: 0 0 0 3px rgba(29, 69, 140, 0.1);
}

.email-input.error {
    border-color: #ef4444;
}

.email-error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.email-error-msg.visible {
    display: block;
}

.email-modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
}

.btn-email-cancel {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #6b7280;
    transition: all 0.2s;
}

.btn-email-cancel:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.btn-email-submit {
    flex: 2;
    padding: 14px 20px;
    background: #1d458c;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-email-submit:hover {
    background: #163a75;
}

.btn-email-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* =====================================================
   EFFECTIF ENTREPRISE - Radio buttons
   ===================================================== */

.effectif-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.effectif-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 180px;
}

.effectif-option:hover {
    border-color: #1d458c;
    background: #f0f4ff;
}

.effectif-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1d458c;
    cursor: pointer;
}

.effectif-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.effectif-option input[type="radio"]:checked + .effectif-label {
    color: #1d458c;
    font-weight: 600;
}

.effectif-option:has(input:checked) {
    border-color: #1d458c;
    background: #eff6ff;
}

/* =====================================================
   NOUVEAUX BLOCS ETAPE 4 - Inputs avec suffixes
   ===================================================== */

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    padding-right: 40px !important;
    width: 100%;
}

.input-with-suffix .input-suffix {
    position: absolute;
    right: 14px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

/* Checkbox options dans les nouveaux blocs */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.checkbox-options .checkbox-inline {
    background: #f3f4f6;
    padding: 10px 14px;
    border-radius: 8px;
}

/* Sections spécifiques des nouveaux blocs */
.pas-section,
.mutuelle-section,
.transport-section,
.cotisations-section {
    padding-bottom: 12px;
}

/* Badge modifié pour les nouveaux blocs */
.step4-accordion-badge.modified {
    background: #fef3c7 !important;
    color: #92400e !important;
}
