/* =========================================================
   Expositions for Elementor - styles de base
   ========================================================= */

/* ---------- Variables par défaut (surchargées par Elementor) ---------- */
.expo-sommaire,
.expo-details {
    --expo-accent: #c9a13b;        /* doré séparateurs */
    --expo-title-color: #8b3a0e;   /* brun/rouille des titres */
    --expo-link-color: #222;
    --expo-link-hover: #2e6b2e;    /* vert survol */
    --expo-icon-color: #2e6b2e;    /* flèches vertes */
}

/* =========================================================
   SOMMAIRE
   ========================================================= */
.expo-sommaire {
    display: flex;
    justify-content: center;
}

.expo-sommaire__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expo-sommaire__item {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.expo-sommaire__item::before,
.expo-sommaire__item::marker {
    content: none; /* neutralise les puces de certains thèmes */
}

.expo-sommaire__link {
    display: inline-flex;
    align-items: baseline;
    gap: .6em;
    color: var(--expo-link-color);
    text-decoration: none;
    transition: color .2s ease;
}

.expo-sommaire__link:hover,
.expo-sommaire__link:focus-visible {
    color: var(--expo-link-hover);
}

.expo-sommaire__link:focus-visible {
    outline: 2px dashed var(--expo-accent);
    outline-offset: 2px;
}

.expo-sommaire__icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 1;
    color: var(--expo-icon-color);
    transform: translateY(1px);
}

.expo-sommaire__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.expo-sommaire__text {
    min-width: 0;
}

/* =========================================================
   DÉTAILS
   ========================================================= */
.expo-details {
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.expo-item {
    /* Décalage pour header sticky (surchargé par le contrôle Elementor) */
    scroll-margin-top: 80px;
}

.expo-item:focus {
    outline: none; /* focus programmatique via JS, pas d'outline visuel */
}

/* Séparateur doré */
.expo-item__sep {
    --expo-sep-color: var(--expo-accent);
    width: 400px;
    max-width: 100%;
    height: 1px;
    margin: 0 auto 8px;
    background: var(--expo-sep-color);
}

/* Variante dégradée (option "Fondu" du widget) */
.expo-sep-fade-yes .expo-item__sep {
    background: linear-gradient(
        90deg,
        transparent,
        var(--expo-sep-color) 15%,
        var(--expo-sep-color) 85%,
        transparent
    );
}

/* Titre */
.expo-item__title {
    margin: 0 0 1em;
    text-align: center;
    color: var(--expo-title-color);
    font-size: 1em;
    font-weight: 700;
    line-height: 1.4;
}

/* Image mise en avant */
.expo-item__thumb {
    text-align: center;
    margin-bottom: 1em;
}

.expo-item__thumb img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Contenu enrichi */
.expo-item__content {
    overflow-wrap: break-word;
}

.expo-item__content img {
    max-width: 100%;
    height: auto;
}

.expo-item__content > *:first-child {
    margin-top: 0;
}

.expo-item__content > *:last-child {
    margin-bottom: 0;
}

/* Lien "Retour au sommaire" */
.expo-item__back {
    text-align: center;
    margin: 1em 0 0;
    font-size: .9em;
}

.expo-item__back a {
    color: var(--expo-link-hover);
    text-decoration: none;
}

.expo-item__back a:hover,
.expo-item__back a:focus-visible {
    text-decoration: underline;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767px) {
    .expo-sommaire {
        justify-content: flex-start;
    }

    .expo-item__sep {
        width: 80%;
    }

    .expo-details {
        gap: 2em;
    }
}

/* =========================================================
   Préférences utilisateur
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .expo-sommaire__link {
        transition: none;
    }
}