/* =====================================================
   VARIABLES & RESET — v2 (listing-fix)
   ===================================================== */
:root {
    --cream:   #f0ebe0;
    --dark:    #1a1a1a;
    --gold:    #e9c058;
    --gold2:   #c9a03a;
    --shadow:  rgba(0,0,0,0.15);
    --radius:  10px;
    --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Georgia', serif;
    background-color: var(--cream);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: inherit; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #e5dfcf;   /* légèrement plus sombre que #ede8db → contraste renforcé */
    box-shadow: 0 2px 10px var(--shadow);
    height: var(--header-h);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo img {
    height: 52px;
    display: block;
}

.main-nav { flex: 1; }

.main-nav ul {
    display: flex;
    gap: 8px;
    list-style: none;
}

.main-nav a, .nav-admin {
    text-decoration: none;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    padding: 7px 16px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    color: var(--dark);
}

.main-nav a:hover, .nav-admin:hover {
    background: var(--dark);
    color: #fff;
}

.main-nav a.active {
    background: var(--dark);
    color: var(--gold);
}

.nav-admin {
    margin-left: auto;
    font-size: 13px;
    color: #555;           /* was #888 — ratio ~5.7:1 on #ede8db ✓ */
    border: 1px solid #999;
}

.nav-admin:hover { background: #333; color: #fff; }
.nav-admin.active { background: var(--dark); color: var(--gold); }

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.hero .banniere {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: blur(4px) brightness(.65);
    transform: scale(1.06);
}

.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    animation: fadeIn 1.8s ease forwards;
    opacity: 0;
}

.hero-text h1 {
    font-family: 'Palatino Linotype', Palatino, serif;
    font-size: clamp(42px, 8vw, 110px);
    letter-spacing: .02em;
    text-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.hero-text p {
    font-size: clamp(16px, 2.5vw, 26px);
    margin-top: 16px;
    max-width: 700px;
    font-style: italic;
    opacity: .9;
}

@keyframes fadeIn { to { opacity: 1; } }

/* =====================================================
   INTRO / SECTION TITLES
   ===================================================== */
.intro {
    text-align: center;
    padding: 60px 20px 40px;
}

.intro h1 {
    font-family: 'Palatino Linotype', Palatino, serif;
    font-size: 36px;
    margin-bottom: 16px;
}

.intro p {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    color: #555;
}

/* =====================================================
   CARD GRILLE (listing + home courant cards)
   ===================================================== */
.liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding: 40px 28px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card générique de courant */
.card-courant {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform .3s;
    background-size: cover;
    background-position: center;
    background-color: #2a1f14;
    box-shadow: 0 6px 20px var(--shadow);
}

.card-courant:hover  { transform: scale(1.03); }
.card-courant:active { transform: scale(.97); }

.card-courant::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
    transition: .35s ease;
}

.card-courant:hover::before {
    background: rgba(0,0,0,.55);
}

/* Corps de la card : ancré en bas, toujours visible */
.card-courant .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 20px;
    text-align: center;
    opacity: 1;
    transition: .35s ease;
    z-index: 2;
}

.card-courant:hover .card-body {
    bottom: 50%;
    transform: translateY(50%);
}

.card-courant h2 { font-size: 22px; margin-bottom: 8px; }
.card-courant p  { font-size: 14px; opacity: .85; }

/* =====================================================
   OEUVRES (resultat + recherche)
   ===================================================== */
.oeuvres-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.oeuvre-card {
    display: flex;
    gap: 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s;
}

.oeuvre-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.18); }

.oeuvre-card .oeuvre-img {
    flex-shrink: 0;
    width: 200px;
    height: 220px;
    object-fit: cover;
}

.oeuvre-card .oeuvre-img-placeholder {
    flex-shrink: 0;
    width: 200px;
    height: 220px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #aaa;
}

.oeuvre-info {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.oeuvre-info h2 {
    font-family: 'Palatino Linotype', serif;
    font-size: 22px;
    margin-bottom: 4px;
}

.oeuvre-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.oeuvre-info .meta span {
    background: var(--cream);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    color: #444;
}

.oeuvre-info .meta span strong { color: var(--dark); }

/* =====================================================
   COURANT HEADER (resultat.php)
   ===================================================== */
.courant-header {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.courant-header h1 {
    font-family: 'Palatino Linotype', serif;
    font-size: 38px;
}

.courant-header .courant-meta {
    margin-top: 10px;
    font-size: 15px;
    color: #666;
}

/* =====================================================
   RECHERCHE
   ===================================================== */
.mainsearch {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    overflow: hidden;
}

.mainsearch::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(images/radeau.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(.6);
    transform: scale(1.08);
    z-index: -1;
}

.search-box {
    background: #fff;
    border-radius: 14px;
    padding: 48px 44px;
    width: min(580px, 90vw);
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.search-box h2 {
    font-family: 'Palatino Linotype', serif;
    font-size: 26px;
    margin-bottom: 28px;
    text-align: center;
}

.search-box input[type=text] {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border .2s;
    font-family: inherit;
}

.search-box input[type=text]:focus { border-color: var(--gold2); }

.search-error {
    color: #c62828;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}
.search-error.active { display: block; }

.search-btn-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* =====================================================
   BOUTONS GÉNÉRIQUES
   ===================================================== */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 7px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, transform .1s;
    font-family: 'Trebuchet MS', sans-serif;
}

.btn:active { transform: scale(.96); }

.btn-gold   { background: var(--gold);  color: var(--dark); }
.btn-gold:hover { background: var(--gold2); }

.btn-dark   { background: var(--dark);  color: #fff; }
.btn-dark:hover { background: #333; }

.btn-red    { background: #c0392b; color: #fff; }
.btn-red:hover  { background: #962d22; }

.btn-grey   { background: #999; color: #fff; }
.btn-grey:hover { background: #777; }

.btn-top {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.btn-top:hover { background: var(--gold2); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: #ede8db;
    border-top: 1px solid #ddd;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.footer-link {
    text-decoration: none;
    color: #666;
    padding: 4px 10px;
    border-radius: 5px;
    transition: .3s;
}

.footer-link:hover  { background: var(--gold); color: var(--dark); }
.footer-link.active { background: var(--dark); color: var(--gold); }

/* =====================================================
   ADMIN – styles partagés
   ===================================================== */
.admin-wrap {
    max-width: 1060px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.admin-wrap h1 {
    font-family: 'Palatino Linotype', serif;
    font-size: 30px;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 12px;
}

.admin-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 3px 12px var(--shadow);
}

.admin-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0ebe0;
    padding-bottom: 10px;
}

/* TABLE ADMIN */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: #f5f0e8;
    padding: 10px 14px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table tr:hover td { background: #faf7f0; }

.admin-table .td-img img {
    width: 60px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* FORMULAIRE ADMIN */
.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

.admin-form .field {
    margin-bottom: 18px;
}

.admin-form label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.admin-form input[type=text],
.admin-form input[type=date],
.admin-form input[type=url],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    transition: border .2s;
    background: #fafafa;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--gold2);
    outline: none;
    background: #fff;
}

.admin-form .hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.admin-form .form-btns {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.admin-form .img-preview {
    max-width: 160px;
    max-height: 180px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: none;
}

/* CONFIRMATION PAGE */
.confirm-box {
    max-width: 600px;
    margin: 80px auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
}

.confirm-box h1 {
    font-family: 'Palatino Linotype', serif;
    font-size: 26px;
    margin-bottom: 16px;
}

.confirm-box p  { color: #555; margin-bottom: 28px; line-height: 1.6; }
.confirm-box .confirm-btns { display: flex; gap: 14px; justify-content: center; }

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--gold2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* MSG */
.msg-error   { background:#fdecea; color:#c62828; border:1px solid #f5c6cb; border-radius:7px; padding:12px 16px; margin-bottom:20px; font-size:14px; }
.msg-success { background:#e8f5e9; color:#2e7d32; border:1px solid #c8e6c9; border-radius:7px; padding:12px 16px; margin-bottom:20px; font-size:14px; }

/* Lien Privé dans le burger (mobile uniquement) — masqué sur desktop */
.nav-admin-mobile { display: none; }

/* =====================================================
   HAMBURGER MENU
   ===================================================== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    transition: background .2s;
    margin-left: auto;
    flex-shrink: 0;
}

.burger:hover { background: rgba(0,0,0,.09); }

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 900px) {
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table      { min-width: 560px; }

    .oeuvres-grid { padding: 0 12px; }

    .admin-wrap   { padding: 0 16px; }
    .admin-section { padding: 20px 16px; }
}

/* Mobile */
@media (max-width: 700px) {
    /* Hero */
    .hero .banniere { height: 320px; }
    .hero { max-height: 320px; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p  { font-size: 15px; margin-top: 10px; }

    /* Cards listing mobile : 1 colonne pleine largeur */
    .liste {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
        gap: 16px;
    }
    .card-courant { width: 100%; height: 200px; max-width: 100%; }

    /* Oeuvres */
    .oeuvre-card  { flex-direction: column; }
    .oeuvre-card .oeuvre-img,
    .oeuvre-card .oeuvre-img-placeholder { width: 100%; height: 200px; }
    .oeuvre-info  { padding: 16px 14px; }
    .oeuvre-info h2 { font-size: 18px; }
    .oeuvres-grid { margin: 24px auto; gap: 16px; }

    /* Header – burger */
    .burger           { display: flex; }
    .nav-admin        { display: none; }   /* bouton desktop masqué */
    .nav-admin-mobile {
        display: block;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
    }

    /* Nav mobile : caché par défaut, glisse depuis le haut */
    .main-nav {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #ede8db;
        box-shadow: 0 8px 24px rgba(0,0,0,.18);
        padding: 12px 16px 20px;
        transform: translateY(-110%);
        visibility: hidden;
        transition: transform .3s ease, visibility 0s linear .3s;
        z-index: 49;
        flex: unset;
    }

    .main-nav.open {
        transform: translateY(0);
        visibility: visible;
        transition: transform .3s ease, visibility 0s linear 0s;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* Header inner */
    .header-inner { gap: 10px; padding: 0 14px; }
    .site-logo img { height: 42px; }

    /* Search */
    .search-box { padding: 24px 18px; }
    .search-box h2 { font-size: 21px; }

    /* Admin */
    .admin-wrap   { margin: 20px auto 40px; padding: 0 14px; }
    .admin-wrap h1 { font-size: 22px; }
    .admin-section { padding: 16px 14px; }
    .admin-section h2 { font-size: 16px; flex-wrap: wrap; gap: 8px; }

    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
    .admin-table      { min-width: 520px; font-size: 13px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }

    /* Forms */
    .admin-form { max-width: 100%; }
    .admin-form .form-btns { flex-direction: column-reverse; }
    .admin-form .form-btns .btn { width: 100%; text-align: center; }

    /* Confirm */
    .confirm-box { margin: 40px 14px; padding: 28px 20px; }
    .confirm-box .confirm-btns { flex-direction: column; align-items: center; }
    .confirm-box .confirm-btns .btn { width: 100%; text-align: center; }

    /* Courant header */
    .courant-header { margin: 20px auto 0; }
    .courant-header h1 { font-size: 26px; }

    /* Footer */
    .site-footer { flex-direction: column; text-align: center; gap: 10px; padding: 14px 16px; }

    /* Date range row */
    .date-mode-content .range-row { flex-direction: column; gap: 6px; }
    .date-mode-content .range-row span { display: none; }
}

/* =====================================================
   DATE PICKER CUSTOM (tranches / précis / siècle)
   ===================================================== */
.date-picker-wrap {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.date-mode-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.date-mode-tab {
    flex: 1;
    padding: 8px 6px;
    border: none;
    background: #f0ebe0;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    color: #666;
    transition: .2s;
    border-right: 1px solid #ddd;
}

.date-mode-tab:last-child { border-right: none; }

.date-mode-tab.active {
    background: var(--gold);
    color: var(--dark);
    font-weight: bold;
}

.date-mode-tab:hover:not(.active) { background: #e8e3d8; }

.date-mode-content { padding: 14px; display: none; }
.date-mode-content.active { display: block; }

.date-mode-content input[type=date],
.date-mode-content input[type=number],
.date-mode-content select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.date-mode-content .range-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-mode-content .range-row input { flex: 1; }
.date-mode-content .range-row span  { color: #888; font-size: 13px; white-space: nowrap; }

.date-preview {
    margin-top: 8px;
    font-size: 12px;
    color: var(--gold2);
    font-style: italic;
    min-height: 18px;
}

/* =====================================================
   IMAGE PICKER (styled like date picker)
   ===================================================== */
.img-picker-wrap {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.img-picker-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.img-picker-tab {
    flex: 1;
    padding: 8px 6px;
    border: none;
    background: #f0ebe0;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    color: #666;
    transition: .2s;
    border-right: 1px solid #ddd;
}

.img-picker-tab:last-child { border-right: none; }

.img-picker-tab.active {
    background: var(--gold);
    color: var(--dark);
    font-weight: bold;
}

.img-picker-tab:hover:not(.active) { background: #e8e3d8; }

.img-picker-content { padding: 14px; display: none; }
.img-picker-content.active { display: block; }

.img-picker-content input[type=file],
.img-picker-content input[type=url] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border .2s;
}

.img-picker-content input[type=file] {
    padding: 6px 10px;
    cursor: pointer;
}

.img-picker-content input[type=url]:focus {
    border-color: var(--gold2);
    outline: none;
}

.img-picker-preview-wrap {
    margin-top: 10px;
    display: none;
    align-items: flex-start;
    gap: 12px;
}

.img-picker-preview-wrap.visible { display: flex; }

.img-picker-preview-wrap img {
    max-width: 140px;
    max-height: 160px;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

.img-picker-preview-info {
    font-size: 12px;
    color: #888;
    font-style: italic;
    padding-top: 4px;
}

.img-picker-preview-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-style: normal;
    font-weight: bold;
}

.img-picker-preview-badge.file { background: #e8f5e9; color: #2e7d32; }
.img-picker-preview-badge.url  { background: #e3f2fd; color: #1565c0; }

@media (max-width: 700px) {
    .img-picker-preview-wrap { flex-direction: column; }
    .img-picker-preview-wrap img { max-width: 100%; max-height: 180px; width: 100%; }
    .img-tabs { display: none; } /* hide old tabs if any */
}

/* =====================================================
   CARD COURANT – LISTING variant (texte toujours visible)
   ===================================================== */

/* Dégradé permanent en bas de la carte */
.card-courant.card-listing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,6,2,.82) 0%,
        rgba(10,6,2,.35) 45%,
        transparent 72%
    );
    pointer-events: none;
    transition: opacity .4s ease;
}

/* Le card-body est TOUJOURS visible sur listing */
.card-courant.card-listing .card-body {
    opacity: 1;
    transform: none;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 22px 20px;
    z-index: 2;
}

/* Hover artistique listing : effet "aquatinte" – désaturation + grain sépia */
.card-courant.card-listing::before {
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px) grayscale(0%) sepia(0%);
    transition: background .45s ease, backdrop-filter .45s ease;
}

.card-courant.card-listing:hover::before {
    background: rgba(20,10,0,.18);
    backdrop-filter: blur(1px) grayscale(60%) sepia(40%);
}

/* Le dégradé se renforce légèrement au hover */
.card-courant.card-listing:hover::after {
    opacity: 0.7;
}

/* Trait doré décoratif qui s'étire au hover */
.card-courant.card-listing .card-body::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 10px;
    border-radius: 2px;
    transition: width .4s ease;
}

.card-courant.card-listing:hover .card-body::before {
    width: 56px;
}

/* Sous-titre créateur en italique doré */
.card-courant.card-listing .card-subtitle {
    font-size: 12px;
    opacity: .75;
    font-style: italic;
    color: var(--gold);
    margin-top: 4px;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 5, 2, 0.92);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    animation: lbFadeIn .25s ease;
}

.lightbox-overlay.active { display: flex; }

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-inner {
    position: relative;
    max-width: min(90vw, 1000px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: default;
    animation: lbSlideUp .3s ease;
}

@keyframes lbSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 80px rgba(0,0,0,.7);
    /* cadre doré façon musée */
    border: 6px solid #c9a03a;
    outline: 1px solid rgba(201,160,58,.3);
}

.lightbox-caption {
    color: rgba(255,255,255,.85);
    font-family: 'Palatino Linotype', serif;
    font-size: 16px;
    font-style: italic;
    text-align: center;
    letter-spacing: .03em;
}

.lightbox-caption span {
    color: var(--gold);
    font-style: normal;
    font-size: 13px;
    margin-left: 8px;
    opacity: .7;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, transform .2s;
    line-height: 1;
    padding: 4px 8px;
}

.lightbox-close:hover { opacity: 1; transform: scale(1.15) rotate(90deg); }

/* Les images de peintures deviennent cliquables */
.oeuvre-img.lb-trigger {
    cursor: zoom-in;
    transition: filter .25s ease, transform .25s ease;
}

.oeuvre-img.lb-trigger:hover {
    filter: brightness(1.08);
    transform: scale(1.02);
}
