/* ==========================================================================
   PAGE: LIBRAIRIE & CAFÉ
   ========================================================================== */

/* --- 1. Hero Section --- */
.page-hero-section {
    position: relative;
    padding: 6rem 2rem;
    background-color: var(--color-primary-accent);
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--color-text-light);
}

.page-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.page-hero-section .container {
    position: relative;
    z-index: 1;
}

.page-hero-section .hero-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-text-light);
}

.page-hero-section .hero-subtitle {
    margin: 0.5rem 0 0;
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--color-secondary-accent);
}

/* --- Base des Sections de Contenu --- */
.content-section {
    padding: 5rem 2rem;
    text-align: center;
}

.content-section .section-title {
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 2.8rem;
}

.content-section .section-description,
.content-section .wysiwyg-content,
.content-section>p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-section .wysiwyg-content {
    line-height: 1.7;
}

/* --- 2. Séparateur "Le Coeur" --- */
.section-coeur {
    position: relative;
    background-color: #fff;
}

.section-coeur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-secondary-accent), transparent);
    opacity: 0.5;
}

.section-coeur::before {
    content: '✦';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    font-size: 1.8rem;
    color: var(--color-secondary-accent);
    background-color: var(--color-background);
    z-index: 2;
}

/* --- 3 & 4. Sections 2 Colonnes (Librairie & Café) --- */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.two-column-section.image-left {
    grid-template-areas: "image text";
}

.two-column-section.image-left .section-image {
    grid-area: image;
}

.two-column-section.image-left .section-text {
    grid-area: text;
}

.two-column-section .section-text h2 {
    margin-top: 0;
    font-size: 2.8rem;
}

.two-column-section .section-text h3 {
    margin-top: 2rem;
    font-size: 1.8rem;
    color: var(--color-primary-accent);
}

.two-column-section .section-text .wysiwyg-content ul {
    list-style: none;
    padding: 0;
}

.two-column-section .section-text .wysiwyg-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.two-column-section .section-text .wysiwyg-content ul li::before {
    content: '📖';
    position: absolute;
    left: 0;
}

.two-column-section .section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Wrapper spécifique pour la section café */
.cafe-section-wrapper {
    background-color: var(--color-sage-green);
    color: var(--color-text-light);
}

.cafe-section-wrapper .section-text h2,
.cafe-section-wrapper .section-text h3 {
    color: var(--color-text-light);
}

.cafe-section-wrapper .partner-text {
    margin-top: 1rem;
    font-style: italic;
    text-align: center;
}

/* --- 5. Section Atmosphère (Carrousel) --- */
.atmosphere-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.atmosphere-section .section-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.atmosphere-carousel-wrapper {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 60px;
}

.atmosphere-swiper {
    padding-bottom: 50px;
}

.atmosphere-swiper .swiper-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(107, 76, 139, 0.15);
}

.atmosphere-carousel-wrapper .swiper-button-next,
.atmosphere-carousel-wrapper .swiper-button-prev {
    top: 175px;
    transform: translateY(-50%);
    margin-top: 0;
    width: 48px;
    height: 48px;
    background-color: var(--color-background);
    color: var(--color-primary-accent);
    border-radius: 50%;
    border: 1px solid rgba(107, 76, 139, 0.1);
    box-shadow: 0 4px 15px rgba(107, 76, 139, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.atmosphere-carousel-wrapper .swiper-button-next::after,
.atmosphere-carousel-wrapper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.atmosphere-carousel-wrapper .swiper-button-prev {
    left: 0;
}

.atmosphere-carousel-wrapper .swiper-button-next {
    right: 0;
}

.atmosphere-carousel-wrapper .swiper-button-next:hover,
.atmosphere-carousel-wrapper .swiper-button-prev:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 76, 139, 0.3);
}

.atmosphere-swiper .swiper-pagination {
    bottom: 0;
}

.atmosphere-swiper .swiper-pagination-bullet {
    background-color: var(--color-primary-accent);
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.atmosphere-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

/* --- 6. Informations Pratiques --- */
.info-section {
    background-color: var(--color-primary-accent);
    color: var(--color-text-light);
}

.info-section .section-title {
    color: var(--color-text-light);
}

.info-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 4rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    padding: 3rem 2rem;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--color-secondary-accent);
}

.info-card h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--color-primary-accent);
}

.info-card .info-card-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* --- 7. Final CTA Section --- */
.final-cta-section .closing-line {
    margin-top: 1.5rem;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-secondary-accent);
}

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

@media (max-width: 992px) {
    .two-column-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-column-section.image-left {
        grid-template-areas: "text" "image";
    }
}

@media (max-width: 768px) {
    .atmosphere-carousel-wrapper {
        padding: 0 20px;
    }

    .atmosphere-carousel-wrapper .swiper-button-prev {
        left: -5px;
    }

    .atmosphere-carousel-wrapper .swiper-button-next {
        right: -5px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}