/* === NAVBAR === */

/* ============================================
   J2R - NAVBAR & LOGO
   ============================================ */

/* --- Navbar --- */
.j2r-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 40px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.65, 0.01, 0.05, 0.99);
}

.j2r-nav.is-hidden {
    transform: translateY(-100%);
}

/* --- Nav list --- */
.j2r-nav__list {
    display: flex;
    gap: 10px;
    padding: 15px 25px;
    margin: 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Nav item (brackets) --- */
.j2r-nav__item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.j2r-nav__item::before {
    content: "[";
    opacity: 0.5;
    font-family: "Host Grotesk", sans-serif;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease, color 0.3s ease;
    margin-right: 6px;
}

.j2r-nav__item::after {
    content: "]";
    opacity: 0.5;
    font-family: "Host Grotesk", sans-serif;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s ease, color 0.3s ease;
    margin-left: 6px;
}

.j2r-nav__item:hover::before,
.j2r-nav__item:hover::after {
    opacity: 1;
    color: #FF002E;
}

/* --- Nav link (glitch text) --- */
.j2r-nav__link {
    font-family: "Host Grotesk", sans-serif;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    transition: color 0.3s ease;
}

.j2r-nav__link:hover {
    color: #ffffff;
}

/* Glitch pseudo-elements */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.glitch::before {
    color: #FF002E;
    z-index: -1;
}

.glitch::after {
    color: #a3a3a3;
    z-index: -1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .j2r-nav {
        padding: 15px 20px;
    }

    .j2r-nav__list {
        gap: 5px;
        padding: 12px 15px;
    }

    .j2r-nav__link {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .j2r-nav__item::before,
    .j2r-nav__item::after {
        font-size: 11px;
    }
}

/* === HERO === */

/* ============================================
   J2R - HERO SECTION
   ============================================ */

/* --- Hero section (full viewport + video bg) --- */
.j2r-hero {
    position: relative;
    overflow: hidden;
}

/* Ensure video covers full section */
.j2r-hero .elementor-background-video-container {
    z-index: 0;
}

/* --- Subtitle pill "MODELE SMOL - 9 400 € TTC" --- */
.j2r-hero-subtitle {
    display: inline-block;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --- CTA Button "Précommander" --- */
.j2r-hero-cta .elementor-button {
    position: relative;
    box-shadow: 0 0 30px rgba(255, 0, 46, 0.6);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.j2r-hero-cta .elementor-button:hover {
    box-shadow: 0 0 45px rgba(255, 0, 46, 0.85);
    transform: scale(1.02);
}

/* Icon: absolute right, bigger, wheelie on hover (pivot = rear wheel) */
.j2r-hero-cta .elementor-button-icon {
    position: absolute;
    font-size: 22px;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: 17% 74%;          /* rear wheel center */
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease;
}

.j2r-hero-cta.is-morphing .elementor-button-icon {
    opacity: 0;
    pointer-events: none;
}

.j2r-hero-cta .elementor-button:hover .elementor-button-icon {
    transform: translateY(-50%) rotate(-32deg);
}

/* --- CTA morph on scroll (positions driven by JS) --- */
.j2r-hero-cta.is-morphing {
    position: fixed;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 999;
}

.j2r-hero-cta.is-morphing .elementor-button {
    width: 100%;
    justify-content: center;
}

/* === UNIVERS === */

/* ============================================
   J2R - SECTION UNIVERS (Section 2)
   ============================================ */

/* --- Section background with scratched texture + logo watermark --- */
.j2r-univers {
    position: relative;
    overflow: hidden;
}

/* Logo watermark pattern overlay */
.j2r-univers::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../../../uploads/2026/02/J2R-Logotype-Rouge-fluo.png') repeat;
    background-size: 300px auto;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Ensure Elementor content stays above the watermark */
.j2r-univers > .elementor-container {
    position: relative;
    z-index: 1;
}

/* --- Spotify Block (HTML widget) --- */
.j2r-spotify {
    max-width: 100%;
}

.j2r-spotify__wrapper {
    background-color: #141414;
    border: 1px solid #333;
    padding: 20px;
}

.j2r-spotify__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.j2r-spotify__label {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

.j2r-spotify__title {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
}

.j2r-spotify__embed {
    background-color: #0F0F0F;
    border-radius: 12px;
    overflow: hidden;
}

.j2r-spotify__embed iframe {
    display: block;
}

.j2r-spotify__text {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 0.875rem;
    color: #666;
    margin-top: 16px;
    text-align: center;
}

/* --- Infinite Slider (built from Elementor Gallery widget) --- */
.j2r-slider .elementor-widget-container {
    overflow: visible;
}

.j2r-slider__container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.j2r-slider__container:active {
    cursor: grabbing;
}

/* Fade overlays top & bottom */
.j2r-slider__fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 10;
    pointer-events: none;
}

.j2r-slider__fade--top {
    top: 0;
    background: linear-gradient(to bottom, #0F0F0F 0%, transparent 100%);
}

.j2r-slider__fade--bottom {
    bottom: 0;
    background: linear-gradient(to top, #0F0F0F 0%, transparent 100%);
}

.j2r-slider__track {
    display: flex;
    gap: 32px;
    will-change: transform;
}

.j2r-slider__slide {
    flex: 0 0 auto;
    width: clamp(280px, 30vw, 400px);
    height: clamp(350px, 40vw, 500px);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.65, 0.01, 0.05, 0.99),
                box-shadow 0.3s cubic-bezier(0.65, 0.01, 0.05, 0.99);
}

.j2r-slider__slide:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.j2r-slider__slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto;
    transition: transform 0.3s cubic-bezier(0.65, 0.01, 0.05, 0.99);
    pointer-events: none;
    user-select: none;
}

.j2r-slider__slide:hover img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .j2r-slider__fade {
        height: 80px;
    }

    .j2r-slider__slide {
        width: 260px;
        height: 340px;
    }
}

/* === SMOL === */

/* ============================================
   J2R - SMOL PRODUCT SECTION (Bento Grid + Stats)
   Elementor Containers (e-con / e-child)
   ============================================ */

/* --- Bento Image Grid --- */
.j2r-bento {
    padding: 0 !important;
}

/* Parent container becomes CSS Grid */
.j2r-bento.e-con {
    display: grid !important;
    grid-template-columns: 5fr 2fr 3fr;
    grid-template-rows: 9fr 6fr 5fr;
    gap: 6px;
    height: 75vh;
    min-height: 500px;
}

/* Reset child containers for grid cells */
.j2r-bento > .e-child {
    width: 100% !important;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

/* Images fill their grid cell */
.j2r-bento > .e-child .elementor-widget {
    height: 100%;
    margin-bottom: 0 !important;
}

.j2r-bento > .e-child .elementor-widget-container {
    height: 100%;
    position: relative;
}

.j2r-bento img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* --- Grid placement (5 child containers = 5 images) --- */

/* Child 1: Large motorcycle side view — left, tall */
.j2r-bento > .e-child:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Child 2: Carbon close-up — middle top */
.j2r-bento > .e-child:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Child 3: Showroom — right top */
.j2r-bento > .e-child:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Child 4: Suspension detail — bottom left, small */
.j2r-bento > .e-child:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}

/* Child 5: Rear view — bottom right, wide + tall */
.j2r-bento > .e-child:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
}

/* --- Labels on images (pseudo-elements) --- */
.j2r-bento__perf .elementor-widget-container::after,
.j2r-bento__texture .elementor-widget-container::after {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FF002E;
    border: 1px solid #FF002E;
    padding: 4px 10px;
    z-index: 2;
}

.j2r-bento__perf .elementor-widget-container::after {
    content: 'PERFORMANCE';
}

.j2r-bento__texture .elementor-widget-container::after {
    content: 'TEXTURE';
}

/* --- Stats Row --- */
.j2r-stats.e-con {
    align-items: flex-end;
}

.j2r-stat__number .elementor-heading-title {
    font-family: 'Host Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1 !important;
}

.j2r-stat__unit .elementor-heading-title {
    font-family: 'Host Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem) !important;
    font-weight: 700 !important;
    color: #FF002E !important;
    line-height: 1.2 !important;
}

.j2r-stat__desc .elementor-heading-title {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #666 !important;
}

.desc-counter .elementor-heading-title {
    text-align: center;
    text-transform: uppercase;
    font-family: 'Host Grotesk', sans-serif;
    font-size: 0.625rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em;
    color: #666 !important;
}

/* --- Partner Slider --- */
.j2r-partners {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 30%, rgb(0, 0, 0) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 30%, rgb(0, 0, 0) 70%, rgba(0, 0, 0, 0) 100%);
}

.j2r-partners .swiper-wrapper {
    transition-timing-function: linear !important;
    pointer-events: none;
}

/* --- Auto-Scroll Infinite Strip --- */
.j2r-autoscroll {
    overflow: hidden;
    position: relative;
}

.j2r-autoscroll__track {
    display: flex;
    gap: 24px;
    will-change: transform;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.j2r-autoscroll__track.is-dragging {
    cursor: grabbing;
}

.j2r-autoscroll__slide {
    flex: 0 0 auto;
    width: 450px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.j2r-autoscroll__slide img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .j2r-bento.e-con {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        min-height: unset;
        gap: 4px;
    }

    .j2r-bento > .e-child:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .j2r-bento > .e-child:nth-child(2) {
        grid-column: 1;
        grid-row: auto;
    }

    .j2r-bento > .e-child:nth-child(3) {
        grid-column: 2;
        grid-row: auto;
    }

    .j2r-bento > .e-child:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .j2r-bento > .e-child:nth-child(5) {
        grid-column: 2;
        grid-row: auto;
    }

    .j2r-bento > .e-child {
        min-height: 200px;
    }
}

/* === REVEAL === */

/* ============================================
   J2R - Scroll Reveal (blur + fade)
   ============================================ */

.j2r-reveal {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.15s, filter 0.7s ease 0.15s, transform 0.7s ease 0.15s !important;
}

.j2r-reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .j2r-reveal {
        opacity: 1;
        filter: none;
        transition: none;
    }
}

/* === CARROUSEL MOTO === */

/* Grand-parent : égalise la hauteur des deux colonnes sœurs */
.e-con:has(> .e-con > .carrousel-moto) {
    align-items: stretch !important;
}

/* Colonne carrousel (65%) : s'étire + position relative pour l'enfant absolu */
.e-con:has(> .carrousel-moto) {
    align-self: stretch !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Le widget sort du flux flex et remplit son container par position absolue */
.carrousel-moto {
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
}

.carrousel-moto .elementor-widget-container,
.carrousel-moto .elementor-image-carousel-wrapper,
.carrousel-moto .swiper,
.carrousel-moto .swiper-slide,
.carrousel-moto .swiper-slide-inner {
    height: 100% !important;
}

.carrousel-moto .elementor-image-carousel-wrapper {
    overflow: hidden !important;
}

.carrousel-moto .swiper-wrapper,
.carrousel-moto .swiper-slide {
    width: 100% !important;
}

.carrousel-moto .swiper-slide-inner {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carrousel-moto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}


/* === BTN WHEELIE — full-width modifier === */
.j2r-btn-wheelie.full-width .elementor-button {
    width: 100%;
    justify-content: center;
}

/* === CARROUSEL TEAM — drag scroll === */

/* Contraindre le parent direct au viewport (sans quoi il s'étire avec ses enfants) */
.e-con:has(> .carrousel-team) {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}


.carrousel-team {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: scroll !important;
    overflow-y: visible !important;
    cursor: grab !important;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    /* Masquer la scrollbar */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.carrousel-team::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.carrousel-team.is-dragging { cursor: grabbing !important; }
.carrousel-team.is-dragging * { pointer-events: none; user-select: none; }

/* Empêcher les cartes de se comprimer */
.carrousel-team > .e-con {
    flex-shrink: 0 !important;
}

/* === HOVER GRID EFFECT (classe : j2r-hover-grid) === */
.j2r-hover-grid {
    position: relative !important;
    overflow: hidden !important;
}
.j2r-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.j2r-grid-block {
    position: absolute;
    background-color: #0d0d0d;
    opacity: 0;
}
.j2r-grid-block.active {
    opacity: 1;
}

/* ============================================================
   PAGE FAQ  (template: page-faq.php / body.faq-template)
   ============================================================ */

/* Elementor force overflow-x:hidden sur body — ça casse position:sticky.
   overflow-x:clip coupe l'overflow SANS créer un scroll container,
   ce qui permet au sticky de fonctionner correctement. */
body.page-id-1292 {
    overflow-x: clip !important;
}

@media (max-width: 1024px) {
    #nav-menu {
        position: static !important;
        top: auto !important;
        align-self: auto !important;
    }
}

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

body.faq-template {
    padding: 80px 3.5vw;
}


/* ── HEADER ── */
.faq-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
    padding-bottom: 28px;
    border-bottom: 1px solid #2a2a2a;
    animation: faqFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.faq-eyebrow {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FF002E;
    margin-bottom: 10px;
}
.faq-title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: #ececec;
    text-transform: uppercase;
}
.faq-count {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a3a3a3;
    text-align: right;
    line-height: 1;
}
.faq-count strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ececec;
    margin-bottom: 4px;
}

/* ── LAYOUT ── */
.faq-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 5vw;
    align-items: start;
    animation: faqFadeUp 0.55s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── LEFT NAV ── */
.faq-nav { position: sticky; top: 32px; }
.faq-nav nav {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #2a2a2a;
}
.faq-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 14px 20px;
    text-decoration: none;
    color: #a3a3a3;
    transition: color 0.25s;
    position: relative;
    border-bottom: 1px solid #2a2a2a;
}
.faq-nav__link:last-child { border-bottom: none; }
/* PHP template only — <a class="faq-nav__link">, pas les widgets Elementor */
a.faq-nav__link::before {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: #FF002E;
    opacity: 0;
    transition: opacity 0.25s;
}
a.faq-nav__link:hover,
a.faq-nav__link.active { color: #ececec; }
a.faq-nav__link.active::before { opacity: 1; }
.faq-nav__num {
    font-size: 0.4375rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #a3a3a3;
    flex-shrink: 0;
}
.faq-nav__label {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.faq-nav__meta { margin-top: 28px; padding-left: 20px; }
.faq-nav__meta-line { height: 1px; background: #2a2a2a; margin-bottom: 14px; }
.faq-nav__meta-label {
    font-size: 0.4375rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a3a3a3;
    margin-bottom: 5px;
}
.faq-nav__meta-value {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #ececec;
    text-transform: uppercase;
}
.faq-nav__cta {
    display: inline-block;
    position: relative;
    margin-top: 28px;
    margin-left: 20px;
    padding: 11px 16px;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.25s;
}
.faq-nav__cta:hover { color: #FF002E; }
.faq-nav__cta .frame { position: absolute; inset: 0; }
.faq-nav__cta .frame svg { position: absolute; width: 8px; height: 8px; }
.faq-nav__cta .frame svg:nth-child(1) { top: 0; left: 0; }
.faq-nav__cta .frame svg:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.faq-nav__cta .frame svg:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.faq-nav__cta .frame svg:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }

/* ── FAQ CONTENT ── */
.faq-content { display: flex; flex-direction: column; gap: 60px; }

/* ── FAQ SECTION ── */
.faq-section { scroll-margin-top: 32px; }
.faq-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}
.faq-section__title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #ececec;
    line-height: 1;
}
.faq-section__eyebrow {
    font-size: 0.4375rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a3a3a3;
}

/* ── FAQ ITEM ── */
.faq-item { border-bottom: 1px solid #2a2a2a; }
.faq-question {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #ececec;
    text-align: left;
    gap: 20px;
    font-family: inherit;
}
.faq-question:hover .faq-num,
.faq-question:hover .faq-chevron { color: #FF002E; }
.faq-num {
    font-size: 0.4375rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #a3a3a3;
    flex-shrink: 0;
    width: 32px;
    transition: color 0.25s;
}
.faq-item.open .faq-num { color: #FF002E; }
.faq-q-text {
    flex: 1;
    font-size: clamp(0.8rem, 1.05vw, 0.92rem);
    font-weight: 500;
    line-height: 1.45;
    color: #ececec;
}
.faq-tag {
    font-size: 0.375rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FF002E;
    border: 1px solid #FF002E;
    padding: 3px 7px;
    flex-shrink: 0;
    line-height: 1;
}
.faq-chevron {
    width: 16px; height: 16px;
    flex-shrink: 0;
    position: relative;
    color: #a3a3a3;
    transition: color 0.25s, transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-chevron::before,
.faq-chevron::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.38s;
}
.faq-chevron::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-chevron::after  { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .faq-chevron { color: #FF002E; transform: rotate(45deg); }

/* ── FAQ ANSWER ── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner { padding: 4px 0 26px 52px; }
.faq-answer p {
    font-size: clamp(0.72rem, 0.95vw, 0.84rem);
    font-weight: 400;
    line-height: 1.75;
    color: #a3a3a3;
    max-width: 64ch;
}
.faq-answer p strong { color: #ececec; font-weight: 600; }
.faq-answer p + p    { margin-top: 12px; }

/* ── CONTACT SECTION ── */
.faq-contact {
    margin-top: 80px;
    padding: 80px 0 64px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: faqFadeUp 0.55s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.faq-contact__bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -52%);
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(180px, 22vw, 300px);
    font-weight: 400;
    color: #ececec;
    opacity: 0.028;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.faq-contact__eyebrow {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FF002E;
    margin-bottom: 18px;
    position: relative;
}
.faq-contact__title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: #ececec;
    margin-bottom: 36px;
    line-height: 1.1;
    position: relative;
}
.faq-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 14px 28px;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ececec;
    text-decoration: none;
    transition: color 0.25s;
    font-family: inherit;
}
.faq-contact__link:hover { color: #FF002E; }
.faq-contact__link .frame { position: absolute; inset: 0; }
.faq-contact__link .frame svg { position: absolute; width: 10px; height: 10px; }
.faq-contact__link .frame svg:nth-child(1) { top: 0; left: 0; }
.faq-contact__link .frame svg:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.faq-contact__link .frame svg:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.faq-contact__link .frame svg:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }
.faq-contact__link-arrow { font-size: 0.8rem; line-height: 1; transition: transform 0.25s; }
.faq-contact__link:hover .faq-contact__link-arrow { transform: translateX(3px); }

/* ── FOOTER ── */
.faq-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 16px;
}
.faq-footer__bar { flex: 1; height: 1px; background: #2a2a2a; }
.faq-footer__text {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a3a3a3;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; gap: 48px; }
    .faq-nav { position: static; }
    .faq-nav nav {
        flex-direction: row;
        border-left: none;
        border-bottom: 1px solid #2a2a2a;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .faq-nav nav::-webkit-scrollbar { display: none; }
    .faq-nav__link {
        padding: 12px 18px;
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid #2a2a2a;
    }
    .faq-nav__link:last-child { border-right: none; }
    .faq-nav__link::before {
        left: 0; right: 0; top: auto; bottom: -1px;
        width: auto; height: 2px;
    }
    .faq-nav__meta,
    .faq-nav__cta { display: none; }
}
@media (max-width: 600px) {
    body.faq-template { padding: 48px 5vw; }
    .faq-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .faq-count  { text-align: left; }
    .faq-answer-inner { padding-left: 32px; }
    .faq-question { gap: 14px; }
}

/* ============================================================
   FAQ — AUTO-NAV LAYOUT (injecté par j2r-faq.js sur pages Elementor)
   ============================================================ */

/* Two-column wrapper injected by JS around the Elementor commonParent */
.faq-two-col {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100%;
}

/* commonParent (e.g. 9c460a3) becomes the right content column */
.faq-main-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.faq-auto-nav {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
    align-self: flex-start;
    padding-right: 3vw;
    z-index: 10;
}

/* Nav links */
.faq-auto-nav nav {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #2a2a2a;
}
.faq-auto-nav .faq-nav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0 14px 20px;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s;
    border-bottom: 1px solid #2a2a2a;
}
.faq-auto-nav .faq-nav__link:last-child { border-bottom: none; }
.faq-auto-nav .faq-nav__link::before {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: #FF002E;
    opacity: 0;
    transition: opacity .2s;
}
.faq-auto-nav .faq-nav__link.active,
.faq-auto-nav .faq-nav__link:hover { color: #ececec; }
.faq-auto-nav .faq-nav__link.active::before { opacity: 1; }

.faq-auto-nav .faq-nav__num {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #FF002E;
    letter-spacing: .05em;
}
.faq-auto-nav .faq-nav__label {
    font-size: 11px;
    letter-spacing: .08em;
}

/* Meta block (date) */
.faq-nav__meta {
    margin-top: 28px;
    padding-left: 20px;
}
.faq-nav__meta-line {
    width: 24px;
    height: 1px;
    background: #2a2a2a;
    margin-bottom: 10px;
}
.faq-nav__meta-label {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4a4a4a;
    margin: 0 0 2px;
}
.faq-nav__meta-value {
    font-size: 11px;
    color: #a3a3a3;
    margin: 0;
}

/* CTA link */
.faq-nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-left: 20px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ececec;
    text-decoration: none;
    transition: color .2s;
}
.faq-nav__cta:hover { color: #FF002E; }
.faq-nav__cta .frame {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.faq-nav__cta .frame svg {
    position: absolute;
    width: 10px;
    height: 10px;
    color: currentColor;
    transition: opacity .2s;
}
.faq-nav__cta .frame svg:nth-child(1) { top: 0; left: 0; }
.faq-nav__cta .frame svg:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.faq-nav__cta .frame svg:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.faq-nav__cta .frame svg:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }

@media (max-width: 900px) {
    .faq-two-col { flex-direction: column !important; }
    .faq-auto-nav {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 32px;
    }
    .faq-auto-nav nav {
        flex-direction: row !important;
        border-left: none !important;
        border-bottom: 1px solid #2a2a2a !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .faq-auto-nav nav::-webkit-scrollbar { display: none; }
    .faq-auto-nav .faq-nav__link {
        padding: 12px 18px !important;
        white-space: nowrap !important;
        border-bottom: none !important;
        border-right: 1px solid #2a2a2a !important;
    }
    .faq-auto-nav .faq-nav__link:last-child { border-right: none !important; }
    .faq-auto-nav .faq-nav__link::before {
        left: 0 !important; right: 0 !important;
        top: auto !important; bottom: -1px !important;
        width: auto !important; height: 2px !important;
    }
    .faq-auto-nav .faq-nav__meta,
    .faq-auto-nav .faq-nav__cta { display: none !important; }
}

/* ============================================================
   FAQ — TEXT REVEAL DANS LES ACCORDÉONS
   Le script j2r-text-reveal interfère avec les transitions des mots
   quand un accordéon s'ouvre. On court-circuite ça avec un @keyframes
   CSS déclenché par l'attribut [open], indépendant du script externe.
   ============================================================ */

@keyframes accordionWordReveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

/* Rotation de l'icône accordéon — même SVG pour open/closed, on tourne le conteneur */
.e-n-accordion-item-title-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.e-n-accordion-item[open] .e-n-accordion-item-title-icon {
  transform: rotate(45deg);
}

/* Quand l'item est ouvert, les mots jouent l'animation — pas de transition.
   On utilise des propriétés individuelles (pas le shorthand) pour ne pas
   écraser animation-delay défini en inline par le JS. */
.e-n-accordion-item[open] .j2r-word {
  animation-name: accordionWordReveal !important;
  animation-duration: 0.45s !important;
  animation-timing-function: ease !important;
  animation-fill-mode: both !important;
  animation-iteration-count: 1 !important;
  transition: none !important;
  width: auto !important;
}

/* ============================================================
   FAQ — ELEMENTOR ACCORDION OVERRIDE
   Classe CSS du widget : j2r-faq-accordion
   (Paramètres avancés → Classe CSS du widget dans Elementor)
   ============================================================ */

/* Counter auto-numérotation */
.j2r-faq-accordion .elementor-accordion {
    counter-reset: j2r-faq;
}
.j2r-faq-accordion .elementor-accordion-item {
    counter-increment: j2r-faq;
    border-color: #2a2a2a !important;
}

/* Ligne question */
.j2r-faq-accordion .elementor-tab-title {
    display: flex !important;
    align-items: center !important;
    padding: 22px 0 !important;
    gap: 20px !important;
    background: transparent !important;
    border-color: #2a2a2a !important;
    transition: none !important;
}

/* Numéro via counter */
.j2r-faq-accordion .elementor-tab-title::before {
    content: counter(j2r-faq, decimal-leading-zero) " —";
    font-size: 0.4375rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #a3a3a3;
    flex-shrink: 0;
    min-width: 32px;
    font-family: 'Host Grotesk', sans-serif;
    transition: color 0.25s;
}
.j2r-faq-accordion .elementor-tab-title:hover::before,
.j2r-faq-accordion .elementor-tab-title.elementor-active::before { color: #FF002E; }

/* Texte de la question */
.j2r-faq-accordion .elementor-accordion-title {
    flex: 1 !important;
    font-size: clamp(0.8rem, 1.05vw, 0.92rem) !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #ececec !important;
    font-family: 'Host Grotesk', sans-serif !important;
    text-decoration: none !important;
}

/* Masquer icônes Elementor (FA) — remplacées par CSS */
.j2r-faq-accordion .elementor-accordion-icon { display: none !important; }

/* Chevron + → × via ::after */
.j2r-faq-accordion .elementor-tab-title::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cline x1='0' y1='8' x2='16' y2='8' stroke='%23a3a3a3' stroke-width='1'/%3E%3Cline x1='8' y1='0' x2='8' y2='16' stroke='%23a3a3a3' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), background-image 0.25s;
}
.j2r-faq-accordion .elementor-tab-title:hover::after,
.j2r-faq-accordion .elementor-tab-title.elementor-active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cline x1='0' y1='8' x2='16' y2='8' stroke='%23FF002E' stroke-width='1'/%3E%3Cline x1='8' y1='0' x2='8' y2='16' stroke='%23FF002E' stroke-width='1'/%3E%3C/svg%3E");
}
.j2r-faq-accordion .elementor-tab-title.elementor-active::after {
    transform: rotate(45deg);
}

/* Réponse */
.j2r-faq-accordion .elementor-tab-content {
    padding: 4px 0 26px 52px !important;
    font-size: clamp(0.72rem, 0.95vw, 0.84rem) !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #a3a3a3 !important;
    font-family: 'Host Grotesk', sans-serif !important;
    border-color: transparent !important;
}
.j2r-faq-accordion .elementor-tab-content p { color: #a3a3a3; }
.j2r-faq-accordion .elementor-tab-content strong { color: #ececec; font-weight: 600; }

/* En-tête de section (widget Heading avec classe j2r-faq-section-title) */
.j2r-faq-section-title h2,
.j2r-faq-section-title .elementor-heading-title {
    font-family: 'Times New Roman', serif !important;
    font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
    font-weight: 400 !important;
    font-style: italic !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
    color: #ececec !important;
    line-height: 1 !important;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 0 !important;
}

/* Responsive Elementor Accordion */
@media (max-width: 600px) {
    .j2r-faq-accordion .elementor-tab-content { padding-left: 32px !important; }
    .j2r-faq-accordion .elementor-tab-title { gap: 14px !important; }
}

/* ============================================================
   FAQ — NAV LINKS (classe CSS du widget bouton : faq-nav__link)
   + scroll spy active state géré par j2r-faq.js
   ============================================================ */

/* Le lien lui-même */
.elementor-widget.faq-nav__link a,
.elementor-widget.faq-nav__link .elementor-button {
    position: relative;
    display: block;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 14px 0 14px 20px !important;
    text-align: left !important;
    color: #a3a3a3 !important;
    font-size: 11px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    transition: color .2s !important;
}
.elementor-widget.faq-nav__link a:hover,
.elementor-widget.faq-nav__link .elementor-button:hover {
    color: #ececec !important;
}

/* Trait rouge gauche — sur le conteneur widget (left border) */
.elementor-widget.faq-nav__link {
    position: relative;
}
.elementor-widget.faq-nav__link::before {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: #FF002E;
    opacity: 0;
    transition: opacity .2s;
}
/* Supprimer le ::before parasite sur le <a> interne */
.elementor-widget.faq-nav__link a::before,
.elementor-widget.faq-nav__link .elementor-button::before {
    content: none !important;
}

/* Active state déclenché par le scroll spy JS */
.elementor-widget.faq-nav__link.active a,
.elementor-widget.faq-nav__link.active .elementor-button {
    color: #ececec !important;
}
.elementor-widget.faq-nav__link.active::before {
    opacity: 1;
}
