/* ============================================
   LNF Réservation Pêche – Calendrier Dynamique
   Style Airbnb-inspired
   ============================================ */

:root {
    --lnf-primary: #1a7a3a;
    --lnf-primary-dark: #145a2b;
    --lnf-primary-light: #e6f4ea;
    --lnf-primary-50: rgba(26,122,58,0.08);
    --lnf-accent: #e8a520;
    --lnf-accent-light: #fef7e0;
    --lnf-danger: #d32f2f;
    --lnf-danger-light: #fce4e4;
    --lnf-orange: #ef6c00;
    --lnf-text: #1a1a1a;
    --lnf-text-secondary: #666;
    --lnf-text-muted: #999;
    --lnf-bg: #f7f8fa;
    --lnf-white: #fff;
    --lnf-border: #e2e5e9;
    --lnf-border-light: #f0f1f3;
    --lnf-radius: 16px;
    --lnf-radius-sm: 10px;
    --lnf-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --lnf-shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
    --lnf-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* Reset & Wrap */
.lnf-resa-wrap {
    max-width: 880px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--lnf-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.lnf-resa-wrap * { box-sizing: border-box; }

/* Header */
.lnf-resa-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lnf-resa-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--lnf-primary-dark);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.lnf-resa-subtitle {
    color: var(--lnf-text-secondary);
    font-size: 1.05rem;
    margin: 0;
}

/* =============================================
   MODE SELECTOR (tabs)
   ============================================= */

.lnf-mode-selector {
    display: flex;
    gap: 0;
    background: var(--lnf-bg);
    border-radius: var(--lnf-radius);
    padding: 5px;
    margin-bottom: 2rem;
    border: 1px solid var(--lnf-border);
}

.lnf-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--lnf-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--lnf-transition);
}

.lnf-mode-btn:hover {
    color: var(--lnf-text);
    background: var(--lnf-white);
}

.lnf-mode-btn.lnf-mode-active {
    background: var(--lnf-white);
    color: var(--lnf-primary-dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.lnf-mode-icon {
    display: inline-flex;
    align-items: center;
}

.lnf-mode-icon svg {
    display: block;
}

/* Mode panels */
.lnf-mode-panel {
    display: none;
}

.lnf-mode-panel-active {
    display: block;
    animation: lnfFadeSlide 0.35s ease;
}

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

/* =============================================
   SECTIONS
   ============================================= */

.lnf-section {
    background: var(--lnf-white);
    border-radius: var(--lnf-radius);
    box-shadow: var(--lnf-shadow);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}

.lnf-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lnf-text);
    margin-bottom: 1rem;
}

/* =============================================
   TYPE PILLS
   ============================================= */

.lnf-type-pills {
    display: flex;
    gap: 0.75rem;
}

.lnf-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    border: 2px solid var(--lnf-border);
    border-radius: var(--lnf-radius-sm);
    background: var(--lnf-white);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lnf-text);
    cursor: pointer;
    transition: all var(--lnf-transition);
}

.lnf-pill:hover {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary-50);
}

.lnf-pill.lnf-pill-active {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary-light);
    color: var(--lnf-primary-dark);
}

.lnf-pill-price {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--lnf-text-muted);
}

.lnf-pill.lnf-pill-active .lnf-pill-price {
    color: var(--lnf-primary);
}

/* =============================================
   CALENDAR
   ============================================= */

.lnf-calendar-container {
    position: relative;
}

.lnf-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.lnf-cal-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--lnf-border);
    border-radius: 50%;
    background: var(--lnf-white);
    color: var(--lnf-text);
    cursor: pointer;
    transition: all var(--lnf-transition);
}

.lnf-cal-arrow:hover {
    background: var(--lnf-bg);
    border-color: var(--lnf-text-muted);
}

.lnf-cal-arrow svg { display: block; }

.lnf-cal-months-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--lnf-text);
    text-align: center;
}

.lnf-cal-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.lnf-cal-month-name {
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--lnf-text);
}

.lnf-cal-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0.4rem;
}

.lnf-cal-dow span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lnf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
}

.lnf-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Day cells */
.lnf-cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.88rem;
    user-select: none;
}

.lnf-cal-day.lnf-day-empty {
    cursor: default;
}

.lnf-day-num,
.lnf-day-badge {
    pointer-events: none;
}

.lnf-day-num {
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Day states */
.lnf-day-past {
    color: var(--lnf-text-muted) !important;
    opacity: 0.35;
    cursor: not-allowed !important;
    pointer-events: none;
}

.lnf-day-free {
    color: var(--lnf-text);
}

.lnf-day-free:hover {
    background: var(--lnf-primary-50);
}

.lnf-day-partial {
    color: var(--lnf-orange);
    font-weight: 600;
}

.lnf-day-partial::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lnf-orange);
}

.lnf-day-full {
    color: var(--lnf-text-muted);
    text-decoration: line-through;
    cursor: not-allowed !important;
    opacity: 0.4;
}

.lnf-day-booked {
    color: var(--lnf-text-muted);
    text-decoration: line-through;
    cursor: not-allowed !important;
    opacity: 0.4;
    background: var(--lnf-danger-light);
    pointer-events: none;
}

.lnf-day-disabled {
    color: var(--lnf-text-muted) !important;
    opacity: 0.25;
    cursor: not-allowed !important;
    pointer-events: none;
}

.lnf-day-today .lnf-day-num {
    font-weight: 700;
    color: var(--lnf-primary);
}

.lnf-day-today::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 2px solid var(--lnf-primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* Selection */
.lnf-day-sel-start,
.lnf-day-sel-end {
    background: var(--lnf-primary) !important;
    color: var(--lnf-white) !important;
    font-weight: 700;
    z-index: 2;
}

.lnf-day-sel-start .lnf-day-num,
.lnf-day-sel-end .lnf-day-num {
    color: var(--lnf-white) !important;
}

.lnf-day-sel-start::after,
.lnf-day-sel-end::after {
    display: none !important;
}

.lnf-day-in-range {
    background: var(--lnf-primary-light) !important;
    color: var(--lnf-primary-dark) !important;
    border-radius: 0 !important;
}

.lnf-day-sel-start {
    border-radius: 50% 0 0 50% !important;
}

.lnf-day-sel-end {
    border-radius: 0 50% 50% 0 !important;
}

.lnf-day-hover-range {
    background: var(--lnf-primary-50) !important;
    border-radius: 0 !important;
}

/* Day badge (available count) */
.lnf-day-badge {
    position: absolute;
    bottom: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--lnf-primary);
    line-height: 1;
}

/* Calendar legend */
.lnf-cal-legend {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--lnf-border-light);
}

.lnf-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--lnf-text-secondary);
}

.lnf-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.lnf-dot-free     { background: var(--lnf-primary-light); border: 2px solid var(--lnf-primary); }
.lnf-dot-partial  { background: #fff3e0; border: 2px solid var(--lnf-orange); }
.lnf-dot-full     { background: var(--lnf-border); border: 2px solid var(--lnf-text-muted); }
.lnf-dot-selected { background: var(--lnf-primary); }

/* =============================================
   DATE RANGE DISPLAY
   ============================================= */

.lnf-date-range-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--lnf-primary-light);
    border-radius: var(--lnf-radius-sm);
    border: 1px solid rgba(26,122,58,0.15);
}

.lnf-range-box {
    text-align: center;
}

.lnf-range-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lnf-primary);
    margin-bottom: 0.25rem;
}

.lnf-range-date {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lnf-primary-dark);
}

.lnf-range-arrow {
    font-size: 1.3rem;
    color: var(--lnf-primary);
    font-weight: 300;
}

.lnf-range-nights {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lnf-primary);
    background: var(--lnf-white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(26,122,58,0.2);
}

/* =============================================
   POSTES RESULTS (mode dates)
   ============================================= */

.lnf-postes-results {
    animation: lnfFadeSlide 0.35s ease;
}

.lnf-postes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lnf-poste-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border: 2px solid var(--lnf-border);
    border-radius: var(--lnf-radius-sm);
    cursor: pointer;
    transition: all var(--lnf-transition);
}

.lnf-poste-result:hover {
    border-color: var(--lnf-primary);
    box-shadow: 0 2px 8px rgba(26,122,58,0.1);
}

.lnf-poste-result.lnf-poste-result-selected {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary-light);
}

.lnf-poste-result-vip {
    border-color: var(--lnf-accent);
    background: var(--lnf-accent-light);
}

.lnf-poste-result-vip:hover {
    border-color: #c48d1a;
}

.lnf-poste-result-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lnf-poste-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lnf-primary);
    color: var(--lnf-white);
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.lnf-badge-vip {
    background: var(--lnf-accent);
    color: #333;
}

.lnf-poste-result-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--lnf-text);
}

.lnf-vip-tag {
    display: inline-block;
    background: var(--lnf-accent);
    color: #333;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.lnf-poste-result-status {
    font-size: 0.82rem;
    font-weight: 600;
}

.lnf-poste-result-status.lnf-poste-available {
    color: var(--lnf-primary);
}

.lnf-poste-result-status.lnf-poste-unavailable {
    color: var(--lnf-danger);
}

.lnf-poste-result-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lnf-poste-result-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.lnf-price-tag {
    font-size: 0.85rem;
    color: var(--lnf-text-secondary);
}

.lnf-price-tag strong {
    color: var(--lnf-text);
}

.lnf-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--lnf-text-muted);
    font-size: 0.95rem;
}

.lnf-loading-inline {
    text-align: center;
    padding: 2rem;
    color: var(--lnf-text-muted);
    font-size: 0.9rem;
}

/* =============================================
   POSTE CHIPS (mode poste)
   ============================================= */

.lnf-postes-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lnf-poste-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 2px solid var(--lnf-border);
    border-radius: 50px;
    background: var(--lnf-white);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lnf-text);
    cursor: pointer;
    transition: all var(--lnf-transition);
}

.lnf-poste-chip:hover {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary-50);
}

.lnf-poste-chip.lnf-chip-active {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary);
    color: var(--lnf-white);
}

.lnf-chip-vip {
    border-color: var(--lnf-accent);
}

.lnf-chip-vip:hover {
    border-color: #c48d1a;
    background: var(--lnf-accent-light);
}

.lnf-chip-vip.lnf-chip-active {
    background: var(--lnf-accent);
    border-color: var(--lnf-accent);
    color: #333;
}

.lnf-chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lnf-primary-light);
    color: var(--lnf-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.lnf-chip-active .lnf-chip-badge {
    background: rgba(255,255,255,0.3);
    color: inherit;
}

.lnf-chip-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--lnf-accent);
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
}

/* =============================================
   VIP FORMULA
   ============================================= */

.lnf-radio-group {
    display: flex;
    gap: 0.75rem;
}

.lnf-radio-card {
    flex: 1;
    cursor: pointer;
}

.lnf-radio-card input { display: none; }

.lnf-radio-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 2px solid var(--lnf-border);
    border-radius: var(--lnf-radius-sm);
    transition: all var(--lnf-transition);
}

.lnf-radio-card input:checked + .lnf-radio-inner {
    border-color: var(--lnf-accent);
    background: var(--lnf-accent-light);
}

.lnf-radio-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--lnf-primary-dark);
    white-space: nowrap;
}

.lnf-radio-desc {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--lnf-text-muted);
    margin-top: 0.15rem;
}

.lnf-vip-hint {
    font-size: 0.88rem;
    color: var(--lnf-text-secondary);
    margin: -0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--lnf-accent-light);
    border-radius: 8px;
    border-left: 3px solid var(--lnf-accent);
    line-height: 1.5;
}

/* =============================================
   BOOKING PANEL
   ============================================= */

.lnf-booking-panel {
    background: var(--lnf-white);
    border-radius: var(--lnf-radius);
    box-shadow: var(--lnf-shadow-lg);
    padding: 2rem;
    margin-top: 1.25rem;
    border: 2px solid var(--lnf-primary-light);
    animation: lnfFadeSlide 0.35s ease;
}

.lnf-booking-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--lnf-primary-dark);
    margin: 0 0 0.75rem;
}

.lnf-booking-summary {
    margin-bottom: 1.5rem;
}

.lnf-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--lnf-text-secondary);
    border-bottom: 1px solid var(--lnf-border-light);
}

/* Form */
.lnf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lnf-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lnf-form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--lnf-text);
}

.lnf-form-group input,
.lnf-form-group select {
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--lnf-border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color var(--lnf-transition);
    background: var(--lnf-white);
    color: var(--lnf-text);
}

.lnf-form-group input:focus,
.lnf-form-group select:focus {
    outline: none;
    border-color: var(--lnf-primary);
    box-shadow: 0 0 0 3px var(--lnf-primary-50);
}

.lnf-checkbox-group {
    grid-column: 1 / -1;
}

.lnf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 0.9rem;
}

.lnf-checkbox-label input[type="checkbox"] {
    accent-color: var(--lnf-primary);
    width: 18px;
    height: 18px;
}

.lnf-checkbox-label small {
    color: var(--lnf-primary);
    font-weight: 600;
}

/* Price live */
.lnf-price-live {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--lnf-primary-light);
    border-radius: var(--lnf-radius-sm);
    margin-top: 1rem;
    border: 1px solid rgba(26,122,58,0.15);
}

.lnf-price-live span {
    font-size: 0.9rem;
    color: var(--lnf-primary-dark);
    font-weight: 600;
}

.lnf-price-live strong {
    font-size: 1.4rem;
    color: var(--lnf-primary-dark);
}

/* =============================================
   PAYMENT CARDS
   ============================================= */

.lnf-payment-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lnf-payment-card {
    cursor: pointer;
}

.lnf-payment-card input { display: none; }

.lnf-payment-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--lnf-border);
    border-radius: var(--lnf-radius-sm);
    transition: all var(--lnf-transition);
}

.lnf-payment-card input:checked + .lnf-payment-inner {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary-light);
}

.lnf-payment-card:hover .lnf-payment-inner {
    border-color: var(--lnf-primary);
}

.lnf-payment-icon {
    display: inline-flex;
    color: var(--lnf-primary);
}

.lnf-payment-icon svg { display: block; }

.lnf-payment-inner span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lnf-text);
}

.lnf-payment-inner small {
    font-weight: 400;
    color: var(--lnf-text-muted);
}

/* =============================================
   RECAP & ACTIONS
   ============================================= */

.lnf-recap-final {
    margin-top: 1.5rem;
}

.lnf-recap-table {
    background: var(--lnf-bg);
    border-radius: var(--lnf-radius-sm);
    padding: 1.25rem;
}

.lnf-recap-table table {
    width: 100%;
    border-collapse: collapse;
}

.lnf-recap-table td {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--lnf-border-light);
}

.lnf-recap-table td:first-child {
    font-weight: 600;
    color: var(--lnf-text-secondary);
    width: 38%;
}

.lnf-booking-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Buttons */
.lnf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--lnf-transition);
    text-decoration: none;
}

.lnf-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

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

.lnf-btn-primary:hover {
    background: var(--lnf-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,122,58,0.25);
}

.lnf-btn-large {
    padding: 1rem 3rem;
    font-size: 1.05rem;
    border-radius: var(--lnf-radius-sm);
}

.lnf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Message */
.lnf-resa-message {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--lnf-radius-sm);
    font-size: 0.95rem;
    text-align: center;
}

.lnf-msg-success {
    background: var(--lnf-primary-light);
    color: var(--lnf-primary-dark);
    border: 1px solid rgba(26,122,58,0.2);
}

.lnf-msg-error {
    background: var(--lnf-danger-light);
    color: var(--lnf-danger);
    border: 1px solid rgba(211,47,47,0.2);
}

/* Loading */
.lnf-loading {
    position: relative;
    min-height: 200px;
    pointer-events: none;
}

.lnf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid var(--lnf-border);
    border-top-color: var(--lnf-primary);
    border-radius: 50%;
    animation: lnfSpin 0.6s linear infinite;
    z-index: 10;
}

.lnf-loading > * {
    opacity: 0.3;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 700px) {
    .lnf-resa-wrap {
        margin: 1rem;
    }

    .lnf-cal-grid-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lnf-type-pills,
    .lnf-form-grid,
    .lnf-payment-cards {
        grid-template-columns: 1fr;
    }

    .lnf-radio-group {
        flex-direction: column;
    }

    .lnf-date-range-display {
        flex-direction: column;
        gap: 0.75rem;
    }

    .lnf-range-arrow {
        transform: rotate(90deg);
    }

    .lnf-poste-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .lnf-poste-result-right {
        width: 100%;
        justify-content: space-between;
    }

    .lnf-section {
        padding: 1.25rem;
    }

    .lnf-booking-panel {
        padding: 1.25rem;
    }

    .lnf-resa-header h2 {
        font-size: 1.4rem;
    }

    .lnf-cal-legend {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .lnf-postes-selector {
        gap: 0.5rem;
    }

    .lnf-poste-chip {
        font-size: 0.82rem;
        padding: 0.5rem 0.85rem;
    }
}

@media (max-width: 400px) {
    .lnf-mode-btn {
        font-size: 0.82rem;
        padding: 0.7rem 0.75rem;
    }

    .lnf-cal-day {
        font-size: 0.8rem;
    }

    .lnf-btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* =============================================
   CLOSED DAYS – Calendar
   ============================================= */

.lnf-day-closed {
    position: relative;
    color: var(--lnf-text-muted) !important;
    background: #f3f3f5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.65;
}

.lnf-day-closed .lnf-day-num {
    text-decoration: line-through;
    color: var(--lnf-text-muted);
}

.lnf-day-closed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 1px;
    background: var(--lnf-text-muted);
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0.5;
}

.lnf-dot-closed {
    background: #f3f3f5;
    border: 2px solid var(--lnf-text-muted);
    position: relative;
}

.lnf-dot-closed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: var(--lnf-text-muted);
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* =============================================
   POSTE CARDS – Mode "Voir un poste"
   ============================================= */

.lnf-postes-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.85rem;
}

.lnf-poste-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 2px solid var(--lnf-border);
    border-radius: var(--lnf-radius-sm);
    background: var(--lnf-white);
    cursor: pointer;
    transition: all var(--lnf-transition);
    text-align: left;
    overflow: hidden;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.lnf-poste-card:hover {
    border-color: var(--lnf-primary);
    box-shadow: 0 4px 16px rgba(26,122,58,0.12);
    transform: translateY(-2px);
}

.lnf-poste-card.lnf-poste-card-active {
    border-color: var(--lnf-primary);
    background: var(--lnf-primary-light);
    box-shadow: 0 0 0 3px var(--lnf-primary-50);
}

.lnf-poste-card.lnf-poste-card-vip {
    border-color: var(--lnf-accent);
}

.lnf-poste-card.lnf-poste-card-vip:hover {
    border-color: #c48d1a;
    box-shadow: 0 4px 16px rgba(232,165,32,0.15);
}

.lnf-poste-card.lnf-poste-card-vip.lnf-poste-card-active {
    border-color: var(--lnf-accent);
    background: var(--lnf-accent-light);
    box-shadow: 0 0 0 3px rgba(232,165,32,0.15);
}

.lnf-poste-card-photo {
    position: relative;
    width: 120px;
    min-height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--lnf-bg);
}

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

.lnf-poste-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--lnf-text-muted);
    background: var(--lnf-bg);
}

.lnf-poste-card-vip-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--lnf-accent);
    color: #333;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.lnf-poste-card-info {
    flex: 1;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-width: 0;
}

.lnf-poste-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--lnf-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lnf-poste-card-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--lnf-primary);
    color: var(--lnf-white);
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.lnf-poste-card-vip .lnf-poste-card-id {
    background: var(--lnf-accent);
    color: #333;
}

.lnf-poste-card-active .lnf-poste-card-id {
    background: rgba(255,255,255,0.4);
}

.lnf-poste-card-desc {
    font-size: 0.8rem;
    color: var(--lnf-text-secondary);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lnf-poste-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.lnf-poste-card-capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lnf-text-secondary);
    background: var(--lnf-bg);
    padding: 2px 8px;
    border-radius: 20px;
}

.lnf-poste-card-capacity svg {
    display: block;
}

.lnf-poste-card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lnf-primary-dark);
}

.lnf-poste-card-price-vip {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lnf-accent);
}

/* =============================================
   POSTE DETAIL – Fiche détaillée
   ============================================= */

.lnf-poste-detail {
    animation: lnfFadeSlide 0.35s ease;
}

.lnf-detail-gallery {
    margin-bottom: 1.25rem;
}

.lnf-detail-main-photo {
    position: relative;
    width: 100%;
    max-height: 300px;
    border-radius: var(--lnf-radius-sm);
    overflow: hidden;
    background: var(--lnf-bg);
}

.lnf-detail-main-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.lnf-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--lnf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--lnf-transition);
    z-index: 5;
    color: var(--lnf-text);
}

.lnf-gallery-arrow:hover {
    background: var(--lnf-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lnf-gallery-prev {
    left: 8px;
}

.lnf-gallery-next {
    right: 8px;
}

.lnf-gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.lnf-detail-thumbs {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.lnf-detail-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--lnf-transition);
    flex-shrink: 0;
    opacity: 0.6;
}

.lnf-detail-thumb:hover {
    opacity: 0.9;
    border-color: var(--lnf-border);
}

.lnf-detail-thumb.lnf-thumb-active {
    border-color: var(--lnf-primary);
    opacity: 1;
}

.lnf-detail-body {
    padding: 0;
}

.lnf-detail-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--lnf-primary-dark);
    margin: 0 0 0.6rem;
}

.lnf-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.lnf-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lnf-text-secondary);
    background: var(--lnf-bg);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--lnf-border-light);
}

.lnf-detail-badge svg {
    display: block;
}

.lnf-detail-badge-price {
    background: var(--lnf-primary-light);
    color: var(--lnf-primary-dark);
    border-color: rgba(26,122,58,0.15);
    font-weight: 700;
}

.lnf-detail-badge-bertri {
    background: #eef6ff;
    color: #2563eb;
    border-color: rgba(37,99,235,0.15);
}

.lnf-detail-description {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--lnf-text-secondary);
    margin-bottom: 1rem;
}

.lnf-detail-description p {
    margin: 0 0 0.5rem;
}

.lnf-detail-rules {
    background: var(--lnf-bg);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--lnf-primary);
}

.lnf-detail-rules-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--lnf-primary-dark);
    margin-bottom: 0.4rem;
}

.lnf-detail-rules-content {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--lnf-text-secondary);
}

/* =============================================
   ENRICHED POSTE RESULTS – Mode dates
   ============================================= */

.lnf-poste-result-photo-wrap {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--lnf-bg);
}

.lnf-poste-result-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lnf-poste-result {
    gap: 1rem;
}

.lnf-poste-result-desc {
    font-size: 0.78rem;
    color: var(--lnf-text-muted);
    line-height: 1.3;
    margin-top: 0.15rem;
}

.lnf-poste-result-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.2rem;
}

.lnf-poste-result-capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lnf-text-secondary);
    background: var(--lnf-bg);
    padding: 2px 7px;
    border-radius: 20px;
}

.lnf-poste-result-capacity svg {
    display: block;
}

.lnf-poste-result-closed-warn {
    font-size: 0.75rem;
    color: var(--lnf-orange);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* =============================================
   CAPACITY HINT – Booking panel
   ============================================= */

.lnf-capacity-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lnf-primary);
    margin-top: 0.15rem;
}

/* =============================================
   RESPONSIVE – New components
   ============================================= */

@media (max-width: 700px) {
    .lnf-postes-cards {
        grid-template-columns: 1fr;
    }

    .lnf-poste-card-photo {
        width: 100px;
        min-height: 80px;
    }

    .lnf-detail-main-photo img {
        height: 200px;
    }

    .lnf-poste-result-photo-wrap {
        width: 60px;
        height: 48px;
    }

    .lnf-detail-thumbs {
        gap: 0.3rem;
    }

    .lnf-detail-thumb {
        width: 52px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .lnf-poste-card-photo {
        width: 80px;
        min-height: 70px;
    }

    .lnf-poste-card-info {
        padding: 0.5rem 0.75rem;
    }

    .lnf-poste-card-name {
        font-size: 0.85rem;
    }

    .lnf-detail-main-photo img {
        height: 160px;
    }
}

/* =============================================
   CALENDAR LINKS – After booking
   ============================================= */

.lnf-calendar-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
}

.lnf-calendar-links span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lnf-text-secondary);
}

.lnf-cal-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--lnf-transition);
}

.lnf-cal-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.lnf-cal-google {
    background: #4285f4;
    color: #fff;
}

.lnf-cal-google:hover {
    background: #3367d6;
    color: #fff;
}

.lnf-cal-ics {
    background: var(--lnf-bg);
    color: var(--lnf-text);
    border: 1px solid var(--lnf-border);
}

.lnf-cal-ics:hover {
    background: var(--lnf-border);
}

/* Warning message – awaiting approval */
.lnf-msg-warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid rgba(230,81,0,0.2);
}
