/* ============================ */
/* A-PROPOS.CSS (Thème Poivre)  */
/* ============================ */
/* CE FICHIER EST MAINTENANT COHÉRENT
   AVEC LE THÈME DE styles.css
*/
/* ============================ */


/* Titre secondaire (spécifique à cette page) */
.section-subtitle {
    font-size: 1.8rem;
    color: var(--text); /* Thème */
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Lora', serif;
}


/* Layout flexible (Image + Texte) */
.section-flex {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start; /* Spécifique à cette page */
}
.col-image {
    flex: 0 0 40%;
    max-width: 40%;
}
.col-image img {
    border-radius: 8px;
    border: 1px solid var(--border); /* Thème */
    width: 100%;
}
.col-text {
    flex: 1;
    font-size: 1.15rem;
    color: var(--muted); /* Thème */
    line-height: 1.8;
}
.col-text p {
    margin-bottom: 1.5rem;
}
.col-text p:last-child {
    margin-bottom: 0;
}
.col-text strong {
    color: var(--accent); /* Thème */
    font-weight: 500;
}
.col-text em {
    color: var(--text); /* Thème */
    font-style: italic;
}

/* Section avec texte seul */
/* (Utilisé aussi par poivre-sichuan.twig) */
.text-only-section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: var(--muted); /* Thème */
    line-height: 1.8;
}
.text-only-section p {
    margin-bottom: 1.5rem;
}
.text-only-section em {
    color: var(--text); /* Thème */
    font-style: italic;
}
.text-only-section .highlight {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent); /* Thème */
    text-align: center;
    margin-top: 2rem;
    font-weight: 500;
}

/* Bloc histoire (poivre-sichuan) : texte + petite illustration du marché romain */
.history-block {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.history-text {
    flex: 1;
}
.history-text p {
    margin-bottom: 0;
}
.history-image {
    flex: 0 0 280px;
}
.img-small-historic {
    width: 100%;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .history-block {
        flex-direction: column;
    }
    .history-image {
        flex-basis: auto;
        width: 100%;
        max-width: 320px;
    }
    .col-image {
        max-width: 100%;
    }
    .col-text {
        font-size: 1.05rem;
    }
} 

/* ============================ */
/* LAYOUT PAGE AVEC ASIDE     */
/* ============================ */

/* On crée une grille à 2 colonnes */
.page-layout-with-aside {
    display: grid;
    /* La 1ère colonne (texte) est flexible, 
       la 2e (aside) fait 250px */
    grid-template-columns: 1fr 250px;
    gap: 2.5rem; /* Espace entre le texte et l'aside */
    align-items: start; /* Aligne les 2 en haut */
}

/* La colonne de texte (juste un conteneur) */
.main-content-column {
    /* (Pas de style spécifique) */
}

/* ============================ */
/* ASIDE COLLANT (CORRIGÉ)    */
/* ============================ */

.sticky-aside {
    position: sticky;
    top: 120px;
    z-index: 900;
    
    /* Apparence (Thème Poivre) */
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    
    /* Contenu */
    padding: 1.5rem;
    width: 250px;
    text-align: center;
}

.sticky-aside h4 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.sticky-aside p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Le .cta-button hérite de styles.css */
.sticky-aside .cta-button {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    /* On repasse en 1 colonne */
    .page-layout-with-aside {
        grid-template-columns: 1fr;
    }
    
    /* On cache l'aside */
    .sticky-aside {
        display: none;
    }
}

/* ============================ */
/* PAGES LÉGALES, PLAN, 404     */
/* ============================ */

.legal-page .section-subtitle {
    margin-top: 2.5rem;
}

.plain-list {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: center;
}

.plain-list li {
    margin-bottom: 0.8rem;
}

.legal-page .cta-wrapper {
    margin-top: 2.5rem;
    text-align: center;
}
