/**
 * Nexgen Electronics — Main Stylesheet
 * Charte : Orange #fd4c01, Noir #1A1A1A, Blanc #FFFFFF
 * Polices : Montserrat (body/display), Digital-Serial (titres sobres), Abbess (titres gras hero)
 *
 * @package Nexgen
 * @version 1.1.0
 */

/* ═══════════════════════════════════════════════════════════════════════
   CUSTOM FONTS — Placer les fichiers dans /assets/fonts/
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Digital-Serial';
    src: url('../fonts/Digital-Serial.woff2') format('woff2'),
         url('../fonts/Digital-Serial.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abbess';
    src: url('../fonts/Abbess.woff2') format('woff2'),
         url('../fonts/Abbess.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Digital-Serial';
    src: url('../fonts/Digital-Serial.woff2') format('woff2'),
         url('../fonts/Digital-Serial.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════════════
   CSS Variables & Reset
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* Couleurs */
    --nx-orange: #fd4c01;
    --nx-orange-dark: #d93f00;
    --nx-orange-light: #ff6e35;
    --nx-black: #1A1A1A;
    --nx-dark: #2C2C2C;
    --nx-gray-dark: #444444;
    --nx-gray: #888888;
    --nx-gray-light: #e8e8e8;
    --nx-gray-bg: #f5f5f5;
    --nx-white: #FFFFFF;
    --nx-teal: #1ABC9C;
    --nx-teal-dark: #16a085;
    --nx-red: #e74c3c;

    /* Typography */
    --nx-font-display: 'Montserrat', 'Arial Narrow', sans-serif;
    --nx-font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --nx-font-title: 'Digital-Serial', Georgia, 'Times New Roman', serif;
    --nx-font-abbess: 'Abbess', 'Arial Black', Impact, sans-serif;

    /* Spacing */
    --nx-container: 1200px;
    --nx-gap: 24px;
    --nx-radius: 8px;
    --nx-radius-lg: 16px;

    /* Shadows */
    --nx-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --nx-shadow: 0 4px 16px rgba(0,0,0,0.08);
    --nx-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --nx-shadow-hover: 0 8px 24px rgba(0,0,0,0.15);

    /* Transitions */
    --nx-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --nx-duration: 0.3s;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--nx-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--nx-black);
    background: var(--nx-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--nx-duration) var(--nx-ease);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════════════ */

#nexgen-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--nx-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s var(--nx-ease);
}

#nexgen-preloader.nexgen-preloader--hide {
    opacity: 0;
    pointer-events: none;
}

.nexgen-preloader__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: preloader-logo-in 0.8s var(--nx-ease) forwards;
}

.nexgen-preloader__logo img {
    width: 160px;
    height: auto;
}

.nexgen-preloader__bar {
    width: 160px;
    height: 3px;
    background: var(--nx-gray-dark);
    border-radius: 3px;
    overflow: hidden;
}

.nexgen-preloader__bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--nx-orange);
    border-radius: 3px;
    animation: preloader-bar 1.2s var(--nx-ease) forwards;
}

@keyframes preloader-logo-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes preloader-bar {
    from { width: 0; }
    to   { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-container {
    width: 100%;
    max-width: var(--nx-container);
    margin: 0 auto;
    padding: 0 20px;
}

.nexgen-main {
    min-height: 60vh;
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nx-white);
    box-shadow: var(--nx-shadow-sm);
}

/* Barre supérieure */
.nexgen-topbar {
    background: var(--nx-black);
    padding: 8px 0;
    text-align: center;
}

.nexgen-topbar__text {
    font-family: var(--nx-font-display);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--nx-white);
    text-transform: uppercase;
}

/* Barre principale */
.nexgen-mainbar {
    padding: 12px 0;
    border-bottom: 1px solid var(--nx-gray-light);
}

.nexgen-mainbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nexgen-mainbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.nexgen-mainbar__left--empty {
    display: none;
}

.nexgen-mainbar__social {
    display: flex;
    gap: 8px;
}
.nexgen-mainbar__social > a,
.nexgen-mainbar__social .nexgen-mainbar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nx-black);
    color: var(--nx-white);
    transition: background var(--nx-duration) var(--nx-ease);
}
.nexgen-mainbar__social > a:hover,
.nexgen-mainbar__social .nexgen-mainbar__social-link:hover {
    background: var(--nx-orange);
}

.nexgen-mainbar__social-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Le pictogramme WhatsApp est visuellement plus petit dans le carré 24×24 : léger zoom pour l’aligner sur les autres */
.nexgen-mainbar__social-link--whatsapp .nexgen-mainbar__social-icon {
    transform: scale(1.08);
    transform-origin: center;
}

/* Logo */
.nexgen-mainbar__center {
    flex-shrink: 0;
}

.nexgen-logo__img {
    height: 50px;
    width: auto;
}

/* Recherche header */
.nexgen-mainbar__right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nexgen-search-form {
    display: flex;
    align-items: center;
    background: var(--nx-gray-bg);
    border: 1px solid var(--nx-gray-light);
    border-radius: 50px;
    overflow: hidden;
    max-width: 300px;
    width: 100%;
    transition: border-color var(--nx-duration) var(--nx-ease);
}
.nexgen-search-form:focus-within {
    border-color: var(--nx-orange);
}

.nexgen-search-form__input {
    border: none;
    background: transparent;
    padding: 10px 16px;
    flex: 1;
    font-size: 14px;
    outline: none;
    color: var(--nx-black);
}
.nexgen-search-form__input::placeholder {
    color: var(--nx-gray);
}

.nexgen-search-form__btn {
    padding: 10px 14px;
    color: var(--nx-gray);
    transition: color var(--nx-duration) var(--nx-ease);
    display: flex;
    align-items: center;
}
.nexgen-search-form__btn:hover {
    color: var(--nx-orange);
}

/* Hamburger */
.nexgen-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}
.nexgen-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nx-black);
    transition: all var(--nx-duration) var(--nx-ease);
    border-radius: 2px;
}
.nexgen-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nexgen-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nexgen-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nexgen-nav {
    background: var(--nx-orange);
}

.nexgen-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.nexgen-nav__item a {
    display: block;
    padding: 14px 40px;
    font-family: var(--nx-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-white);
    letter-spacing: 0.3px;
    position: relative;
    transition: background var(--nx-duration) var(--nx-ease);
}
.nexgen-nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--nx-white);
    transition: width var(--nx-duration) var(--nx-ease);
}
.nexgen-nav__item a:hover,
.nexgen-nav__item.active a {
    background: rgba(0,0,0,0.1);
}
.nexgen-nav__item a:hover::after,
.nexgen-nav__item.active a::after {
    width: 60%;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE TITLE (Nos produits, Nous contacter, etc.)
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-page-title {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 40px 0 30px;
}
.nexgen-page-title--center {
    justify-content: center;
}

.nexgen-page-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--nx-orange), #f5a623);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: -10px;
    position: relative;
    z-index: 1;
}

.nexgen-page-title__n {
    font-family: var(--nx-font-abbess);
    font-size: 70px;
    font-weight: 400;
    color: var(--nx-white);
    line-height: 1;
}

.nexgen-page-title__text {
    font-family: var(--nx-font-title);
    font-size: 62px;
    font-weight: 400;
    color: var(--nx-black);
    line-height: 1.1;
    margin-left: 8px;
}

.nexgen-page-title__highlight {
    font-family: var(--nx-font-abbess);
    font-weight: 400;
    font-style: normal;
    color: var(--nx-orange);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION HEADER (Nouvel Arrivage, Climatiseurs, etc.)
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.nexgen-section-header__picto {
    display: inline-block;
    width: 54px;
    height: 34px;
    background: var(--nx-orange);
    border-radius: 0;
    flex-shrink: 0;
    clip-path: polygon(18% 0%, 100% 0%, 82% 100%, 0% 100%);
}

.nexgen-section-header__title {
    font-family: var(--nx-font-title);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--nx-black);
}

.nexgen-section-header--light .nexgen-section-header__title {
    color: var(--nx-white);
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-hero {
    position: relative;
    overflow: hidden;
}

.nexgen-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 650;
    max-height: 700px;
    overflow: hidden;
}

.nexgen-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.nexgen-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s var(--nx-ease);
    display: flex;
    align-items: flex-end;
}
.nexgen-slider__slide.active {
    opacity: 1;
    z-index: 1;
}

.nexgen-slider__overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.nexgen-slider__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 60px 50px;
    color: var(--nx-white);
}

.nexgen-slider__subtitle {
    font-family: var(--nx-font-title);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.9;
}

.nexgen-slider__title {
    font-family: var(--nx-font-abbess);
    font-size: 90px;
    font-weight: 400;
    line-height: 0.9;
}

/* Slider arrows */
.nexgen-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: var(--nx-white);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background var(--nx-duration) var(--nx-ease);
}
.nexgen-slider__arrow:hover {
    background: rgba(255,255,255,0.4);
}
.nexgen-slider__arrow--prev { left: 20px; }
.nexgen-slider__arrow--next { right: 20px; }

/* Slider dots */
.nexgen-slider__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.nexgen-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all var(--nx-duration) var(--nx-ease);
}
.nexgen-slider__dot.active,
.nexgen-slider__dot:hover {
    background: var(--nx-orange);
    transform: scale(1.2);
}

/* Hero fallback */
.nexgen-hero__fallback {
    position: relative;
    aspect-ratio: 1920 / 650;
    min-height: 260px;
    max-height: 700px;
    background: linear-gradient(135deg, var(--nx-orange), var(--nx-black));
    display: flex;
    align-items: flex-end;
}
.nexgen-hero__fallback-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.nexgen-hero__fallback .nexgen-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 50px;
    color: var(--nx-white);
}
.nexgen-hero__fallback-sub {
    font-family: var(--nx-font-title);
    font-size: 20px;
    font-style: italic;
    letter-spacing: 2px;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 4px;
    display: block;
}
.nexgen-hero__fallback-title {
    font-family: var(--nx-font-abbess);
    font-size: 90px;
    color: var(--nx-white);
    font-weight: 400;
    line-height: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTIONS (Accueil)
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-section {
    padding: 60px 0;
    position: relative;
}

.nexgen-section--promo {
    background: var(--nx-dark);
    position: relative;
    overflow: hidden;
}

.nexgen-section--promo__bg {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 50%, var(--nx-orange) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--nx-orange) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, var(--nx-orange) 0%, transparent 45%);
}

.nexgen-section--promo__illustration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    opacity: 0.50;
    pointer-events: none;
    user-select: none;
}

.nexgen-section--promo__illustration img {
    width: 100%;
    height: auto;
    display: block;
}

.nexgen-section--vedettes {
    background: var(--nx-gray-bg);
}

.nexgen-section__cta {
    margin-top: 32px;
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT CARD
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-products-grid {
    display: grid;
    gap: var(--nx-gap);
}
.nexgen-products-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.nexgen-products-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.nexgen-product-card {
    background: var(--nx-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: all var(--nx-duration) var(--nx-ease);
    display: flex;
}
.nexgen-product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-4px);
}

.nexgen-product-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.nexgen-product-card__image {
    position: relative;
    aspect-ratio: 3 / 3;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nexgen-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--nx-duration) var(--nx-ease);
}
.nexgen-product-card:hover .nexgen-product-card__img {
    transform: scale(1.05);
}

.nexgen-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nexgen-product-card__info {
    padding: 14px 16px 18px;
    background: #ebebeb;
    text-align: center;
    flex: 1;
    text-transform: uppercase;
}

.nexgen-product-card__name {
    font-family: var(--nx-font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
    margin-bottom: 4px;
}

.nexgen-product-ref {
    color: var(--nx-orange);
    font-weight: 700;
    font-size: 13px;
}

.nexgen-product-card__capacity {
    font-size: 14px;
    font-weight: 700;
    color: var(--nx-black);
    display: block;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CATALOG PAGE (Archive)
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-catalog-header {
    padding: 30px 0 0;
}

/* Recherche catalogue */
.nexgen-catalog-search {
    max-width: 460px;
    margin: 0 auto 16px;
}

.nexgen-catalog-search__form {
    display: flex;
    align-items: stretch;
    background: var(--nx-white);
    border: 1.5px solid var(--nx-gray-light);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--nx-shadow-sm);
    transition: border-color var(--nx-duration) var(--nx-ease);
}
.nexgen-catalog-search__form:focus-within {
    border-color: var(--nx-orange);
}

.nexgen-catalog-search__input {
    border: none;
    background: transparent;
    padding: 13px 20px;
    flex: 1;
    font-size: 14px;
    outline: none;
    color: var(--nx-black);
}
.nexgen-catalog-search__input::placeholder {
    color: var(--nx-gray);
}

.nexgen-catalog-search__btn {
    padding: 0 22px;
    background: var(--nx-orange);
    color: var(--nx-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 50px 50px 0;
    flex-shrink: 0;
    transition: background var(--nx-duration) var(--nx-ease);
}
.nexgen-catalog-search__btn:hover {
    background: var(--nx-orange-dark);
}

/* Dropdown catégorie */
.nexgen-catalog-select-wrap {
    position: relative;
    max-width: 460px;
    margin: 0 auto 40px;
}

.nexgen-catalog-select {
    width: 100%;
    padding: 13px 48px 13px 18px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--nx-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fd4c01' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    border: 1.5px solid var(--nx-gray-light);
    border-radius: 6px;
    font-family: var(--nx-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--nx-black);
    cursor: pointer;
    transition: border-color var(--nx-duration) var(--nx-ease);
    outline: none;
}
.nexgen-catalog-select:focus,
.nexgen-catalog-select:hover {
    border-color: var(--nx-orange);
}

/* Sections catalogue */
.nexgen-catalog-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.nexgen-catalog-section:first-child,
.nexgen-catalog-section:last-child {
    margin-bottom: 0;
}

.nexgen-catalog-section--gray {
    background: var(--nx-gray-bg);
    padding-top: 40px;
}

.nexgen-catalog-section__more {
    margin-top: 20px;
    text-align: left;
}

.nexgen-catalog-content {
    padding-bottom: 0;
}

/* Breadcrumb sous-catégorie */
.nexgen-subcat-breadcrumb {
    text-align: center;
    margin-bottom: 32px;
}

.nexgen-subcat-breadcrumb__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-gray);
    text-decoration: none;
    transition: color var(--nx-duration) var(--nx-ease);
}

.nexgen-subcat-breadcrumb__back:hover {
    color: var(--nx-orange);
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 48px 0 16px;
    flex-wrap: wrap;
}

.nexgen-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: var(--nx-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-black);
    background: var(--nx-white);
    border: 1.5px solid var(--nx-gray-light);
    text-decoration: none;
    transition: all var(--nx-duration) var(--nx-ease);
    line-height: 1;
}

.nexgen-pagination .page-numbers:hover {
    border-color: var(--nx-orange);
    color: var(--nx-orange);
}

.nexgen-pagination .page-numbers.current {
    background: var(--nx-orange);
    border-color: var(--nx-orange);
    color: var(--nx-white);
    cursor: default;
}

.nexgen-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    color: var(--nx-gray);
}

.nexgen-pagination .prev.page-numbers,
.nexgen-pagination .next.page-numbers {
    padding: 0 16px;
}

.nexgen-pagination .prev.page-numbers svg,
.nexgen-pagination .next.page-numbers svg {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-product-single {
    padding: 40px 0 80px;
}

.nexgen-product-single__grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: start;
}

.nexgen-product-single__image-wrapper {
    background: var(--nx-gray-bg);
    border-radius: var(--nx-radius-lg);
    padding: 30px;
    overflow: hidden;
}

.nexgen-product-single__title {
    font-family: var(--nx-font-display);
    font-size: 52px;
    font-weight: 300;
    color: var(--nx-black);
    line-height: 1.05;
    margin: 0;
}

.nexgen-product-single__subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--nx-black);
    margin: 0;
}

.nexgen-text-orange {
    color: var(--nx-orange);
    font-weight: 700;
}

.nexgen-product-single__main-image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
}

.nexgen-product-single__capacity-badge {
    display: inline-block;
    background: var(--nx-orange);
    color: var(--nx-white);
    padding: 12px 36px;
    border-radius: 50px;
    font-family: var(--nx-font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nexgen-product-single__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--nx-gray-dark);
    margin: 0;
}

/* Colonne info : empilement vertical */
.nexgen-product-single__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}

/* Galerie miniatures */
.nexgen-product-single__gallery {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.nexgen-product-single__thumb {
    flex: 1;
    background: var(--nx-gray-bg);
    border-radius: var(--nx-radius);
    overflow: hidden;
    border: 2px solid transparent;
    padding: 10px;
    cursor: pointer;
    transition: border-color var(--nx-duration) var(--nx-ease);
}
.nexgen-product-single__thumb.active,
.nexgen-product-single__thumb:hover {
    border-color: var(--nx-orange);
}
.nexgen-product-single__thumb img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    display: block;
}

/* CTA dans la colonne info */
.nexgen-product-single__cta {
    text-align: center;
}

.nexgen-product-single__cta .nexgen-btn {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    font-family: var(--nx-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--nx-duration) var(--nx-ease);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.nexgen-btn--primary {
    background: var(--nx-orange);
    color: var(--nx-white);
    border-color: var(--nx-orange);
}
.nexgen-btn--primary:hover {
    background: var(--nx-orange-dark);
    border-color: var(--nx-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229,90,0,0.3);
}

.nexgen-btn--outline {
    background: transparent;
    color: var(--nx-black);
    border-color: var(--nx-black);
}
.nexgen-btn--outline:hover {
    background: var(--nx-black);
    color: var(--nx-white);
}

.nexgen-btn--dark {
    background: var(--nx-black);
    color: var(--nx-white);
    border-color: var(--nx-black);
    text-transform: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0;
    padding: 10px 22px;
}
.nexgen-btn--dark:hover {
    background: #333;
    border-color: #333;
}

.nexgen-btn--whatsapp {
    background: var(--nx-teal);
    color: var(--nx-white);
    border-color: var(--nx-teal);
}
.nexgen-btn--whatsapp:hover {
    background: var(--nx-teal-dark);
    border-color: var(--nx-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,188,156,0.3);
}

.nexgen-btn--lg {
    padding: 18px 48px;
    font-size: 17px;
    border-radius: 60px;
}

.nexgen-btn--sm {
    padding: 10px 24px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.nexgen-btn--full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-about {
    padding: 0 0 80px;
}

/* Colonne centrale unique */
.nexgen-about__inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Image héro équipe */
.nexgen-about__hero {
    text-align: center;
}
.nexgen-about__hero img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* Texte */
.nexgen-about__text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--nx-black);
}
.nexgen-about__text p {
    margin-bottom: 16px;
}
.nexgen-about__text p:last-child {
    margin-bottom: 0;
}
.nexgen-about__text strong {
    color: var(--nx-black);
    font-weight: 700;
}

/* Deux photos de boutique côte à côte */
.nexgen-about__stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.nexgen-about__store-img {
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
}
.nexgen-about__store-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

/* Image bas produits */
.nexgen-about__bottom {
    text-align: center;
}
.nexgen-about__bottom img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-contact {
    padding: 0 0 80px;
}

.nexgen-contact .nexgen-page-title {
    margin-bottom: 0;
}

/* Colonne centrale unique */
.nexgen-contact__inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

/* Photo principale */
.nexgen-contact__main-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--nx-radius-lg);
}

@media (min-width: 992px) {
    .nexgen-contact__main-photo {
        max-height: 430px;
        max-width: 100%;
        width: auto;
        height: auto;
        margin: 40px auto;
        object-fit: contain;
    }
}

/* Adresse */
.nexgen-contact__address {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.nexgen-contact__address svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.nexgen-contact__address-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--nx-black);
    margin: 0;
}

/* Deux vignettes : photo + carte */
.nexgen-contact__photos-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 12px;
    align-items: stretch;
}
.nexgen-contact__photo-item {
    border-radius: 16px;
    overflow: hidden;
}
.nexgen-contact__photo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}
.nexgen-contact__photo-item--map {
    border-radius: 16px;
    overflow: hidden;
}
.nexgen-contact__photo-item--map iframe {
    width: 100%;
    height: 180px;
    border: none;
    display: block;
    border-radius: 16px;
}

/* Téléphone */
.nexgen-contact__phone {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nexgen-contact__phone svg {
    flex-shrink: 0;
}
.nexgen-contact__phone-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--nx-black);
    margin: 0;
}

/* Bouton WhatsApp */
.nexgen-contact__whatsapp .nexgen-btn {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-search-results {
    padding: 0 0 80px;
}

.nexgen-search-results__query {
    font-size: 16px;
    color: var(--nx-gray-dark);
    margin-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-404 {
    padding: 80px 0 120px;
    text-align: center;
}

.nexgen-404__code {
    font-family: var(--nx-font-display);
    font-size: 140px;
    font-weight: 700;
    color: var(--nx-orange);
    line-height: 1;
    margin-bottom: 10px;
}

.nexgen-404__title {
    font-family: var(--nx-font-display);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.nexgen-404__text {
    font-size: 16px;
    color: var(--nx-gray);
    margin-bottom: 32px;
}

.nexgen-404__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   GENERIC PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-page {
    padding: 40px 0 80px;
}

.nexgen-page__title {
    font-family: var(--nx-font-display);
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 30px;
}

.nexgen-page__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--nx-gray-dark);
}
.nexgen-page__content p {
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════
   NO RESULTS
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-no-results {
    text-align: center;
    padding: 60px 20px;
}
.nexgen-no-results svg {
    margin: 0 auto 20px;
}
.nexgen-no-results h2 {
    font-family: var(--nx-font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}
.nexgen-no-results p {
    color: var(--nx-gray);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-footer {
    background: var(--nx-black);
    color: var(--nx-white);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nexgen-footer__main {
    padding: 56px 0 48px;
}

.nexgen-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.nexgen-footer__links,
.nexgen-footer__aside-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nexgen-footer__links li,
.nexgen-footer__aside-links li {
    margin: 0 0 14px;
}

.nexgen-footer__links li:last-child,
.nexgen-footer__aside-links li:last-child {
    margin-bottom: 0;
}

.nexgen-footer__links a,
.nexgen-footer__aside-links a,
.nexgen-footer__copyright {
    font-family: var(--nx-font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--nx-white);
    text-decoration: none;
}

.nexgen-footer__links a,
.nexgen-footer__aside-links a {
    display: inline-block;
    text-transform: uppercase;
    transition: color var(--nx-duration) var(--nx-ease), opacity var(--nx-duration) var(--nx-ease);
}

.nexgen-footer__links a:hover,
.nexgen-footer__aside-links a:hover {
    color: var(--nx-white);
    opacity: 0.85;
}

.nexgen-footer__social-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.nexgen-footer__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nexgen-footer .nexgen-footer__social .nexgen-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--nx-orange);
    color: var(--nx-black);
    transition: background-color var(--nx-duration) var(--nx-ease), transform var(--nx-duration) var(--nx-ease);
}

.nexgen-footer .nexgen-footer__social .nexgen-footer__social-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    color: var(--nx-black);
}

.nexgen-footer .nexgen-footer__social .nexgen-footer__social-link--whatsapp .nexgen-footer__social-icon {
    transform: scale(1.08);
    transform-origin: center;
}

.nexgen-footer .nexgen-footer__social .nexgen-footer__social-link:hover {
    background-color: var(--nx-orange-light);
    transform: translateY(-2px);
    color: var(--nx-black);
}

.nexgen-footer__tagline {
    margin: 0;
    font-family: var(--nx-font-title);
    font-size: 25px;
    font-weight: 700;
    font-synthesis: weight;
    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.65);
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: none;
    text-align: center;
    align-self: center;
    background: linear-gradient(
        100deg,
        #8a8a8a 0%,
        #c8c8c8 18%,
        #ffffff 32%,
        #ffe0c8 42%,
        #fd4c01 50%,
        #fff4a8 54%,
        #ffffff 62%,
        #d0d0d0 78%,
        #7a7a7a 100%
    );
    background-size: 320% 100%;
    background-position: 150% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(253, 76, 1, 0.35));
    animation: nexgen-footer-tagline-shine 9s ease-in-out infinite;
}

@keyframes nexgen-footer-tagline-shine {
    0%,
    7% {
        background-position: 150% center;
        filter: drop-shadow(0 0 6px rgba(253, 76, 1, 0.2));
    }
    50% {
        background-position: -50% center;
        filter:
            drop-shadow(0 0 16px rgba(253, 76, 1, 0.75))
            drop-shadow(0 0 28px rgba(255, 200, 80, 0.45));
    }
    61% {
        background-position: -50% center;
        filter: drop-shadow(0 0 12px rgba(253, 76, 1, 0.55));
    }
    61.01%,
    100% {
        background-position: 150% center;
        filter: drop-shadow(0 0 6px rgba(253, 76, 1, 0.2));
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexgen-footer__tagline {
        animation: none;
        background: none;
        filter: none;
        -webkit-text-stroke: 0;
        -webkit-text-fill-color: var(--nx-white);
        color: var(--nx-white);
    }
}

@media (min-width: 992px) {
    .nexgen-footer__tagline {
        white-space: nowrap;
    }
}

.nexgen-footer__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
}

.nexgen-footer__aside-links {
    text-align: right;
}

.nexgen-footer__bottom {
    padding: 0 0 36px;
}

.nexgen-footer__copyright {
    margin: 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGINATION (WordPress)
   ═══════════════════════════════════════════════════════════════════════ */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--nx-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--nx-black);
    background: var(--nx-gray-bg);
    transition: all var(--nx-duration) var(--nx-ease);
}
.page-numbers:hover,
.page-numbers.current {
    background: var(--nx-orange);
    color: var(--nx-white);
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nexgen-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--nx-ease), transform 0.6s var(--nx-ease);
}
.nexgen-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.nexgen-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.nexgen-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--nx-gray-light);
    border-top-color: var(--nx-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablette */
@media (max-width: 1024px) {
    .nexgen-products-grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .nexgen-product-single__grid {
        grid-template-columns: 1fr;
    }

    .nexgen-product-single__info {
        padding-top: 0;
    }

    .nexgen-about__stores {
        grid-template-columns: 1fr;
    }

    .nexgen-contact__photos-row {
        grid-template-columns: 1fr 3fr;
    }

    .nexgen-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .nexgen-footer__tagline {
        grid-column: 1 / -1;
        text-align: center;
    }

    .nexgen-footer__aside {
        align-items: flex-end;
    }

    .nexgen-slider__title {
        font-size: 64px;
    }
    .nexgen-hero__fallback-title {
        font-size: 64px;
    }
}

/* Mobile large */
@media (max-width: 768px) {
    .nexgen-mainbar__left:not(.nexgen-mainbar__left--empty) {
        display: flex;
        order: 2;
        flex: 0 0 100%;
        justify-content: center;
        gap: 8px;
        padding-top: 10px;
        margin-top: 2px;
        border-top: 1px solid var(--nx-gray-light);
    }

    .nexgen-mainbar__social {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }

    .nexgen-mainbar__right {
        display: none;
    }

    .nexgen-mainbar__center {
        order: 1;
        margin: 0 auto;
    }

    .nexgen-hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        /* Aligné sur la ligne du logo (padding 12px + moitié du logo ~50px), pas sur tout le bloc incl. les réseaux */
        top: calc(12px + 25px);
        transform: translateY(-50%);
    }

    .nexgen-mainbar__inner {
        position: relative;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0;
    }

    .nexgen-nav {
        display: none;
    }
    .nexgen-nav.open {
        display: block;
    }

    .nexgen-nav__list {
        flex-direction: column;
        gap: 0;
    }
    .nexgen-nav__item a {
        padding: 14px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .nexgen-products-grid--3,
    .nexgen-products-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nexgen-page-title__icon {
        width: 60px;
        height: 60px;
    }
    .nexgen-page-title__n {
        font-size: 36px;
    }
    .nexgen-page-title__text {
        font-size: 36px;
    }

    .nexgen-slider {
        aspect-ratio: unset;
        height: 340px;
        max-height: none;
        width: 100%;
    }

    .nexgen-slider__slide {
        background-image: var(--slide-bg-mobile);
        background-size: cover;
        background-position: center center;
    }
    .nexgen-slider__subtitle {
        font-size: 15px;
    }
    .nexgen-slider__title {
        font-size: 44px;
    }
    .nexgen-hero__fallback-sub {
        font-size: 15px;
    }
    .nexgen-hero__fallback-title {
        font-size: 44px;
    }
    .nexgen-slider__content {
        padding: 0 30px 36px;
    }
    .nexgen-hero__fallback .nexgen-container {
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 36px;
    }

    .nexgen-product-single__title {
        font-size: 36px;
    }

    .nexgen-about__hero img,
    .nexgen-about__bottom img {
        max-width: 100%;
    }

    .nexgen-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nexgen-footer__nav,
    .nexgen-footer__aside {
        align-items: flex-start;
    }

    .nexgen-footer__tagline {
        grid-column: auto;
        padding-top: 0;
    }

    .nexgen-footer__social-row,
    .nexgen-footer__aside-links {
        justify-content: flex-start;
        text-align: left;
    }

    .nexgen-footer__social {
        justify-content: flex-start;
    }

    .nexgen-footer__aside {
        align-items: flex-start;
    }

    .nexgen-404__code {
        font-size: 100px;
    }
    .nexgen-404__actions {
        flex-direction: column;
    }

    .nexgen-catalog-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    .nexgen-catalog-filters__btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Mobile petit */
@media (max-width: 480px) {
    .nexgen-products-grid--3,
    .nexgen-products-grid--4 {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .nexgen-page-title__text {
        font-size: 28px;
    }
    .nexgen-page-title__icon {
        width: 48px;
        height: 48px;
    }
    .nexgen-page-title__n {
        font-size: 28px;
    }

    .nexgen-topbar__text {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .nexgen-slider {
        height: 285px;
    }
    .nexgen-slider__subtitle {
        font-size: 13px;
    }
    .nexgen-slider__title {
        font-size: 34px;
    }
    .nexgen-hero__fallback-sub {
        font-size: 13px;
    }
    .nexgen-hero__fallback-title {
        font-size: 34px;
    }
    .nexgen-slider__content {
        padding: 0 20px 28px;
    }
    .nexgen-hero__fallback .nexgen-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 28px;
    }

    .nexgen-btn--lg {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   WP ADMIN BAR adjustment
   ═══════════════════════════════════════════════════════════════════════ */

.admin-bar .nexgen-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .nexgen-header {
        top: 46px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ÉLÉMENTS MASQUÉS (développement — ne pas masquer le footer)
   ═══════════════════════════════════════════════════════════════════════ */

.nexgen-topbar {
    display: none !important;
}
