:root {
    --accent: #6c9d3c;
    --accent-hover: #57812f;
    --accent-glow: rgba(87, 129, 47, .6);
    --bg-dark: #09090b;
    --surface: rgba(24, 24, 27, 0.75);
    --border: rgba(255, 255, 255, 0.12);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --anim: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Variables d'état JS */
    --split: 50%;
    --fade: 18%;
    --zoom: 1;
    --mix: 1;
    --lens-size: 260px;
    --lens-x: 50%;
    --lens-y: 50%;
    --lens-mag: 3;
    --match-bright: 1;
    --match-contrast: 1;
    --match-sat: 1;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
section#azurio-comparator-app{
    margin: 0;
    padding: 0;
}
/* footer.footer, footer .wrapper, section{
    margin: 0;
} */




/* --- LE BOUTON PRINCIPAL --- */

.btn-compare-360 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 8px 0 18px;
    padding: 14px 18px;
    color: #3e3e3e;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    width: 100%;
    background-color: #FFDB66;
    border: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
.btn-compare-360:hover{
    background-color: #FFC300;
}
.btn-compare-360 .loader{
    width: 10px;
    height: 28px;
    border-radius: 0 0 6px 6px;
    position: relative;
    background: #3e3e3e radial-gradient(circle 2px at 50% 85%, #FFDB66 100%, transparent 0);
    
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px; 
}

.btn-compare-360 .loader:before, 
.btn-compare-360 .loader:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 10px;
    height: 28px;
    border-radius: 0 0 6px 6px;
    background: #3e3e3e;
    opacity: 0.8;
    transform: rotate(60deg);
    transform-origin: 50% 85%;
    z-index: -2;
    animation: rotate 1s infinite linear alternate;
}

.btn-compare-360 .loader:after {
    animation: rotate2 1s infinite linear alternate;
    opacity: 0.5;
}

@keyframes rotate {
    0%, 20% { transform: rotate(0deg); }
    80%, 100% { transform: rotate(30deg); }
}

@keyframes rotate2 {
    0%, 20% { transform: rotate(0deg); }
    80%, 100% { transform: rotate(60deg); }
}

/* MOBILE BTN */
#mobile-btn-compararateur{
    display: none;
}
@media (max-width: 600px){
    #mobile-btn-compararateur{
        display: flex;
        margin: 32px 0 0;
    }
    #desktop-btn-compararateur{
        display: none;
    }
}

/* -------------------- */




.pageGuideChoisir #moduleCompareOnline{
    background-color: #FFDB66;
    border-radius: 20px;
}
.pageGuideChoisir #moduleCompareOnline button.btn-compare-360{
    background-color: #fff;
}
.pageGuideChoisir #moduleCompareOnline img{
    mix-blend-mode: normal;
}

/* Container du loader */
.loader-container {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100001;
}

/* Le cercle qui tourne */
.spinner {
    width: 64px;
    height: 48px;
    position: relative;
    animation: split 1s ease-in infinite alternate;
    margin: 0 auto 15px;
}
.spinner::before, 
.spinner::after {
    content: '';
    position: absolute;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    left: 0;
    top: 0;
    transform: translateX(-10px);
    background: #FFD500;
    opacity: 0.85;
    backdrop-filter: blur(20px);
    mix-blend-mode: multiply;
}

.spinner::after {
    left: auto;
    right: 0;
    background: #d8d8d8;
    transform: translateX(10px);
}

@keyframes split {
    0%, 25% { width: 64px; }
    100% { width: 148px; }
}


.az360-view, 
.az360-container {
    position: relative; 
}
#viewport360 #loader.loader-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.975) !important;
    z-index: 100001 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

#viewport360 #loader.az360-hidden {
    display: none !important;
}

#viewport360 #loader p {
    margin-top: 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}


/* 1. LE RIDEAU BLANC (inchangé, garde tes z-index) */
.comparateur-embed {
    position: relative; 
}

.comparateur-embed::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.95s ease;
}

.comparateur-embed.is-loaded::after {
    opacity: 0;
}

/* 2. LES ÉTATS INITIAUX : Totalement invisibles et décalés */
.comparateur-embed .control-island{
    opacity: 0;
    top: 0;
}
.comparateur-embed .top-bar{
    opacity: 0;
    transform: translateY(-16px);
}

.comparateur-embed #infoLeftBlock {
    transform: translateX(-16px);
}
.comparateur-embed #infoRightBlock {
    transform: translateX(30px);
}

.comparateur-embed #layerLeft {
    opacity: 0;
    /* On supprime le transform et on décale le fond vers la gauche */
    background-position: calc(50% - 40px) center;
}

.comparateur-embed #layerRight {
    opacity: 0;
    /* On décale le fond vers la droite */
    background-position: calc(50% + 40px) center;
}

.comparateur-embed .dock-panel {
    opacity: 0;
    transform: translateY(40px);
}

/* 3. L'ÉTAT CHARGÉ : Opacité à 100% et position centrée */
.comparateur-embed.is-loaded .top-bar,
/* .comparateur-embed.is-loaded .control-island, */
.comparateur-embed.is-loaded #infoLeftBlock,
.comparateur-embed.is-loaded #infoRightBlock,
.comparateur-embed.is-loaded .dock-panel {
    opacity: 1;
    transform: translate(0);
}
.comparateur-embed.is-loaded #layerLeft,
.comparateur-embed.is-loaded #layerRight {
    opacity: 1;
    /* Les images reviennent parfaitement au centre */
    background-position: 50% 50%;
}
.comparateur-embed .control-island{
    opacity: 1;
    top: 16px;
}

/* 4. LA CHORÉGRAPHIE : Le secret est ici ! (opacity 0s) */
.comparateur-embed.is-loaded .top-bar {
    /* L'opacité s'allume comme un interrupteur (0s) au bout de 0.1s */
    transition: opacity 0s 0.1s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.comparateur-embed.is-loaded .control-island {
    /* L'opacité s'allume comme un interrupteur (0s) au bout de 0.1s */
    transition: opacity 0s 0.1s, top 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.comparateur-embed.is-loaded #infoLeftBlock {
    transition: opacity 0s 0.15s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.comparateur-embed.is-loaded #infoRightBlock {
    transition: opacity 0s 0.2s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.comparateur-embed.is-loaded #layerLeft {
    /* On anime "background-position" à la place de "transform" */
    transition: opacity 0s 0.15s, background-position 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

.comparateur-embed.is-loaded #layerRight {
    transition: opacity 0s 0.2s, background-position 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.comparateur-embed.is-loaded .dock-panel {
    transition: opacity 0s 0.3s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}


/* Style de l'overlay (Plein écran) */
.overlay-comparateur {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999999;
    overflow-y: auto;
}
/* Conteneur du comparateur */
.comparateur-embed {
    width: 100%;
    min-height: 90vh;
}

/* --- TOAST NOTIFICATION (Conversion) --- */

.toast{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translate(-50%, -20px) scale(0.95);
    background: var(--accent);
    color: #fff;
    padding: 24px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.2, 1.2, 0.3, 1);
    z-index: 2000;
    width: auto;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.container_compare_product{
    position: relative;
    width: 100%;
    height: 85dvh;
    overflow: hidden;
}
.is-fullscreen .container_compare_product{
    height: 100dvh;
}

/* --- HEADER / TOP BAR --- */

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

.quick-actions {
    pointer-events: auto;
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all var(--anim);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

.action-btn:hover {
    background: rgba(119, 171, 63, 1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- CONTROL ISLAND (Barre centrale d'outils) --- */

.control-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1010;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); */
    pointer-events: auto;
    flex-wrap: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.island-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
    align-items: center;
}

.island-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #899197;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--anim);
    white-space: nowrap;
    outline: none;
}
.island-btn[data-viewmode="360"]{
    padding: 0 14px;
}

.island-btn[aria-pressed="true"] {
    background: #E6F1DA;
    color: #3e3e3e;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
    font-weight: 600;
}

.island-btn:hover:not([aria-pressed="true"]) {
    background: rgba(255, 255, 255, 0.05);
    color: #3e3e3e;
}

.island-btn#btnToggleLoupe{
    /* display: flex;  */
    display: none;
    align-items: center; 
    justify-content: center; 
    padding: 8px;
}
#compareGroup,
#compareGroup + .divider {
    display: none;
}

.divider {
    width: 1px;
    height: 16px;
    background: #3e3e3e80;
    margin: 4px 6px;
}

/* --- SETTINGS PANEL (Panneau latéral) --- */

.settings-panel {
    position: absolute;
    top: 85px;
    right: 24px;
    width: 360px;
    background: rgba(18, 18, 20, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    z-index: 1020;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--anim);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    transform-origin: top right;
}

.settings-panel.closed {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(-10px);
}


/* --- INPUT RANGE CUSTOM --- */

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    height: 20px;
    margin: 0;
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 6px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    margin-top: -6px;
    border: 2px solid var(--accent);
    cursor: grab;
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:active {
    transform: scale(1.2);
    cursor: grabbing;
    background: var(--accent);
}

/* --- TOGGLES GRID --- */

.toggles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.toggle-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    user-select: none;
}

.toggle-btn.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #fff;
}

.toggle-switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-btn.active .toggle-switch {
    background: var(--accent);
}

.toggle-btn.active .toggle-switch::after {
    transform: translateX(16px);
}

/* --- ETAGE PRINCIPAL (Vues images & Canvases) --- */

.stage {
    position: absolute;
    inset: 0;
    background: #fff;
    overflow: hidden;
    touch-action: none;
    z-index: 1;
}

canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

#fxCanvas {
    z-index: 40;
    opacity: 0;
    transition: opacity 0.5s;
}

#heatCanvas {
    z-index: 50;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.3s;
}

#azurio-comparator-app[data-heat="true"] #heatCanvas {
    opacity: 0.85;
}

.zoom-wrapper {
    width: 100%;
    height: 100%;
    transform-origin: center;
    will-change: transform, filter;
}

.layer {
    position: absolute;
    inset: 0;
    background-size: auto 80%;
    background-position: center;
    background-repeat: no-repeat;
    will-change: clip-path;
}

.layer.top {
    z-index: 2;
}

/* --- LOGIQUE DE COMPARAISON CSS (GPU Accéléré) --- */

#azurio-comparator-app[data-display="mix"] .layer.top {
    opacity: var(--mix);
    clip-path: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

#azurio-comparator-app[data-display="side"] .layer {
    clip-path: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

#azurio-comparator-app[data-display="side"][data-axis="vertical"] .layer.bottom {
    width: var(--split);
}

#azurio-comparator-app[data-display="side"][data-axis="vertical"] .layer.top {
    left: var(--split);
    width: calc(100% - var(--split));
}

#azurio-comparator-app[data-display="side"][data-axis="horizontal"] .layer.bottom {
    height: var(--split);
}

#azurio-comparator-app[data-display="side"][data-axis="horizontal"] .layer.top {
    top: var(--split);
    height: calc(100% - var(--split));
}

/* --- MODES DE COUPE ET FUSION --- */

#azurio-comparator-app[data-display="compare"][data-axis="vertical"][data-mode="cut"] .layer.top {
    clip-path: polygon(var(--split) 0, 100% 0, 100% 100%, var(--split) 100%);
    -webkit-mask-image: none;
    mask-image: none;
}

#azurio-comparator-app[data-display="compare"][data-axis="vertical"][data-mode="fusion"] .layer.top {
    clip-path: none;
    -webkit-mask-image: linear-gradient(to right, transparent calc(var(--split) - (var(--fade) / 2)), black calc(var(--split) + (var(--fade) / 2)));
    mask-image: linear-gradient(to right, transparent calc(var(--split) - (var(--fade) / 2)), black calc(var(--split) + (var(--fade) / 2)));
}

#azurio-comparator-app[data-display="compare"][data-axis="horizontal"][data-mode="cut"] .layer.top {
    clip-path: polygon(0 var(--split), 100% var(--split), 100% 100%, 0 100%);
    -webkit-mask-image: none;
    mask-image: none;
}

#azurio-comparator-app[data-display="compare"][data-axis="horizontal"][data-mode="fusion"] .layer.top {
    clip-path: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--split) - (var(--fade) / 2)), black calc(var(--split) + (var(--fade) / 2)));
    mask-image: linear-gradient(to bottom, transparent calc(var(--split) - (var(--fade) / 2)), black calc(var(--split) + (var(--fade) / 2)));
}

#azurio-comparator-app[data-match="true"] .layer.top {
    filter: brightness(var(--match-bright)) contrast(var(--match-contrast)) saturate(var(--match-sat));
}

/* --- POIGNEE (HANDLE) --- */

.handle {
    position: absolute;
    z-index: 600;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.handle .line {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

#azurio-comparator-app[data-axis="vertical"] .handle {
    top: 0;
    bottom: 0;
    width: 40px;
    transform: translateX(-50%);
    left: var(--split);
}

#azurio-comparator-app[data-axis="vertical"] .handle .line {
    width: 2px;
    height: 80%;
}

#azurio-comparator-app[data-axis="horizontal"] .handle {
    left: 0;
    right: 0;
    height: 40px;
    transform: translateY(-50%);
    top: var(--split);
}

#azurio-comparator-app[data-axis="horizontal"] .handle .line {
    height: 2px;
    width: 100%;
}

.knob, .az360-slider-handle{
    width: 48px;
    height: 48px;
    background: #3e3e3e;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    color: #fff;
    cursor: ew-resize;
    transition: transform 0.2s, background 0.2s;
    font-size: 1.2rem;
    z-index: 999;
}

#azurio-comparator-app[data-axis="horizontal"] .knob {
    cursor: ns-resize;
    transform: rotate(90deg);
}

.knob:hover, .az360-slider-handle:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    color: var(--accent);
}

.knob:active {
    transform: scale(0.95);
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

#azurio-comparator-app[data-locked="true"] .knob {
    pointer-events: none;
    opacity: 0.4;
}

/* Slider Comparaison */
.az360-slider { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 48px; 
    cursor: ew-resize; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    touch-action: none; 
}
.az360-slider::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}
.az360-slider-handle svg { 
    width: 24px; 
    height: 24px; 
    color: currentColor;
}


/* --- LOUPE (LENS) --- */

.lens {
    position: absolute;
    width: var(--lens-size);
    height: var(--lens-size);
    left: var(--lens-x);
    top: var(--lens-y);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 700;
    opacity: 0;
    pointer-events: none;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    background: #000;
    transition: opacity 0.3s;
    will-change: transform;
}

#btnToggleLoupe[aria-pressed="true"] {
    background-color: var(--accent);
    color: white;
}

#azurio-comparator-app[data-lens="true"] .lens {
    opacity: 1;
    pointer-events: auto;
    cursor: crosshair;
}

.lens-layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
}

.lens-hud {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
}

#azurio-comparator-app[data-match="true"] #lensB {
    filter: brightness(var(--match-bright)) contrast(var(--match-contrast)) saturate(var(--match-sat));
}

.mobile-cta-toggle {
    display: none;
}

.cta-btn {
    background: #3a86ff;
    color: white;
    border: none;
    border-radius: 50px;
    margin: 12px 0 4px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    width: 100%;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.cta-btn:hover {
    background: #192bc2;
}

a.cta-btn-secondary{
    display: block;
    box-sizing: border-box;
    width: -webkit-fill-available;
    margin: 4px 0;
    padding: 6px;
    background: #ededec;
    color: #3e3e3e;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    border-radius: 50px;
    border: 1px solid #ededec;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
a.cta-btn-secondary:hover,
a.cta-btn-secondary:focus{
    border: 1px solid #6c9d3c;
    color: #6c9d3c;
}


/* --- DOCK (Sélecteur Modèles) --- */

.dock-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 24px;
    pointer-events: none;
    z-index: 950;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
    display: flex;
    justify-content: center;
}

.dock-container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 96%;
    pointer-events: auto;
}

.dock-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 12px 0 12px;
    min-width: 250px;
    max-width: max-content;
}
a.header_panel{
    display: flex;
    color: #3e3e3e;
}
a.header_panel .dock-title::before,
a.header_panel .dock-title::after{
    position: absolute;
    z-index: -1;
    bottom: 0;
    width: 16px;
    height: 16px;
    background-color: transparent;
    pointer-events: none;
}
a.header_panel .dock-title#dockTitleRight::before {
    content: "";
    left: -16px;
    border-bottom-right-radius: 16px;
    box-shadow: 8px 8px 0 8px #fff;
}

a.header_panel .dock-title#dockTitleLeft::after {
    content: "";
    right: -16px; 
    border-bottom-left-radius: 16px;
    box-shadow: -8px 8px 0 8px #fff;
}
a.header_panel .dock-title{
    padding: 4px 16px;
    background-color: #fff;
    position: relative;

}
a.header_panel .dock-title#dockTitleLeft, 
a.header_panel .dock-title#dockTitleRight{
    border-radius: 16px 16px 0 0;
}

#panelRight a.header_panel{
    justify-content: flex-end;
}
.header_panel p{
    color: #fb5607;
    font-style: italic;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.header_panel .rate_reviews{
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 0;
    font-weight: 500;
    margin: 0 8px;
}
.dock-title{
    color: #3e3e3e;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.5px;
}
.dock-title .hauteur-brins{
    color: #6c9d3c;
}

/* --- ÉTIQUETTES DES VIGNETTES (Toujours visibles) --- */
.thumb-container{
    position: relative;
}
.thumb-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f3f4f5;
    color: #3e3e3e;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    border-radius: 50px;
}
.thumb-label .unity{
    display: none;
}
.thumb-container .thumb.is-static-icon{
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    opacity: 0.6;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background-image: var(--icon-default) !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important; /* Retire le fond gris si tu en avais un */
    transition: background-image 0.2s ease-in-out;
    -webkit-transition: .2s cubic-bezier(.75, .25, .25, .75);
    -o-transition: .2s cubic-bezier(.75, .25, .25, .75);
    transition: .2s cubic-bezier(.75, .25, .25, .75);
}

.thumb-container .thumb.is-static-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumb-container[aria-current="true"] .thumb.is-static-icon {
    background-image: var(--icon-active) !important;
}

/* Optionnel : On cache le vieux texte span si tu l'as intégré dans ton SVG */
.thumb-container .thumb.is-static-icon + .thumb-label {
    display: none !important;
}
.dock-scroller {
    display: flex;
    gap: 8px;
    scroll-behavior: smooth;
    align-items: center;
    padding: 8px 16px 8px 16px;
    background-color: #fff;
}

.dock-scroller#listLeft{
    border-radius: 0 16px 16px 16px;
}
.dock-scroller#listRight{
    border-radius: 16px 0 16px 16px;
}
.dock-scroller::-webkit-scrollbar {
    display: none;
}

.vs-badge {
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-self: center;
    margin: 0 -10px;
    z-index: 10;
    box-shadow: 0 4px 16px var(--accent-glow);
}


.thumb-container[aria-current="true"] {
    opacity: 1;
    border-color: var(--accent);
    transform: translateY(-4px) scale(1.05);
    z-index: 2;
}
.thumb-container[aria-current="true"] .thumb{
    opacity: 1;
}
.thumb-container[aria-current="true"] .thumb-label{
    background-color: #6c9d3c;
    color: #fff;
}

/* --- BOUTON REGLAGES MOBILE --- */
.mobile-settings-btn {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    z-index: 950;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: #3e3e3e;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.mobile-settings-btn:active {
    transform: translateX(-50%) scale(0.95);
    background: #f4f5f7;
}

.mobile-settings-btn svg {
    width: 26px;
    height: 26px;
    pointer-events: none; /* Évite les bugs de clic sur le SVG */
}

.sheet-handle { display: none; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1580px){
    .island-btn{
        padding: 8px;
    }
    .divider{
        margin: 0;
    }
}

@media (max-width: 1480px){
    .dock-scroller{
        gap: 8px;
    }
    .thumb-container .thumb.is-static-icon{
        width: 48px;
        height: 48px;
    }
    .dock-container{
        justify-content: space-between;
        max-width: 100%;
        width: 100%;
        padding: 0 12px;
    }
    .dock-panel{
        max-width: max-content;
    }
}

@media (max-width: 1400px){
    
    
    
    .vs-badge{
        display: none;
    }
    .info-header{
        -ms-flex-preferred-size: 50%;
        -webkit-flex-basis: 50%;
        flex-basis: 50%;
        max-width: 50%;
        margin: 0;
    }
    .container_cta_label{
        -ms-flex-preferred-size: 40%;
        -webkit-flex-basis: 40%;
        flex-basis: 40%;
        max-width: 40%;
    }
    .cta-btn,
    a.cta-btn-secondary{
        font-size: 14px;
        display: block;
        width: 100%;
        min-width: 130px;
    }
    a.cta-btn-secondary{
        margin: 4px 0 0;
    }

    .mobile-settings-btn {
        display: flex;
        bottom: 38px;
        width: 50px;
        height: 50px;
    }

    .comparateur-embed.is-loaded .control-island{
        top: auto !important;
        bottom: 0;
        left: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 600px;
        min-height: 130px;
        border-radius: 24px 24px 0 0;
        padding: 24px 16px 24px;
        flex-wrap: wrap;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 999999;
    }

    .comparateur-embed.is-loaded .control-island.sheet-open {
        transform: translateY(0);
    }
    .comparateur-embed.is-loaded .control-island{
        max-width: 100%;
        min-height: 180px;
    }

    .sheet-handle {
        display: block;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #d8d8d8;
        border-radius: 4px;
    }
    .divider:last-child{
        display: none;
    }
}


.mobile-dock-controls {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    padding: 0 24px;
    justify-content: space-between;
    z-index: 900;
    pointer-events: none;
}

.mobile-action-btn {
    display: flex;
    pointer-events: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #3e3e3e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.mobile-action-btn svg{
    margin: 0 6px 0 0;
}

.mobile-sheet-title { 
    display: none; 
}
@media (max-width: 1300px) {
    .mobile-dock-controls { 
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        position: absolute;
        bottom: 2dvh;
        z-index: 9;
        width: 100%;
        left: 0;
    }
    .mobile-selector-wrapper {
        position: relative;
        flex: 1;
        display: flex;
    }
    .mobile-model-list {
        position: absolute;
        z-index: 10000;
        bottom: calc(100% + 12px);
        width: 80px;
        background: #ffffff;
        border-radius: 15px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        -webkit-transition: all 0.2s ease;
        -moz-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        transition: all 0.2s ease;
        padding: 0;
        pointer-events: none;
    }
    .thumb-container .thumb.is-static-icon{
        opacity: 1;
    }
    .thumb-container .thumb.is-static-icon:hover{
        transform: translateY(0);
    }

    .mobile-selector-wrapper.is-open .mobile-model-list{
        max-height: max-content;
        opacity: 1;
        pointer-events: auto;
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(5, 58px);
        gap: 6px;
        width: auto;
    }
    .mobile-selector-wrapper#wrapperMobileLeft{
        justify-content: start;
    }
    .mobile-selector-wrapper#wrapperMobileRight{
        justify-content: end;
    }
    .mobile-model-list#listMobileLeft{
        left: 0;
    }
    .mobile-model-list#listMobileRight{
        right: 0;
    }
    
    .thumb-container{
        display: flex;
        gap: 0;
        align-items: center;
        margin: 4px 0;
    }
    .thumb-container[aria-current="true"]{
        transform: translateY(0) scale(1);
    }
    .thumb-label{
        position: initial;
        transform: translateX(0);
        background: transparent;
        font-size: 13px;
        border-radius: 0;
    }
    .thumb-label .unity{
        display: inline;
    }
    .thumb-label .hauteur-brins{
        color: #6c9d3c;
    }

    .mobile-action-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-basis: 48%;
        width: 100%;
        max-width: 200px;
        background: #fff;
        border: 1px solid #cbcbcb;
        border-radius: 50px;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 500;
        color: #3e3e3e;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .mobile-action-btn svg {
        transition: transform 0.3s ease;
    }
    .mobile-selector-wrapper.is-open .mobile-action-btn svg {
        transform: rotate(180deg);
    }

    .mobile-action-btn span.hauteur-brins {
        color: #6c9d3c;
        font-weight: 600;
    }

    .dock-panel {
        position: fixed;
        bottom: -100%; 
        left: 50%;
        transform: translateX(-50%);
        width: 92%; 
        max-width: 400px;
        height: auto;
        max-height: 70vh;
        
        background: #ffffff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        z-index: 9999;
        padding: 20px 20px 30px;
        transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
        
        display: flex;
        flex-direction: column;
    }

    .sheet-handle {
        width: 40px;
        height: 5px;
        background-color: #e0e0e0;
        border-radius: 10px;
        margin: 0 auto 20px;
    }

    .dock-panel.sheet-open {
        bottom: 0;
    }

    .dock-scroller{
        margin: 0 auto;
        justify-content: center;
        gap: 12px;
        overflow-y: auto;
        scrollbar-width: none; 
    }
    .dock-scroller::-webkit-scrollbar {
        display: none;
    }
    
    .dock-wrapper { 
        background: none; 
        pointer-events: none;
        z-index: 999;
    }
    
    .dock-container { 
        display: block; 
    } 
    
    .vs-badge { 
        display: none; 
    }

    .comparateur-embed.is-loaded .dock-panel, 
    .dock-panel {
        position: fixed !important;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 100%) !important;
        width: 100%;
        background: #fff;
        border-radius: 24px 24px 0 0;
        padding: 24px 16px 32px;
        z-index: 1100;
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        box-shadow: none;
        pointer-events: auto;
    }
    .comparateur-embed.is-loaded .dock-panel, .dock-panel{
        max-width: 1200px;
    }

    .comparateur-embed.is-loaded .dock-panel.sheet-open,
    .dock-panel.sheet-open {
        transform: translate(-50%, 0) !important;
    }

    .mobile-sheet-title {
        display: block;
        text-align: center;
        font-size: 16px;
        font-weight: 700;
        color: #3e3e3e;
        margin-bottom: 20px;
        margin-top: 10px;
    }

    .dock-title { 
        display: none; 
    } 
    .thumb-tooltip{
        top: 50%;
        left: 140px;
        transform: translate(-50%, -50%);
        min-width: 120px;
        font-size: 14px;
        text-align: left;
        background-color: transparent;
    }
    
    .sheet-handle {
        display: block;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #d8d8d8;
        border-radius: 4px;
    }
    .mobile-settings-btn{
        bottom: 20px;
    }
    .comparateur-embed.is-loaded .control-island{
        min-height: 100px;
    }
}

@media (max-width: 900px){

    .control-island {
        width: 92%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    button#btnFullscreen{
        top: 6px;
        right: 6px;
    }

    .control-island::-webkit-scrollbar {
        display: none;
    }

    .top-bar {
        padding: 12px;
    }

    .brand-pill {
        font-size: 0.9rem;
    }
    .dock-wrapper {
        padding-bottom: 12px;
    }

    .dock-container {
        flex-direction: column;
        gap: 8px;
        width: 92%;
    }

    .vs-badge {
        display: none;
    }

    .dock-panel {
        min-width: unset;
        width: 100%;
        padding: 8px;
    }
    .settings-panel {
        width: 92%;
        top: 70px;
        right: 50%;
        transform: translateX(50%);
        max-height: 70vh;
    }
    .mobile-dock-controls,
    .mobile-settings-btn {
        bottom: 2dvh;
    }

    .dock-panel, 
    .control-island {
        z-index: 2100 !important; 
    }
    .comparateur-embed.is-loaded .control-island{
        min-height: 130px;
        padding: 24px 16px 16px;
    }
}


@media (max-width: 830px){
    .container_cta_label{
        max-width: none;
    }
    .cta-btn, a.cta-btn-secondary{
        width: 100%;
    }
}


@media (max-width: 780px){
    .mobile-cta-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        padding: 8px 0 0;
        color: #899197;
        cursor: pointer;
        outline: none;
    }

    .mobile-cta-toggle svg {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    .mobile-action-btn{
        flex-basis: 100%;
    }
    
    .az360-zoom-wrapper{
        flex-direction: column;
        max-height: 100dvh;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-dock-controls{
        height: 100dvh;
        flex-direction: column;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper{
        position: relative;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper .mobile-action-btn{
        position: absolute;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper .mobile-action-btn#btnMobileRight{
        bottom: 0;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper .mobile-action-btn#btnMobileLeft{
        bottom: -60px;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper .mobile-action-btn,
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper{
        height: fit-content;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper#wrapperMobileLeft{
        top: 80px;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-selector-wrapper#wrapperMobileRight{
        top: 0;
        right: auto;
        left: 0;
        justify-content: flex-start;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-model-list{
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: fit-content;
        top: 50px;
        left: 0;
        padding: 4px 12px;
        min-height: min-content;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-model-list#listMobileLeft{
        bottom: 0;
        top: auto;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-model-list#listMobileRight{
        top: auto;
        bottom: 50px;
    }
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .thumb.is-static-icon{
        width: 58px;
        height: 58px;
    }
    #azurio-comparator-app[data-axis="vertical"] .handle .line{
        height: 70%;
    }
}
@media (max-width: 650px){
    .divider{
        display: none;
    }
    .comparateur-embed.is-loaded .control-island.sheet-open{
        flex-direction: column;
    }
    .dock-scroller{
        flex-wrap: wrap;
    }
    .mobile-action-btn{
        max-width: 190px;
    }
    .thumb{
        width: 38px;
    }
    .mobile-selector-wrapper.is-open .mobile-model-list{
        gap: 4px;
    }
}
@media (max-width: 480px){
    .noteEtoile{
        font-size: 11px;
    }
    
    .mobile-dock-controls{
        padding: 0 8px;
    }
    .mobile-action-btn{
        padding: 8px;
        font-size: 14px;
    }
    .mobile-action-btn{
        max-width: 160px;
    }

    .island-group{
        flex-wrap: wrap;
        justify-content: center;
    }
    .mobile-settings-btn{
        bottom: 8dvh;
    } #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-settings-btn {
        bottom: 2dvh;
        right: 0;
        left: auto;
    }
}
@media (max-width: 380px){
    #azurio-comparator-app[data-display="side"]:has(button[data-viewmode="360"][aria-pressed="true"]) .mobile-dock-controls{
        bottom: 0!important;
    }
    .island-group{
        flex-wrap: wrap;
        justify-content: center;
    }
    .mobile-selector-wrapper.is-open .mobile-model-list{
        gap: 0;
    }
}


/* --------------------------
// 360
// -------------------------- */


/* Empêcher la sélection de texte et le comportement de glisser */
.no-select {
    user-select: none;
    -webkit-user-drag: none;
}

/* Cacher la barre de défilement en plein écran */
:fullscreen {
    overflow: hidden;
}

:-webkit-full-screen {
    overflow: hidden;
}

:-ms-fullscreen {
    overflow: hidden;
}

/* Animation fluide pour l'apparition des éléments */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

button.btn-360-gazon{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    cursor: pointer;
    border: 0;
    position: absolute;
    top: 0;
    right: 18px;
    background-color: #fff;
}
.modal-360-close img {
    width: 36px;
    height: 36px;
}

/* ========================================================
   MODALE GLOBALE 360
   ======================================================== */

.overlay-360 { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(255, 255, 255, 0.98); 
    z-index: 999999; 
    overflow-y: auto; 
}

.popup-360-content { 
    width: 100%; 
    min-height: 100dvh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

.embed-360 { 
    width: 100%; 
    min-height: 100dvh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* Rideau Blanc (Animation d'apparition) */
.embed-360::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: #ffffff; 
    z-index: 9999; 
    opacity: 1; 
    pointer-events: none; 
    transition: opacity 0.95s ease; 
}

.embed-360.is-loaded::after { 
    opacity: 0; 
}


/* ========================================================
   MODULE VISUALISEUR 360
   ======================================================== */

.az360-wrapper { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    position: relative; 
    z-index: 100000; 
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s, opacity 0s 0.1s; 
    opacity: 0; 
    transform: translateY(20px); 
    overflow: hidden;
}

.comparateur-embed.is-loaded .az360-wrapper{ 
    opacity: 1; 
    transform: translate(0); 
}

.az360-wrapper.is-fullscreen { 
    max-width: none; 
    width: 100vw; 
    height: 100dvh; 
    border-radius: 0; 
    border: none; 
    background-color: #fff;
}

/* --- HEADER --- */
.az360-header { 
    background-color: #f9fafb; 
    color: #fff;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    position: relative; 
    top: 0;
    z-index: 20; 
    height: 62px;
    gap: 0.5rem; 
}
.az360-header .az360-controls-group{
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
}
.az360-header .az360-controls-group, 
.az360-header .az360-tools-group{
    position: absolute;
}
.az360-header .az360-controls-group{
    left: 0;
    top: 72px;
    width: 100%;
    padding: 0 22px;
    justify-content: space-between;
}

.az360-header .az360-tools-group {
    left: 0;
    padding: 0 0 0 22px;
}
button#btnFullscreen{
    position: absolute;
    z-index: 99999;
    top: 22px;
    right: 22px;
    color: rgba(0, 0, 0, 0.5);
    background-color: #f3f4f5; 
    line-height: 0;
    padding: 12px; 
    border-radius: 50px; 
    border: none; 
    cursor: pointer; 
    transition: background-color 0.2s;
}
button#btnFullscreen:hover { 
    color: rgba(0, 0, 0, 0.7); 
}

button#btnFullscreen svg { 
    width: 26px;
    height: 26px;
}
/* Bouton Fermer */
.az-compare-360-close-btn { 
    position: absolute;
    z-index: 999;
    top: 22px;
    right: 22px;
    color: #ffffff; 
    background-color: rgba(0, 0, 0, 0.5); 
    line-height: 0;
    padding: 12px; 
    border-radius: 50px; 
    border: none; 
    cursor: pointer; 
    transition: background-color 0.2s;
}

.az-compare-360-close-btn:hover { 
    background-color: rgba(0, 0, 0, 0.7); 
}

.az-compare-360-close-btn svg { 
    width: 22px; 
    height: 22px; 
}


.az360-header select{
    appearance: none;
}
.az360-select { 
    background-color: rgba(0, 0, 0, 0.5)!important; 
    color: #fff; 
    width: auto !important;
    margin: 0!important;
    font-size: 14px!important;
    font-weight: 500; 
    border-radius: 50px !important; 
    padding: 6px 38px 6px 16px!important;
    outline: none; 
    cursor: pointer;
    transition: background-color 0.2s; 
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.az360-select:hover { 
    background-color: #3e3e3e; 
}
#render-mode { 
    background-color: #1e3a8a; 
    border-color: #1d4ed8; 
}

#render-mode:hover { 
    background-color: #1e40af; 
}

/* --- OUTILS HEADER --- */
.az360-tools-group { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    color: #9ca3af; 
}


.az360-tool-text{ 
    display: inline; 
    font-size: 15px; 
    font-weight: 500; 
}
.az360-divider { 
    width: 1px; 
    height: 1.25rem; 
    background-color: #4b5563; 
    margin: 0 0.25rem; 
}

.az360-tool-icon { 
    background: none; 
    border: none; 
    color: inherit; 
    cursor: pointer; 
    padding: 0; 
    transition: color 0.2s; 
}

.az360-tool-icon:hover { 
    color: #3e3e3e; 
}

.az360-tool-icon svg { 
    width: 1.25rem; 
    height: 1.25rem; 
}

/* --- ZONE INTERACTIVE --- */
.az360-container { 
    position: relative; 
    width: 100%; 
    min-height: 0;
    margin: auto;
    aspect-ratio: 16 / 9;
    cursor: grab; 
    touch-action: none; 
    overflow: hidden; 
    display: flex; 
    flex: 1; 
}

.az360-container:active { 
    cursor: grabbing; 
}

.az360-wrapper.is-fullscreen .az360-container { 
    aspect-ratio: auto; 
    max-width: none;
}

/* Loaders internes */
.az360-bg-loader { 
    position: absolute; 
    top: 1rem; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 40; 
    background-color: #3e3e3e; 
    color: #ffffff; 
    font-size: 0.75rem; 
    padding: 10px 18px; 
    border-radius: 50px; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
    backdrop-filter: blur(4px); 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    transition: opacity 0.3s; 
    pointer-events: none; 
    min-width: 250px;
}

.az360-main-loader { 
    position: absolute; 
    inset: 0; 
    z-index: 30; 
    background-color: #fff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: #ffffff; 
    transition: opacity 0.3s; 
    pointer-events: none; 
}

.az360-loader-text { 
    font-size: 0.75rem; 
    font-family: monospace; 
    color: #9ca3af; 
    margin-bottom: 0.5rem; 
    text-align: center; 
}

.az360-progress-bg { 
    width: 4rem; 
    height: 0.375rem; 
    background-color: #4b5563; 
    border-radius: 9999px; 
    overflow: hidden; 
}

.az360-progress-fill { 
    height: 100%; 
    background-color: #60a5fa; 
    transition: width 0.2s; 
    width: 0%; 
}

.az360-main-progress-bg { 
    width: 12rem; 
    background-color: #374151; 
    border-radius: 9999px; 
    height: 0.375rem; 
    overflow: hidden; 
    margin: 0 auto; 
}

.az360-main-progress-fill { 
    background-color: #3b82f6; 
    height: 100%; 
    border-radius: 9999px; 
    transition: width 0.2s; 
    width: 0%; 
}

/* Zoom et Vues */
.az360-zoom-wrapper { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    transition: transform 0.1s ease-out; 
    transform-origin: center; 
}

.az360-view { 
    position: relative; 
    flex: 1; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s;
    overflow: hidden; 
    min-height: 0; 
    min-width: 0; 
}

.az360-view-2 { 
    /* border-left: 1px solid rgba(209, 213, 219, 0.5);  */
    background-color: #f3f4f6; 
}

/* Contenu des Vues */
.az360-view-loader, 
.az360-view-error { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    z-index: 10; 
    background-color: rgba(229, 231, 235, 0.8); 
    backdrop-filter: blur(4px); 
}

.az360-view-loader span { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: #4b5563; 
    text-align: center; 
}

.az360-view-error span { 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: #6b7280; 
    text-align: center; 
}

.az360-render-media { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    pointer-events: none; 
}

/* Spritesheet Layout */
.az360-sprite-wrapper { 
    container-type: size;
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex: 1;
    align-items: center; 
    justify-content: center; 
    pointer-events: none; 
    background-color: #fff;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

:not(.az360-hidden).az360-sprite-wrapper {
    opacity: 1;
}

.az360-sprite-container { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 2140 / 1090; 
    width: min(100cqw, calc(100cqh * 2140 / 1090)); 
    height: auto; 
    margin: auto;
}

.az360-sprite-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    height: 100%; 
    width: 1700%; 
    max-width: none; 
    pointer-events: none; 
}

/* --------------------- */

.az360-instructions { 
    position: absolute; 
    top: 21%;
    left: 0; 
    right: 0; 
    display: flex; 
    justify-content: center; 
    transition: opacity 0.3s; 
    pointer-events: none; 
    z-index: 10; 
}

.az360-instructions-text { 
    background-color: rgba(0, 0, 0, 0.6); 
    color: #ffffff; 
    font-size: 0.875rem; 
    padding: 0.5rem 1rem; 
    border-radius: 9999px; 
    backdrop-filter: blur(4px); 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
}

.az360-font-bold { 
    font-weight: 700; 
    color: #1f2937; 
}

/* --- UTILITAIRES --- */
.no-select { 
    user-select: none; 
    -webkit-user-drag: none; 
}

.az360-hidden { 
    display: none !important; 
}

.az360-opacity-0 { 
    opacity: 0 !important; 
}

.az360-opacity-25 { 
    opacity: 0.25; 
}

.az360-opacity-75 { 
    opacity: 0.75; 
}



/* --- NOUVEAU : Indicateur de Swipe 360 --- */
.az360-swipe-indicator {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none; /* Crucial : empêche la main de bloquer le clic sur le gazon en dessous */
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.az360-swipe-indicator svg {
    animation: swipeAnim 1.5s ease-in-out infinite;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3));
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 6px;
}

@keyframes swipeAnim {
    0% { transform: translateX(-35px); }
    50% { transform: translateX(35px); }
    100% { transform: translateX(-35px); }
}

.az360-swipe-indicator.fade-out {
    opacity: 0;
}

/* Bouton plein écran central */
.fullscreen-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}
.fullscreen-hint.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s;
}
.fullscreen-hint:hover {
    background-color: var(--accent);
}
.fullscreen-hint svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}


.az360-spin { 
    animation: spin 1s linear infinite; 
    height: 0.875rem; 
    width: 0.875rem; 
    color: #60a5fa; 
}

.az360-large-spin { 
    height: 2rem; 
    width: 2rem; 
    color: #ffffff; 
    margin: 0 auto 0.75rem; 
}

.az360-view-loader .az360-large-spin { 
    color: #2563eb; 
    margin-bottom: 0.5rem; 
}

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

/* Compare Layout Modes */
.is-compare-slider .az360-view { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    border: none; 
}

.is-compare-slider .az360-view-2 { 
    clip-path: inset(0 0 0 50%); 
}

.is-compare-slider #hotspot-1 { 
    left: 25%; 
}

.is-compare-slider #hotspot-2 { 
    left: 75%; 
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    #btnFullscreen {
        display: block;
    }

    .az360-header .az360-controls-group{
        left: 1%;
        display: flex;
        justify-content: space-between;
    }
    .az360-header .az360-controls-group select#model-select-2{
        order: 3;
    }
    .az360-header select#compare-style{
        background-color: #3e3e3e;
    }

    button.btn-360-gazon{
        right: 0;
    }
    .island-btn[data-viewmode="360"]{
        padding: 0 4px;
    }
    .container_compare_product{
        height: 65dvh;
    }
    .az360-view{
        height: 80%;
    }
}


@media (max-width: 780px){
    .az360-divider:last-child{
        display: none;
    }
    .mobile-selector-wrapper.is-open .mobile-model-list{
        display: grid;
        grid-template-columns: repeat(2, 58px);
        gap: 4px;
        width: max-content;
        padding: 12px;
        min-height: min-content;
    }
}
@media (max-width: 600px){
    button.btn-360-gazon{
        right: 0;
    }
    button.btn-360-gazon img{
        width: 100px;
    }
}
@media (max-width: 460px){
    button.btn-360-gazon img{
        width: 70px;
    }
}


@media (max-width: 650px){
    .az-compare-360-close-btn, button#btnFullscreen{
        top: 6px;
    }
    .az-compare-360-close-btn, button#btnFullscreen{
        padding: 8px;
    }
    .az-compare-360-close-btn{
        right: 6px;
    }
}
/* ========================================================
   COMPARATEUR INTÉGRÉ : partage du geste tactile
   ======================================================== */

#compare-360-inline .stage,
#compare-360-inline .az360-container,
#compare-360-inline .az360-zoom-wrapper,
#compare-360-inline .az360-view {
    touch-action: pan-y;
}

#compare-360-inline .knob,
#compare-360-inline .az360-slider,
#compare-360-inline .lens {
    touch-action: none;
}

#compare-360-inline .az360-sprite-wrapper {
    pointer-events: auto;
}
#compare-360-inline .az360-sprite-container,
#compare-360-inline .az360-render-media {
    pointer-events: auto;
    touch-action: none;
}
#compare-360-inline .az360-sprite-img {
    pointer-events: none;
}
#compare-360-inline,
#compare-360-inline #azurio-comparator-app {
    overflow: visible;
}

#compare-360-inline .container_compare_product,
#compare-360-inline .stage {
    overflow: clip; 
}
#compare-360-inline .container_compare_product{
    border-radius: 28px;
    border: 1px solid #e6e8eb;
}
#compare-360-inline {
    --compare-h: 85svh;   /* ← le seul chiffre à régler */
    padding: 28px 0;      /* bande tactile garantie au-dessus et en dessous */
}

#compare-360-inline .comparateur-embed,
#compare-360-inline .container_compare_product,
#compare-360-inline .az360-wrapper {
    height: var(--compare-h);
    min-height: var(--compare-h);
    max-height: var(--compare-h);
}
#compare-360-inline .is-fullscreen .container_compare_product{
    --compare-h: 100svh;
    border-radius: 0;
    box-shadow: none;
}
#compare-360-inline #azurio-comparator-app.is-fullscreen{
    background-color: #fff;
}

@media (max-width: 1024px) {
    #compare-360-inline {
         --compare-h: 66svh; 
    }
    #compare-360-inline .is-fullscreen .container_compare_product{
         --compare-h: 100svh; 
    }
}

/* Choix des gazons et barre de comparaison à deux modèles. */
.az-compare-choice {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin: 10px 0 0;
    padding: 7px 12px;
    border: 1px solid #dce4d4;
    border-radius: 8px;
    color: #38532c;
    background: #f4f7ee;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.az-compare-choice input[type="checkbox"] {
    display: block;
    position: static;
    width: 19px;
    height: 19px;
    margin: 0;
    opacity: 1;
    appearance: auto;
    accent-color: #668d39;
    flex: 0 0 19px;
    cursor: pointer;
}

.az-compare-choice.is-selected {
    border-color: #668d39;
    background: #eaf2dd;
}

.az-compare-choice:focus-within,
#az-compare-tray button:focus-visible,
#az-compare-close:focus-visible {
    outline: 3px solid #476e24;
    outline-offset: 3px;
}

#az-compare-tray {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-height: 74vh;
    max-height: 74dvh;
    position: fixed;
    z-index: 98000;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    margin: 0 auto;
    padding: 10px max(16px, calc((100vw - 1160px) / 2));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border: 1px solid #dbe3d2;
    border-radius: 14px 14px 0 0;
    background: #fff;
    color: #30492a;
    box-shadow: 0 -3px 24px rgba(39, 59, 27, .14);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.35;
}

#az-compare-tray:not(.is-collapsed) { border-top: 3px solid #648d3b; }

#az-compare-tray[hidden],
#az-compare-tray-items[hidden],
body.menu_active #az-compare-tray,
body.search_active #az-compare-tray,
body.az-compare-modal-open #az-compare-tray {
    display: none !important;
}

#az-compare-tray .az-compare-tray-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 15px;
    min-height: 44px;
}

#az-compare-tray .az-compare-tray-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

#az-compare-count {
    display: inline-flex;
    justify-content: center;
    min-width: 39px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #eef3e7;
    color: #4f6f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

#az-compare-tray button {
    font-family: inherit;
    cursor: pointer;
}

#az-compare-toggle,
#az-compare-clear {
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #506242;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#az-compare-toggle { margin-left: auto; }

#az-compare-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #587d2c;
    border-radius: 30px;
    background: #638a34;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

#az-compare-launch:hover:not(:disabled) { background: #507328; }
#az-compare-launch:disabled {
    border-color: #d6ddce;
    background: #e5ebdf;
    color: #617057;
    cursor: not-allowed;
}

#az-compare-tray-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    gap: 12px;
    min-height: 0;
    margin-top: 9px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#az-compare-tray .az-compare-slot {
    position: relative;
    display: grid;
    align-items: center;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 128px;
    padding: 10px 12px;
    border: 1px solid #b5c7a3;
    border-radius: 12px;
    background: #fff;
    color: #2f4528;
}

#az-compare-tray .az-compare-slot.has-image {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
}

#az-compare-tray .az-compare-slot img {
    display: block;
    width: 100%;
    height: 105px;
    object-fit: contain;
}

#az-compare-tray .az-compare-slot-details { min-width: 0; }

#az-compare-tray .az-compare-slot-name {
    display: block;
    padding-right: 30px;
    color: #30492a;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#az-compare-tray .az-compare-specs {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 3px 9px;
    margin: 7px 0 0;
    color: #40513b;
    font-size: 13px;
    line-height: 1.3;
}

#az-compare-tray .az-compare-specs > div { display: contents; }

#az-compare-tray .az-compare-specs dt,
#az-compare-tray .az-compare-specs dd { margin: 0; overflow-wrap: anywhere; }
#az-compare-tray .az-compare-specs dt { color: #596551; }
#az-compare-tray .az-compare-specs dd { color: #2c4327; font-weight: 650; }

#az-compare-tray .az-compare-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #3f5534;
    background: radial-gradient(circle, #eff4e9 53%, transparent 56%);
    font-size: 23px;
    line-height: 1;
}
#az-compare-tray .az-compare-remove:hover { color: #233d1b; background-color: #eef4e8; }
#az-compare-tray .az-compare-remove:focus-visible { outline-offset: -3px; }

#az-compare-tray .az-compare-slot.is-empty {
    place-items: center;
    border: 1px dashed #aab99b;
    color: #576550;
    background: #f8faf5;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 700px) {
    #az-compare-tray-items { gap: 8px; }
    #az-compare-tray .az-compare-slot,
    #az-compare-tray .az-compare-slot.has-image {
        align-content: start;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        min-height: 0;
        padding: 7px 9px 10px;
    }
    #az-compare-tray .az-compare-slot img { height: clamp(62px, 20vw, 98px); }
    #az-compare-tray .az-compare-slot-name { padding-right: 0; font-size: 16px; }
    #az-compare-tray .az-compare-slot:not(.has-image):not(.is-empty) .az-compare-slot-name { padding-right: 31px; }
    #az-compare-tray .az-compare-specs { gap: 3px 5px; margin-top: 5px; font-size: 12px; }
    #az-compare-tray .az-compare-remove { top: 0; right: 0; width: 44px; height: 44px; }
    #az-compare-tray .az-compare-slot.is-empty { align-content: center; font-size: 13px; }
}

@media (max-height: 500px) {
    #az-compare-tray .az-compare-slot { min-height: 0; }
    #az-compare-tray .az-compare-slot img { height: 65px; }
    #az-compare-tray #az-compare-launch { width: auto; min-height: 36px; }
}

@media (min-width: 500px) and (max-width: 700px) and (max-height: 500px) {
    #az-compare-tray .az-compare-slot.has-image {
        align-content: center;
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 8px;
    }
    #az-compare-tray .az-compare-slot-name { padding-right: 28px; font-size: 15px; }
}

#az-compare-tray .az-compare-tray-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 3px;
}

#az-compare-status {
    margin: 0;
    color: #516348;
    font-size: 12px;
    line-height: 1.4;
}

#az-compare-status:empty { display: none; }
#az-compare-tray.is-collapsed .az-compare-tray-foot { display: none; }
#az-compare-spacer { width: 100%; pointer-events: none; }

body.az-compare-tray-visible:not(.menu_active):not(.search_active) .cky-btn-revisit-wrapper {
    bottom: calc(var(--az-compare-tray-height, 0px) + 10px) !important;
}

/* Comparaison lancée depuis une sélection de deux modèles. */
body.az-compare-modal-open { overflow: hidden; }

#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) {
    --compare-h: 100dvh;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) > h2,
#compare-360-inline.az-compare-route-open #btnFullscreen,
#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .fullscreen-hint,
#az-compare-route-close[hidden] {
    display: none;
}

#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .comparateur-embed,
#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) #azurio-comparator-app,
#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .container_compare_product,
#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .az360-wrapper {
    width: 100%;
    height: 100vh;
    height: var(--compare-h);
    margin: 0;
    padding: 0;
    max-width: none;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
}

#compare-360-inline.az-compare-route-open #az-compare-route-close:not([hidden]),
#popup-compare-360 #az-compare-close {
    display: inline-flex;
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 2147483100;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #d8e0d2;
    border-radius: 50%;
    background: #fff;
    color: #30492a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 30px;
    font-family: inherit;
    line-height: 1;
}

#az-compare-route-close:focus-visible {
    outline: 3px solid #476e24;
    outline-offset: 3px;
}

#compare-360-inline .az-compare-surface { position: relative; }

#compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) :is(.stage, .az360-container, .az360-view, .az360-zoom-wrapper) {
    touch-action: none;
}

/* En arrivant du catalogue, le cadre remplit la fenêtre malgré les
   espacements que le modèle de page applique aux sections éditoriales. */
#site_main #compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) {
    padding: 0;
}

#site_main #compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) > h2 {
    display: none;
}

#site_main #compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) > .az-compare-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Le cadre reste dans la page, seule la visionneuse passe en paysage. */
@media (orientation: portrait) and (max-width: 840px), (orientation: portrait) and (pointer: coarse) {
    #compare-360-inline { --az-comparator-quarter-turn: 1; }

    #compare-360-inline .az-compare-frame {
        --az-frame-length: max(85vh, 110vw);
        --az-frame-length: max(85dvh, 110vw);
        position: relative;
        width: 100%;
        height: var(--az-frame-length);
        container-type: inline-size;
    }

    #compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .az-compare-frame {
        --az-frame-length: 100vh;
        --az-frame-length: 100dvh;
    }

    #compare-360-inline .az-compare-surface {
        --compare-h: 100vw;
        position: absolute;
        top: 0;
        left: 100%;
        width: var(--az-frame-length);
        height: var(--compare-h);
        transform: rotate(90deg);
        transform-origin: 0 0;
    }

    @supports (width: 1cqw) {
        #compare-360-inline .az-compare-surface { --compare-h: 100cqw; }
    }

    #compare-360-inline .az-compare-surface #azurio-comparator-app { height: 100%; }

    #compare-360-inline.az-compare-route-open #az-compare-route-close:not([hidden]) {
        position: absolute;
        top: max(10px, env(safe-area-inset-right));
        right: max(10px, env(safe-area-inset-bottom));
    }

    #compare-360-inline .az360-zoom-wrapper { flex-direction: row; max-height: 100%; }
    #compare-360-inline #azurio-comparator-app[data-display="side"] .mobile-dock-controls {
        height: auto;
        flex-direction: row;
    }
    #compare-360-inline #azurio-comparator-app[data-display="side"] .mobile-selector-wrapper:is(#wrapperMobileLeft, #wrapperMobileRight) {
        inset: auto;
    }
    #compare-360-inline #azurio-comparator-app[data-display="side"] .mobile-action-btn:is(#btnMobileLeft, #btnMobileRight) {
        position: static;
    }
    #compare-360-inline #azurio-comparator-app[data-display="side"] #wrapperMobileRight { justify-content: flex-end; }

    /* En plein écran natif, l'app sort du cadre transformé. */
    #compare-360-inline #azurio-comparator-app:is(:fullscreen, :-webkit-full-screen) .container_compare_product {
        --compare-h: 100dvw;
        position: absolute;
        top: 0;
        left: 100%;
        width: 100dvh;
        height: var(--compare-h);
        transform: rotate(90deg);
        transform-origin: 0 0;
    }
}

@media (max-width: 700px) {
    #az-compare-tray {
        padding: 9px 10px;
        padding-bottom: max(9px, env(safe-area-inset-bottom));
        border-radius: 12px 12px 0 0;
    }

    #az-compare-tray .az-compare-tray-head { gap: 4px 9px; }
    #az-compare-tray .az-compare-tray-title { gap: 7px; font-size: 14px; }
    #az-compare-toggle { min-height: 36px; padding: 7px; font-size: 12px; }
    #az-compare-launch { width: 100%; min-height: 42px; padding: 9px 14px; }
    #az-compare-tray .az-compare-tray-foot { align-items: flex-start; gap: 6px; }
    #az-compare-clear { flex: 0 0 auto; padding: 6px 5px; min-height: 34px; font-size: 12px; }
    #az-compare-status { padding-top: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    #compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .comparateur-embed,
    #compare-360-inline:is(.az-compare-route-open, .az-compare-inline-full) .comparateur-embed::after {
        transition: none;
    }
}

/* Cartes modèles du carrousel de l’accueil. */
.home #gazon_products .az-home-model {
    display: flex;
    flex-direction: column;
    padding-bottom: 58px; /* Place du lien produit et de sa marge inférieure. */
}
.home #gazon_products .az-home-model > .img_product_gazon {
    flex-shrink: 0;
    overflow: hidden;
}
.home .az-home-model .content_title { position: static; }
.home .az-home-model a.product::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.home #gazon_products .az-home-model > .az-compare-choice {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-content: center;
    flex-shrink: 0;
    margin: auto 0 0;
}
.home .az-home-model > .btn,
.home .az-home-model .content_title a:not(.product) { z-index: 2; }
.home .az-home-model .content_title a:not(.product) { position: relative; }
.home.az-compare-tray-visible #az_sticky_cta,
.home.az-compare-modal-open #az_sticky_cta { display: none; }

/* L'action du bouton change une fois le comparateur en plein écran. */
#azurio-comparator-app.is-fullscreen #btnFullscreen,
#compare-360-inline.az-compare-inline-full #btnFullscreen {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #d8e0d2;
    border-radius: 50%;
    color: #30492a;
    background: #fff;
    box-shadow: 0 2px 12px rgb(0 0 0 / 10%);
}

#azurio-comparator-app.is-fullscreen #btnFullscreen svg,
#compare-360-inline.az-compare-inline-full #btnFullscreen svg { display: none; }
#azurio-comparator-app.is-fullscreen #btnFullscreen::before,
#compare-360-inline.az-compare-inline-full #btnFullscreen::before {
    content: "×";
    font: 400 30px/1 Arial, sans-serif;
}

/* La photo de remplacement reste visible si une vue à 360° est indisponible. */
#azurio-comparator-app .az360-static-preview .az360-view-error:not(.az360-hidden) {
    inset: auto auto clamp(68px, 18%, 170px) 12px;
    max-width: calc(50% - 18px);
    padding: 5px 9px;
    border: 1px solid #e1e4dc;
    border-radius: 8px;
    background: #fff;
    backdrop-filter: none;
    pointer-events: none;
}
#azurio-comparator-app #view-2.az360-static-preview .az360-view-error {
    right: 12px;
    left: auto;
}

/* Les deux échantillons et les commandes restent accessibles pendant
   le chargement d’une vidéo sur téléphone ou tablette. */
@media (max-width: 900px), (max-width: 1300px) and (pointer: coarse) {
    #azurio-comparator-app #viewport360 #loader.loader-container {
        inset: auto auto 68px 50% !important;
        width: max-content !important;
        max-width: calc(100% - 24px);
        height: auto !important;
        margin: 0;
        padding: 6px 12px;
        flex-direction: row !important;
        gap: 7px;
        transform: translateX(-50%) !important;
        border: 1px solid #e1e4dc;
        border-radius: 18px;
        background: #fff !important;
        pointer-events: none;
    }
    #azurio-comparator-app #viewport360 #loader .spinner {
        width: 18px;
        height: 18px;
        margin: 0;
        border: 2px solid #dce5d6;
        border-top-color: #527635;
        border-radius: 50%;
        animation: spin .8s linear infinite;
    }
    #azurio-comparator-app #viewport360 #loader .spinner::before,
    #azurio-comparator-app #viewport360 #loader .spinner::after { content: none; }
    #azurio-comparator-app #viewport360 #loader p { margin: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    #azurio-comparator-app #viewport360 #loader .spinner { animation: none; }
}

/* Sur les petites hauteurs, deux rangées suffisent pour présenter les dix modèles. */
@media (orientation: portrait) and (max-width: 840px),
       (orientation: portrait) and (pointer: coarse),
       (orientation: landscape) and (max-width: 780px) and (max-height: 500px) {
    #compare-360-inline #azurio-comparator-app .mobile-selector-wrapper.is-open .mobile-model-list {
        display: grid;
        grid-template-columns: repeat(5, 52px);
        gap: 4px;
        width: max-content;
        min-height: 0;
        max-height: calc(var(--compare-h) - 72px);
        padding: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    #compare-360-inline #azurio-comparator-app .mobile-model-list .thumb.is-static-icon {
        width: 52px;
        height: 52px;
    }
}
