/* ===========================
   STYLES PAGE ACCUEIL
   =========================== */

body.home {
    background-color: #fefbf3;
    padding-bottom: 60px;
}

/* --- BOUTON FIXE SUR LE CÔTÉ (PROGRAMME) --- */
.side-program-btn {
    position: fixed;
    right: 0;
    top: 35%;
    transform: translateY(-50%);
    background-color: #b81d24;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px 0 0 10px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.side-program-btn:hover {
    background-color: #961319;
    padding-left: 18px;
    color: #ffffff;
    text-decoration: none;
}

/* --- HERO HEADER --- */
.hero-header {
    background: #fefbf3 url('/wp-content/uploads/banniere-site-scaled-1.png') center 80%/cover no-repeat;
    text-align: center;
    padding: 180px 15px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    box-shadow: inset 0 -50px 100px -20px #fefbf3; /* Smooth transition to content below */
}



.hero-header h1, .hero-header p, .hero-header .hero-buttons {
    position: relative;
    z-index: 2;
}

.hero-header h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
}

.hero-header p.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 600;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-red {
    background-color: #b81d24;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-red:hover {
    background-color: #961319;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* --- CONTENEUR GÉNÉRAL --- */
.pdc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* --- SECTION ACTUALITÉS PLEINE LARGEUR --- */
.news-section-bg {
    background-color: #1e1e1e;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 40px 0;
    margin-top: 10px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

/* --- CARROUSEL ACTUALITÉS --- */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.news-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none;
    width: 100%;
}

.news-wrapper::-webkit-scrollbar {
    display: none;
}

.news-card {
    min-width: 290px;
    max-width: 290px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.news-card:hover {
    text-decoration: none;
    color: inherit;
}

.card-img-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background-color: #2a2a2a;
}

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

.card-img-zoom {
    transform: scale(1.35);
    object-position: center 25%;
}

.card-content {
    padding-top: 12px;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #ffeb3b;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.card-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 4px;
}

.card-link-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff4d4d;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.25);
}

/* --- PRÉPAREZ VOTRE VISITE --- */
.visit-section-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid #e5e0d8;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #1a1a1a;
}

.info-card-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-card-text {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.4;
}

.circle-arrow {
    align-self: flex-end;
    width: 32px;
    height: 32px;
    background-color: #b81d24;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* --- SECTION IMAGE DE FOND --- */
.pdf-style-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 30px;
    margin-bottom: 30px;
}

.pdf-image-bg {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('/wp-content/uploads/Capture-decran-2026-01-04-a-19.07.38-scaled.png');
    background-size: cover;
    background-position: center 20%;
}

/* --- SECTION FAQ --- */
.faq-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 15px;
}

.faq-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #b4c6e7;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}

.faq-question-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    white-space: normal;
    word-break: break-word;
}

.faq-arrow {
    font-size: 0.95rem;
    color: #1a1a1a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 16px;
}

/* --- POPUP PASS ÉMOTIONS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}

.modal-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    color: #b81d24;
    margin-bottom: 15px;
}

.modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* --- MEDIA QUERIES DESKTOP --- */
@media (min-width: 768px) {
    .side-program-btn {
        top: 40%;
        padding: 12px 18px;
        font-size: 0.95rem;
    }
    .hero-header {
        padding: 250px 20px 120px;
        min-height: 60vh;
    }
    .hero-header h1 {
        font-size: 2.8rem;
    }
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .nav-arrow {
        display: flex;
    }
    .pdf-image-bg {
        height: 450px;
        background-position: center 20%;
    }
    .faq-question-text {
        font-size: 1.15rem;
    }
}

/* DEFILEMENT INFINI */
.carousel-container {
    overflow: hidden;
}

.news-wrapper.infinite-scroll-active {
    width: max-content;
    overflow-x: visible;
    flex-wrap: nowrap;
    animation: marquee 35s linear infinite;
}

.news-wrapper.infinite-scroll-active:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* 10px = la moitié du gap(20px) */
}