/**
 * Reference Cover Shortcode Styles
 * 
 * Responsive layout for product reference pages
 * - Desktop: 3-column grid layout
 * - Mobile: 1-column stacked layout
 * - Tabs on desktop, accordion on mobile
 * 
 * @package DHT1230_Collections
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

.reference-cover-wrapper {
    --color-white: #ffffff;
    --color-white-opacity-90: rgba(255, 255, 255, 0.9);
    --color-white-opacity-80: rgba(255, 255, 255, 0.8);
    --color-white-opacity-70: rgba(255, 255, 255, 0.7);
    --color-white-opacity-60: rgba(255, 255, 255, 0.6);
    --color-white-opacity-50: rgba(255, 255, 255, 0.5);
    --color-white-opacity-40: rgba(255, 255, 255, 0.4);
    --color-white-opacity-30: rgba(255, 255, 255, 0.3);
    --color-dark: #f0f0f0;
    --color-medium: #e0e0e0;
    --color-light: #d0d0d0;
}

/* ==========================================================================
   WRAPPER & CONTAINER
   ========================================================================== */

.reference-cover-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.reference-cover__main-grid {
	position: relative;
}

.reference-cover--gradient {
    background: #000000;
}

.reference-cover__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.reference-cover__container {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   CONTENEUR 1: MAIN GRID - 3 COLUMNS
   ========================================================================== */

.reference-cover__main-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 0;
    min-height: clamp(800px, 100vh, 900px);
}

.reference-cover__column {
    min-height: 400px;
}

/* ==========================================================================
   COLUMN 1: TITLE & REFERENCE
   ========================================================================== */

.reference-cover__column--title {
    padding: 60px;
}

.reference-cover__subcollection {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var( --e-global-typography-secondary-letter-spacing );
    color: var(--color-white-opacity-70);
    margin-bottom: 12px;
}

.reference-cover__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 20px 0;
}

.reference-cover__reference {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white-opacity-80);
    margin-bottom: 16px;
}

.reference-cover__reference-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white-opacity-60);
    margin-bottom: 4px;
}

.reference-cover__reference-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}

.reference-cover__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white-opacity-90);
}

.reference-cover__price-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.reference-cover__price-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.reference-cover__price-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
}

.reference-cover__price-button {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

body .reference-cover__price-button:hover {
    background: transparent;
    border-color: var(--color-white-opacity-80);
    color: var(--color-white);
}

.reference-cover__price-button--secondary {
    background: transparent;
    color: var(--color-white-opacity-80);
    border: 2px solid var(--color-white-opacity-60);
}

.reference-cover__price-button--secondary:hover {
    background: transparent;
    color: var(--color-white);
}

.reference-cover__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-white-opacity-80);
}

.reference-cover__description p {
    margin: 0 0 16px 0;
}

.reference-cover__description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   COLUMN 2: MAIN IMAGE (SOLDAT PNG)
   ========================================================================== */

.reference-cover__column--main-image {
    display: flex;
    align-items: self-end;
    justify-content: center;
    position: sticky;  
}

.reference-cover__main-image {
    position: relative;
    width: 500px;
    border-radius: 12px;
}

.reference-cover__main-image img {
    width: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 400px;
}

.reference-cover__main-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.reference-cover__placeholder-icon {
    color: var(--color-white-opacity-50);
    opacity: 0.5;
}

/* ==========================================================================
   CONTENEUR 2: GALLERY - 4 COLUMNS
   ========================================================================== */

.reference-cover__gallery-container {
    width: 100%;
    margin-top: 0;
}

.reference-cover__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.reference-cover__gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.reference-cover__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-out;
}

.reference-cover__gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   COLUMN 3: SPECIFICATIONS - HEADER & ACCORDION
   ========================================================================== */


/* Specs Header (Collection, Title, Introduction) - Desktop Only - Compact */
.reference-cover__specs-header {
    margin-bottom: 16px;
}

.reference-cover__specs-collection {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var( --e-global-typography-secondary-letter-spacing );
    color: var(--color-white-opacity-70);
    margin-bottom: 6px;
}

.reference-cover__specs-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 8px 0;
}

.reference-cover__specs-introduction {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-white-opacity-80);
    margin-bottom: 0;
}

.reference-cover__specs-introduction p {
    margin: 0 0 8px 0;
}

.reference-cover__specs-introduction p:last-child {
    margin-bottom: 0;
}

/* Specs Footer (Price and Button) - Desktop Only */
.reference-cover__specs-footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--color-white-opacity-30);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.reference-cover__specs-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.reference-cover__specs-actions {
    margin-top: 12px;
}

.reference-cover__retailer-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

body .reference-cover__retailer-button:hover {
    background: var(--color-white-opacity-30);
    border-color: var(--color-white);
    color: var(--color-white);
}

/* ==========================================================================
   COLUMN 3: SPECIFICATIONS - TABS (Hidden on Desktop)
   ========================================================================== */

.reference-cover__specs--responsive .reference-cover__tabs {
    display: none;
}

.reference-cover__specs--responsive .reference-cover__accordion {
    display: flex;
}

.reference-cover__specs--tabs .reference-cover__tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--color-white-opacity-50);
    margin-bottom: 32px;
    gap: 32px;
}

.reference-cover__tab-button {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--color-white-opacity-80);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.7;  
    margin: 0 0 0 10px;
}

.reference-cover__tab-button:hover {
    opacity: 0.9;
}

body .reference-cover__tab-button.is-active {
    opacity: 1;
    font-weight: 500;
    border-bottom-color: var(--color-white);
    color: var(--color-white);  
    padding-bottom: 1px;
    border-bottom: 1px solid white;  
    border-radius: 0;
}

.reference-cover__tabs-content {
    display: block;
    position: relative;
    min-height: auto;
}

.reference-cover__tab-panel {
    display: none;
    padding: 0;
}

.reference-cover__tab-panel.is-active {
    display: block;
}

.reference-cover__tabs-nav {
	margin: 10px 0 30px 0;
}


/* ==========================================================================
   COLUMN 3: SPECIFICATIONS - ACCORDION (Desktop Default)
   ========================================================================== */

.reference-cover__accordion {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for accordion */
.reference-cover__accordion::-webkit-scrollbar {
    width: 4px;
}

.reference-cover__accordion::-webkit-scrollbar-track {
    background: var(--color-white-opacity-30);
    border-radius: 2px;
}

.reference-cover__accordion::-webkit-scrollbar-thumb {
    background: var(--color-white-opacity-60);
    border-radius: 2px;
}

.reference-cover__accordion::-webkit-scrollbar-thumb:hover {
    background: var(--color-white-opacity-80);
}

.reference-cover__accordion-item {
    border-bottom: 1px solid var(--color-white-opacity-30);
}

.reference-cover__accordion-item:last-child {
    border-bottom: none;
}

.reference-cover__accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.reference-cover__accordion-button:hover {
    background: transparent;
    opacity: 0.9;
}

.reference-cover__accordion-button[aria-expanded="true"] {
    background: transparent;
}

.reference-cover__accordion-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reference-cover__accordion-icon {
    transition: transform 0.3s ease;
    color: var(--color-white-opacity-70);
    flex-shrink: 0;
}

.reference-cover__accordion-icon svg {
    width: 20px;
    height: 20px;
}

.reference-cover__accordion-button[aria-expanded="true"] .reference-cover__accordion-icon {
    transform: rotate(180deg);
}

.reference-cover__accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
}

.reference-cover__accordion-panel.is-open {
    max-height: 500px;
    padding-bottom: 12px;
}

/* ==========================================================================
   SPEC CONTENT (SHARED)
   ========================================================================== */

.reference-cover__spec-content {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-white-opacity-80);
}

.reference-cover__spec-content p {
    margin: 0 0 6px 0;
}

.reference-cover__spec-content p:last-child {
    margin-bottom: 0;
}

.reference-cover__spec-content ul,
.reference-cover__spec-content ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reference-cover__spec-content li {
    margin-bottom: 4px;
    padding: 3px 0;
    border-bottom: 1px solid var(--color-white-opacity-30);
}

.reference-cover__spec-content li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.reference-cover__spec-content li strong {
    font-weight: 500;
    color: var(--color-white);
    margin-right: 6px;
}


/*Ajustements manuels*/
.reference-cover__column.reference-cover__column--specs {
	display: flex;
	flex-direction: column;
	padding: 120px 30px 0 0;
    color: var(--color-white);
}
.reference-cover__column.reference-cover__column--title {
	padding: 120px 0 0 30px;
    color: var(--color-white);
}
body .reference-cover__tabs-nav button {
    background: transparent;
    color: var(--color-white);
}
body .reference-cover__tabs-nav button:hover {
    background: transparent;
    color: var(--color-white);
}
body .reference-cover__tab-button.is-active button{
    background: transparent;
    color: var(--color-white);
}
body .reference-cover__tabs-nav button:focus{
    background: transparent;
    color: var(--color-white);
}
body a.reference-cover__price-button {
    color: var(--color-white);
}
body a.reference-cover__price-button:hover {
    color: var(--color-white);
}

body button.reference-cover__accordion-button,
body button.reference-cover__accordion-button:hover,
body button.reference-cover__accordion-button:active,
body button.reference-cover__accordion-button:focus {
    background: transparent;
}

body .reference-cover__tabs-nav button:first-child {
    margin-left: 0;
}x

/* ==========================================================================
   LIGHTBOX STYLES
   Gallery lightbox with prev/next navigation.
   Container uses position:relative; all visual layers use position:fixed
   individually so they always cover the full viewport regardless of context.
   Configurable via JS: LIGHTBOX_BG_COLOR, LIGHTBOX_ICON_COLOR, LIGHTBOX_TRANSITION
   ========================================================================== */

/* Lightbox container — hidden by default with display:none, GSAP handles show/hide */
.rc-lightbox {
    display: none;
    position: relative;
    z-index: 1000;
}

/* Semi-transparent background overlay — fixed, behind all other layers */
.rc-lightbox__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Image wrapper — fixed, full viewport, centered, above overlay */
.rc-lightbox__image-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Image — responsive sizing to show full image without deformation */
.rc-lightbox__image {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    pointer-events: auto;
    object-fit: contain;
}

/* Desktop: prefer height 100vh for vertical images */
@media (min-width: 769px) {
    .rc-lightbox__image {
        height: 100vh;
        width: auto;
    }
}


/* Mobile/Tablet: adapt to orientation */
@media (max-width: 768px) {
    /* Portrait orientation: full width, height auto */
    @media (orientation: portrait) {
        .rc-lightbox__image {
            width: 100vw;
            height: auto;
            max-height: 100vh;
        }
    }
    
    /* Landscape orientation: full height, width auto */
    @media (orientation: landscape) {
        .rc-lightbox__image {
            height: 100vh;
            width: auto;
            max-width: 100vw;
        }
    }
}

/* Current image — positioned relative */
.rc-lightbox__image--current {
    position: relative;
}

/* Next image — positioned absolutely for dual-image crossfade */
.rc-lightbox__image--next {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close button — fixed top-right, SVG × icon, no background */
.rc-lightbox__close {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1002;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

body .rc-lightbox__close:hover,
body .rc-lightbox__close:focus {
    opacity: 0.7;
    background: none !important;
    color: #ffffff;
    outline: none;
}

/* Close SVG rects — fill controlled by CSS, can be overridden */
.rc-lightbox__close-rect {
    fill: #ffffff;
}

/* Navigation arrows — fixed, centered vertically, no background */
.rc-lightbox__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

body .rc-lightbox__arrow:hover,
body .rc-lightbox__arrow:focus {
    opacity: 0.7;
    background: none !important;
    outline: none;
}

/* Arrow SVG icon — 14×14 px, filled white, no stroke */
.rc-lightbox__arrow svg {
    width: 14px;
    height: 14px;
    display: block;
}

.rc-lightbox__arrow svg path {
    fill: #ffffff;
    stroke: none;
}

/* Previous arrow: mirror the right-pointing SVG horizontally */
.rc-lightbox__arrow--prev {
    left: 20px;
    transform: translateY(-50%) scaleX(-1);
}

/* Next arrow: right side */
.rc-lightbox__arrow--next {
    right: 20px;
}

/* Accessibility focus ring */
.rc-lightbox__close:focus,
.rc-lightbox__arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .rc-lightbox__close {
        top: 15px;
        right: 15px;
    }

    .rc-lightbox__arrow--prev {
        left: 8px;
    }

    .rc-lightbox__arrow--next {
        right: 8px;
    }
}

/* Respect reduced-motion preference — GSAP animations handled in JS */
@media (prefers-reduced-motion: reduce) {
    /* GSAP durations should be set to 0 in JS when this is active */
}

/* ==========================================================================
   RESPONSIVE - DESKTOP/IPAD (>768px) - Show Tabs
   ========================================================================== */

@media (min-width: 769px) {
    .reference-cover__specs--responsive .reference-cover__tabs {
        display: block;
    }
    
    .reference-cover__specs--responsive .reference-cover__accordion {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE - INTERMEDIATE (1024px - 1400px) - Force Accordion
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1400px) {
    .reference-cover__specs--responsive .reference-cover__tabs {
        display: none;
    }
    
    .reference-cover__specs--responsive .reference-cover__accordion {
        display: block;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET (767px - 1024px) - 3 Columns with Accordion
   ========================================================================== */

@media (min-width: 767px) and (max-width: 1024px) {
    .reference-cover-wrapper {
        zoom: 0.85;
    }
    
    .reference-cover__container {
        padding: 20px 0 0 0;
    }
    
    .reference-cover__main-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
        min-height: clamp(700px, 90vh, 800px);
    }
    
    .reference-cover__column--title {
        padding: 40px 20px;
        min-height: 500px;
    }
    
    .reference-cover__column--specs {
        padding: 40px 20px;
        min-height: 500px;
    }
    
    /* Force accordion on tablet instead of tabs */
    .reference-cover__specs--responsive .reference-cover__tabs,
    .reference-cover-wrapper--tabs .reference-cover__tabs {
        display: none !important;
    }
    
    .reference-cover__specs--responsive .reference-cover__accordion,
    .reference-cover-wrapper--tabs .reference-cover__accordion {
        display: flex !important;
    }
    
    /* Compact accordion for tablet */
    .reference-cover__accordion-button {
        font-size: 0.7rem;
        padding: 10px 12px;
    }
    
    .reference-cover__accordion-content {
        font-size: 0.75rem;
        padding: 12px;
    }
    
    /* Compact specs header */
    .reference-cover__specs-collection {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .reference-cover__specs-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .reference-cover__specs-introduction {
        font-size: 0.75rem;
    }
    
    /* Compact main image */
    .reference-cover__column--main-image {
        display: flex;
        align-items: flex-end;
        height: 100%;
    }
    
    .reference-cover__main-image {
        max-width: 280px;
        max-height: 600px;
    }
    
    .reference-cover__main-image img {
        align-self: flex-end;
    }
    
    /* Compact title section */
    .reference-cover__title {
        font-size: 1.5rem;
    }
    
    .reference-cover__reference {
        font-size: 0.75rem;
    }
    
    /* Compact footer */
    .reference-cover__specs-footer {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .reference-cover__specs-price {
        font-size: 1.2rem;
    }
    
    .reference-cover__retailer-button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    /* Gallery compact */
    .reference-cover__gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .reference-cover__main-image img {
        position:absolute;
        bottom:0;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE 
   ========================================================================== */

@media (max-width: 768px) {
    .reference-cover__container {
        padding: 0 0 0 0;
    }
    
    .reference-cover__main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 0;
    }
    
    
    .reference-cover__column {
        min-height: auto;
    }
    
    .reference-cover__title {
        font-size: 1.75rem;
    }
    
    .reference-cover__price {
        font-size: 1.25rem;
    }
    
    .reference-cover__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .reference-cover__column--main-image {
        position: relative;
        top: auto;
        transform: none;
    }
    
    .reference-cover__main-image {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .reference-cover__price-actions {
        flex-direction: column;
    }
    
    .reference-cover__price-button {
        width: 100%;
    }
    
    /* Switch to accordion on mobile (<=768px) */
    .reference-cover__specs--responsive .reference-cover__tabs {
        display: none;
    }
    
    .reference-cover__specs--responsive .reference-cover__accordion {
        display: flex;
    }
    
    .reference-cover__tab-button {
        font-size: 0.75rem;
        padding: 12px 8px;
    }
    
    .reference-cover__column.reference-cover__column--specs {
        padding: 30px 40px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.reference-cover__tab-button:focus,
.reference-cover__accordion-button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .reference-cover__tab-panel,
    .reference-cover__accordion-panel,
    .reference-cover__gallery-item,
    .reference-cover__tab-button,
    .reference-cover__accordion-icon {
        transition: none;
        animation: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .reference-cover__background {
        display: none;
    }
    
    .reference-cover-wrapper {
        background: #fff ;
    }
    
    .reference-cover__main-grid {
        display: block;
    }
    
    .reference-cover__column {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .reference-cover__gallery-container {
        page-break-inside: avoid;
        margin-top: 20px;
    }
    
    .reference-cover__gallery {
        display: block;
    }
    
    .reference-cover__gallery-item {
        display: inline-block;
        width: 48%;
        margin: 1%;
        page-break-inside: avoid;
    }
    
    .reference-cover__tabs-nav {
        display: none;
    }
    
    .reference-cover__tab-panel {
        display: block ;
        page-break-inside: avoid;
    }
    
    .reference-cover__accordion-button {
        display: none;
    }
    
    .reference-cover__accordion-panel {
        max-height: none ;
        display: block ;
    }
}


/* ==========================================================================
   CUSTOM Accordion compactage
   ========================================================================== */
.reference-cover__specs.reference-cover__specs--accordion {
	max-width: 300px;
}
.reference-cover__accordion-button {
	padding: 0;
}
.reference-cover__accordion-item {
    border:none;
}
.reference-cover__specs-header {
    border-bottom: 1px solid var(--color-white-opacity-30);
    padding-bottom: 20px;
}
.reference-cover__specs-footer {
	border-top: none;
}
.reference-cover__specs-price {
	border: 1px solid var(--color-white-opacity-90);
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 14px;
    margin-bottom:0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Price info icon */
.reference-cover__price-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(50, 50, 50, 0.9);
    border-radius: 50%;
    cursor: help;
    position: relative;
    transition: all 0.3s ease;
}

.reference-cover__price-info svg {
    width: 16px;
    height: 16px;
    color: var(--color-white);
}

.reference-cover__price-info:hover {
    background: rgba(70, 70, 70, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Tooltip */
.reference-cover__price-info::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.reference-cover__price-info:hover::after {
    opacity: 1;
}

/* Tooltip arrow */
.reference-cover__price-info::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(30, 30, 30, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.reference-cover__price-info:hover::before {
    opacity: 1;
}
.reference-cover__specs-actions {
	margin-top: 0;
}
.dht1230-btn-text {
	border: 0;
	font-size: 12px;
    margin-bottom:0;
	color: var(--color-white);
}
.reference-cover__retailer-button {
	background: transparent; 
	color: var(--color-white);
	border:none; 
}
body .reference-cover__retailer-button:hover {
	background: transparent;
}
.reference-cover__retailer-button {
	padding: 14px 18px;
}
.dht1230-slide-link-icon {
	color: var(--color-white);
}
.reference-cover__retailer-button:hover .dht1230-slide-link-icon, .reference-cover__retailer-button:hover svg {
	transform: translateX(5px);
	text-decoration: none;
}
.reference-cover__spec-content li {
	margin-bottom: 4px;
	padding: 0px 0 0px 0;
	border-bottom: none;
}

/*Reference cover ajustement*/
.reference-cover__column.reference-cover__column--title {
	width: 100%;
	padding: 330px 0 0 0;
	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: center;
	align-items: center;
}
.reference-cover__specs-collection {
	font-size: var( --e-global-typography-secondary-font-size );
	font-weight: bold;
    line-height: 30px;
    margin: 0;
    padding:0;
}
.reference-cover__subcollection {
	font-size: var( --e-global-typography-secondary-font-size );
	font-weight: 100;
    line-height: 30px;
    margin: 0;
    padding:0;

}
.reference-cover__reference-value {
	font-size: 15px;
	letter-spacing: 1px;
	font-weight: 100;
}
body h2.reference-cover__specs-title {
	font-size: 20px;
	color: var(--color-white);
	line-height: 27px;
	font-weight: bold;
	margin-bottom: 20px;
}
.reference-cover__specs-introduction p {
	font-size: 14px;
	line-height: 18px;
	font-weight: 300;
}
.reference-cover__column.reference-cover__column--specs {
	max-width: 430px;
}
.reference-cover__title {
	color: var(--color-white);
	margin: 0 0 35px 0;
}


@media (max-width: 1024px) {
    .reference-cover__column.reference-cover__column--specs {
        max-width: 90%;
        margin: 0 auto 40px auto;
        padding-top: 0;
    }
    .reference-cover__column.reference-cover__column--title {
        padding: 23px 0 0 0;
    }
    .reference-cover__container {
        margin: 0;
        padding: 0;
    }
    .reference-cover__main-grid {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .reference-cover__column.reference-cover__column--specs {
        padding-top: 40px;
    }
    .reference-cover__specs-footer{
        position: absolute;
        bottom: 0;
    }
}

@media (min-width: 1440px) {
    .reference-cover__specs-footer{
        position: absolute;
        bottom: 60px;
        width: 100%;
        max-width: 430px;
    }
}
@media (min-width: 1024px) {
    .reference-cover__specs-footer{
        position: absolute;
        bottom: 60px;
    }
}


@media (max-width: 768px) {
    .reference-cover__specs-collection,
    .reference-cover__subcollection {
        font-size: 4vw;
    }
    .reference-cover__specs-footer{
        position: absolute;
        bottom: 0;
    }
    .reference-cover__main-grid {
        margin-bottom: 10px;
    }
    .reference-cover__subcollection {
        position: relative;
        top: 0;
    }
}

@media (max-width: 500px) {
    .reference-cover__specs-collection,
    .reference-cover__subcollection {
        font-size: 6vw;
    }
    .reference-cover__subcollection {
        position: relative;
        top: 0;
    }
}

path {
    stroke: #fff;
}

/* ==========================================================================
   BIG PICTURE FULLSCREEN
   ========================================================================== */

.reference-cover__big-picture-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.reference-cover__big-picture {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   BIG VIDEO FULL WIDTH
   ========================================================================== */

.reference-cover__big-video-container {
    width: 100%;
    margin: 0 0 0 0;
    padding: 0;
}

.reference-cover__big-video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
}

@media (max-width: 768px) {
    .reference-cover__big-video-container {
        margin: 0 0 0 0;
    }
}


/*
debug safari (iOS mobile + macOS desktop fenêtre réduite)
Patch spécifique pour tous les Safari - ne touche pas Chrome/Firefox/Android
Reset complet du positionnement pour flux naturel: title → cover → accordion
*/
@supports (-webkit-hyphens: none) {
    @media (max-width: 768px) {


        /* --- COLONNE 1: TITRE (centré) --- */
        .reference-cover__column.reference-cover__column--title {
            padding: 40px 20px 20px 20px !important;
        }

  
        /* --- COLONNE 2: IMAGE COVER (centrée) --- */
        .reference-cover__column--main-image .reference-cover__main-image {
            max-height: 100% !important;
        }

        .reference-cover__main-image img {
            position: static !important;
            max-width: 100% !important;
        }

        /* --- COLONNE 3: SPECS / ACCORDION (centré) --- */
        .reference-cover__column.reference-cover__column--specs {
            position: static !important;
            max-width: 90% !important;
            margin: 0 auto !important;
            padding: 20px 20px 40px 20px !important;
            order: 3;
        }

        /* --- FOOTER SPECS (dans le flux) --- */
        .reference-cover__specs-footer {
            position: static !important;
            bottom: auto !important;
            margin-top: 20px !important;
        }
    }
}



@media screen and (min-width:1024px) and (max-height: 820px) {
    .reference-cover__column.reference-cover__column--specs {
        padding: 30px 30px 0 0;
    }
}


@media screen and (max-height: 870px) {
    .reference-cover__column.reference-cover__column--specs {
        padding: 60px 30px 0 0;
        overflow: hidden;  
    }
    .reference-cover__specs-footer {
        position: inherit;
        top: 0;
    }
}

@media screen and (min-width: 1022px) and (max-width: 1401px) and (max-height: 820px) {
    .reference-cover__column.reference-cover__column--specs {
        padding: 30px 30px 0 0;
        overflow: hidden;    
        max-height: 640px;
    }
    .reference-cover__specs-footer {
        position: inherit;
        top: 0;
    }

}
