/*
 Theme Name:   NautikPro Child
 Theme URI:    https://nautikpro.fr
 Description:  Theme enfant Astra pour NautikPro — Équipements nautiques
 Author:       NautikPro
 Author URI:   https://nautikpro.fr
 Template:     astra
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  nautikpro-child
*/

/* =============================================================================
   VARIABLES CSS
   ============================================================================= */
:root {
    --np-bleu-marine: #1A2B4C;
    --np-bleu-moyen: #2A4A7F;
    --np-bleu-clair: #3B6BAA;
    --np-orange: #FF6B00;
    --np-orange-hover: #E55D00;
    --np-fond: #F4F7F9;
    --np-blanc: #FFFFFF;
    --np-gris-texte: #4A5568;
    --np-gris-clair: #E2E8F0;
    --np-gris-bordure: #CBD5E0;
    --np-vert: #27AE60;
    --np-rouge: #E53E3E;
    --np-ombre: 0 2px 8px rgba(26, 43, 76, 0.1);
    --np-ombre-hover: 0 4px 16px rgba(26, 43, 76, 0.18);
    --np-radius: 8px;
    --np-transition: all 0.25s ease;
}

/* =============================================================================
   RESET — Forcer le full-width sur la homepage
   ============================================================================= */
body.nautikpro-homepage {
    margin: 0;
    padding: 0;
    background: var(--np-fond);
}

/* Cacher le header/footer Astra sur TOUTES les pages */
.ast-above-header,
.ast-main-header-wrap,
.ast-below-header,
#ast-desktop-header,
.ast-mobile-header-wrap,
header.site-header,
.site-footer,
.ast-footer-overlay {
    display: none !important;
}

/* La page wrapper */
.np-page-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =============================================================================
   BASE TYPOGRAPHIE
   ============================================================================= */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--np-gris-texte);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    color: var(--np-bleu-marine);
    font-weight: 700;
}

a {
    transition: var(--np-transition);
}

/* =============================================================================
   TOP BAR
   ============================================================================= */
.np-topbar {
    background: var(--np-bleu-marine);
    color: var(--np-blanc);
    font-size: 13px;
    padding: 7px 0;
    width: 100%;
}

.np-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.np-topbar a {
    color: var(--np-blanc);
    text-decoration: none;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.np-topbar a:hover {
    opacity: 1;
    color: var(--np-orange);
}

/* =============================================================================
   HEADER PRINCIPAL
   ============================================================================= */
.np-header-main {
    background: var(--np-blanc);
    padding: 14px 0;
    box-shadow: var(--np-ombre);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.np-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.np-logo {
    flex-shrink: 0;
}

.np-logo img {
    max-height: 48px;
    width: auto;
}

.np-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--np-bleu-marine);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.np-logo-text span {
    color: var(--np-orange);
}

/* Barre de recherche */
.np-search {
    flex: 1;
    max-width: 560px;
}

.np-search-form {
    display: flex;
    border: 2px solid var(--np-gris-bordure);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--np-transition);
    background: var(--np-blanc);
}

.np-search-form:focus-within {
    border-color: var(--np-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.np-search-input {
    flex: 1;
    border: none;
    padding: 11px 20px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--np-bleu-marine);
    background: transparent;
    outline: none;
    min-width: 0;
}

.np-search-input,
.np-search-input:focus,
.np-search-input:active,
.np-search-form input[type="search"],
.np-search-form input[type="search"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.np-search-btn:focus,
.np-search-btn:focus-visible {
    outline: none;
}

.np-search-input::placeholder {
    color: #A0AEC0;
}

.np-search-btn {
    background: var(--np-orange);
    border: none;
    padding: 11px 18px;
    cursor: pointer;
    transition: var(--np-transition);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.np-search-btn:hover {
    background: var(--np-orange-hover);
}

/* Icônes header */
.np-header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.np-header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--np-bleu-marine);
    font-size: 11px;
    font-weight: 600;
    position: relative;
}

.np-header-icon:hover {
    color: var(--np-orange);
}

.np-header-icon svg {
    margin-bottom: 2px;
}

.np-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--np-orange);
    color: var(--np-blanc);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.np-nav {
    background: var(--np-bleu-marine);
    border-top: 3px solid var(--np-orange);
    width: 100%;
}

.np-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.np-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.np-nav li {
    margin: 0;
}

.np-nav a {
    display: block;
    color: var(--np-blanc);
    text-decoration: none;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--np-transition);
}

.np-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--np-orange);
}

/* Promotions — lien orange dans la nav */
.np-nav li.menu-promotions > a {
    color: var(--np-orange) !important;
    font-weight: 700;
}
.np-nav li.menu-promotions > a:hover {
    color: var(--np-orange-hover) !important;
}

/* =============================================================================
   HERO
   ============================================================================= */
.np-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--np-bleu-marine) 0%, #1e3a5f 50%, var(--np-bleu-moyen) 100%);
    width: 100%;
    overflow: hidden;
}

.np-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') bottom/cover no-repeat;
    opacity: 0.5;
}

.np-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.np-hero-content {
    max-width: 560px;
}

.np-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--np-blanc);
    line-height: 1.15;
    margin: 0 0 16px 0;
}

.np-hero h1 span {
    color: var(--np-orange);
}

.np-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.np-btn-cta {
    display: inline-block;
    background: var(--np-orange);
    color: var(--np-blanc) !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
    transition: var(--np-transition);
}

.np-btn-cta:hover {
    background: var(--np-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
    color: var(--np-blanc) !important;
}

/* =============================================================================
   CATÉGORIES (Grille 4 colonnes)
   ============================================================================= */
.np-categories-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    width: 100%;
    box-sizing: border-box;
}

.np-section-title {
    text-align: center;
    font-size: 28px;
    color: var(--np-bleu-marine);
    margin: 0 0 36px 0;
}

.np-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--np-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

.np-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.np-category-card {
    background: var(--np-blanc);
    border-radius: var(--np-radius);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--np-gris-clair);
    transition: var(--np-transition);
    display: block;
}

.np-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-ombre-hover);
    border-color: transparent;
}

.np-category-card:hover .np-ghost-btn {
    background: var(--np-bleu-marine);
    color: var(--np-blanc);
}

.np-category-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8ecf1 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.np-category-card h3 {
    font-size: 13px;
    padding: 10px 8px 4px;
    margin: 0;
    color: var(--np-bleu-marine);
}

.np-ghost-btn {
    display: inline-block;
    border: 2px solid var(--np-bleu-marine);
    color: var(--np-bleu-marine);
    background: transparent;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 18px;
    transition: var(--np-transition);
}

/* =============================================================================
   PRODUITS PHARES
   ============================================================================= */
.np-products-section {
    background: var(--np-blanc);
    padding: 50px 0;
    width: 100%;
}

.np-products-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.np-products-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.np-products-section ul.products li.product {
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-radius);
    padding: 16px;
    text-align: center;
    background: var(--np-blanc);
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    transition: var(--np-transition);
}

.np-products-section ul.products li.product:hover {
    box-shadow: var(--np-ombre-hover);
    border-color: transparent;
    transform: translateY(-3px);
}

.np-products-section ul.products li.product img {
    border-radius: 4px;
    margin-bottom: 10px;
}

.np-products-section ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--np-bleu-marine);
    padding: 0;
}

.np-products-section ul.products li.product .price {
    color: var(--np-orange);
    font-weight: 700;
    font-size: 18px;
    margin: 8px 0;
}

.np-products-section ul.products li.product .button,
.np-products-section ul.products li.product .add_to_cart_button {
    background: transparent !important;
    color: var(--np-bleu-marine) !important;
    border: 1px solid var(--np-gris-bordure) !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-size: 11px !important;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--np-transition);
}

.np-products-section ul.products li.product .button:hover,
.np-products-section ul.products li.product .add_to_cart_button:hover {
    background: var(--np-orange) !important;
    color: var(--np-blanc) !important;
    border-color: var(--np-orange) !important;
}

/* =============================================================================
   RÉASSURANCE
   ============================================================================= */
.np-reassurance {
    background: var(--np-bleu-marine);
    padding: 40px 0;
    width: 100%;
}

.np-reassurance-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.np-reassurance-item {
    text-align: center;
    color: var(--np-blanc);
}

.np-reassurance-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.np-reassurance-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.np-reassurance-text {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.np-footer {
    background: #111D32;
    color: var(--np-blanc);
    width: 100%;
}

.np-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.np-footer h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--np-blanc);
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.np-footer p {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.8;
    margin: 0;
}

.np-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-footer ul li {
    margin-bottom: 8px;
}

.np-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    transition: var(--np-transition);
}

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

.np-footer-bottom {
    text-align: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.6;
}

/* =============================================================================
   PAGES INTÉRIEURES (produit, panier, etc.)
   — Le header custom s'affiche via wp_body_open
   — Le contenu utilise le layout Astra normal
   ============================================================================= */

/* Ajouter du padding-top sur les pages intérieures pour compenser le header sticky */
body:not(.nautikpro-homepage) #page,
body:not(.nautikpro-homepage) .site {
    padding-top: 0;
}

/* Style global des boutons WooCommerce sur les pages intérieures */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background: var(--np-orange) !important;
    border-color: var(--np-orange) !important;
    color: var(--np-blanc) !important;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--np-orange-hover) !important;
    border-color: var(--np-orange-hover) !important;
}

/* Badge promo */
.woocommerce span.onsale {
    background: var(--np-orange);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Stock */
.woocommerce .stock.in-stock { color: var(--np-vert); }
.woocommerce .stock.out-of-stock { color: var(--np-rouge); }

/* =============================================================================
   RESPONSIVE TABLETTE
   ============================================================================= */
@media (max-width: 992px) {
    .np-categories-grid,
    .np-products-section ul.products,
    .np-reassurance-inner,
    .np-footer-inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .np-hero h1 {
        font-size: 32px;
    }

    .np-hero {
        min-height: 340px;
    }

    .np-nav a {
        padding: 10px 12px;
        font-size: 11.5px;
    }
}

/* =============================================================================
   RESPONSIVE MOBILE
   ============================================================================= */
@media (max-width: 640px) {
    /* Top bar empilée */
    .np-topbar-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        font-size: 12px;
    }

    /* Header : logo + icônes en haut, recherche en dessous */
    .np-header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }

    .np-logo { order: 1; }
    .np-header-icons { order: 2; margin-left: auto; gap: 14px; }
    .np-search { order: 3; max-width: 100%; flex-basis: 100%; }

    .np-header-icon span { display: none; }

    .np-logo-text { font-size: 22px; }

    /* Nav horizontale scrollable */
    .np-nav-inner { padding: 0 8px; }
    .np-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .np-nav a {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 11px;
    }

    /* Hero compact */
    .np-hero { min-height: 260px; }
    .np-hero-inner { padding: 36px 16px; }
    .np-hero h1 { font-size: 26px; }
    .np-hero-subtitle { font-size: 14px; }
    .np-btn-cta { padding: 12px 28px; font-size: 13px; }

    /* Grilles 2 colonnes */
    .np-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .np-products-section ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .np-reassurance-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .np-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .np-section-title { font-size: 22px; }
    .np-category-img { height: 120px; font-size: 36px; }
    .np-category-card h3 { font-size: 13px; }
}

/* =============================================================================
   HEADER COMPACT — Réduire la hauteur globale du header
   ============================================================================= */
.np-topbar {
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
}

.np-header-main {
    padding-top: 6px;
    padding-bottom: 6px;
}

.np-logo-text {
    font-size: 22px;
}

.np-header-icon svg {
    width: 20px;
    height: 20px;
}

.np-header-icon span {
    font-size: 10px;
}

.np-nav a {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12px;
}

/* =============================================================================
   FIBOSEARCH — Intégration visuelle dans le header NautikPro
   ============================================================================= */
.np-search .dgwt-wcas-search-wrapp {
    max-width: 100%;
}

/* Champ de saisie : style pill cohérent avec le design NautikPro */
.np-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    height: 38px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: var(--np-bleu-marine);
    background: var(--np-blanc);
    border: 2px solid var(--np-gris-bordure);
    border-radius: 50px;
    padding: 0 14px 0 38px;
}

/* Focus : bordure orange */
.np-search .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    border-color: var(--np-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
    outline: none;
}

/* Icône loupe */
.np-search .dgwt-wcas-ico-magnifier {
    max-height: 16px;
    width: 16px;
}

/* Bouton submit orange */
.np-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit {
    height: 38px;
    min-width: 38px;
    background: var(--np-orange);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background 0.25s ease;
}

.np-search .dgwt-wcas-search-wrapp .dgwt-wcas-search-submit:hover {
    background: var(--np-orange-hover);
}

/* Dropdown de suggestions */
.dgwt-wcas-suggestions-wrapp {
    border-radius: var(--np-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--np-gris-clair);
    margin-top: 4px;
}

/* Suggestion au survol */
.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: #FFF7F0;
}

/* Prix dans les suggestions : orange NautikPro */
.dgwt-wcas-sp {
    color: var(--np-orange);
    font-weight: 700;
}


/* =============================================================================
   MENU HAMBURGER MOBILE — Style SVB Marine
   ============================================================================= */

/* Bouton hamburger — masqué en desktop */
.np-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 10;
}
.np-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--np-bleu-marine);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Animation hamburger → X */
.np-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.np-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.np-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay sombre */
.np-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.np-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Panneau latéral gauche */
.np-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}
.np-mobile-panel.active {
    transform: translateX(0);
}

/* En-tête du panneau */
.np-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--np-bleu-marine);
    color: #fff;
    flex-shrink: 0;
}
.np-mobile-panel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
}
.np-mobile-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* Corps du panneau — scrollable */
.np-mobile-panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Liste des catégories */
.np-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.np-mobile-nav > li {
    border-bottom: 1px solid #f0f0f0;
}
.np-mobile-nav > li > a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--np-bleu-marine);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.np-mobile-nav > li > a:hover,
.np-mobile-nav > li > a:active {
    background: #f4f7f9;
}

/* Bouton accordéon pour sous-catégories */
.np-mobile-nav > li.menu-item-has-children > a {
    padding-right: 50px;
    position: relative;
}
.np-accordion-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid #f0f0f0;
    cursor: pointer;
    color: var(--np-bleu-marine);
    font-size: 14px;
    transition: transform 0.3s ease;
}
.np-accordion-toggle::after {
    content: '+';
    font-weight: 700;
    font-size: 18px;
}
.np-accordion-toggle.open::after {
    content: '−';
}

/* Sous-menu accordéon */
.np-mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #f8fafc;
}
.np-mobile-nav .sub-menu.open {
    max-height: 1000px;
}
.np-mobile-nav .sub-menu li {
    border-top: 1px solid #eef1f4;
}
.np-mobile-nav .sub-menu a {
    display: block;
    padding: 11px 20px 11px 36px;
    color: #3a4a5c;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s, color 0.2s;
}
.np-mobile-nav .sub-menu a:hover,
.np-mobile-nav .sub-menu a:active {
    background: #eef1f4;
    color: var(--np-orange);
}

/* Pied du panneau — liens utilitaires */
.np-mobile-panel-footer {
    flex-shrink: 0;
    border-top: 2px solid #f0f0f0;
    padding: 12px 16px;
    background: #f8fafc;
}
.np-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    color: var(--np-bleu-marine);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}
.np-mobile-link:hover {
    color: var(--np-orange);
}
.np-mobile-link svg {
    flex-shrink: 0;
}
.np-mobile-cart-badge {
    background: var(--np-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Afficher hamburger, masquer nav desktop
   ═══════════════════════════════════════════════════════ */
@media (max-width: 921px) {
    .np-hamburger {
        display: flex;
        order: 0;
    }
    .np-nav {
        display: none !important;
    }
    /* Empêcher le scroll du body quand le menu est ouvert */
    body.np-menu-open {
        overflow: hidden;
    }
}


/* FIX — Masquer le menu mobile en desktop */
.np-mobile-panel,
.np-mobile-overlay {
    display: none;
}
.np-hamburger {
    display: none !important;
}
@media (max-width: 921px) {
    .np-hamburger {
        display: flex !important;
    }
    .np-mobile-panel,
    .np-mobile-overlay {
        display: block;
    }
    .np-mobile-panel {
        transform: translateX(-100%);
    }
    .np-mobile-panel.active {
        transform: translateX(0);
    }
    .np-mobile-overlay {
        display: none;
    }
    .np-mobile-overlay.active {
        display: block;
    }
}



/* =============================================================================
   CARROUSEL FONDU — Catégories page d accueil
   Fondu enchaîné sans zoom, 7s par image, pure CSS
   ============================================================================= */

.np-carousel {
    position: relative;
    overflow: hidden;
}
.np-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: opacity;
}

/* 1 image — toujours visible */
.np-carousel-img-1-0 { opacity: 1; }

/* 2 images — cycle 14s */
.np-carousel-img-2-0 { animation: npFade2_0 14s ease-in-out infinite; }
.np-carousel-img-2-1 { animation: npFade2_1 14s ease-in-out infinite; }
@keyframes npFade2_0 {
    0%   { opacity: 1; } 42%  { opacity: 1; }
    50%  { opacity: 0; } 92%  { opacity: 0; } 100% { opacity: 1; }
}
@keyframes npFade2_1 {
    0%   { opacity: 0; } 42%  { opacity: 0; }
    50%  { opacity: 1; } 92%  { opacity: 1; } 100% { opacity: 0; }
}

/* 3 images — cycle 21s */
.np-carousel-img-3-0 { animation: npFade3_0 21s ease-in-out infinite; }
.np-carousel-img-3-1 { animation: npFade3_1 21s ease-in-out infinite; }
.np-carousel-img-3-2 { animation: npFade3_2 21s ease-in-out infinite; }
@keyframes npFade3_0 {
    0% { opacity:1; } 29% { opacity:1; } 33.3% { opacity:0; } 95% { opacity:0; } 100% { opacity:1; }
}
@keyframes npFade3_1 {
    0% { opacity:0; } 29% { opacity:0; } 33.3% { opacity:1; } 62% { opacity:1; } 66.6% { opacity:0; } 100% { opacity:0; }
}
@keyframes npFade3_2 {
    0% { opacity:0; } 62% { opacity:0; } 66.6% { opacity:1; } 95% { opacity:1; } 100% { opacity:0; }
}

/* 4 images — cycle 28s */
.np-carousel-img-4-0 { animation: npFade4_0 28s ease-in-out infinite; }
.np-carousel-img-4-1 { animation: npFade4_1 28s ease-in-out infinite; }
.np-carousel-img-4-2 { animation: npFade4_2 28s ease-in-out infinite; }
.np-carousel-img-4-3 { animation: npFade4_3 28s ease-in-out infinite; }
@keyframes npFade4_0 {
    0% { opacity:1; } 21% { opacity:1; } 25% { opacity:0; } 96% { opacity:0; } 100% { opacity:1; }
}
@keyframes npFade4_1 {
    0% { opacity:0; } 21% { opacity:0; } 25% { opacity:1; } 46% { opacity:1; } 50% { opacity:0; } 100% { opacity:0; }
}
@keyframes npFade4_2 {
    0% { opacity:0; } 46% { opacity:0; } 50% { opacity:1; } 71% { opacity:1; } 75% { opacity:0; } 100% { opacity:0; }
}
@keyframes npFade4_3 {
    0% { opacity:0; } 71% { opacity:0; } 75% { opacity:1; } 96% { opacity:1; } 100% { opacity:0; }
}

/* 5 images — cycle 35s */
.np-carousel-img-5-0 { animation: npFade5_0 35s ease-in-out infinite; }
.np-carousel-img-5-1 { animation: npFade5_1 35s ease-in-out infinite; }
.np-carousel-img-5-2 { animation: npFade5_2 35s ease-in-out infinite; }
.np-carousel-img-5-3 { animation: npFade5_3 35s ease-in-out infinite; }
.np-carousel-img-5-4 { animation: npFade5_4 35s ease-in-out infinite; }
@keyframes npFade5_0 {
    0% { opacity:1; } 17% { opacity:1; } 20% { opacity:0; } 97% { opacity:0; } 100% { opacity:1; }
}
@keyframes npFade5_1 {
    0% { opacity:0; } 17% { opacity:0; } 20% { opacity:1; } 37% { opacity:1; } 40% { opacity:0; } 100% { opacity:0; }
}
@keyframes npFade5_2 {
    0% { opacity:0; } 37% { opacity:0; } 40% { opacity:1; } 57% { opacity:1; } 60% { opacity:0; } 100% { opacity:0; }
}
@keyframes npFade5_3 {
    0% { opacity:0; } 57% { opacity:0; } 60% { opacity:1; } 77% { opacity:1; } 80% { opacity:0; } 100% { opacity:0; }
}
@keyframes npFade5_4 {
    0% { opacity:0; } 77% { opacity:0; } 80% { opacity:1; } 97% { opacity:1; } 100% { opacity:0; }
}

/* 6-10 images — cycle dynamique via classes générées */
.np-carousel-img-6-0 { animation: npFade6_0 42s ease-in-out infinite; }
.np-carousel-img-6-1 { animation: npFade6_1 42s ease-in-out infinite; }
.np-carousel-img-6-2 { animation: npFade6_2 42s ease-in-out infinite; }
.np-carousel-img-6-3 { animation: npFade6_3 42s ease-in-out infinite; }
.np-carousel-img-6-4 { animation: npFade6_4 42s ease-in-out infinite; }
.np-carousel-img-6-5 { animation: npFade6_5 42s ease-in-out infinite; }
@keyframes npFade6_0 { 0% { opacity:1; } 14% { opacity:1; } 16.6% { opacity:0; } 97% { opacity:0; } 100% { opacity:1; } }
@keyframes npFade6_1 { 0% { opacity:0; } 14% { opacity:0; } 16.6% { opacity:1; } 30.6% { opacity:1; } 33.3% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade6_2 { 0% { opacity:0; } 30.6% { opacity:0; } 33.3% { opacity:1; } 47.3% { opacity:1; } 50% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade6_3 { 0% { opacity:0; } 47.3% { opacity:0; } 50% { opacity:1; } 64% { opacity:1; } 66.6% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade6_4 { 0% { opacity:0; } 64% { opacity:0; } 66.6% { opacity:1; } 80.6% { opacity:1; } 83.3% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade6_5 { 0% { opacity:0; } 80.6% { opacity:0; } 83.3% { opacity:1; } 97% { opacity:1; } 100% { opacity:0; } }

.np-carousel-img-7-0 { animation: npFade7_0 49s ease-in-out infinite; }
.np-carousel-img-7-1 { animation: npFade7_1 49s ease-in-out infinite; }
.np-carousel-img-7-2 { animation: npFade7_2 49s ease-in-out infinite; }
.np-carousel-img-7-3 { animation: npFade7_3 49s ease-in-out infinite; }
.np-carousel-img-7-4 { animation: npFade7_4 49s ease-in-out infinite; }
.np-carousel-img-7-5 { animation: npFade7_5 49s ease-in-out infinite; }
.np-carousel-img-7-6 { animation: npFade7_6 49s ease-in-out infinite; }
@keyframes npFade7_0 { 0% { opacity:1; } 12% { opacity:1; } 14.3% { opacity:0; } 98% { opacity:0; } 100% { opacity:1; } }
@keyframes npFade7_1 { 0% { opacity:0; } 12% { opacity:0; } 14.3% { opacity:1; } 26.3% { opacity:1; } 28.6% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade7_2 { 0% { opacity:0; } 26.3% { opacity:0; } 28.6% { opacity:1; } 40.6% { opacity:1; } 42.9% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade7_3 { 0% { opacity:0; } 40.6% { opacity:0; } 42.9% { opacity:1; } 54.9% { opacity:1; } 57.1% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade7_4 { 0% { opacity:0; } 54.9% { opacity:0; } 57.1% { opacity:1; } 69.1% { opacity:1; } 71.4% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade7_5 { 0% { opacity:0; } 69.1% { opacity:0; } 71.4% { opacity:1; } 83.4% { opacity:1; } 85.7% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade7_6 { 0% { opacity:0; } 83.4% { opacity:0; } 85.7% { opacity:1; } 98% { opacity:1; } 100% { opacity:0; } }

.np-carousel-img-8-0 { animation: npFade8_0 56s ease-in-out infinite; }
.np-carousel-img-8-1 { animation: npFade8_1 56s ease-in-out infinite; }
.np-carousel-img-8-2 { animation: npFade8_2 56s ease-in-out infinite; }
.np-carousel-img-8-3 { animation: npFade8_3 56s ease-in-out infinite; }
.np-carousel-img-8-4 { animation: npFade8_4 56s ease-in-out infinite; }
.np-carousel-img-8-5 { animation: npFade8_5 56s ease-in-out infinite; }
.np-carousel-img-8-6 { animation: npFade8_6 56s ease-in-out infinite; }
.np-carousel-img-8-7 { animation: npFade8_7 56s ease-in-out infinite; }
@keyframes npFade8_0 { 0% { opacity:1; } 10.5% { opacity:1; } 12.5% { opacity:0; } 98% { opacity:0; } 100% { opacity:1; } }
@keyframes npFade8_1 { 0% { opacity:0; } 10.5% { opacity:0; } 12.5% { opacity:1; } 23% { opacity:1; } 25% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade8_2 { 0% { opacity:0; } 23% { opacity:0; } 25% { opacity:1; } 35.5% { opacity:1; } 37.5% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade8_3 { 0% { opacity:0; } 35.5% { opacity:0; } 37.5% { opacity:1; } 48% { opacity:1; } 50% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade8_4 { 0% { opacity:0; } 48% { opacity:0; } 50% { opacity:1; } 60.5% { opacity:1; } 62.5% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade8_5 { 0% { opacity:0; } 60.5% { opacity:0; } 62.5% { opacity:1; } 73% { opacity:1; } 75% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade8_6 { 0% { opacity:0; } 73% { opacity:0; } 75% { opacity:1; } 85.5% { opacity:1; } 87.5% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade8_7 { 0% { opacity:0; } 85.5% { opacity:0; } 87.5% { opacity:1; } 98% { opacity:1; } 100% { opacity:0; } }

.np-carousel-img-9-0 { animation: npFade9_0 63s ease-in-out infinite; }
.np-carousel-img-9-1 { animation: npFade9_1 63s ease-in-out infinite; }
.np-carousel-img-9-2 { animation: npFade9_2 63s ease-in-out infinite; }
.np-carousel-img-9-3 { animation: npFade9_3 63s ease-in-out infinite; }
.np-carousel-img-9-4 { animation: npFade9_4 63s ease-in-out infinite; }
.np-carousel-img-9-5 { animation: npFade9_5 63s ease-in-out infinite; }
.np-carousel-img-9-6 { animation: npFade9_6 63s ease-in-out infinite; }
.np-carousel-img-9-7 { animation: npFade9_7 63s ease-in-out infinite; }
.np-carousel-img-9-8 { animation: npFade9_8 63s ease-in-out infinite; }
@keyframes npFade9_0 { 0% { opacity:1; } 9% { opacity:1; } 11.1% { opacity:0; } 98% { opacity:0; } 100% { opacity:1; } }
@keyframes npFade9_1 { 0% { opacity:0; } 9% { opacity:0; } 11.1% { opacity:1; } 20.1% { opacity:1; } 22.2% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_2 { 0% { opacity:0; } 20.1% { opacity:0; } 22.2% { opacity:1; } 31.2% { opacity:1; } 33.3% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_3 { 0% { opacity:0; } 31.2% { opacity:0; } 33.3% { opacity:1; } 42.3% { opacity:1; } 44.4% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_4 { 0% { opacity:0; } 42.3% { opacity:0; } 44.4% { opacity:1; } 53.4% { opacity:1; } 55.6% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_5 { 0% { opacity:0; } 53.4% { opacity:0; } 55.6% { opacity:1; } 64.6% { opacity:1; } 66.7% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_6 { 0% { opacity:0; } 64.6% { opacity:0; } 66.7% { opacity:1; } 75.7% { opacity:1; } 77.8% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_7 { 0% { opacity:0; } 75.7% { opacity:0; } 77.8% { opacity:1; } 86.8% { opacity:1; } 88.9% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade9_8 { 0% { opacity:0; } 86.8% { opacity:0; } 88.9% { opacity:1; } 98% { opacity:1; } 100% { opacity:0; } }

.np-carousel-img-10-0 { animation: npFade10_0 70s ease-in-out infinite; }
.np-carousel-img-10-1 { animation: npFade10_1 70s ease-in-out infinite; }
.np-carousel-img-10-2 { animation: npFade10_2 70s ease-in-out infinite; }
.np-carousel-img-10-3 { animation: npFade10_3 70s ease-in-out infinite; }
.np-carousel-img-10-4 { animation: npFade10_4 70s ease-in-out infinite; }
.np-carousel-img-10-5 { animation: npFade10_5 70s ease-in-out infinite; }
.np-carousel-img-10-6 { animation: npFade10_6 70s ease-in-out infinite; }
.np-carousel-img-10-7 { animation: npFade10_7 70s ease-in-out infinite; }
.np-carousel-img-10-8 { animation: npFade10_8 70s ease-in-out infinite; }
.np-carousel-img-10-9 { animation: npFade10_9 70s ease-in-out infinite; }
@keyframes npFade10_0 { 0% { opacity:1; } 8% { opacity:1; } 10% { opacity:0; } 98% { opacity:0; } 100% { opacity:1; } }
@keyframes npFade10_1 { 0% { opacity:0; } 8% { opacity:0; } 10% { opacity:1; } 18% { opacity:1; } 20% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_2 { 0% { opacity:0; } 18% { opacity:0; } 20% { opacity:1; } 28% { opacity:1; } 30% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_3 { 0% { opacity:0; } 28% { opacity:0; } 30% { opacity:1; } 38% { opacity:1; } 40% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_4 { 0% { opacity:0; } 38% { opacity:0; } 40% { opacity:1; } 48% { opacity:1; } 50% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_5 { 0% { opacity:0; } 48% { opacity:0; } 50% { opacity:1; } 58% { opacity:1; } 60% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_6 { 0% { opacity:0; } 58% { opacity:0; } 60% { opacity:1; } 68% { opacity:1; } 70% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_7 { 0% { opacity:0; } 68% { opacity:0; } 70% { opacity:1; } 78% { opacity:1; } 80% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_8 { 0% { opacity:0; } 78% { opacity:0; } 80% { opacity:1; } 88% { opacity:1; } 90% { opacity:0; } 100% { opacity:0; } }
@keyframes npFade10_9 { 0% { opacity:0; } 88% { opacity:0; } 90% { opacity:1; } 98% { opacity:1; } 100% { opacity:0; } }

/* Pause au survol */
.np-category-card:hover .np-carousel-img {
    animation-play-state: paused;
}


/* =============================================================================
   CARROUSEL PRODUITS — Sélection du moment
   5 cartes visibles, slide horizontal, flèches + dots
   ============================================================================= */

.np-prodcarousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.np-prodcarousel-viewport {
    overflow: hidden;
    flex: 1;
}
.np-prodcarousel-track {
    display: flex;
    gap: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.np-prodcarousel-card {
    flex: 0 0 calc((100% - 72px) / 5);
    min-width: 0;
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-radius);
    background: var(--np-blanc);
    text-align: center;
    padding: 14px;
    transition: var(--np-transition);
    display: flex;
    flex-direction: column;
}
.np-prodcarousel-card:hover {
    box-shadow: var(--np-ombre-hover);
    border-color: transparent;
    transform: translateY(-3px);
}
.np-prodcard-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.np-prodcard-img {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
}
.np-prodcard-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.np-prodcard-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--np-bleu-marine);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.np-prodcard-price {
    color: var(--np-orange);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 10px;
}
.np-prodcard-price del {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}
.np-prodcard-btn {
    display: inline-block;
    background: transparent;
    color: var(--np-bleu-marine);
    border: 1px solid var(--np-gris-bordure);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--np-transition);
}
.np-prodcard-btn:hover {
    background: var(--np-orange);
    color: var(--np-blanc);
    border-color: var(--np-orange);
}

/* Flèches */
.np-prodcarousel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--np-gris-bordure);
    background: var(--np-blanc);
    color: var(--np-bleu-marine);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--np-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.np-prodcarousel-arrow:hover {
    background: var(--np-bleu-marine);
    color: var(--np-blanc);
    border-color: var(--np-bleu-marine);
}

/* Dots de pagination */
.np-prodcarousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.np-prodcarousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--np-gris-clair);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.np-prodcarousel-dot.active {
    background: var(--np-orange);
}

/* Responsive */
@media (max-width: 992px) {
    .np-prodcarousel-card {
        flex: 0 0 calc((100% - 36px) / 3);
    }
}
@media (max-width: 640px) {
    .np-prodcarousel-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }
    .np-prodcarousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}


/* =============================================================================
   FICHE PRODUIT — Layout compact (compatible galerie multi-images)
   ============================================================================= */

/* Image principale : limiter la hauteur */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    max-height: 400px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Conteneur galerie : centrer verticalement */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

/* Réduire les marges au-dessus du produit */
.woocommerce div.product {
    margin-top: 10px;
}

/* Titre produit plus compact */
.woocommerce div.product .product_title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Prix plus visible */
.woocommerce div.product p.price {
    font-size: 24px;
    color: var(--np-orange);
    margin-bottom: 12px;
}

/* Description courte plus serrée */
.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 12px;
    font-size: 14px;
}

/* Bouton ajouter au panier */
.woocommerce div.product .single_add_to_cart_button {
    background: var(--np-orange) !important;
    border-color: var(--np-orange) !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px !important;
    font-size: 14px !important;
    border-radius: 50px !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
    background: var(--np-orange-hover) !important;
    border-color: var(--np-orange-hover) !important;
}

/* Métadonnées (SKU, catégories) plus discrètes */
.woocommerce div.product .product_meta {
    font-size: 13px;
    color: #666;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--np-gris-clair);
}

/* Responsive mobile */
@media (max-width: 640px) {
    .woocommerce div.product div.images .woocommerce-product-gallery__image img {
        max-height: 280px;
    }
    .woocommerce div.product .product_title {
        font-size: 18px;
    }
}


/* Fiche produit — Réduction des espaces verticaux */
.woocommerce div.product div.images {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery {
    margin-bottom: 10px !important;
}
.woocommerce div.product div.images figure {
    margin: 0 !important;
}
/* Espace au-dessus du produit (après la nav) */
.woocommerce .ast-woocommerce-container {
    padding-top: 10px !important;
}
.woocommerce div.product .woocommerce-product-gallery {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Espace entre le bloc image/résumé et les onglets */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 10px !important;
    padding-top: 0 !important;
}
/* Réduire le padding interne de la galerie */
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    padding: 0 !important;
    margin: 0 !important;
}
/* Summary (colonne droite) alignée en haut */
.woocommerce div.product div.summary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* Fiche produit — Forcer la suppression des espaces Astra */
.single-product .site-content > .ast-container,
.single-product .site-content > .ast-woocommerce-container,
.single-product #primary,
.single-product .site-main,
.single-product .entry-content,
.single-product .ast-woocommerce-container,
.single-product .content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.single-product .site-content {
    padding-top: 0 !important;
}
.single-product #content .ast-container {
    padding-top: 0 !important;
}
/* Espace entre image/résumé et onglets — encore plus réduit */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Espace sous la galerie */
.woocommerce div.product div.images,
.woocommerce div.product div.images figure.woocommerce-product-gallery {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* Espace sous le résumé */
.woocommerce div.product div.summary {
    margin-bottom: 10px !important;
}
/* Espace sous product_meta */
.woocommerce div.product .product_meta {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}


/* =============================================================================
   MARGES LATÉRALES GLOBALES — Toutes les pages
   ============================================================================= */
.ast-container,
.ast-woocommerce-container,
#primary,
.site-main {
    padding-left: 10px !important;
    padding-right: 10px !important;
}


/* Carrousel produits — Réduction flèches et dots */
.np-prodcarousel-arrow {
    width: 20px !important;
    height: 20px !important;
    font-size: 9px !important;
}
.np-prodcarousel-dot {
    width: 8px !important;
    height: 8px !important;
}
@media (max-width: 640px) {
    .np-prodcarousel-arrow {
        width: 12px !important;
        height: 12px !important;
        font-size: 6px !important;
    }
    .np-prodcarousel-dot {
        width: 3px !important;
        height: 3px !important;
    }
}


/* Masquer les dots du carrousel produits */
.np-prodcarousel-dots {
    display: none !important;
}


/* Réduire espace entre catégories et sélection du moment */
.np-products-section {
    padding-top: 20px !important;
}
.np-categories-section {
    padding-bottom: 10px !important;
}


/* Réduire espace entre hero et Nos univers */
.np-categories-section {
    padding-top: 25px !important;
}
/* =============================================================================
   PAGE CONTACT
   ============================================================================= */

/* Hero compact */
.np-contact-hero {
    background: linear-gradient(135deg, var(--np-bleu-marine) 0%, #1e3a5f 50%, var(--np-bleu-moyen) 100%);
    padding: 40px 20px;
    text-align: center;
}

.np-contact-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.np-contact-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--np-blanc);
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.np-contact-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Section principale */
.np-contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Grille : 1 colonne mobile first */
.np-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

/* Formulaire */
.np-contact-form-col .np-section-title {
    text-align: left;
    font-size: 22px;
    margin-bottom: 24px;
}

.np-contact-form-col .np-section-title::after {
    margin: 10px 0 0;
}

.np-contact-field {
    margin-bottom: 18px;
}

.np-contact-field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--np-bleu-marine);
    margin-bottom: 6px;
}

.np-required {
    color: var(--np-rouge);
}

.np-optional {
    color: var(--np-gris-texte);
    font-weight: 400;
    font-size: 12px;
}

.np-contact-field input,
.np-contact-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--np-bleu-marine);
    background: var(--np-blanc);
    border: 1.5px solid var(--np-gris-bordure);
    border-radius: var(--np-radius);
    transition: var(--np-transition);
    box-sizing: border-box;
}

.np-contact-field input:focus,
.np-contact-field textarea:focus {
    outline: none;
    border-color: var(--np-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.np-contact-field input::placeholder,
.np-contact-field textarea::placeholder {
    color: #A0AEC0;
}

.np-contact-field textarea {
    resize: vertical;
    min-height: 120px;
}

.np-contact-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 14px 36px;
    margin-top: 6px;
}

/* Alertes */
.np-contact-alert {
    padding: 14px 18px;
    border-radius: var(--np-radius);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.np-contact-alert p {
    margin: 0;
}

.np-contact-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.np-contact-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Colonne infos */
.np-contact-card {
    background: var(--np-blanc);
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.np-contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--np-bleu-marine);
    margin: 0 0 16px 0;
}

/* Contact direct */
.np-contact-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--np-gris-clair);
    font-size: 14px;
    color: var(--np-gris-texte);
    line-height: 1.5;
}

.np-contact-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.np-contact-details li svg {
    flex-shrink: 0;
    color: var(--np-orange);
    margin-top: 2px;
}

.np-contact-details strong {
    color: var(--np-bleu-marine);
    font-size: 13px;
}

.np-contact-details a {
    color: var(--np-orange);
    text-decoration: none;
    font-weight: 600;
}

.np-contact-details a:hover {
    text-decoration: underline;
}

/* Réassurance contact */
.np-contact-reassurance-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--np-gris-clair);
}

.np-contact-reassurance-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.np-contact-reassurance-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.np-contact-reassurance-item strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--np-bleu-marine);
    display: block;
    margin-bottom: 2px;
}

.np-contact-reassurance-item p {
    font-size: 13px;
    color: var(--np-gris-texte);
    margin: 0;
    line-height: 1.4;
}

/* Lien recherche pièce */
.np-contact-search-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
    border: 1.5px solid var(--np-orange);
    border-radius: var(--np-radius);
    text-decoration: none;
    transition: var(--np-transition);
}

.np-contact-search-link:hover {
    background: #fff7f0;
    transform: translateY(-2px);
    box-shadow: var(--np-ombre-hover);
}

.np-contact-search-link svg {
    flex-shrink: 0;
    color: var(--np-orange);
}

.np-contact-search-link strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--np-bleu-marine);
    display: block;
    margin-bottom: 4px;
    line-height: 1.4;
}

.np-contact-search-link span {
    font-size: 13px;
    color: var(--np-orange);
    font-weight: 600;
}

/* =============================================================================
   PAGE CONTACT — RESPONSIVE DESKTOP
   ============================================================================= */
@media (min-width: 992px) {
    .np-contact-hero {
        padding: 52px 20px;
    }

    .np-contact-hero h1 {
        font-size: 32px;
    }

    .np-contact-grid {
        grid-template-columns: 3fr 2fr;
        gap: 48px;
    }

    .np-contact-submit {
        width: auto;
    }
}

/* =============================================================================
   PAGE RECHERCHE DE PIECE
   ============================================================================= */

/* Hero */
.np-rp-hero {
    background: linear-gradient(135deg, var(--np-bleu-marine) 0%, #1e3a5f 50%, var(--np-bleu-moyen) 100%);
    padding: 44px 20px;
    text-align: center;
}

.np-rp-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.np-rp-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--np-blanc);
    line-height: 1.3;
    margin: 0 0 14px 0;
}

.np-rp-hero h1 span {
    color: var(--np-orange);
}

.np-rp-hero-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* Badges hero */
.np-rp-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.np-rp-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--np-radius);
    padding: 12px 20px;
    text-align: center;
    min-width: 100px;
}

.np-rp-badge strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--np-orange);
}

.np-rp-badge span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Comment ca marche */
.np-rp-steps-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.np-rp-steps-intro {
    color: var(--np-gris-texte);
    font-size: 15px;
    margin: -16px 0 32px 0;
}

.np-rp-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.np-rp-step {
    background: var(--np-blanc);
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-radius);
    padding: 28px 24px;
    text-align: center;
}

.np-rp-step-num {
    width: 40px;
    height: 40px;
    background: var(--np-orange);
    color: var(--np-blanc);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.np-rp-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--np-bleu-marine);
    margin: 0 0 8px 0;
}

.np-rp-step p {
    font-size: 13px;
    color: var(--np-gris-texte);
    line-height: 1.5;
    margin: 0;
}

/* Section formulaire */
.np-rp-form-section {
    background: var(--np-fond);
    padding: 50px 20px;
}

.np-rp-form-inner {
    max-width: 760px;
    margin: 0 auto;
}

.np-rp-form-inner .np-section-title {
    text-align: center;
    margin-bottom: 32px;
}

.np-rp-form-inner .np-contact-alert {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Fieldsets */
.np-rp-fieldset {
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-radius);
    background: var(--np-blanc);
    padding: 24px 20px;
    margin: 0 0 24px 0;
}

.np-rp-fieldset legend {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--np-bleu-marine);
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Grille 2 colonnes */
.np-rp-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 20px;
}

/* Select */
.np-rp-form select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--np-bleu-marine);
    background: var(--np-blanc);
    border: 1.5px solid var(--np-gris-bordure);
    border-radius: var(--np-radius);
    transition: var(--np-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.np-rp-form select:focus {
    outline: none;
    border-color: var(--np-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

/* Upload zone */
.np-rp-upload-zone {
    border: 2px dashed var(--np-gris-bordure);
    border-radius: var(--np-radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--np-transition);
    position: relative;
    color: var(--np-gris-texte);
}

.np-rp-upload-zone:hover {
    border-color: var(--np-orange);
    background: rgba(255, 107, 0, 0.03);
}

.np-rp-upload-zone svg {
    display: block;
    margin: 0 auto 10px;
    color: var(--np-gris-bordure);
}

.np-rp-upload-zone:hover svg {
    color: var(--np-orange);
}

.np-rp-upload-zone span {
    font-size: 13px;
    display: block;
}

.np-rp-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* File list */
.np-rp-file-list {
    margin-top: 10px;
}

.np-rp-file-item {
    font-size: 13px;
    color: var(--np-bleu-marine);
    padding: 6px 0;
    border-bottom: 1px solid var(--np-gris-clair);
}

.np-rp-file-item:last-child {
    border-bottom: none;
}

.np-rp-file-error {
    font-size: 12px;
    color: var(--np-rouge);
    margin: 4px 0 0 0;
}

/* CTA submit */
.np-rp-submit {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 16px 36px;
    margin-top: 8px;
}

/* FAQ */
.np-rp-faq-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 20px;
}

.np-rp-faq {
    margin-top: -8px;
}

.np-rp-faq-item {
    border: 1px solid var(--np-gris-clair);
    border-radius: var(--np-radius);
    margin-bottom: 10px;
    background: var(--np-blanc);
    overflow: hidden;
}

.np-rp-faq-item summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--np-bleu-marine);
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--np-transition);
}

.np-rp-faq-item summary::-webkit-details-marker {
    display: none;
}

.np-rp-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: var(--np-orange);
    flex-shrink: 0;
    margin-left: 16px;
    transition: var(--np-transition);
}

.np-rp-faq-item[open] summary::after {
    content: '-';
}

.np-rp-faq-item[open] summary {
    border-bottom: 1px solid var(--np-gris-clair);
}

.np-rp-faq-item p {
    padding: 16px 20px;
    margin: 0;
    font-size: 14px;
    color: var(--np-gris-texte);
    line-height: 1.6;
}

/* Lien retour */
.np-rp-back-section {
    text-align: center;
    padding: 0 20px 50px;
}

.np-rp-back-section p {
    font-size: 14px;
    color: var(--np-gris-texte);
}

.np-rp-back-section a {
    color: var(--np-orange);
    font-weight: 600;
    text-decoration: none;
}

.np-rp-back-section a:hover {
    text-decoration: underline;
}

/* Réassurance : forcer 3 colonnes sur la page recherche */
.page-template-page-recherche-piece .np-reassurance-inner {
    grid-template-columns: repeat(3, 1fr);
}

/* =============================================================================
   PAGE RECHERCHE — RESPONSIVE TABLET
   ============================================================================= */
@media (min-width: 640px) {
    .np-rp-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .np-rp-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .np-rp-submit {
        width: auto;
        margin: 8px auto 0;
    }
}

/* =============================================================================
   PAGE RECHERCHE — RESPONSIVE DESKTOP
   ============================================================================= */
@media (min-width: 992px) {
    .np-rp-hero {
        padding: 56px 20px;
    }

    .np-rp-hero h1 {
        font-size: 32px;
    }

    .np-rp-fieldset {
        padding: 28px 32px;
    }
}
