/*
 * Écrin — styles des éléments et effets (chargé automatiquement par YOOtheme Pro)
 * Les couleurs et polices suivent le style YOOtheme actif ; on ne fixe ici que le mouvement et la mise en scène.
 */

:root {
    --ec-ink: #100f0d;
    --ec-paper: #f6f3ee;
    --ec-gold: #a98a56;
    --ec-line: rgba(16, 15, 13, 0.14);
    --ec-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
    --ec-ease: cubic-bezier(0.22, 0.8, 0.2, 1);
    --ec-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --ec-gutter: clamp(20px, 4vw, 64px);
}

/* Lenis (défilement doux) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.lenis { scroll-behavior: auto !important; }

/* le défilement « posé » ne doit pas se battre avec un scroll-behavior global */
html.ec-gliding { scroll-behavior: auto !important; }

/* ==========================================================================
   Identité : l'emblème précède le nom de la Maison quand le logo est en texte
   ========================================================================== */

.uk-logo:not(:has(img, svg))::before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.55em;
    vertical-align: -0.2em;
    background: currentColor;
    -webkit-mask: url(../images/brand/emblem.svg) center / contain no-repeat;
    mask: url(../images/brand/emblem.svg) center / contain no-repeat;
}

/* ==========================================================================
   Micro-typographie partagée
   ========================================================================== */

.ec-label {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 400;
}

.ec-display {
    font-family: var(--ec-display);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.012em;
}

.ec-display em,
.ec-reveal em { font-style: italic; color: var(--ec-gold); }

.ec-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: inherit;
    padding-bottom: 6px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size 0.6s var(--ec-ease);
}

.ec-link::after {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    transform-origin: 0 50%;
    transition: transform 0.6s var(--ec-ease);
}

.ec-link:hover { color: inherit; background-size: 0 1px; background-position: 100% 100%; }
.ec-link:hover::after { transform: scaleX(1.7); }

/* ==========================================================================
   Scroll-stop
   ========================================================================== */

.ec-ss {
    position: relative;
    min-height: 100vh;
    color: var(--ec-ink);
    background: var(--ec-paper);
    --ec-p: 0;
}

.ec-ss--dark { color: #f3efe8; background: #0c0b0a; --ec-line: rgba(243, 239, 232, 0.18); }
.ec-ss--transparent { background: transparent; color: inherit; }

.ec-ss-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    contain: layout paint;
}

.ec-ss-media,
.ec-ss-media > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ec-ss-media { opacity: 0; transition: opacity 1.4s var(--ec-ease); }
.ec-ss.is-ready .ec-ss-media { opacity: 1; }
.ec-ss-video, .ec-ss-image img { object-fit: cover; }
.ec-ss-canvas { display: block; }

/* halo discret derrière la pierre */
.ec-ss[data-media="gem"] .ec-ss-stage::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(42% 46% at 50% 50%, rgba(255, 255, 255, 0.85), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.ec-ss--dark[data-media="gem"] .ec-ss-stage::before {
    background: radial-gradient(40% 44% at 50% 50%, rgba(169, 138, 86, 0.22), transparent 70%);
}

/* voile de lisibilité pour vidéo / séquence / images */
.ec-ss--veil .ec-ss-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 7, 6, 0.62), rgba(8, 7, 6, 0.08) 62%), linear-gradient(0deg, rgba(8, 7, 6, 0.5), transparent 40%);
}

/* mode « images » : une image par étape */
.ec-ss-image { opacity: 0; transition: opacity 1.1s var(--ec-ease-io); }
.ec-ss-image img { width: 100%; height: 100%; transform: scale(1.12); transition: transform 2.2s var(--ec-ease); }
.ec-ss[data-stop="0"] .ec-ss-image:nth-child(1),
.ec-ss[data-stop="1"] .ec-ss-image:nth-child(2),
.ec-ss[data-stop="2"] .ec-ss-image:nth-child(3),
.ec-ss[data-stop="3"] .ec-ss-image:nth-child(4),
.ec-ss[data-stop="4"] .ec-ss-image:nth-child(5),
.ec-ss[data-stop="5"] .ec-ss-image:nth-child(6),
.ec-ss[data-stop="6"] .ec-ss-image:nth-child(7),
.ec-ss[data-stop="7"] .ec-ss-image:nth-child(8) { opacity: 1; }
.ec-ss[data-stop="0"] .ec-ss-image:nth-child(1) img,
.ec-ss[data-stop="1"] .ec-ss-image:nth-child(2) img,
.ec-ss[data-stop="2"] .ec-ss-image:nth-child(3) img,
.ec-ss[data-stop="3"] .ec-ss-image:nth-child(4) img,
.ec-ss[data-stop="4"] .ec-ss-image:nth-child(5) img,
.ec-ss[data-stop="5"] .ec-ss-image:nth-child(6) img,
.ec-ss[data-stop="6"] .ec-ss-image:nth-child(7) img,
.ec-ss[data-stop="7"] .ec-ss-image:nth-child(8) img { transform: scale(1); }

/* étapes */
.ec-ss-stops { position: absolute; inset: 0; pointer-events: none; }

.ec-ss-stop {
    position: absolute;
    top: 50%;
    left: var(--ec-gutter);
    width: min(440px, 38vw);
    transform: translateY(-50%);
    visibility: hidden;
    transition: visibility 0s 0.7s;
}

.ec-ss-stop[data-pos="right"] { left: auto; right: calc(var(--ec-gutter) + 56px); }
.ec-ss-stop[data-pos="center"] { left: 50%; top: auto; bottom: 11vh; width: min(620px, 80vw); transform: translateX(-50%); text-align: center; }
.ec-ss-stop.is-active { visibility: visible; pointer-events: auto; transition-delay: 0s; }

.ec-ss-stop > * {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.55s var(--ec-ease), transform 0.8s var(--ec-ease);
}

.ec-ss-stop.is-past > * { transform: translate3d(0, -28px, 0); }

.ec-ss-stop.is-active > * { opacity: 1; transform: none; transition-duration: 0.9s, 1.1s; }
.ec-ss-stop.is-active > :nth-child(1) { transition-delay: 0.16s; }
.ec-ss-stop.is-active > :nth-child(2) { transition-delay: 0.24s; }
.ec-ss-stop.is-active > :nth-child(3) { transition-delay: 0.32s; }
.ec-ss-stop.is-active > :nth-child(4) { transition-delay: 0.4s; }
.ec-ss-stop.is-active > :nth-child(5) { transition-delay: 0.48s; }

.ec-ss-index { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: var(--ec-gold); }
.ec-ss-index::after { content: ""; width: 42px; height: 1px; background: currentColor; opacity: 0.6; }
.ec-ss-stop[data-pos="center"] .ec-ss-index { justify-content: center; }
.ec-ss-stop[data-pos="center"] .ec-ss-index::before { content: ""; width: 42px; height: 1px; background: currentColor; opacity: 0.6; }

.ec-ss-title {
    margin: 0 0 22px;
    font-family: var(--ec-display);
    font-weight: 300;
    font-size: clamp(38px, 4.6vw, 76px);
    line-height: 1;
    letter-spacing: -0.015em;
    color: inherit;
}

.ec-ss-title em { font-style: italic; color: var(--ec-gold); }
/* atténuation par la couleur, pas par l'opacité : celle-ci sert à l'apparition des étapes */
.ec-ss-text { margin: 0 0 30px; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, currentColor 74%, transparent); max-width: 38ch; }
.ec-ss-stop[data-pos="center"] .ec-ss-text { margin-inline: auto; }
.ec-ss-meta { display: flex; gap: 34px; margin: 0 0 30px; padding: 18px 0 0; border-top: 1px solid var(--ec-line); }
.ec-ss-meta div { display: flex; flex-direction: column; gap: 4px; }
.ec-ss-meta b { font-family: var(--ec-display); font-weight: 400; font-size: 26px; line-height: 1; }
.ec-ss-meta span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; }

/* rail de progression */
.ec-ss-rail {
    position: absolute;
    right: var(--ec-gutter);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.ec-ss-count { font-size: 10px; letter-spacing: 0.2em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.ec-ss-count b { font-weight: 400; }
.ec-ss-bar { position: relative; width: 1px; height: 96px; background: var(--ec-line); }
.ec-ss-bar i { position: absolute; inset: 0; background: currentColor; transform-origin: 50% 0; transform: scaleY(0); }
.ec-ss-dots { display: flex; flex-direction: column; gap: 4px; }

.ec-ss-dot {
    appearance: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.ec-ss-dot::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.28;
    transition: transform 0.5s var(--ec-ease), opacity 0.5s;
}

.ec-ss-dot.is-active::before { opacity: 1; transform: scale(1.9); }

.ec-ss-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: calc(1 - var(--ec-p) * 14);
    pointer-events: none;
}

.ec-ss-hint i { width: 1px; height: 34px; background: currentColor; transform-origin: 50% 0; animation: ec-hint 2.2s var(--ec-ease-io) infinite; }
@keyframes ec-hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* portrait / mobile : la pierre en haut, le texte en bas */
.ec-ss--portrait .ec-ss-stop,
.ec-ss--portrait .ec-ss-stop[data-pos="right"],
.ec-ss--portrait .ec-ss-stop[data-pos="center"] {
    top: auto;
    bottom: 9vh;
    left: var(--ec-gutter);
    right: var(--ec-gutter);
    width: auto;
    transform: none;
    text-align: left;
}

.ec-ss--portrait .ec-ss-title { font-size: clamp(34px, 9vw, 52px); margin-bottom: 14px; }
.ec-ss--portrait .ec-ss-index { margin-bottom: 16px; }
.ec-ss--portrait .ec-ss-text { font-size: 15px; margin-bottom: 20px; }
.ec-ss--portrait .ec-ss-meta { display: none; }
.ec-ss--portrait .ec-ss-rail { top: 26%; right: 14px; }
.ec-ss--portrait .ec-ss-bar { height: 56px; }
.ec-ss--portrait .ec-ss-hint { display: none; }
.ec-ss--portrait[data-media="gem"] .ec-ss-stage::before { inset: -20% -10% 20%; }

/* sans JavaScript ou sans WebGL : les étapes s'empilent simplement */
html:not(.ec-js) .ec-ss-stage { position: static; height: auto; }
html:not(.ec-js) .ec-ss-stops { position: static; display: grid; gap: 80px; padding: 120px var(--ec-gutter); }
html:not(.ec-js) .ec-ss-stop { position: static; visibility: visible; transform: none; width: auto; }
html:not(.ec-js) .ec-ss-stop > * { opacity: 1; transform: none; }
html:not(.ec-js) .ec-ss-media, html:not(.ec-js) .ec-ss-rail, html:not(.ec-js) .ec-ss-hint { display: none; }

/* ==========================================================================
   Pierre autonome
   ========================================================================== */

.ec-gem { position: relative; aspect-ratio: 1; width: 100%; }
.ec-gem canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ec-ease); }
.ec-gem.is-ready canvas { opacity: 1; }
.ec-gem::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), transparent); pointer-events: none; }
.ec-gem--dark::before { background: radial-gradient(closest-side, rgba(169, 138, 86, 0.24), transparent); }

/* ==========================================================================
   Galerie horizontale
   ========================================================================== */

.ec-hs { position: relative; }

.ec-hs-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 4vh, 56px);
    overflow: hidden;
}

.ec-hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--ec-gutter); }
.ec-hs-title { margin: 0; font-family: var(--ec-display); font-weight: 300; font-size: clamp(34px, 4.2vw, 68px); line-height: 1; }
.ec-hs-title em { font-style: italic; color: var(--ec-gold); }
.ec-hs-track { display: flex; gap: clamp(16px, 2.2vw, 36px); padding: 0 var(--ec-gutter); width: max-content; will-change: transform; }

.ec-hs-item {
    position: relative;
    flex: none;
    width: clamp(240px, 27vw, 430px);
    color: inherit !important;
    text-decoration: none !important;
}

.ec-hs-item:nth-child(even) { margin-top: clamp(20px, 5vh, 64px); }

.ec-hs-figure { position: relative; overflow: hidden; aspect-ratio: var(--ec-hs-ratio, 3 / 4); background: rgba(16, 15, 13, 0.05); }
.ec-hs-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ec-ease); }
.ec-hs-item:hover .ec-hs-figure img { transform: scale(1); }
.ec-hs-figure .ec-gem { position: absolute; inset: 8%; width: auto; }
.ec-hs-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.ec-hs-name { margin: 0; font-family: var(--ec-display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.ec-hs-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.62; white-space: nowrap; }
.ec-hs-num { position: absolute; top: 14px; left: 16px; z-index: 1; font-size: 10px; letter-spacing: 0.2em; }
.ec-hs-bar { margin: 0 var(--ec-gutter); height: 1px; background: var(--ec-line); }
.ec-hs-bar i { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }

.ec-hs--native { height: auto !important; }
.ec-hs--native .ec-hs-stage { position: static; height: auto; padding: 72px 0; overflow: visible; }
.ec-hs--native .ec-hs-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ec-hs--native .ec-hs-track::-webkit-scrollbar { display: none; }
.ec-hs--native .ec-hs-item { scroll-snap-align: center; width: 72vw; max-width: 380px; margin-top: 0 !important; }
.ec-hs--native .ec-hs-bar { display: none; }

/* ==========================================================================
   Texte révélé
   ========================================================================== */

.ec-reveal {
    font-family: var(--ec-display);
    font-weight: 300;
    font-size: clamp(30px, 4.4vw, 72px);
    line-height: 1.12;
    letter-spacing: -0.012em;
    margin: 0;
}

.ec-reveal--medium { font-size: clamp(24px, 3vw, 46px); line-height: 1.2; }
.ec-reveal--large { font-size: clamp(38px, 6vw, 104px); line-height: 1.04; }
.ec-reveal.is-split .ec-w { opacity: 0.16; will-change: opacity; }

/* ==========================================================================
   Bandeau défilant
   ========================================================================== */

.ec-marquee { overflow: hidden; white-space: nowrap; padding: 26px 0; border-block: 1px solid var(--ec-line); }
.ec-marquee--plain { border: 0; }
.ec-marquee-track { display: inline-flex; align-items: center; will-change: transform; }
.ec-marquee-item { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--ec-display); font-weight: 300; font-style: italic; font-size: clamp(26px, 3.4vw, 54px); line-height: 1; }
.ec-marquee-item::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ec-gold); flex: none; }
.ec-marquee--small .ec-marquee-item { font-family: inherit; font-style: normal; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; gap: 28px; padding-right: 28px; }
.ec-marquee--small .ec-marquee-item::after { width: 4px; height: 4px; }
.ec-marquee--outline .ec-marquee-item { font-style: normal; font-size: clamp(60px, 11vw, 190px); -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px currentColor; }

/* ==========================================================================
   Apparitions — classes libres, à poser dans « Avancé › Classe CSS » de tout élément YOOtheme
   ========================================================================== */

/* le masque est porté par l'enfant : un élément entièrement masqué ne serait jamais « vu » par l'observateur */
.ec-wipe { overflow: hidden; }
/* <picture> est en ligne par défaut : sa boîte ne fait qu'une ligne et rognerait l'image */
.ec-wipe > picture { display: block; }
.ec-js .ec-wipe > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ec-ease-io); }
.ec-js .ec-wipe img, .ec-js .ec-wipe video { transform: scale(1.18); transition: transform 2s var(--ec-ease), clip-path 1.5s var(--ec-ease-io); }
.ec-js .ec-wipe.is-inview > * { clip-path: inset(0); }
.ec-js .ec-wipe.is-inview img, .ec-js .ec-wipe.is-inview video { transform: none; }

.ec-js .ec-rise { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ec-ease), transform 1.3s var(--ec-ease); }
.ec-js .ec-rise.is-inview { opacity: 1; transform: none; }

.ec-js .ec-stagger > * { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.9s var(--ec-ease), transform 1.2s var(--ec-ease); transition-delay: calc(var(--ec-i, 0) * 90ms); }
.ec-js .ec-stagger.is-inview > * { opacity: 1; transform: none; }

.ec-js .ec-stagger-grid .el-item { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.9s var(--ec-ease), transform 1.2s var(--ec-ease); transition-delay: calc(var(--ec-i, 0) * 90ms); }
.ec-js .ec-stagger-grid.is-inview .el-item { opacity: 1; transform: none; }

/* chiffres clés */
.ec-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 28px; border-top: 1px solid var(--ec-line); }
.uk-light .ec-stats { border-top-color: rgba(255, 255, 255, 0.2); }
.ec-stats b { display: block; font-family: var(--ec-display); font-weight: 300; font-size: clamp(38px, 4vw, 64px); line-height: 1; }
.ec-stats > div > span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; }

.ec-wordmark { letter-spacing: 0.34em; text-transform: uppercase; }

.ec-line { position: relative; }
.ec-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: 0.2; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ec-ease-io); }
.ec-line.is-inview::after { transform: scaleX(1); }

.ec-zoom { overflow: hidden; }
.ec-zoom img { transition: transform 1.6s var(--ec-ease); }
.ec-zoom:hover img { transform: scale(1.05); }

.ec-magnetic { display: inline-block; transition: transform 0.5s var(--ec-ease); will-change: transform; }

/* bouton rond « Découvrir » */
.ec-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: inherit !important;
    text-decoration: none !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ec-round::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform 0.7s var(--ec-ease); z-index: -1; }
.ec-round:hover::before { transform: scale(1); }
.ec-round span { mix-blend-mode: difference; color: #fff; }

/* ==========================================================================
   Curseur, intro, en-tête
   ========================================================================== */

.ec-cursor-el { position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none; mix-blend-mode: difference; color: #fff; transition: opacity 0.3s; }
.ec-cursor-el.is-out { opacity: 0; }
.ec-cursor-el i { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: currentColor; transition: transform 0.45s var(--ec-ease); }
.ec-cursor-el.is-link i { transform: scale(3.6); opacity: 0.9; }
.ec-cursor-el.is-label i { transform: scale(9); }
.ec-cursor-el span { position: absolute; transform: translate(-50%, -50%); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.ec-cursor-el.is-label span { opacity: 1; }

.ec-intro-el { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; background: var(--ec-ink); color: var(--ec-paper); transition: transform 1.1s var(--ec-ease-io); }
.ec-intro-el span { font-family: var(--ec-display); font-weight: 300; font-size: clamp(30px, 5vw, 70px); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ec-ease), transform 1.1s var(--ec-ease), letter-spacing 1.6s var(--ec-ease); }
.ec-intro-el i { position: absolute; left: 50%; bottom: 18vh; width: 140px; height: 1px; margin-left: -70px; background: currentColor; transform: scaleX(0); transition: transform 1.3s var(--ec-ease-io); }
.ec-intro-el.is-in span { opacity: 1; transform: none; letter-spacing: 0.18em; }
.ec-intro-el.is-in i { transform: scaleX(1); }
.ec-intro-el.is-out { transform: translateY(-100%); }

.ec-header-auto .tm-header .uk-sticky,
.ec-header-auto .tm-header-mobile .uk-sticky { transition: transform 0.6s var(--ec-ease); }
.ec-header-hidden .ec-header-auto .tm-header .uk-sticky.uk-active,
.ec-header-hidden .ec-header-auto .tm-header-mobile .uk-sticky.uk-active { transform: translateY(-110%); }

/* ==========================================================================
   Galerie produit — images empilées dévoilées au scroll, loupe de joaillier
   ========================================================================== */

.ec-pg { position: relative; --ec-pg-top: 100px; }

.ec-pg-stage {
    position: sticky;
    top: var(--ec-pg-top);
    height: calc(100vh - var(--ec-pg-top) - 32px);
    height: calc(100svh - var(--ec-pg-top) - 32px);
    min-height: 420px;
    overflow: hidden;
    background: rgba(16, 15, 13, 0.045);
}

.ec-pg-frames { position: absolute; inset: 0; }

.ec-pg-frame {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    --t: 1;   /* 0 → 1 : l'image arrive */
    --o: 0;   /* 0 → 1 : la suivante la recouvre */
}
.ec-pg-frame:not(:first-child) { --t: 0; }

.ec-pg-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: translate3d(0, calc(var(--o) * -6%), 0) scale(calc(1 + (1 - var(--t)) * 0.2));
    will-change: transform;
}
.ec-pg-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0c0b0a;
    transform: translate3d(0, calc(var(--o) * -6%), 0) scale(calc(1 + (1 - var(--t)) * 0.2));
}
.ec-pg--contain .ec-pg-frame img, .ec-pg--contain .ec-pg-frame video { object-fit: contain; }
.ec-pg-thumb--video { position: relative; background: #0c0b0a !important; }
.ec-pg-thumb--video span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(12, 11, 10, 0.28); }

/* voile sur l'image qui s'en va */
.ec-pg-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #0c0b0a;
    opacity: calc(var(--o) * 0.4);
    pointer-events: none;
}

.ec-pg[data-effect="rideau"] .ec-pg-frame { clip-path: inset(calc((1 - var(--t)) * 100%) 0 0 0); }
.ec-pg[data-effect="iris"] .ec-pg-frame { clip-path: circle(calc(var(--t) * 75%) at 50% 50%); }
.ec-pg[data-effect="fondu"] .ec-pg-frame { opacity: var(--t); }

.ec-pg-count {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #fff;
    background: rgba(12, 11, 10, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.ec-pg-count b { font-family: var(--ec-display); font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1; }

.ec-pg-bar {
    position: absolute;
    top: 22px;
    bottom: 22px;
    right: 14px;
    z-index: 3;
    width: 1px;
    background: rgba(16, 15, 13, 0.16);
}
.ec-pg-bar i { position: absolute; inset: 0; background: var(--ec-gold); transform: scaleY(0); transform-origin: 50% 0; }

.ec-pg-thumbs { position: absolute; right: 30px; bottom: 20px; z-index: 4; display: flex; gap: 8px; }
.ec-pg-thumb {
    width: 46px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(16, 15, 13, 0.22);
    background: var(--ec-paper);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.62;
    transition: opacity 0.4s, border-color 0.4s, transform 0.5s var(--ec-ease);
}
.ec-pg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-pg-thumb:hover, .ec-pg-thumb:focus-visible { opacity: 1; }
.ec-pg-thumb.is-active { opacity: 1; border-color: var(--ec-gold); transform: translateY(-6px); }

.ec-pg-lens {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px var(--ec-gold), 0 24px 60px rgba(12, 11, 10, 0.35);
    background-color: var(--ec-paper);
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    scale: 0.6;
    transition: opacity 0.35s, scale 0.5s var(--ec-ease);
}
.ec-pg.is-loupe:not(.is-moving) .ec-pg-lens { opacity: 1; scale: 1; }
.ec-pg.is-loupe .ec-pg-frames { cursor: none; }
html.ec-lens-on .ec-cursor-el { opacity: 0; }

/* mobile : bande horizontale glissée au doigt */
@media (max-width: 959px) {
    .ec-pg { height: auto !important; }
    .ec-pg-stage { position: relative; top: auto; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
    .ec-pg-frames { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .ec-pg-frames::-webkit-scrollbar { display: none; }
    .ec-pg .ec-pg-frame { position: relative; inset: auto; flex: 0 0 100%; height: 100%; scroll-snap-align: center; clip-path: none !important; opacity: 1 !important; }
    .ec-pg-frame img, .ec-pg-frame video { transform: none; }
    .ec-pg-frame::after, .ec-pg-bar, .ec-pg-lens { display: none; }
    .ec-pg-thumbs { right: 16px; bottom: 16px; gap: 6px; }
    .ec-pg-thumb { width: 34px; height: 44px; }
    .ec-pg-count { left: 16px; bottom: 16px; }
}

/* sans JavaScript : les images se suivent simplement */
html:not(.ec-js) .ec-pg-stage { position: static; height: auto; min-height: 0; aspect-ratio: auto; overflow: visible; background: none; }
html:not(.ec-js) .ec-pg-frames { position: static; display: grid; gap: 16px; overflow: visible; }
html:not(.ec-js) .ec-pg .ec-pg-frame { position: static; clip-path: none !important; opacity: 1 !important; }
html:not(.ec-js) .ec-pg-frame img, html:not(.ec-js) .ec-pg-frame video { height: auto; transform: none; }
html:not(.ec-js) .ec-pg-count, html:not(.ec-js) .ec-pg-bar, html:not(.ec-js) .ec-pg-thumbs, html:not(.ec-js) .ec-pg-lens, html:not(.ec-js) .ec-pg-frame::after { display: none; }

/* ==========================================================================
   Tunnel de commande WooCommerce : panier, commande, confirmation, compte
   ========================================================================== */

/* fil d'étapes */
.ec-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.ec-steps li { display: flex; align-items: center; gap: 12px; opacity: 0.42; transition: opacity 0.4s; }
.ec-steps li + li::before { content: ""; width: clamp(24px, 6vw, 90px); height: 1px; margin-right: 10px; background: currentColor; opacity: 0.5; }
.ec-steps span { font-family: var(--ec-display); font-size: 20px; letter-spacing: 0; color: var(--ec-gold); }
.ec-steps a { display: inherit; align-items: inherit; gap: inherit; color: inherit; text-decoration: none; }
.ec-steps .is-active, .ec-steps .is-done { opacity: 1; }
.ec-steps .is-done a:hover { color: var(--ec-gold); }
/* la confirmation s'affiche sur la page de commande : on avance le fil */
.woocommerce-order-received .ec-steps li { opacity: 1; }
.woocommerce-order-received .ec-steps li:last-child { color: var(--ec-gold); }

/* champs : une simple ligne, qui se dore au focus */
.ec-shop .woocommerce .input-text,
.ec-shop .woocommerce select,
.ec-shop .woocommerce .select2-container .select2-selection--single {
    width: 100%;
    height: 50px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid var(--ec-line);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 16px;
    transition: border-color 0.4s;
}
.ec-shop .woocommerce textarea.input-text { height: 120px; padding: 12px 2px; resize: vertical; }
.ec-shop .woocommerce .input-text:focus, .ec-shop .woocommerce select:focus { outline: 0; border-bottom-color: var(--ec-gold); }
.ec-shop .form-row { margin: 0 0 26px; }
.ec-shop .form-row label { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.ec-shop .form-row label.checkbox,
.ec-shop .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.ec-shop .form-row .required { color: var(--ec-gold); text-decoration: none; }
.ec-shop .woocommerce-invalid .input-text { border-bottom-color: #a6402c; }
.ec-shop .password-input { display: block; position: relative; }

.ec-shop h2, .ec-shop h3 { font-family: var(--ec-display); font-weight: 300; }
.ec-shop .woocommerce h3, .ec-shop .woocommerce h2 { margin-bottom: 28px; font-size: clamp(24px, 2.2vw, 32px); }

/* tableaux */
.ec-shop table.shop_table { border: 0; border-collapse: collapse; width: 100%; }
.ec-shop table.shop_table th { font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
.ec-shop table.shop_table th, .ec-shop table.shop_table td { padding: 20px 0; border: 0; border-bottom: 1px solid var(--ec-line); }
.ec-shop table.cart .product-thumbnail { width: 132px; }
.ec-shop table.cart .product-thumbnail img { width: 104px; height: 130px; max-width: none; object-fit: cover; }
.ec-shop table.cart .product-name a { font-family: var(--ec-display); font-size: 26px; color: inherit; text-decoration: none; }
.ec-shop table.cart .product-name a:hover { color: var(--ec-gold); }
.ec-shop table.cart .product-remove { width: 40px; }
.ec-shop table.cart .product-remove a { font-size: 22px; font-weight: 300; color: inherit; text-decoration: none; opacity: 0.5; transition: opacity 0.3s, color 0.3s; }
.ec-shop table.cart .product-remove a:hover { opacity: 1; color: var(--ec-gold); background: none; }
.ec-shop table.cart td.actions { padding-top: 26px; border-bottom: 0; }
.ec-shop table.cart .coupon .input-text { width: 220px; margin-right: 12px; }

/* récapitulatifs : un cartouche, qui suit le scroll sur grand écran */
.ec-shop .cart_totals,
.ec-shop .woocommerce-checkout-review-order,
.ec-shop .woocommerce-order-details,
.ec-shop .woocommerce-customer-details {
    padding: clamp(24px, 3vw, 44px);
    border: 1px solid var(--ec-line);
    background: rgba(255, 255, 255, 0.5);
}
.ec-shop .cart_totals h2 { margin-top: 0; }
.ec-shop .order-total th, .ec-shop .order-total td { border-bottom: 0; }
.ec-shop .order-total .amount { font-family: var(--ec-display); font-size: 30px; font-weight: 400; }
.ec-shop .wc-proceed-to-checkout { padding: 20px 0 0; }
.ec-shop .wc-proceed-to-checkout .checkout-button,
.ec-shop #place_order { display: block; width: 100%; margin: 0; }

@media (min-width: 960px) {
    .ec-shop form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 110px); align-items: start; }
    .ec-shop form.checkout > * { grid-column: 1; float: none; width: auto; }
    .ec-shop form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
    .ec-shop form.checkout > #order_review { grid-column: 2; grid-row: 2 / span 20; position: sticky; top: 110px; }
    .ec-shop form.checkout > #customer_details { grid-row: 1 / span 2; float: none; width: auto; }
    .ec-shop form.checkout > #order_review, .ec-shop form.checkout > #order_review_heading { float: none; width: auto; }
    .ec-shop form.checkout .col2-set { display: block; margin: 0; }
    .ec-shop form.checkout .col2-set > * { float: none; width: 100%; max-width: none; padding: 0; margin: 0; }
    .ec-shop form.checkout .form-row-first, .ec-shop form.checkout .form-row-last { float: left; width: calc(50% - 16px); }
    .ec-shop form.checkout .form-row-last { float: right; }
    .ec-shop form.checkout .form-row-wide, .ec-shop form.checkout .woocommerce-additional-fields { clear: both; }
    .ec-shop .cart-collaterals .cart_totals { position: sticky; top: 110px; }
}

/* paiement */
.ec-shop #payment { margin-top: 24px; background: none; }
.ec-shop #payment ul.payment_methods { margin: 0 0 20px; padding: 0; list-style: none; border: 0; }
.ec-shop #payment ul.payment_methods > li { padding: 16px 0; border-bottom: 1px solid var(--ec-line); }
.ec-shop #payment ul.payment_methods label { font-family: var(--ec-display); font-size: 21px; }
.ec-shop #payment .payment_box { margin: 10px 0 0; padding: 0; background: none; font-size: 14px; opacity: 0.75; }
.ec-shop #payment .payment_box::before { display: none; }
.ec-shop .woocommerce-privacy-policy-text { font-size: 13px; opacity: 0.7; }

/* messages */
.ec-shop .woocommerce-message, .ec-shop .woocommerce-info, .ec-shop .woocommerce-error {
    margin: 0 0 36px;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid var(--ec-gold);
    border-bottom: 1px solid var(--ec-line);
    background: none;
    list-style: none;
}
.ec-shop .woocommerce-error { border-top-color: #a6402c; }

/* panier vide */
.ec-shop .cart-empty { padding: 30px 0 10px; border: 0; background: none; font-family: var(--ec-display); font-size: clamp(28px, 3vw, 44px); font-weight: 300; }
.ec-shop .wc-empty-cart-message + .return-to-shop, .ec-shop .return-to-shop { margin-top: 20px; }

/* confirmation de commande */
.ec-shop .woocommerce-thankyou-order-received { margin: 0 0 40px; font-family: var(--ec-display); font-size: clamp(30px, 3.4vw, 52px); font-weight: 300; line-height: 1.1; }
.ec-shop ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 28px clamp(28px, 5vw, 80px); margin: 0 0 50px; padding: 28px 0; list-style: none; border-top: 1px solid var(--ec-gold); border-bottom: 1px solid var(--ec-line); }
.ec-shop ul.woocommerce-order-overview { border-left: 0; border-right: 0; }
/* sur la confirmation, le message de remerciement tient lieu de titre */
.woocommerce-order-received .ec-shop h1, .woocommerce-order-received .ec-shop .ec-label { display: none; }
.ec-shop #place_order { margin-top: 22px; }
.ec-shop ul.woocommerce-order-overview li { margin: 0; padding: 0; border: 0; float: none; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.ec-shop ul.woocommerce-order-overview li strong { display: block; margin-top: 8px; font-family: var(--ec-display); font-size: 24px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ec-shop .woocommerce-order-details, .ec-shop .woocommerce-customer-details { margin-top: 36px; }
.ec-shop .woocommerce-bacs-bank-details { margin: 0 0 36px; }
.ec-shop address { font-style: normal; line-height: 1.8; }

/* compte client */
.ec-shop .woocommerce-form-login, .ec-shop .woocommerce-form-register, .ec-shop .woocommerce-ResetPassword { max-width: 520px; padding: 0; border: 0; }
.ec-shop .woocommerce-MyAccount-navigation ul { margin: 0 0 40px; padding: 0; list-style: none; }
.ec-shop .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ec-line); }
.ec-shop .woocommerce-MyAccount-navigation a { display: block; padding: 14px 0; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: inherit; text-decoration: none; transition: color 0.3s, padding 0.5s var(--ec-ease); }
.ec-shop .woocommerce-MyAccount-navigation a:hover, .ec-shop .woocommerce-MyAccount-navigation .is-active a { color: var(--ec-gold); padding-left: 12px; }
@media (min-width: 960px) {
    .ec-shop .woocommerce-MyAccount-navigation { float: left; width: 24%; }
    .ec-shop .woocommerce-MyAccount-content { float: right; width: 68%; }
    .ec-shop .woocommerce::after { content: ""; display: table; clear: both; }
}

/* mobile : chaque ligne du panier devient une petite fiche */
@media (max-width: 767px) {
    .ec-shop table.cart thead { display: none; }
    .ec-shop table.cart, .ec-shop table.cart tbody { display: block; }
    .ec-shop table.cart tr.cart_item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 6px 18px; padding: 22px 0; border-bottom: 1px solid var(--ec-line); }
    .ec-shop table.cart tr.cart_item td { display: block; padding: 0; border: 0; text-align: left; }
    .ec-shop table.cart tr.cart_item td::before { display: none; }
    .ec-shop table.cart tr.cart_item .product-thumbnail { grid-row: 1 / span 4; width: auto; }
    .ec-shop table.cart tr.cart_item .product-thumbnail img { width: 96px; height: 120px; }
    .ec-shop table.cart tr.cart_item .product-remove { position: absolute; top: 14px; right: 0; width: auto; }
    .ec-shop table.cart tr.cart_item .product-name { padding-right: 28px !important; }
    .ec-shop table.cart tr.cart_item .product-quantity:has(input[type="hidden"]) { display: none; }
    .ec-shop table.cart tr.cart_item .product-subtotal { font-family: var(--ec-display); font-size: 22px; }
    .ec-shop table.cart tr:not(.cart_item) { display: block; }
    .ec-shop table.cart td.actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; padding: 22px 0 0; box-sizing: border-box; }
    .ec-shop table.cart .coupon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ec-shop table.cart .coupon .input-text, .ec-shop table.cart td.actions .button, .ec-shop table.cart td.actions button { width: 100%; max-width: none; margin: 0; white-space: normal; text-align: center; }
    .ec-shop table.cart tr.cart_item .product-price { display: none; }
}

/* bouton « afficher le mot de passe » et messages empilés */
.ec-shop .show-password-input { position: absolute; top: 50%; right: 4px; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; background: none; box-shadow: none; opacity: 0.55; cursor: pointer; }
.ec-shop .show-password-input:hover { opacity: 1; }
.ec-shop .woocommerce-message + .woocommerce-message, .ec-shop .woocommerce-message + .woocommerce-info, .ec-shop .woocommerce-info + .woocommerce-info { margin-top: -36px; border-top: 0; }

@media (max-width: 639px) {
    .ec-shop table.cart .product-thumbnail { display: block; width: auto; }
    .ec-shop table.cart .coupon .input-text { width: 100%; margin: 0 0 12px; }
}

/* ==========================================================================
   Journal, pages légales, page 404
   ========================================================================== */

.ec-article { font-size: 18px; line-height: 1.85; }
.ec-article p { margin: 0 0 1.5em; }
.ec-article.uk-dropcap::first-letter, .ec-article.uk-dropcap > p:first-child::first-letter { font-family: var(--ec-display); font-weight: 300; color: var(--ec-gold); }
.ec-article blockquote { margin: 2.2em 0; padding: 0 0 0 28px; border-left: 1px solid var(--ec-gold); font-family: var(--ec-display); font-size: clamp(26px, 2.6vw, 38px); font-style: italic; font-weight: 300; line-height: 1.25; color: inherit; }
.ec-article blockquote p { margin: 0; }
.ec-post-cover img { width: 100%; max-height: 78vh; object-fit: cover; }
.ec-journal-card .el-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ec-journal-card .el-title a { color: inherit; text-decoration: none; }

.ec-legal h2 { display: flex; align-items: baseline; gap: 18px; margin: 0 0 14px; padding-top: 30px; border-top: 1px solid var(--ec-line); font-family: var(--ec-display); font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; }
.ec-legal h2:first-child { padding-top: 0; border-top: 0; }
.ec-legal h2 span { font-size: 15px; color: var(--ec-gold); }
.ec-legal p { margin: 0 0 34px; max-width: 62ch; line-height: 1.8; }
.ec-legal-links a { color: inherit; text-decoration: none; }
.ec-legal-links a:hover { color: var(--ec-gold); }

.ec-404 .ec-gem { max-width: 360px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
    .ec-ss-stop > *, .ec-ss-media, .ec-ss-image, .ec-ss-image img { transition-duration: 0.01s !important; }
    .ec-ss-hint i { animation: none; }
}
