/*
Theme Name:   GeneratePress NH
Theme URI:    https://nature-humaine.ca/
Description:  Thème enfant GeneratePress pour Nature Humaine
Author:       Nature Humaine
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepress-nh
*/

/* =============================================
   1. TYPOGRAPHIE & COULEURS GLOBALES
   ============================================= */

:root {
    --nh-orange: #ff5732;
    --nh-dark:   #1a1a1a;
    --nh-gray:   #f5f5f5;
    --nh-border: #e4e4e4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

a {
    color: var(--nh-orange);
}

a:hover {
    color: #c93d1e;
    text-decoration: none;
}

/* =============================================
   2. LAYOUT — LARGEUR 1200px
   ============================================= */

.site-content .inside-article,
.site-header .inside-header,
.site-footer .inside-site-info {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    /* padding-left: 20px;
    padding-right: 20px; */
}

.grid-container {
    max-width: 1200px;
}

/* =============================================
   3. HEADER
   ============================================= */

.site-header {
    background: #fff;
    padding: 18px 0 0 0;
    text-align: center;
}

.inside-header {
    display: block !important;   /* désactive le flex GP pour centrer */
    padding: 0;
    text-align: center;
}

/* Desktop : logo gauche | search droite | tagline pleine largeur en dessous */
.site-branding-container {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 28px;
}

/* Col 1, row 1 : logo image */
.site-logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

/* display:contents retire la boite : les enfants participent à la grille parente */
.site-branding {
    display: contents;
}

/* Titre texte : caché (logo image actif) */
.site-logo ~ .site-branding .main-title {
    display: none;
}

/* Titre principal : "NATURE HUMAINE" */
.main-title {
    margin: 0 0 6px;
}

.main-title a {
    color: #000 !important;
    font-weight: 900;
    font-size: 40px;
    line-height: 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.main-title a:hover {
    color: #000 !important;
}

/* Carré orange entre NATURE et HUMAINE */
.nh-circle {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: var(--nh-orange);
    border-radius: 4px;
    margin: 0 10px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Tagline longue : col 1/-1, row 2 — pleine largeur sous le logo et la recherche */
.nh-tagline-long {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    line-height: 1.5;
    margin: 10px 0 14px;
    letter-spacing: 0.3px;
    text-align: center;
}

/* Tagline courte (mobile) */
.nh-tagline-short {
    display: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 12px;
}

/* Formulaire de recherche : col 2, row 1 */
.nh-header-search {
    display: flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    width: 95%;
    max-width: none;
    margin: 0;
    border: 1px solid #888;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.nh-search-input {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    background: transparent;
    box-shadow: none !important;
    min-width: 0;
}

.nh-search-input::placeholder {
    color: var(--nh-orange);
    font-weight: 900;
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
}

.nh-search-btn {
    background: transparent;
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    flex-shrink: 0;
}

.nh-search-btn:hover {
    color: var(--nh-orange);
    background: transparent;
}

/* Responsive header */
@media (max-width: 768px) {
    .main-title a { font-size: 26px; letter-spacing: 2px; }
    .nh-circle { width: 14px; height: 14px; border-radius: 3px; margin: 0 6px; }
    .nh-tagline-long { display: none !important; }
    .nh-tagline-short { display: block; }
    .nh-search-input::placeholder { font-size: 10px; text-align: left; }

    /* Header : position relative pour le burger absolu */
    .site-header { position: relative; }

    /* Annuler le grid desktop : empilement vertical */
    .site-branding-container {
        display: block !important;
    }

    /* Branding : bloc simple, tout centré */
    .site-branding {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Formulaire pleine largeur */
    .nh-header-search {
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    /* Bouton burger en coin haut-droit du header */
    .nh-mobile-toggle {
        display: flex !important;
        position: absolute;
        top: 62px;
        right: 16px;
        width: 40px;
        height: 40px;
        margin: 0;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1.5px solid rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        cursor: pointer;
        color: #333;
        padding: 0;
    }
    .nh-mobile-toggle svg { width: 20px; height: 20px; }
}

/* =============================================
   4. NAVIGATION STICKY
   ============================================= */

.main-navigation {
    background: #252525;
    position: sticky;
    top: 0;
    z-index: 9999;
    /* Liseré orange bas — signature Nature Humaine */
    box-shadow: 0 3px 0 0 var(--nh-orange);
}

/* Cache sur desktop les élements injectés pour l'overlay mobile */
.nh-mobile-toggle { display: none; }
.nh-mobile-overlay-header { display: none; }

.main-navigation a {
    color: #fff !important;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    padding: 15px 17px;
}

/* Override GeneratePress parent: .main-nav ul li a { line-height: 60px } */
.main-navigation .main-nav ul li a {
    padding: 15px 17px;
    line-height: 19px;
    font-weight: 900;
}

.main-navigation a:hover {
    color: var(--nh-orange) !important;
    background: transparent !important;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-item > a:hover {
    background: var(--nh-orange) !important;
    color: #252525 !important;
}

.main-navigation .sub-menu {
    background: #333;
    border-top: none;
    box-shadow: rgba(0,0,0,0.2) 0 3px 0 0, #000 0 -1px 0 inset, var(--nh-orange) 0 3px 0 inset;
}

.main-navigation .sub-menu a {
    padding: 13px 20px;
    border-bottom: 1px solid #5e5e5e;
    font-size: 13px;
}

/* =============================================
   5. ARTICLES — LISTE HOMEPAGE
   ============================================= */

.nh-homepage-content {
    padding: 0 !important;
}

.nh-article-list-header {
    margin-bottom: 24px;
    padding: 0 1em;
}

.nh-section-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nh-dark);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--nh-orange);
    display: inline-block;
}

/* Grille : 2 colonnes desktop, 1 mobile */
.nh-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .nh-post-grid { grid-template-columns: 1fr; }
}

/* Carte article */
.nh-post-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.nh-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.nh-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.nh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nh-post-card:hover .nh-card-image img {
    transform: scale(1.03);
}

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

.nh-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.nh-card-title a {
    color: var(--nh-dark);
    text-decoration: none;
}

.nh-card-title a:hover {
    color: var(--nh-orange);
}

.nh-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.nh-card-meta a {
    color: #999;
}

.nh-card-meta a:hover {
    color: var(--nh-orange);
}

.nh-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.nh-card-excerpt p {
    margin: 0;
}

.nh-read-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--nh-orange);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-read-more:hover {
    color: #c93d1e;
}

/* Pagination */
.nh-pagination {
    text-align: center;
    margin: 24px 0 32px;
}

.nh-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid var(--nh-border);
    border-radius: 4px;
    color: var(--nh-dark);
    font-size: 13px;
    text-decoration: none;
}

.nh-pagination .page-numbers.current,
.nh-pagination .page-numbers:hover {
    background: var(--nh-orange);
    border-color: var(--nh-orange);
    color: #fff;
}

/* =============================================
   6. ARTICLES — LISTE (archive/category)
   ============================================= */

.post-summary {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-summary:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.post-summary .inside-article {
    padding: 20px;
}

.entry-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.entry-title a {
    color: var(--nh-dark);
}

.entry-title a:hover {
    color: var(--nh-orange);
}

.entry-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.entry-meta a {
    color: #999;
}

.entry-summary p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.page-template .size-full {
    width: 1200px !important
}

/* =============================================
   6. ARTICLE SINGLE
   ============================================= */

.single .post {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 1px 10px;
    margin-bottom: 24px;
}

.single .entry-content p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.single .entry-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--nh-border);
}

.single .entry-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

/* =============================================
   7. SIDEBAR
   ============================================= */

.right-sidebar .inside-right-sidebar {
    padding-left: 24px;
}

.widget {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--nh-orange);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
    border-top: 3px solid var(--nh-orange);
}

.widget-area .widget {
    padding: 10px;
}

/* =============================================
   8. SPONSOR FQSC
   ============================================= */

.nh-sponsor-block {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 24px;
    border-top: 3px solid var(--nh-orange);
}

.nh-sponsor-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
}

.nh-sponsor-link {
    display: block;
    text-decoration: none;
}

.nh-sponsor-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--nh-border);
    border-radius: 4px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nh-sponsor-link:hover .nh-sponsor-logo {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.nh-sponsor-logo-text {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #1a3a5c;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}

.nh-sponsor-logo-slogan {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

/* =============================================
   9. SHORTCODES GOLIATH PORTÉS
   ============================================= */

/* review_summary / overview */
.nh-overview {
    border: 1px solid var(--nh-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 28px;
}

.nh-overview .nh-overview-title {
    background: var(--nh-dark);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nh-overview .nh-overview-items {
    background: #fff;
    padding: 20px;
}

.nh-overview .nh-overview-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--nh-border);
}

.nh-overview .nh-overview-row:first-child {
    padding-top: 0;
    border-top: none;
}

.nh-overview .nh-overview-row label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    color: #888;
    font-size: 13px;
    margin: 0;
}

.nh-overview .nh-overview-row .nh-overview-content {
    flex: 1;
}

.nh-overview .nh-overview-row.summary .nh-overview-content {
    font-weight: 700;
}

.nh-overview .nh-overview-row.list .nh-overview-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nh-overview .nh-overview-row.list .nh-overview-content li {
    padding: 3px 0;
    font-size: 14px;
}

.nh-overview .nh-overview-row.list .nh-overview-content li::before {
    font-family: FontAwesome;
    font-size: 11px;
    margin-right: 6px;
}

.nh-overview .nh-overview-row.positives .nh-overview-content { color: #199a00; }
.nh-overview .nh-overview-row.positives li::before { content: "\f067"; color: #199a00; }

.nh-overview .nh-overview-row.negatives .nh-overview-content { color: #c0392b; }
.nh-overview .nh-overview-row.negatives li::before { content: "\f068"; color: #c0392b; }

/* rating bars */
.nh-rating-item {
    margin-bottom: 10px;
}

.nh-rating-item label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.nh-rating-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nh-rating-bar {
    flex: 1;
    height: 8px;
    background: var(--nh-border);
    border-radius: 4px;
    overflow: hidden;
}

.nh-rating-bar-fill {
    height: 100%;
    background: var(--nh-orange);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
}

.nh-rating-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--nh-dark);
    white-space: nowrap;
}

/* =============================================
   10. FOOTER
   ============================================= */

.site-footer {
    background: #111;
    color: #999;
    padding: 0;
    text-align: left;
    font-size: 13px;
}

.site-footer a {
    color: #aaa;
}

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

/* Zone widgets footer - fond sombre */
#footer-widgets,
#footer-widgets .widget,
#footer-widgets aside {
    background: #111 !important;
    color: #aaa;
    box-shadow: none !important;
}

#footer-widgets {
    padding: 40px 0 30px;
}

/* Titres des widgets footer - orange uppercase */
#footer-widgets .widget-title {
    color: var(--nh-orange) !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid var(--nh-orange) !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* Liens dans la zone footer */
#footer-widgets .widget a {
    color: #aaa;
    text-decoration: none;
}
#footer-widgets .widget a:hover {
    color: var(--nh-orange);
}

/* Tag cloud - badges stylises */
#footer-widgets .tag-cloud-link {
    display: inline-block;
    background: #222 !important;
    border: 1px solid #333;
    color: #bbb !important;
    font-size: 13px !important;
    padding: 3px 10px;
    margin: 3px 2px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}
#footer-widgets .tag-cloud-link:hover {
    background: var(--nh-orange) !important;
    color: #fff !important;
    border-color: var(--nh-orange);
}

/* Section Suivez-nous */
.nh-social-footer {
    margin-top: 24px;
}
.nh-social-footer .title-default {
    color: var(--nh-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--nh-orange);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.nh-social-footer a {
    color: #aaa !important;
    margin-right: 4px;
    text-decoration: none;
}
.nh-social-footer a:hover {
    color: var(--nh-orange) !important;
}

/* Barre de copyright */
.site-info {
    background: #0c0c0c;
    padding: 14px 0;
    color: #666;
}
.site-info a {
    color: #999;
}
.site-info a:hover {
    color: var(--nh-orange);
}

/* =============================================
   11. WIDGET NH-STICKY-POSTS
   ============================================= */

.nh-sticky-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.nh-sticky-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nh-sticky-img {
    flex-shrink: 0;
    display: block;
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 2px;
}

.nh-sticky-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.nh-sticky-img:hover img {
    opacity: 0.85;
}

.nh-sticky-content {
    flex: 1;
    min-width: 0;
}

.nh-sticky-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.nh-sticky-title a {
    color: inherit;
    text-decoration: none;
}

.nh-sticky-title a:hover {
    color: var(--nh-orange);
}

.nh-sticky-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nh-cat-badge {
    display: inline-block;
    background: var(--nh-orange);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 2px;
    text-decoration: none !important;
    text-transform: uppercase;
    line-height: 1.5;
}

.nh-cat-badge:hover {
    background: var(--nh-dark);
}

.nh-sticky-comments {
    font-size: 12px;
    color: #888;
}

.nh-sticky-comments .fa {
    margin-right: 3px;
}

/* =============================================
   12. PAGE CATEGORY (page-category1.php)
   ============================================= */

.nh-catpage-banner {
    margin-bottom: 24px;
}

.nh-catpage-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.nh-catpage-intro {
    margin-bottom: 0;
    margin-top: 1em !important;
    font-size: 16px;
}

.nh-catpage-posts {
    border-top: 2px solid var(--nh-orange);
    padding-top: 28px;
    margin-top: 4px;
}

.separate-containers .inside-article {
    padding-bottom: 1em !important;
}

.separate-containers .featured-image {
  margin-top: 0;
}

/* =============================================
   13. RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .grid-container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 768px) {
    .single .post { padding: 1px; }
    .nh-overview .nh-overview-row { flex-direction: column; gap: 4px; }
    .nh-overview .nh-overview-row label { width: auto; }

    /* ---- Overlay nav mobile ---- */

    /* En-tête de l'overlay (NATURE □ HUMAINE + bouton X) */
    .nh-mobile-overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        position: sticky;
        top: 0;
        background: #0c0c0c;
        z-index: 1;
        flex-shrink: 0;
    }
    .nh-mobile-overlay-title {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }
    .nh-mobile-overlay-title .nh-circle-sm {
        display: inline-block;
        width: 9px;
        height: 9px;
        background: var(--nh-orange);
        border-radius: 2px;
        margin: 0 6px;
        vertical-align: middle;
    }
    .nh-mobile-close {
        background: transparent;
        border: none;
        cursor: pointer;
        color: #888;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s;
    }
    .nh-mobile-close:hover { color: #fff; }
    .nh-mobile-close svg { width: 22px; height: 22px; }

    /* La nav devient un overlay plein écran */
    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 99999 !important;
        background: rgba(12, 12, 12, 0.98) !important;
        box-shadow: none !important;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column;
    }
    .main-navigation.toggled {
        transform: translateX(0) !important;
    }

    /* Bloquer scroll du body quand l'overlay est ouvert */
    body.nh-menu-open { overflow: hidden; }

    /* Cacher le toggle interne de GeneratePress */
    .main-navigation .menu-toggle { display: none !important; }

    /* Layout interne de l'overlay */
    .main-navigation .inside-navigation {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        flex: 1;
        width: 100%;
        max-width: none;
    }
    .main-navigation .main-nav {
        width: 100%;
        flex-basis: 100%;
    }

    /* Items de premier niveau */
    .main-navigation .main-nav > ul > li > a {
        line-height: 1 !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 15px;
        font-weight: 900 !important;
        letter-spacing: 0;
        display: block;
        color: #fff !important;
    }
    .main-navigation .main-nav > ul > li > a:hover {
        color: var(--nh-orange) !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }
    .main-navigation .main-nav > ul > li.current-menu-item > a {
        background: var(--nh-orange) !important;
        color: #252525 !important;
    }

    /* Sous-menus */
    .main-navigation .main-nav .sub-menu {
        background: transparent !important;
        border-top: none !important;
        border-left: 3px solid var(--nh-orange);
        margin-left: 20px;
    }
    .main-navigation .main-nav .sub-menu a {
        padding: 10px 16px !important;
        font-weight: 400 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    }
    .main-navigation .main-nav .sub-menu a:hover {
        color: var(--nh-orange) !important;
        background: transparent !important;
    }

    /* Flèche déroulant sous-menu */
    .main-navigation .dropdown-menu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        height: 44px;
        width: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--nh-orange) !important;
        float: none;
    }
    .main-navigation .main-nav > ul > li {
        position: relative;
    }
    /* Réduire la largeur du lien pour ne pas empiéter sur la flèche */
    .main-navigation .main-nav > ul > li > a {
        padding-right: 60px !important;
    }
}

/* =============================================
   12. REVOLUTION SLIDER pleine largeur
   ============================================= */

/* Le slider est injecte via generate_after_header, entre </header> et #page.
   Il doit occuper toute la largeur du viewport sans contrainte de max-width. */

.nh-banderolle-wrap {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    line-height: 0;
}

.nh-banderolle-wrap a {
    display: block;
}

.nh-banderolle-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Logo FQSC dans la nav ---- */
.main-navigation .menu-item.fqsc-logo-item > a {
    /* background: #fff !important; */
    border-radius: 4px;
    padding: 5px 10px !important;
    margin: auto 6px;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    transition: opacity 0.2s ease 700ms;
}

.main-navigation .menu-item.fqsc-logo-item > a:hover {
    /* background: #f0f0f0 !important; */
    opacity: 0.3;
    transition: opacity 0.2s ease 0ms;
}

.fqsc-nav-logo {
    display: block;
    width: 92px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
}

/* ---- Bandeau partenaire (homepage) ---- */
.nh-partner-banner {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    margin: 28px 0;
    border-top: 3px solid var(--nh-orange);
    text-align: center;
}

.nh-partner-banner .nh-sponsor-label {
    margin-bottom: 12px;
}

.nh-partner-banner .nh-partner-link {
    display: block;
    text-decoration: none;
}

.nh-partner-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 40px;
    border: 1px solid var(--nh-border);
    border-radius: 4px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nh-partner-link:hover .nh-partner-logo {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.nh-partner-logo-text {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #1a3a5c;
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}

.nh-partner-logo-slogan {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.nh-revslider-wrap {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    line-height: 0;  /* evite l'espace sous l'inline-block slider */
}

/* Le wrapper interne genere par RevSlider herite la pleine largeur */
.nh-revslider-wrap .rev_slider_wrapper {
    width: 100% !important;
}

/* Forcer une hauteur minimale pour eviter le collapse si JS tarde */
.nh-revslider-wrap .rev_slider_wrapper.fullwidthbanner-container {
    min-height: 200px;
}


/* =============================================
   13. BOUTONS
   ============================================= */


.vc_btn3.vc_btn3-color-juicy-pink, .vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat {
  color: #fff !important;
  background-color: #25252573 !important;
}

.vc_btn3-container.vc_btn3-left {
  text-align: center !important;
}