/**
 * Theme Name: JGTemplate
 * Template:   twentytwentyfive
 */
.uagb-block-5e5df400.is-grid .uagb-post__inner-wrap .uagb-post__image:first-child {

  margin-bottom: -40px;
}

/* ══════════════════════════════════════════════════════════════
 * A2 — Migration header sticky sans Spectra
 *
 * Usage : remplacer le container Spectra (uagb-position__sticky)
 * dans le template part Header par un WP Group block avec la
 * classe CSS personnalisée "jg-header".
 *
 * Comportement identique à .uagb-position__sticky :
 *   - sticky top:0, z-index 10000
 *   - contenu relatif (z-index:1) pour passer au-dessus du canvas #jg-header-visualizer
 * ══════════════════════════════════════════════════════════════ */
.jg-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
}

/* Variante barre admin WordPress (+32px) */
.admin-bar .jg-header {
    top: 32px;
}

/* Contenu du header au-dessus du canvas visualizer */
/* S15 : cible aussi .is-position-sticky (classe Gutenberg du bloc sticky sans Spectra) */
.jg-header > *,
.jg-header .wp-block-site-title,
.jg-header .wp-block-navigation,
.jg-header nav,
.jg-header a,
.jg-header button,
.is-position-sticky > * {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
 * S3c — Bug #3 : Menu tablette 768–1024px
 * "À propos" ne doit pas se couper sur 2 lignes
 * ══════════════════════════════════════════════════════════════ */

/* Forcer le texte des liens nav sur une seule ligne */
.wp-block-navigation .wp-block-navigation-item__content {
    white-space: nowrap;
}

/* S10 : seuil monté à 900px — en dessous le hamburger est actif (voir jg-player.css) */
@media (min-width: 900px) and (max-width: 1024px) {
    /* Réduire l'écart entre les items nav */
    .wp-block-navigation.is-layout-flex {
        gap: 12px !important;
    }

    /* Réduire le padding horizontal du header sans Spectra */
    .jg-header > .wp-block-group {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Fallback : header Spectra (uagb-block-c67d50e8) encore actif */
    .uagb-block-c67d50e8 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Réduire légèrement la taille de la typo nav pour gagner de l'espace */
    .wp-block-navigation .wp-block-navigation-item__content {
        font-size: clamp(11px, 1.25vw, 14px);
    }
}