/* ── Variables ────────────────────────────────────────────── */
:root {
    --sejour-primary: #2c3e50;
    --sejour-primary-dark: #5a6fd6;
    --sejour-success: #27ae60;
    --sejour-danger: #e74c3c;
    --sejour-warning: #f39c12;
    --sejour-purple: #2c3e50;
    --sejour-text: #2c3e50;
    --sejour-muted: #7f8c8d;
    --sejour-border: #e0e0e0;
    --sejour-bg: #f8f9fa;
    --sejour-white: #ffffff;
    --sejour-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --sejour-radius: 16px;
    --sejour-radius-sm: 8px;
}

/* ── Layout principal ─────────────────────────────────────── */
.sejour-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ── En-tête ──────────────────────────────────────────────── */
.sejour-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sejour-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sejour-text);
    margin: 0;
}

.sejour-page-subtitle {
    color: var(--sejour-muted);
    margin: 0.25rem 0 0;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn-sejour {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-sejour.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
}

.btn-sejour-primary {
    background: linear-gradient(135deg, var(--sejour-primary), var(--sejour-purple));
    color: var(--sejour-white);
}

.btn-sejour-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.45);
    color: var(--sejour-white);
}

.btn-sejour-outline {
    background: transparent;
    border: 2px solid var(--sejour-primary);
    color: var(--sejour-primary);
}

.btn-sejour-outline:hover {
    background: var(--sejour-primary);
    color: var(--sejour-white);
}

.btn-sejour-danger {
    background: var(--sejour-danger);
    color: var(--sejour-white);
}

.btn-sejour-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
    color: var(--sejour-white);
}

/* ── Grille des séjours ───────────────────────────────────── */
.sejours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Card séjour ──────────────────────────────────────────── */
.sejour-card {
    background: var(--sejour-white);
    border-radius: var(--sejour-radius);
    box-shadow: var(--sejour-shadow);
    padding: 1.5rem;
    border: 1px solid var(--sejour-border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sejour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.sejour-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sejour-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sejour-text);
    margin: 0;
}

.sejour-card-desc {
    color: var(--sejour-muted);
    font-size: 0.9rem;
    margin: 0;
}

.sejour-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--sejour-muted);
}

.meta-item i {
    color: var(--sejour-primary);
}

.meta-poi-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-poi-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.meta-poi-item i {
    font-size: 0.85rem;
}

.meta-date { margin-left: auto; }

.sejour-card-etapes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.etape-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f0f4ff;
    color: var(--sejour-primary);
    border: 1px solid #c5d0f5;
    border-radius: 20px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.etape-chip small {
    opacity: 0.75;
    font-size: 0.72rem;
}

.etape-chip-more {
    background: #f5f5f5;
    color: var(--sejour-muted);
    border-color: #ddd;
}

.sejour-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ── Badge public ─────────────────────────────────────────── */
.badge-public {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #e8f5e9;
    color: var(--sejour-success);
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Badge count ──────────────────────────────────────────── */
.badge-count {
    display: inline-flex;
    align-items: center;
    background: #f0f4ff;
    color: var(--sejour-primary);
    border-radius: 12px;
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── État vide ────────────────────────────────────────────── */
.sejour-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--sejour-muted);
}

.empty-state-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.sejour-empty-state h2 {
    font-size: 1.5rem;
    color: var(--sejour-text);
    margin-bottom: 0.75rem;
}

/* ── Modale ───────────────────────────────────────────────── */
.sejour-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.sejour-modal {
    background: var(--sejour-white);
    border-radius: var(--sejour-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.sejour-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sejour-border);
    background: linear-gradient(135deg, #f0f4ff, #f8f0ff);
}

.sejour-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--sejour-text);
}

.sejour-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--sejour-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: color 0.2s;
}

.sejour-modal-close:hover { color: var(--sejour-danger); }

.sejour-modal-body {
    padding: 1.5rem;
}

.sejour-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sejour-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--sejour-bg);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--sejour-text);
    font-size: 0.9rem;
}

.form-group .required { color: var(--sejour-danger); }

/* ── Detail layout ────────────────────────────────────────── */
.sejour-detail-layout {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.sejour-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sejour-detail-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sejour-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sejour-text);
    margin: 0;
}

.sejour-detail-desc {
    color: var(--sejour-muted);
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

.sejour-detail-topbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sejour-detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.75rem;
    align-items: start;
}

.sejour-detail-left {
    max-height: 625px;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 900px) {
    .sejour-detail-columns {
        grid-template-columns: 1fr;
    }

    /* En colonne unique, la liste des étapes n'est plus contrainte */
    .sejour-detail-left {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    /* La carte n'est plus sticky en mobile */
    .sejour-map-container {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .sejour-page-container {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }

    .sejour-page-header h1 {
        font-size: 1.4rem;
    }

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

    .sejour-detail-title {
        font-size: 1.3rem;
    }

    .sejour-detail-layout {
        padding: 0.5rem 0.75rem;
    }

    .activites-group-title {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
}

/* ── Carte ────────────────────────────────────────────────── */
.sejour-map-container {
    position: sticky;
    top: 80px;
    background: var(--sejour-white);
    border-radius: var(--sejour-radius);
    box-shadow: var(--sejour-shadow);
    overflow: hidden;
}

/* ── Étapes accordéon ─────────────────────────────────────── */
.etapes-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.etape-item {
    background: var(--sejour-white);
    border-radius: var(--sejour-radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--sejour-border);
    overflow: hidden;
}

.etape-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.etape-header:hover { background: #fafbff; }

.etape-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.etape-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sejour-primary), var(--sejour-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.etape-info {
    min-width: 0;
}

.etape-info strong {
    display: block;
    color: var(--sejour-text);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etape-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.etape-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--sejour-muted);
}

.etape-meta-row i { color: var(--sejour-primary); font-size: 0.75rem; }

.etape-chevron {
    color: var(--sejour-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.etape-chevron.open { transform: rotate(180deg); }

.etape-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--sejour-border);
    background: #fafbff;
}

/* ── Météo dans étape ─────────────────────────────────────── */
.etape-meteo {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: var(--sejour-radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--sejour-text);
}

.meteo-loading { color: var(--sejour-muted); }

/* ── Activités list ───────────────────────────────────────── */
.activites-group {
    margin-bottom: 1.25rem;
}

.activites-group-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

.activites-group-manifestation { background: #ddeeff; color: #1a6ba0; }
.activites-group-manifestation i { color: #3498db; }
.activites-group-activite      { background: #ddf4e8; color: #1a7a45; }
.activites-group-activite i    { color: #27ae60; }
.activites-group-hebergement   { background: #fdebd0; color: #a05a10; }
.activites-group-hebergement i { color: #e67e22; }
.activites-group-restaurant    { background: #ede0f7; color: #6b3a8a; }
.activites-group-restaurant i  { color: #9b59b6; }

.group-count {
    background: rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 0.05rem 0.45rem;
    font-size: 0.75rem;
    margin-left: 0.2rem;
}

.activites-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activite-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--sejour-white);
    border: 1px solid var(--sejour-border);
    border-radius: var(--sejour-radius-sm);
    padding: 0.6rem 0.75rem;
    transition: box-shadow 0.2s;
    position: relative;
}

.activite-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.activite-img {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.activite-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activite-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-right: 1.4rem;
}

.activite-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sejour-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activite-label:hover { color: var(--sejour-primary); text-decoration: underline; }

.activite-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    width: fit-content;
}

.activite-type-manifestation { background: #fff3e0; color: #e65100; }
.activite-type-activite { background: #e8f5e9; color: #2e7d32; }
.activite-type-hebergement { background: #fff8e1; color: #f57f17; }
.activite-type-restaurant { background: #fce4ec; color: #c62828; }

.activite-ville {
    font-size: 0.78rem;
    color: #34495e;
    font-weight: 500;
}

.btn-retirer-poi {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.btn-retirer-poi:hover { color: var(--sejour-danger); background: #fce4ec; }

.activite-favori-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    line-height: 1;
}
.activite-favori-btn:hover { color: #e74c3c; background: #fce4ec; }
.activite-favori-btn.active i { color: #e74c3c; }

.drag-handle, .drag-handle-sm {
    color: #ccc;
    cursor: grab;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.drag-handle:active, .drag-handle-sm:active { cursor: grabbing; }

.sortable-chosen { opacity: 0.85; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.sortable-ghost { opacity: 0.35; }

.no-activites-msg, .no-etapes-msg {
    color: var(--sejour-muted);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

.etape-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--sejour-border);
}

.etape-notes h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sejour-text);
    margin: 0 0 0.4rem;
}

.etape-notes p {
    font-size: 0.85rem;
    color: var(--sejour-muted);
    margin: 0;
}

/* ── Ajout étape form ─────────────────────────────────────── */
.sejour-add-etape-form {
    margin-bottom: 1rem;
}

/* ── Share CTA banner ─────────────────────────────────────── */
.share-cta-banner {
    background: #2c3e50;
    color: white;
    padding: 0.75rem 1.5rem;
    text-align: center;
}

.share-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-cta-content i { font-size: 1.5rem; }

.share-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #2c3e50;
    color: white;
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Sauvegarder (recherche_sejour) ───────────────────────── */
.btn-sejour-sauvegarder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-sejour-sauvegarder:hover:not(:disabled):not(.btn-sejour-disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(118,75,162,0.4);
    color: white;
}

.btn-sejour-sauvegarder:disabled,
.btn-sejour-sauvegarder.btn-sejour-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(40%);
    transform: none !important;
    box-shadow: none !important;
}

/* Tooltip sur bouton désactivé */
.btn-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: not-allowed;
    pointer-events: auto;
}

.btn-tooltip-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 600;
}

.btn-tooltip-wrapper::before {
    content: '';
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #2c3e50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 600;
}

.btn-tooltip-wrapper:hover::after,
.btn-tooltip-wrapper:hover::before {
    opacity: 1;
}

/* Modale sauvegarder (recherche_sejour) */
#modal-sauvegarder-sejour.sejour-modal-overlay {
    z-index: 10000;
}

/* ── Bouton Retenir (sur les cards de résultats) ─────────── */
.card-retain-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #27ae60;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 5;
}

.card-retain-btn:hover {
    background: #27ae60;
    color: white;
    transform: scale(1.1);
}

/* Tooltip custom sur .card-retain-btn */
.card-retain-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: none;
    background: rgba(30,30,30,0.88);
    color: #fff;
    font-size: 0.72rem;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.card-retain-btn:hover::after {
    opacity: 1;
}

/* Card retenue : bordure violette */
.article-card.retained {
    border: 2px solid #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39,174,96,0.15), 0 4px 16px rgba(0,0,0,0.1) !important;
}

.article-card.retained .card-retain-btn {
    background: #27ae60;
    color: white;
}

/* Badge compteur sur bouton Sauvegarder */
.retain-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #2c3e50;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* ── Print ────────────────────────────────────────────────── */
@media print {

    /* Éléments à masquer */
    .sejour-detail-topbar-actions,
    .sejour-detail-topbar-left a,
    .share-cta-banner,
    #sejour-map,
    .sejour-map-container,
    .btn-retirer-poi,
    .btn-modifier-etape,
    .etape-chevron,
    .drag-handle,
    .drag-handle-sm,
    .sejour-add-etape-form,
    .activite-favori-btn,
    nav,
    footer {
        display: none !important;
    }

    /* Layout : une seule colonne */
    .sejour-detail-layout {
        padding: 0;
    }

    .sejour-detail-columns {
        display: block !important;
    }

    .sejour-detail-left {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Titre du séjour */
    .sejour-detail-topbar {
        margin-bottom: 0.5rem;
        border-bottom: 2px solid #333;
        padding-bottom: 0.5rem;
    }

    .sejour-detail-title {
        font-size: 1.4rem;
    }

    /* Accordéon : toujours ouvert */
    .etape-body {
        display: block !important;
    }

    /* Étapes : autoriser les sauts de page entre étapes */
    .etapes-accordion {
        gap: 0;
    }

    .etape-item {
        overflow: visible !important;
        break-inside: auto;
        break-before: auto;
        border: 1px solid #ccc;
        margin-bottom: 0.75rem;
        page-break-inside: avoid;
    }

    /* Activités : ne pas couper en milieu d'activité */
    .activite-item {
        overflow: visible !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Fidélité des couleurs */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── Interaction markers ↔ cards ─────────────────────────── */

/* Marker numéroté d'étape (remplace l'inline style) */
.sejour-etape-marker {
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

/* Flash highlight déclenché depuis la carte */
.etape-item.map-highlighted > .etape-header {
    background: linear-gradient(90deg, #e8f4fd, #f0eaff);
    outline: 2px solid var(--sejour-primary);
    border-radius: var(--sejour-radius-sm);
}

.activite-item.map-highlighted {
    background: #e8f4fd;
    outline: 2px solid var(--sejour-primary);
    border-radius: var(--sejour-radius-sm);
    transition: background 0.2s, outline 0.2s;
}

/* Card activité : curseur pointer pour indiquer qu'elle est cliquable */
.activite-item[data-poi-slug] {
    cursor: pointer;
}

/* ── Bandeau "ajouter au séjour" (depuis recherche_sejour) ── */
.ajouter-etape-banner {
    background: linear-gradient(135deg, #e8f4fd, #f0eaff);
    border-left: 4px solid var(--sejour-primary);
    padding: 0.85rem 1.5rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--sejour-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ajouter-etape-banner i { color: var(--sejour-primary); }

.ajouter-etape-banner .banner-link {
    color: var(--sejour-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ajouter-etape-banner .banner-link:hover { text-decoration: underline; }

/* ── Bouton modifier étape (crayon discret) ────────────────── */
.btn-modifier-etape {
    background: none;
    border: none;
    color: var(--sejour-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.btn-modifier-etape:hover {
    color: var(--sejour-primary);
    background: rgba(102,126,234,0.1);
}

/* ── Autocomplete suggestions modale étape ─────────────────── */
.etape-edit-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sejour-white);
    border: 1px solid var(--sejour-border);
    border-radius: var(--sejour-radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.etape-edit-suggestion-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--sejour-text);
    border-bottom: 1px solid var(--sejour-border);
}

.etape-edit-suggestion-item:last-child { border-bottom: none; }

.etape-edit-suggestion-item:hover {
    background: var(--sejour-bg);
    color: var(--sejour-primary);
}
