/* ============================================================
   REVEAL — Intersection Observer (pas AOS — bugs iOS)
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transition: opacity .65s ease, transform .65s ease;
}
[data-reveal="fade-up"]    { transform: translateY(30px); }
[data-reveal="fade-left"]  { transform: translateX(-30px); }
[data-reveal="fade-right"] { transform: translateX(30px); }
[data-reveal="fade"]       { transform: none; }
[data-reveal].is-visible   { opacity: 1; transform: none; }

/* ============================================================
   MODELE - Club Retraite et Loisirs à Angoulême
   Copie fidèle de demoid16.fr/test2/
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
    --color-primary:   #fb2056;
    --color-primary-h: #da1c4b;
    --color-dark:      #191919;
    --color-text:      #404040;
    --color-light:     #f5f5f5;
    --color-border:    #dfdfdf;
    --color-rouge:     #861632;
    --color-cyan:      #00bcff;
    --navbar-height:   70px;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-h); }

/* --- Navbar --- */
#navbar {
    min-height: var(--navbar-height);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

#navbar.navbar-scrolled {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

#navbar.navbar-solid {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    line-height: 1;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

#navbar.navbar-scrolled .navbar-brand,
#navbar.navbar-solid .navbar-brand {
    color: var(--color-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9) !important;
    padding: 0 1rem;
    line-height: var(--navbar-height);
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

#navbar.navbar-scrolled .navbar-nav .nav-link,
#navbar.navbar-solid .navbar-nav .nav-link {
    color: var(--color-dark) !important;
}

#navbar.navbar-scrolled .navbar-nav .nav-link:hover,
#navbar.navbar-scrolled .navbar-nav .nav-link.active,
#navbar.navbar-solid .navbar-nav .nav-link:hover,
#navbar.navbar-solid .navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
}

/* Dropdown */
.navbar .dropdown-menu {
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 180px;
    padding: 0.5rem 0;
}

.navbar .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    padding: 0.45rem 1.2rem;
}

.navbar .dropdown-item:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* Toggler + menu mobile */
@media (max-width: 991.98px) {
    #navbar {
        left: 0;
        right: 0;
        width: 100%;
    }
    #navbar > .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .navbar-toggler {
        margin-right: 4px;
        margin-left: auto;
    }
    /* Menu ouvert sur mobile : fond blanc */
    #navbar .navbar-collapse.show {
        background: #fff;
        margin-left: -12px;
        margin-right: -12px;
        padding: 10px 16px 16px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }
    #navbar .navbar-collapse.show .nav-link {
        color: var(--color-dark) !important;
        line-height: 2;
        padding: 0 0.5rem;
    }
    #navbar .navbar-collapse.show .nav-link:hover,
    #navbar .navbar-collapse.show .nav-link.active {
        color: var(--color-primary) !important;
    }
    #navbar .navbar-collapse.show .dropdown-toggle::after {
        border-top-color: var(--color-dark);
    }
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C 255%2C 255%2C 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#navbar.navbar-scrolled .navbar-toggler,
#navbar.navbar-solid .navbar-toggler {
    border-color: rgba(0,0,0,0.3);
}

#navbar.navbar-scrolled .navbar-toggler-icon,
#navbar.navbar-solid .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C 0%2C 0%2C 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero (accueil) --- */
.hero-accueil {
    position: relative;
    width: 100%;
    padding-top: 270px;
    padding-bottom: 270px;
    background-image: url('../img/bandeau-fonce.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-accueil::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(25, 25, 25, 0.39);
}

.hero-accueil .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-accueil h1 {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 700;
    color: #fff;
    font-size: 3.6rem;
}

/* --- Page Bandeau (pages internes) --- */
.page-bandeau {
    position: relative;
    width: 100%;
    padding-top: 230px;
    padding-bottom: 230px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-bandeau::before {
    display: none;
}

.page-bandeau .bandeau-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.page-bandeau h1 {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #fff;
    font-size: 2.5rem;
    margin: 0;
}

/* --- Section titre (fond rouge) --- */
.section-titre-rouge {
    background-color: var(--color-rouge);
    padding: 10px;
    display: inline-block;
}

.section-titre-rouge h2,
.section-titre-rouge span {
    font-weight: 600;
    font-style: italic;
    color: var(--color-light);
    margin: 0;
    font-size: 1.3rem;
}

/* --- Section bienvenue (accueil) --- */
.section-bienvenue {
    padding: 60px 0 40px;
}

.section-bienvenue h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.section-bienvenue h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-dark);
}

.img-section {
    width: 100%;
    border-radius: 4px;
    filter: brightness(103%) contrast(96%) saturate(134%);
    display: block;
}

/* --- Section découvrez nos activités --- */
.section-activites-home {
    padding: 50px 0;
    background: var(--color-light);
}

.activites-home-img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.activites-home-img-caption {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--color-text);
}

.activites-home-titre {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.activites-home-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activites-home-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 16px;
    font-style: oblique;
    border-bottom: 1px solid #ddd;
}

.activites-home-list li:last-child {
    border-bottom: none;
}

.activites-home-list .list-icon {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Section dernières infos (grille articles) --- */
.section-infos {
    padding: 50px 0 60px;
}

.section-infos h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* Cards articles */
.article-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-card .card-img-wrap {
    overflow: hidden;
    height: 200px;
}

.article-card .card-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}

.article-card:hover .card-img-wrap img {
    transform: scale(1.1);
}

.article-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card .card-cat {
    display: inline-block;
    background: var(--color-cyan);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    text-decoration: none;
}

.article-card .card-cat:hover {
    background: var(--color-primary);
    color: #fff;
}

.article-card .card-meta {
    font-size: 12px;
    color: #707070;
    margin-bottom: 8px;
}

.article-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.article-card .card-title:hover {
    color: var(--color-primary);
}

.article-card .card-excerpt {
    font-size: 0.9rem;
    color: #0F0F0F;
    flex-grow: 1;
    margin-bottom: 12px;
}

.article-card .card-link {
    display: inline-block;
    background: #503E3E;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
    transition: background 0.2s ease;
}

.article-card .card-link:hover {
    background: var(--color-rouge);
    color: #fff;
}

/* --- Page Qui sommes-nous --- */
.section-page {
    padding: 60px 0;
}

.section-page h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.section-page h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.section-page-alt {
    background: var(--color-light);
}

.qs-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    padding: 28px 24px;
    height: 100%;
}

.section-page p {
    color: var(--color-text);
    line-height: 1.8;
}

/* --- Page Activités --- */
.activite-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.activite-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.activite-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.activite-card .card-body {
    padding: 20px;
}

.activite-card h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.activite-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin: 0;
}

/* --- Page Les Infos (liste) --- */
.section-les-infos {
    padding: 60px 0;
}

.info-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-list-item:last-child {
    border-bottom: none;
}

.info-list-img {
    width: 200px;
    min-width: 200px;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
}

.info-list-content {
    flex: 1;
}

.info-list-content .cat-badge {
    display: inline-block;
    background: var(--color-cyan);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    text-decoration: none;
}

.info-list-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.info-list-content h3 a {
    color: var(--color-dark);
    text-decoration: none;
}

.info-list-content h3 a:hover {
    color: var(--color-primary);
}

.info-list-content .info-meta {
    font-size: 12px;
    color: #707070;
    margin-bottom: 8px;
}

.info-list-content p {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Catégories filtres (Les Infos) */
.cats-filter {
    margin-bottom: 30px;
}

.cats-filter .btn-cat {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-dark);
    border: 1px solid var(--color-border);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cats-filter .btn-cat:hover,
.cats-filter .btn-cat.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* --- Page Contact --- */
.section-contact {
    padding: 60px 0;
}

.contact-info-box {
    background: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info-box h5 {
    color: var(--color-rouge);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-box p {
    margin: 0;
    color: var(--color-text);
}

.contact-form label {
    font-weight: 600;
    color: var(--color-dark);
}

.contact-form .form-control {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(251,32,86,0.12);
}

.btn-contact {
    background: var(--color-rouge);
    color: #fff;
    font-weight: 600;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.btn-contact:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Carte Google Maps */
.google-map iframe {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    border: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.85);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--color-primary);
}

.site-footer p {
    margin-bottom: 6px;
}

/* --- Alerts contact --- */
.alert-success-msg {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error-msg {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* --- Page Article détail --- */
.section-article {
    padding: 60px 0 80px;
    background: linear-gradient(to right,
        #fff       0%,
        #fff       10%,
        #f2f4f7    10%,
        #f2f4f7    90%,
        #fff       90%,
        #fff       100%
    );
}

/* --- En-tête article : miniature + titre + extrait --- */
.article-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.article-header-thumb {
    width: 160px;
    min-width: 160px;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-header-text {
    flex: 1;
}

.article-extrait {
    font-size: 0.95rem;
    color: #505050;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.article-titre {
    font-size: 1.8rem;
    font-weight: 700;
    color: #191919;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-cat-badge {
    display: inline-block;
    background: var(--color-cyan);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.article-cat-badge:hover {
    background: var(--color-primary);
    color: #fff;
}

.article-date {
    font-size: 0.85rem;
    color: #707070;
}

.article-img-main {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-body p {
    margin-bottom: 1.2rem;
}

/* Conserver les dimensions d'origine des images du contenu WP */
.article-body img {
    max-width: 100%;
    height: auto;
}

.btn-retour {
    display: inline-block;
    background: var(--color-rouge);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-retour:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-nav:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-accueil {
        padding-top: 120px;
        padding-bottom: 100px;
    }
    .page-bandeau {
        padding-top: 150px;
        padding-bottom: 80px;
        min-height: 260px;
    }
    .hero-accueil h1 {
        font-size: 2.2rem;
    }
    /* Navbar mobile collapse */
    .navbar-nav .nav-link {
        line-height: 1;
        padding: 0.6rem 1rem;
        color: var(--color-dark) !important;
    }
}

@media (max-width: 767.98px) {
    .hero-accueil {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .page-bandeau {
        padding-top: 180px;
        padding-bottom: 80px;
        min-height: 280px;
    }
    .hero-accueil h1 {
        font-size: 1.8rem;
    }
    .page-bandeau h1 {
        font-size: 1.8rem;
    }
    .info-list-item {
        flex-direction: column;
    }
    .info-list-img {
        width: 100%;
        min-width: unset;
        height: 400px;
        object-fit: cover;
        object-position: top center;
    }
    .article-header {
        flex-direction: column;
    }
    .article-header-thumb {
        width: 100%;
        min-width: unset;
        height: 320px;
        object-fit: cover;
        object-position: center 20%;
    }
    .section-bienvenue {
        padding-top: 30px;
    }
}

/* ============================================================
   IMAGES FLOTTANTES DANS LE CONTENU (Image2 CKEditor)
   ============================================================ */
.article-body figure.image {
    display: inline-block;
    max-width: 100%;
    margin: .4rem 0 1rem;
}
.article-body figure.image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}
.article-body figure.image figcaption {
    font-size: .82rem;
    color: #777;
    font-style: italic;
    text-align: center;
    margin-top: .3rem;
}
.article-body figure.image.img-float-left {
    float: left;
    margin: .2rem 1.4rem 1rem 0;
    max-width: 45%;
}
.article-body figure.image.img-float-right {
    float: right;
    margin: .2rem 0 1rem 1.4rem;
    max-width: 45%;
}
.article-body::after {
    content: '';
    display: table;
    clear: both;
}
@media (max-width: 575px) {
    .article-body figure.image.img-float-left,
    .article-body figure.image.img-float-right {
        float: none;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
}

/* ============================================================
   GALERIE PHOTOS
   ============================================================ */
.article-gallery {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
}
.article-gallery-titre {
    font-size: 1.1rem;
    font-weight: 700;
    color: #404040;
    margin-bottom: 1rem;
}
/* Carrousel */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-carousel-track {
    display: flex;
    transition: transform .4s ease;
    will-change: transform;
}
.gallery-carousel-slide {
    flex: 0 0 calc(33.333% - 6px);
    margin-right: 8px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}
@media (max-width: 767px) {
    .gallery-carousel-slide { flex: 0 0 calc(50% - 4px); }
}
@media (max-width: 480px) {
    .gallery-carousel-slide { flex: 0 0 100%; margin-right: 0; }
}
.gallery-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.gallery-carousel-slide:hover img { transform: scale(1.06); }
.gallery-carousel-slide::after {
    content: '\F52A';
    font-family: 'Bootstrap-Icons';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(0,0,0,0);
    transition: background .25s;
    pointer-events: none;
}
.gallery-carousel-slide:hover::after { background: rgba(0,0,0,.35); }
.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,.85);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.gallery-carousel-btn:hover { background: #fff; }
.gallery-carousel-btn.prev { left: 8px; }
.gallery-carousel-btn.next { right: 8px; }
.gallery-carousel-btn:disabled { opacity: .3; cursor: default; }
.gallery-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.gallery-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background .2s;
    border: none;
    padding: 0;
}
.gallery-carousel-dot.active { background: var(--color-rouge); }
.article-gallery-nom {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: .8rem;
}
.article-gallery-legende {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.85;
    color: var(--color-text);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-inner img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.lightbox-btn {
    position: absolute;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox-btn:hover { background: rgba(255,255,255,.35); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    font-size: 1.5rem;
}
.lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
}
@media (max-width: 575px) {
    .lightbox-prev { left: -44px; }
    .lightbox-next { right: -44px; }
    .lightbox-btn { width: 36px; height: 36px; font-size: 1.4rem; }
}
