/* ============================================
   STYLES POUR LES PAGES DE PROGRAMME
   ============================================ */

/* TITRE DE LA THÉMATIQUE - TRÈS GRAND */
.hero {
    background: linear-gradient(135deg, #3D7C8C, #5A9FAF);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

/* Hero vert pour transition écologique et nature en ville */
.hero.hero-green {
    background: linear-gradient(135deg, #4A7C59, #6A9C79);
}

.hero h1 {
    font-size: 3.5rem !important;
    color: white;
    font-weight: bold;
}

/* TOUT LE RESTE À LA MÊME TAILLE - 1.05rem */
h2 {
    font-size: 1.05rem !important;
    margin: 1.5rem 0 1rem !important;
    line-height: 1.7;
    font-weight: 600;
    color: #FF6B35 !important;
}

h3 {
    font-size: 1.05rem !important;
    margin: 1.5rem 0 1rem !important;
    line-height: 1.7;
    font-weight: 600;
}

p {
    font-size: 1.05rem !important;
    line-height: 1.7;
    margin-bottom: 1rem;
}

ul {
    margin: 1rem 0;
    padding-left: 2.5rem;
}

li {
    font-size: 1.05rem !important;
    line-height: 1.7;
    margin: 0.6rem 0;
}

ul ul {
    margin: 0.5rem 0;
}

ul ul li {
    font-size: 1.05rem !important;
}

/* DEUX COLONNES - Une seule colonne sans fond */
.deux-colonnes {
    margin: 2rem 0;
}

/* SUBSECTION - Pas de fond, juste du texte */
.subsection {
    margin: 1rem 0;
}

/* HIGHLIGHT-BOX - Pas de fond, juste du texte */
.highlight-box {
    margin: 1rem 0;
}

/* CHIFFRES CLÉS - GRANDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    background: #F5F1E8;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat-item .number {
    font-size: 3rem !important;
    font-weight: bold;
    color: #3D7C8C;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.05rem !important;
}

/* Bouton retour */
.back-button {
    display: inline-block;
    background: #3D7C8C;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin: 2rem 0;
    font-size: 1.05rem;
}

.back-button:hover {
    background: #2d5c6c;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 10px;
}

/* Section d'introduction */
.intro-section {
    margin: 2rem 0;
}

.intro-section p {
    font-size: 1.05rem !important;
    font-weight: bold;
}

/* Images centrées */
.image-center {
    text-align: center;
    margin: 30px 0;
}

.image-center-small {
    text-align: center;
    margin: 20px 0;
}

/* Titres avec espacement */
.title-spaced {
    margin-top: 25px;
}

.title-spaced-large {
    margin-top: 30px;
}

/* Paragraphes avec espacement */
.paragraph-spaced {
    margin-bottom: 15px;
}

.paragraph-spaced-both {
    margin: 15px 0;
}

/* Listes sans puces avec indentation */
.list-no-bullets {
    margin-top: 10px;
    list-style: none;
    padding-left: 20px;
}

/* Citation finale en grand */
.quote-large {
    font-size: 1.3em;
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
}

/* ============================================
   STYLES POUR LA PAGE LISTE PROGRAMME
   ============================================ */

.programme-intro-section {
    background-color: #F5F1E8;
    padding: 4rem 0;
    width: 100%;
}

.programme-intro-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.programme-intro-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #FF6B35;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
}

/* Section édito avec photo */
.edito-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.edito-header h2 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.photo-edito {
    margin: 1.5rem 0;
}

.photo-edito img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Deux colonnes : édito + piliers */
.two-columns-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
    align-items: start;
}

.edito-column {
    display: flex;
    flex-direction: column;
}

.edito-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.edito-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.edito-text p:last-child {
    margin-bottom: 0;
}

.edito-text strong {
    color: #2c2c2c;
}

.piliers-column h3 {
    color: #FF6B35;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.piliers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pilier {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #FF6B35;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.pilier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #FF8C5A);
}

.pilier:nth-child(1) { border-left-color: #FF6B35; }
.pilier:nth-child(1)::before { background: linear-gradient(90deg, #FF6B35, #FF8C5A); }

.pilier:nth-child(2) { border-left-color: #4A7C59; }
.pilier:nth-child(2)::before { background: linear-gradient(90deg, #4A7C59, #6A9C79); }

.pilier:nth-child(3) { border-left-color: #7B4B94; }
.pilier:nth-child(3)::before { background: linear-gradient(90deg, #7B4B94, #9B6BA8); }

.pilier:nth-child(4) { border-left-color: #C84B31; }
.pilier:nth-child(4)::before { background: linear-gradient(90deg, #C84B31, #E56B55); }

.pilier:nth-child(5) { border-left-color: #3D7C8C; }
.pilier:nth-child(5)::before { background: linear-gradient(90deg, #3D7C8C, #5A9FAF); }

.pilier p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    color: #2c2c2c;
}

.pilier strong {
    color: #1a1a1a;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.conclusion-box {
    background: linear-gradient(135deg, #4A7C59, #6A9C79);
    color: white;
    padding: 3rem;
    margin: 4rem 0 3rem 0;
    border-radius: 20px;
    text-align: center;
    grid-column: 1 / -1;
    box-shadow: 0 8px 30px rgba(74, 124, 89, 0.3);
    position: relative;
    overflow: hidden;
}

.conclusion-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(180deg); }
}

.conclusion-box p {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    font-weight: 500;
    line-height: 1.6;
}

.photo-center {
    text-align: center;
    margin: 3rem 0;
    grid-column: 1 / -1;
}

.photo-center img {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.signature {
    text-align: right;
    font-weight: bold;
    margin-top: 2rem;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    grid-column: 1 / -1;
    color: #FF6B35;
    font-style: italic;
}

.cta-section {
    background: linear-gradient(135deg, #FF6B35, #FF8C5A);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 0;
}

.cta-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: white;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    text-align: center;
}

.themes-grid {
    padding: 4rem 0;
    background-color: white;
    width: 100%;
}

.themes-grid h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #FF6B35;
    font-family: 'Poppins', sans-serif;
    padding: 0 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.theme-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.theme-card .card-header {
    padding: 2rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Colors are now set dynamically via inline styles */
}

.theme-card .card-body {
    padding: 2rem;
    min-height: 150px;
}

.theme-card .card-body p {
    margin-bottom: 0;
    color: #555555;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

    .conclusion-box,
    .photo-center,
    .signature {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .programme-intro-content h1 {
        font-size: 2rem;
    }

    .edito-header h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .themes-grid h2 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COULEURS H2 PAR THÈME - MAINTENANT GÉRÉ PAR PARAMÈTRES
   ============================================ */

/* Les couleurs des h2 sont maintenant définies dans chaque fichier .md 
   via le paramètre theme_color et appliquées via du CSS inline dans le template */