/* decouvrir_v2.css — Styles spécifiques à la page Découvrir V2 */

/* Section grille des régions */
.regions-cards-section {
    background: #f8f9fa;
    padding: 3rem 2rem 4rem;
}

.regions-cards-container {
    max-width: 1400px;
    margin: 0 auto;
}

.regions-cards-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 2rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

/* Grille 13 cards */
.regions-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* Card individuelle */
.region-card {
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 210px;
    background: #2c3e50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

/* Photo en background */
.region-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #3d5166;
    transition: transform 0.35s ease;
}

.region-card:hover .region-card-img {
    transform: scale(1.05);
}

/* Gradient overlay */
.region-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem 1.25rem;
    transition: background 0.25s ease;
}

.region-card:hover .region-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.region-card-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.region-card-stats {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.region-card-stats i {
    font-size: 0.75rem;
}

/* Badge sans photo */
.region-card--no-photo .region-card-img {
    background: linear-gradient(135deg, #2c3e50 0%, #3d5a75 100%);
}


/* =====================================================
   ONGLETS ESCAPADES (P4)
   ===================================================== */

.escapades-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.etab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}

.etab:hover,
.etab.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.etab i { font-size: 0.75rem; }

/* =====================================================
   TOP VILLES (P3)
   ===================================================== */

.villes-search-wrap {
    position: relative;
    max-width: 360px;
    margin-bottom: 1.25rem;
}

.villes-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s;
}

.villes-search-wrap:focus-within .villes-search-icon {
    color: #2c3e50;
}

.villes-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.7rem;
    border: 1.5px solid #e2e2e2;
    border-radius: 30px;
    font-size: 0.92rem;
    color: #333;
    background: #f8f9fa;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.villes-search-input::placeholder {
    color: #aaa;
}

.villes-search-input:focus {
    outline: none;
    border-color: #2c3e50;
    background: white;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.08);
}

.villes-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e2e2e2;
    color: #666;
    font-size: 0.68rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.villes-search-clear:hover {
    background: #2c3e50;
    color: white;
}

.villes-search-wrap.has-value .villes-search-clear {
    display: flex;
}

.villes-search-empty {
    color: #888;
    font-size: 0.9rem;
    padding: 0.5rem 0 1rem;
}

.top-villes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ville-card-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    gap: 0.5rem;
}

.ville-card-v2:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44,62,80,0.15);
}

.v-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.v-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-count {
    font-size: 0.78rem;
    color: #888;
    transition: color 0.2s;
}

.ville-card-v2:hover .v-count { color: rgba(255,255,255,0.8); }

.v-arrow {
    font-size: 0.75rem;
    color: #bbb;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ville-card-v2:hover .v-arrow { color: rgba(255,255,255,0.8); }

/* Bouton voir tout le département */
.btn-explorer-dept {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-explorer-dept:hover {
    background: #2c3e50;
    color: white;
}

/* Bouton accordéon "Voir toutes les villes" */
.btn-toggle-villes {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.btn-toggle-villes:hover {
    border-color: #2c3e50;
    color: #2c3e50;
}

.btn-toggle-villes i {
    transition: transform 0.2s;
}

.btn-toggle-villes.is-expanded i {
    transform: rotate(180deg);
}

/* =====================================================
   DEPT CARDS V2 (avec stats)
   ===================================================== */

.departments-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.department-card-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
}

.dept-card-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.dept-card-main h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dept-card-count {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.department-card-v2:hover .dept-card-count { color: rgba(255,255,255,0.8); }

/* =====================================================
   INTRO RÉGION — 2 colonnes texte + éventail photos
   ===================================================== */

.region-intro-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.region-intro-text {
    flex: 1;
    min-width: 0;
}

.region-intro-visual {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2.5rem; /* compense le translateY de l'éventail */
}

@media (max-width: 900px) {
    .region-intro-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    .region-intro-visual {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    .region-intro-visual .sejour-cards-stack {
        padding-left: 0.5rem;
        padding-right: 1.5rem;
    }
}

/* =====================================================
   PILLS DE NAVIGATION CATÉGORIE (remplace stat-cards)
   ===================================================== */

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.5rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 24px;
    border: 2px solid;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
}

.cat-pill i { font-size: 0.82rem; }

.cat-pill--manifestation { color: #3498db; border-color: #3498db; }
.cat-pill--manifestation:hover { background: #3498db; color: white; }
.cat-pill--activite { color: #27ae60; border-color: #27ae60; }
.cat-pill--activite:hover { background: #27ae60; color: white; }
.cat-pill--hebergement { color: #e67e22; border-color: #e67e22; }
.cat-pill--hebergement:hover { background: #e67e22; color: white; }
.cat-pill--restaurant { color: #8e44ad; border-color: #8e44ad; }
.cat-pill--restaurant:hover { background: #8e44ad; color: white; }
.cat-pill--itineraire { color: #555; border-color: #888; }
.cat-pill--itineraire:hover { background: #555; color: white; border-color: #555; }

/* =====================================================
   EN CE MOMENT
   ===================================================== */

.ecm-header {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.ecm-header .section-title {
    margin-bottom: 0;
}

.ecm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ecm-pill-sub {
    font-size: 0.74rem;
    font-weight: 400;
    opacity: 0.75;
    margin-left: 0.2rem;
}

.ecm-hidden { display: none; }

.en-ce-moment-section .article-grid {
    margin-bottom: 1.5rem;
}

/* Footer "Voir tous" */
.en-ce-moment-footer {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-voir-plus-events {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    color: #3498db;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-voir-plus-events:hover {
    background: #3498db;
    color: white;
}

/* Cas zéro événement */
.no-events-msg {
    color: #888;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .regions-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .region-card {
        height: 180px;
    }

}

@media (max-width: 500px) {
    .regions-cards-section {
        padding: 2rem 1rem 2.5rem;
    }

    .regions-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .region-card {
        height: 150px;
    }

    .region-card-name {
        font-size: 0.95rem;
    }

}
