/* =========================
   HEADER – TRAVEL
   ========================= */

.travel-header {
    margin-bottom: 0.750rem;
}

.travel-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.750rem 1.5rem 0.750rem;
}

.site-title {
    margin: 0;
}


/* =========================
   BANNIÈRE – IMAGE
   ========================= */

.travel-banner {
    position: relative;
    margin-top: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.travel-banner img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================
   TEXTE SUR LA BANNIÈRE
   ========================= */

.travel-banner-text {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    text-align: center;
    z-index: 10;
}

.travel-banner-title {
    margin: 0 0 0.4rem;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.travel-banner-tagline {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}


/* =========================
   MASQUER LE HEADER NATIF
   ========================= */

header .site-title,
header .site-description {
    display: none;
}


/* =========================
   NETTOYAGE TT20 – HOME
   ========================= */

.home .site-content .section-inner {
    padding-top: 0;
}

/* =========================
   CONTENEUR ÉDITORIAL
   ========================= */

.travel-container {
    width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

    background: rgba(246, 241, 232, 0.82);
    padding: 2.5rem 3rem;
}

/* =========================
   TYPOGRAPHIE – ÉDITORIALE
   ========================= */

/* Texte courant */
.travel-container {
    font-size: 1.50rem;
    line-height: 1.25;
}

/* Paragraphes */
.travel-container p {
    margin-top: 0;
    margin-bottom: 0.15em;
}

/* ===== TITRE PRINCIPAL ===== */
.travel-container h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ===== GRANDES PARTIES ===== */
.travel-container h2 {
    font-size: 2.3rem;
    line-height: 1.15;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* ===== SECTIONS (VALIDÉ) ===== */
.travel-container h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* ===== SOUS-ACCROCHES ===== */
.travel-container h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    opacity: 0.85;
}

/* ===== TITRES NON UTILISÉS ===== */
.travel-container h5,
.travel-container h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

/* === Lightbox maison === */
#wm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(42, 38, 34, 0.92);;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

#wm-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#wm-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
}

#wm-lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

#wm-lightbox .wm-close {
    top: 1rem;
    right: 1.5rem;
}

#wm-lightbox .wm-prev {
    left: 2rem;
}

#wm-lightbox .wm-next {
    right: 2rem;
}

/* =========================
   GALERIE – MINIATURES
   ========================= */

.travel-container .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    justify-content: center; /* ⬅️ CENTRAGE DES MINIATURES */
}

.travel-container .gallery-item {
    flex: 0 0 auto;
    margin: 0 !important;
    float: none !important;
}

.travel-container .gallery img {
    width: 80px;          /* ⬅️ ici tu règles le nombre par ligne */
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    cursor: pointer;
}

/* =========================================================
   Travel – Liens des articles (style éditorial)
   ========================================================= */

.travel-articles-list article.travel-article h3 a {
    font-family: inherit;          /* même police que le texte */
    font-size: 1.5rem;               /* même taille que les paragraphes */
    font-weight: 400;              /* pas en gras */
    color: #111;                   /* noir doux */
    text-decoration: underline;    /* toujours souligné */
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

/* Hover discret */
.travel-articles-list article.travel-article h3 a:hover {
    color: #9b2c2c;                /* rouge sourd */
}

/* Neutraliser toute influence du h3 */
.travel-articles-list article.travel-article h3 {
    font-size: inherit;
    font-weight: inherit;
    margin-bottom: 0.4rem;
}

/* =========================================================
   Travel – Grille de liens par shortcode
   ========================================================= */

.travel-articles-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 2.5rem;
    margin: 3rem 0;
}

/* Chaque article devient un simple item */
.travel-articles-list article.travel-article {
    margin: 0;
}

/* Titre = lien (déjà stylé précédemment) */
.travel-articles-list article.travel-article h3 {
    margin: 0 0 0.5rem 0;
}

/* Extrait plus discret */
.travel-articles-list article.travel-article .travel-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

@media (max-width: 1024px) {
    .travel-articles-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .travel-articles-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .travel-articles-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Travel – Masquer les extraits dans la grille
   ========================================================= */

.travel-articles-list article.travel-article .travel-excerpt {
    display: none;
}
