/* ===== RESET & BASE ===== */
.veille-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.veille-page {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
}

.veille-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.veille-section {
    padding: 80px 20px;
}

/* ===== TITRES ===== */
.veille-title {
    font-family: 'Abril Fatface', serif;
    font-size: 72px;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.1;
}

.veille-title .highlight {
    color: #DD9933;
}

.veille-subtitle {
    font-family: 'Abril Fatface', serif;
    font-size: 56px;
    color: var(--text-primary);
    margin-bottom: 30px;
    margin-top: 80px;
    line-height: 1.1;
}

.veille-subtitle .highlight {
    color: #DD9933;
}

/* ===== TEXTE INTRO ===== */
.intro-text {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 900px;
    line-height: 1.9;
    margin-bottom: 40px;
}

.intro-text strong {
    color: var(--text-primary);
}

/* ===== CARTES COMMUNES ===== */
.veille-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.veille-card p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.veille-card strong {
    color: var(--text-primary);
}

/* ===== SECTION SUJET (avec logo) ===== */
.sujet-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}

.sujet-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sujet-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== CARROUSEL OUTILS ===== */
.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.carousel-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-logo svg {
    width: 80px;
    height: 80px;
}

.carousel-title {
    font-family: var(--font-ui);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.carousel-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ===== BOUTONS (unifiés) ===== */
.btn-veille {
    display: inline-block;
    background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
    color: white !important;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(221, 153, 51, 0.3);
}

.btn-veille:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(221, 153, 51, 0.4);
    color: white !important;
}

.btn-veille.disabled {
    background: var(--border-color);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

/* ===== FLÈCHES CARROUSEL ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
}

.carousel-arrow:hover svg {
    fill: white;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
    transition: all 0.3s ease;
}

.carousel-arrow.prev {
    left: -30px;
}

.carousel-arrow.next {
    right: -30px;
}

/* ===== DOTS CARROUSEL ===== */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #DD9933;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: #DD9933;
}

/* ===== AZURE RSS ===== */
.rss-status {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.rss-status.error {
    color: #b5473f;
}

.rss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.rss-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rss-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.rss-meta {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #DD9933;
    margin-bottom: 10px;
}

.rss-item-title {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.rss-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.rss-fallback {
    margin-bottom: 10px;
}

.rss-empty {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .veille-title {
        font-size: 56px;
    }

    .veille-subtitle {
        font-size: 42px;
    }

    .sujet-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sujet-logo {
        margin: 0 auto;
        order: -1;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-card {
        padding: 35px 25px;
    }

    .carousel-logo {
        width: 100px;
        height: 100px;
    }

    .carousel-title {
        font-size: 22px;
    }

    .carousel-desc {
        font-size: 16px;
    }

    .rss-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .veille-title {
        font-size: 42px;
    }

    .veille-subtitle {
        font-size: 32px;
    }

    .veille-card {
        padding: 35px 25px;
    }

    .rss-card {
        padding: 22px;
    }
}
