/* ============================================
   CSS pour recherche_sejour.html - Page recherche séjour
   IMPORTANT : Les variables CSS sont dans variables.css
   Ce fichier doit être chargé APRÈS variables.css
   ============================================ */

/* Reset du main + fond blanc pour cette page */
body {
    background-color: white !important;
}

main {
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
}

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

/* Hero Section — harmonisé avec la page index */
.hero-sejour {
    position: relative;
    background: white;
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.hero-sejour::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/hero-pattern.svg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-sejour-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: #333;
}

.hero-sejour-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    color: #2c3e50;
    animation: fadeInUp 0.8s ease-out;
}

.hero-sejour-title i {
    color: #2c3e50;
}

.hero-sejour-subtitle {
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    color: #666;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Features dans le Hero — style pills CTA */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #2c3e50;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-feature-item:hover {
    opacity: 0.85;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.35);
}

.hero-feature-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.hero-feature-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

/* Container principal */
.sejour-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.25rem 1rem 2rem;
    background: white;
    min-height: calc(100vh - 350px);
}

/* Wrapper pour les étapes initiales (plus étroit) */
#initial-prompt,
#steps-container {
    padding: 0 1rem;
}

/* Results container sort du conteneur pour prendre toute la largeur */
#results-container {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    padding: 3rem 2rem;
    background: #f8f9fa;
}

/* Wrapper interne pour limiter la largeur du contenu */
#results-container .step-results {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Initial Prompt Card */
.initial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.initial-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.initial-card .features-list {
    text-align: left;
    margin: 2rem auto;
    max-width: 600px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: #2c3e50;
    transform: translateX(10px);
}

.feature-item i {
    width: 40px;
    height: 40px;
    background: #2c3e50;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: #555;
    font-size: 1.1rem;
}

/* Steps Container */
.steps-wrapper {
    margin-bottom: 2rem;
}

.steps-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.steps-title i {
    color: #2c3e50;
}

/* Boutons compacts dans la barre fixe — hauteur uniforme (ciblage par ID) */
#add-step-btn-main,
#reset-btn,
#btn-sauvegarder-sejour {
    padding: 0 1rem !important;
    font-size: 0.85rem !important;
    line-height: normal !important;
    height: 2.2rem !important;
    min-height: unset !important;
    max-height: 2.2rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-width: 2px !important;
    border-style: solid !important;
    vertical-align: middle !important;
}

/* Sauvegarder : pas de bordure visible */
#btn-sauvegarder-sejour {
    border-color: transparent !important;
}

/* Buttons */
.btn-sejour-primary {
    background: white !important;
    border: 2px solid #2c3e50 !important;
    color: #2c3e50 !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-sejour-primary:hover {
    background: #2c3e50 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.btn-sejour-success {
    background: #2c3e50 !important;
    border: none !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-sejour-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.btn-sejour-danger {
    background: white !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-sejour-danger:hover {
    background: #6c757d !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3) !important;
}

/* Actions Container — barre sticky sous la navbar */
.actions-container {
    position: sticky;
    top: var(--sejour-actions-top, 0px);
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid #e0d8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.actions-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    flex-wrap: nowrap;
}

/* Boutons de la barre d'actions */
.sejour-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.btn-action-primary {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}
.btn-action-primary:hover {
    background: #1a252f;
    border-color: #1a252f;
}

.btn-action-danger {
    background: transparent;
    color: #aaa;
    border-color: transparent;
}
.btn-action-danger:hover {
    color: #e74c3c;
    background: #fdf2f2;
    border-color: transparent;
}

.btn-action-save {
    background: transparent;
    color: #2c3e50;
    border-color: transparent;
}
.btn-action-save:hover:not(:disabled) {
    background: #f0f4f8;
    border-color: transparent;
}
/* Bouton désactivé dans le wrapper tooltip (cas non-connecté) */
.btn-tooltip-wrapper .btn-action-save:disabled {
    opacity: 0.4;
    pointer-events: none; /* laisse le hover remonter au wrapper pour la bulle */
}

.btn-tooltip-wrapper {
    cursor: not-allowed;
}

/* Results Container */
.results-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.results-title i {
    color: #2c3e50;
}

.result-step-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.result-step-card:hover {
    border-color: #2c3e50;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.result-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.result-step-header i {
    width: 40px;
    height: 40px;
    background: #2c3e50;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.result-step-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.result-step-body pre {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #555;
}

body.recherche-sejour {
    text-align: left;
}

main.recherche-sejour {
    width: 90%;
    max-width: 1400px;
    margin: var(--spacing-lg) auto;
}

body {
    background-color: var(--bg-body-alt);
}

.recherche-sejour .cards-container {
    width: 100%;
    max-width: 100%;
}

.step-wrapper {
    border: var(--border-width) solid var(--border-color-dark);
    border-radius: var(--radius-card); /* Harmonized with Bootstrap's default .rounded */
    margin-bottom: 1.5rem;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-research);
    width: 100%; /* Ensure it takes full width of its parent */
}

.step-header {
    background-color: var(--bg-form-header);
    padding: 0.75rem 1.25rem;
    border-bottom: var(--border-width) solid var(--border-color-dark);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-grow: 1;
}

.toggle-step-icon {
    transition: transform var(--transition-slow);
}

/* When the collapse target is shown, the icon is normal */
[aria-expanded="true"] .toggle-step-icon {
    transform: rotate(0deg);
}

/* When the collapse target is hidden, rotate the icon */
[aria-expanded="false"] .toggle-step-icon {
    transform: rotate(-90deg);
}

.step-header-actions .delete-step-btn {
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition-base);
}

.step-header-actions .delete-step-btn:hover {
    color: var(--color-danger);
}

.step-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.step-content {
    padding: 1.5rem;
}

.recherche-sejour .fieldset-regions,
.recherche-sejour .form-check,
.recherche-sejour fieldset h5 {
    text-align: left;
}

/* Fieldset styling */
.recherche-sejour fieldset {
    border: var(--border-width) solid var(--border-color-form) !important;
    border-radius: var(--radius-button);
    padding: 1rem;
    margin-bottom: 1rem;
}

.recherche-sejour legend {
    float: none;
    width: auto;
    padding: 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Department list */
.department-list {
    padding-left: 2rem;
    max-height: 200px;
    overflow-y: auto;
    border-left: 2px solid #eee;
    margin-top: 0.5rem;
}

.region-item .form-check {
    display: inline-block;
}

.toggle-departments {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    padding: 0 8px;
    display: inline-block;
    transition: transform var(--transition-base);
    user-select: none; /* Prevent text selection */
}

.toggle-departments.collapsed {
    transform: rotate(0deg);
}

.toggle-departments:not(.collapsed) {
    transform: rotate(90deg);
}

/* Equipment list */
.equipment-list {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Activity accordion */
.accordion-button:not(.collapsed) {
    color: var(--color-accordion-expanded);
    background-color: var(--color-accordion-bg);
}

/* Results Container */
#results-container {
    border: var(--border-width) solid var(--border-color-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-research);
}

#results-container .card {
    border-color: var(--border-color-card);
}

#results-container .card-header {
    background-color: var(--bg-body-alt);
    font-weight: bold;
}

#results-container .card-body pre {
    background-color: var(--bg-form-header);
    padding: 1rem;
    border-radius: var(--radius-card);
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/* Modal départements - Limitation de la hauteur */
#modal-departements .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Modal départements - Réduction de l'écart entre les lignes */
#modal-departements .form-check {
    margin-bottom: 0;
    padding: 0.15rem 0;
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

/* Fond de couleur léger pour les départements */
#modal-departements .row .form-check {
    background-color: #f8f9ff;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: background-color 0.2s ease;
}

#modal-departements .row .form-check:hover {
    background-color: #e8ecff;
}

#modal-departements .form-check-input {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

#modal-departements .form-check-label {
    padding-left: 0.4rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

/* Case à cocher pour sélectionner toute la région */
#modal-departements .region-select-all {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

#modal-departements .region-select-all:hover {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alignement des cases à cocher des départements avec la région */
#modal-departements .row {
    padding-left: 0.5rem;
}

#modal-departements .row .form-check {
    padding-left: 0;
}

#modal-departements .row .form-check-input {
    margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-sejour {
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .hero-sejour-title {
        font-size: 2rem;
    }

    .hero-sejour-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        gap: 0.5rem;
    }

    .hero-feature-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-feature-text {
        font-size: 0.8rem;
        max-width: 100px;
    }

    .sejour-container {
        padding: 2rem 1rem;
    }

    .initial-card {
        padding: 2rem 1.5rem;
    }

    .feature-item {
        padding: 0.75rem;
    }

    .actions-inner {
        gap: 0.35rem;
        padding: 0.4rem 0.75rem;
        flex-wrap: wrap;
    }
    .sejour-action-btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    .btn-sejour-primary,
    .btn-sejour-success,
    .btn-sejour-danger {
        width: 100%;
        justify-content: center;
    }

    /* Ajustement des résultats sur mobile */
    #results-container .step-results {
        padding: 0 1rem;
    }
}

/* Très petit écran : icônes seulement dans la barre d'actions */
@media (max-width: 480px) {
    .sejour-action-btn .btn-label {
        display: none;
    }

    .sejour-action-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
    }

    .actions-inner {
        gap: 0.25rem;
        justify-content: space-around;
    }
}

/* ============================================
   ZONE 1 : SÉLECTION DIRECTE
   ============================================ */

.direct-selection-zone {
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #fff5e6 0%, #fff9f0 100%);
    padding: 0.75rem 1rem;
}

.direct-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.direct-selection-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.direct-selection-count {
    background: #2c3e50;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
}

/* Grille des items directs - ultra compacte */
.direct-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.3rem;
}

/* Item direct - version ultra compacte identique à Zone 2 */
.direct-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.4rem;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 0;
}

.direct-item:hover {
    border-color: #2c3e50;
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.direct-item.selected {
    border-color: #2c3e50;
    background: linear-gradient(135deg, #e8ecff 0%, #f0f4ff 100%);
}

.direct-item-checkbox {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    cursor: pointer;
    margin: 0;
}

.direct-item-label {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    user-select: none;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.direct-item.selected .direct-item-label {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive pour Zone 1 */
@media (max-width: 768px) {
    .direct-items-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WIZARD DE DÉMARRAGE
   ============================================ */

.wizard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.18);
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

.wizard-header {
    background: #2c3e50;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: white;
}

.wizard-header-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.wizard-header-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.wizard-header-sub {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.wizard-body {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.wizard-question {}

.wizard-question-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 0.55rem;
}

.wizard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wizard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    border: 2px solid #e0e4ef;
    background: #f7f8fc;
    color: #555;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.wizard-chip:hover {
    border-color: #2c3e50;
    background: #eef0fb;
    color: #2c3e50;
}

.wizard-chip.selected {
    border-color: #2c3e50;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

.wizard-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f0f0f5;
}

.wizard-btn-start {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}

.wizard-btn-start:hover {
    opacity: 0.92;
    box-shadow: 0 6px 18px rgba(102,126,234,0.45);
}

.wizard-btn-skip {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    transition: color 0.15s;
    white-space: nowrap;
}

.wizard-btn-skip:hover {
    color: #2c3e50;
}

@media (max-width: 600px) {
    .wizard-body {
        padding: 1.2rem 1rem;
    }
    .wizard-header {
        padding: 1.5rem 1rem 1rem;
    }
    .wizard-footer {
        padding: 0.8rem 1rem 1.2rem;
        flex-direction: column;
    }
    .wizard-btn-start {
        width: 100%;
    }
}

/* ============================================
   MacroSearchMulti Widget (multi-cat Quoi)
   ============================================ */

/* Conteneur pleine largeur dans search-bar-row */
.search-item-full {
    flex: 1 1 100%;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8f9fc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

/* Texte d'aide au-dessus des chips */
/* Bloc critères unifié (Où + Quand + Thèmes) */
.step-criteria-block {
    border: 1px solid #e0d8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.step-criteria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #f5f6fa 0%, #eef0f3 100%);
    border-bottom: 1px solid #e0d8f0;
}

.step-criteria-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.step-clear-all-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    transition: color 0.2s;
}

.step-clear-all-btn:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Où + Quand dans le bloc critères */
.step-criteria-block [id^="step-ou-quand-"] {
    padding: 0.75rem 1rem;
}

/* Slot Thèmes dans la colonne gauche */
.step-msm-slot {
    border-top: 1px solid #ede8f5;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.msm-hint {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Rangée de chips catégories */
.msm-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

/* ── Pastilles Destination (Où) ────────────────────────────────────────── */
.step-ou-tag {
    border: 1.5px solid #e0e0e0 !important;
    background: white !important;
    color: #555 !important;
}

.step-ou-tag i {
    color: #2c3e50 !important;
}

.step-ou-tag:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
}

.step-ou-tag.active {
    background: #d8d8d8 !important;
    border-color: #aaa !important;
    color: #333 !important;
}

.step-ou-tag.active i {
    color: #2c3e50 !important;
}

/* ── Pastilles Quand ───────────────────────────────────────────────────── */
.step-quick-date-btn {
    border: 1.5px solid #e0e0e0 !important;
    background: white !important;
    color: #555 !important;
}

.step-quick-date-btn i {
    color: #2c3e50 !important;
}

.step-quick-date-btn:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
}

.step-quick-date-btn.active {
    background: #d8d8d8 !important;
    border-color: #aaa !important;
    color: #333 !important;
}

.step-quick-date-btn.active i {
    color: #2c3e50 !important;
}

/* Chip catégorie */
.msm-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border: 2px solid #e0e0e0 !important;
    border-radius: 20px;
    background: white !important;
    color: #555 !important;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

/* Picto en couleur de catégorie, texte reste gris */
.msm-cat-chip i {
    color: var(--msm-color, #888) !important;
}

.msm-cat-chip:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
}

.msm-cat-chip.active {
    background: #d8d8d8 !important;
    border-color: #aaa !important;
    color: #333 !important;
}

/* Picto toujours en couleur même à l'état actif */
.msm-cat-chip.active i {
    color: var(--msm-color, #888) !important;
}

/* Chips sous-thèmes — même traitement que les chips catégories */
.msm-sub-chip {
    border: 1.5px solid #e0e0e0 !important;
    background: white !important;
    color: #555 !important;
}

.msm-sub-chip i {
    color: var(--msm-color, #888) !important;
}

/* Icônes des sous-types colorées selon leur catégorie */
.msm-sub-chip[data-cat="manifestations"] i { color: #3498db !important; }
.msm-sub-chip[data-cat="activites"] i      { color: #27ae60 !important; }
.msm-sub-chip[data-cat="hebergement"] i    { color: #e67e22 !important; }
.msm-sub-chip[data-cat="restaurant"] i     { color: #9b59b6 !important; }

.msm-sub-chip:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
}

.msm-sub-chip.selected {
    background: #d8d8d8 !important;
    border-color: #aaa !important;
    color: #333 !important;
}

.msm-sub-chip.selected i {
    color: var(--msm-color, #888) !important;
}

/* Zone des sous-thèmes */
.msm-subtypes-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.35rem;
}

/* Séparateur de catégorie (affiché si multi-cat) */
.msm-cat-label {
    flex-basis: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Texte d'aide sous-thèmes */
.msm-subtype-hint {
    flex-basis: 100%;
    font-size: 0.74rem;
    color: #7f8c8d;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
}

/* ── Bouton Chercher cette étape ───────────────────────────────────────── */
.step-search-area {
    padding: 1rem 1.5rem 0.5rem;
    display: flex;
    justify-content: center;
}

.btn-step-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.6rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.btn-step-search:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-step-search:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Résultats inline de l'étape ──────────────────────────────────────── */

/* Sur la page séjour, la barre de recherche ne doit PAS être sticky
   (sinon elle couvre les résultats inline lors du scroll) */
.sejour-container .search-bar-compact {
    position: static !important;
    top: auto !important;
}

.step-inline-results {
    margin-top: 1.25rem;
    padding: 0 1rem 1rem;
    scroll-margin-top: 90px;
}

.step-inline-results .rlt-synthesis {
    margin: 0 0 1rem;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .msm-cat-chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
        white-space: normal;
    }

    .msm-sub-chip {
        font-size: 0.72rem;
        padding: 0.18rem 0.5rem;
        gap: 0.2rem;
    }
}

