/* ====================================
   RÉGION — DESIGN PREMIUM
   Playfair Display + Lato
   ==================================== */

/* ---- SECTIONS ---- */
.rs-section {
    padding: 6rem 0;
    overflow: hidden;
}

.rs-bg-light  { background: #FAFAF8; }
.rs-bg-white  { background: #ffffff; }

/* ---- ASYMMETRIC LAYOUT ---- */
.rs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- LEFT: INTRO COLUMN ---- */
.rs-intro {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-right: 3rem;
    padding-top: 0.5rem;
}

.rs-tag {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #82291A;
    opacity: 0.85;
}

.rs-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 1.2;
    color: #2e2e2e;
    margin: 0;
}

.rs-rule {
    width: 40px;
    height: 2px;
    background: #82291A;
    border-radius: 2px;
    margin: 0.4rem 0;
}

.rs-text {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #666;
    margin: 0;
}

/* ---- RIGHT: SLIDER WRAP ---- */
.rs-slider-wrap {
    position: relative;
    overflow: hidden;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 0.5rem;
}

/* ---- CARDS ---- */
.rs-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}
.rs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.rs-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.rs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rs-card:hover .rs-card-img img {
    transform: scale(1.04);
}

/* Placeholder images — tons pierre naturelle */
.rs-img-stone1 { background: linear-gradient(145deg, #c9b99a 0%, #8a7560 100%); }
.rs-img-stone2 { background: linear-gradient(145deg, #b5a88e 0%, #7a6952 100%); }
.rs-img-stone3 { background: linear-gradient(145deg, #d2c4ad 0%, #9c8c74 100%); }
.rs-img-stone4 { background: linear-gradient(145deg, #bfb09a 0%, #87745e 100%); }
.rs-img-stone5 { background: linear-gradient(145deg, #a89880 0%, #6e5e4a 100%); }
.rs-img-stone6 { background: linear-gradient(145deg, #c4b8a2 0%, #9a8a72 100%); }

/* Nature placeholders — verts & bleus ligériens */
.rs-img-nature1 { background: linear-gradient(145deg, #7aaa7a 0%, #3d7a3d 100%); }
.rs-img-nature2 { background: linear-gradient(145deg, #5e9abd 0%, #2a6085 100%); }
.rs-img-nature3 { background: linear-gradient(145deg, #7eaab8 0%, #3a7087 100%); }
.rs-img-nature4 { background: linear-gradient(145deg, #4e8ca6 0%, #1f5e78 100%); }
.rs-img-nature5 { background: linear-gradient(145deg, #6aac70 0%, #2d7035 100%); }
.rs-img-nature6 { background: linear-gradient(145deg, #9575b0 0%, #5e3a7a 100%); }
.rs-img-nature7 { background: linear-gradient(145deg, #c0956a 0%, #8a5a30 100%); }

/* Expériences placeholders — tons chaleureaux */
.rs-img-exp1 { background: linear-gradient(145deg, #b5703a 0%, #7a4018 100%); }
.rs-img-exp2 { background: linear-gradient(145deg, #c8925a 0%, #8c5828 100%); }
.rs-img-exp3 { background: linear-gradient(145deg, #a080c0 0%, #6040a0 100%); }
.rs-img-exp4 { background: linear-gradient(145deg, #7ab0b0 0%, #3a7070 100%); }
.rs-img-exp5 { background: linear-gradient(145deg, #c09060 0%, #8a5830 100%); }

.rs-card-body {
    padding: 1.4rem 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rs-card-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2e2e2e;
    margin: 0;
    line-height: 1.3;
}

.rs-dist {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.rs-dist .fa-location-dot { color: #82291A; font-size: 0.7rem; }

.rs-btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #82291A;
    text-decoration: none;
    border-bottom: 1px solid rgba(130,41,26,0.35);
    padding-bottom: 2px;
    width: fit-content;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.rs-btn:hover {
    color: #5a1a0e;
    border-color: #82291A;
}

/* ---- SWIPER OVERRIDE ---- */
.rs-swiper {
    overflow: hidden;
}

.rs-swiper .swiper-slide {
    height: auto;
}

.rs-swiper .rs-card {
    flex: none;
    width: 100%;
}

/* ---- SWIPER NAVIGATION BUTTONS ---- */
.rs-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    color: #2e2e2e;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    z-index: 10;
}
.rs-swiper-btn:hover {
    background: #82291A;
    color: #fff;
    border-color: #82291A;
    box-shadow: 0 6px 20px rgba(130,41,26,0.25);
}
.sw1-prev, .sw2-prev, .sw3-prev { left: 4px; }
.sw1-next, .sw2-next, .sw3-next { right: 4px; }

.rs-swiper-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ---- NAVIGATION ARROWS (legacy — kept for fallback) ---- */
.rs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    color: #2e2e2e;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    z-index: 10;
}
.rs-arrow:hover {
    background: #82291A;
    color: #fff;
    border-color: #82291A;
    box-shadow: 0 6px 20px rgba(130,41,26,0.25);
}
.rs-prev { left: -22px; }
.rs-next { right: 18px; }

/* Arrow fade when at limits */
.rs-arrow[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

/* ---- REVERSE LAYOUT (section 2 : Nature et Culture) ---- */
/* order: ne fonctionne PAS en Grid — on utilise grid-column à la place */
.rs-reverse .rs-layout {
    grid-template-columns: 1fr 280px;
}
.rs-reverse .rs-slider-wrap {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;    /* évite le débordement en grid */
    width: 100%;
}
.rs-reverse .rs-intro {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
    padding-left: 3rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .rs-layout {
        grid-template-columns: 240px 1fr;
    }
    .rs-reverse .rs-layout {
        grid-template-columns: 1fr 240px;
    }
    .rs-reverse .rs-intro {
        padding-left: 2rem;
    }
}

@media (max-width: 900px) {
    .rs-section {
        padding: 4rem 0;
    }

    .rs-layout,
    .rs-reverse .rs-layout {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .rs-intro,
    .rs-reverse .rs-intro {
        padding-right: 0;
        padding-left: 0;
        grid-column: auto;
        grid-row: auto;
        order: 0;
    }

    .rs-slider-wrap,
    .rs-reverse .rs-slider-wrap {
        grid-column: auto;
        grid-row: auto;
        order: 1;
        padding-left: 44px;
        padding-right: 44px;
    }

    .rs-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .rs-title { font-size: 1.7rem; }
    .rs-card-img { height: 160px; }
    .rs-slider-wrap { padding-left: 38px; padding-right: 38px; }
}
