/* ELISSA — système (aligné atelier v2.8.24)
   4 rôles : chaux / encre / mer / or. Pas de 2ᵉ bleu UI. */

:root {
  --e-chalk: #fff8f0;
  --e-plaster: #fff8f0;
  --e-paper: #f2e6d6;
  --e-sand: #ebe0d0;
  --e-ciel: #ebe0d0;
  --e-ciel-soft: #ebe0d0;
  --e-rose: #f2e6d6;
  --e-rose-soft: #f2e6d6;
  --e-sea: #1e5a78;
  --e-sea-deep: #164860;
  --e-ink: #1a2228;
  --e-night: #1e5a78;
  --e-punic: #1e5a78;
  --e-ochre: #9a7324;
  --e-terra: #c4884a;
  --e-brass: #9a7324;
  --e-brass-soft: #b8923e;
  --e-amber: #9a7324;
  --e-peach: #f2e6d6;
  --e-dusk: #5c6a74;
  --e-text-dark: rgba(26, 34, 40, 0.64);
  --e-text-light: rgba(255, 254, 249, 0.92);
  --e-rule-dark: rgba(26, 34, 40, 0.12);
  --e-rule-light: rgba(255, 254, 249, 0.18);
  --e-wrap: 1200px;
  --wrap: var(--e-wrap);
  --e-arch: 0;
  --e-plinth: 9px;
  --e-plinth-src: 48px;
  --e-bay: #f2e6d6;
  --e-mat: #1e5a78;
  --e-mat-soft: #1e5a78;
  --e-pack-ratio: 3 / 4;
  --e-pack-pos: center 22%;
  --e-pack-fit: cover;
  --e-pack-bg: transparent;
  --e-pack-pad: 0;
  --e-cut-shadow: drop-shadow(0 16px 32px rgba(26, 34, 40, 0.16));
  --e-img-max-h: 90vh;
  --e-frieze: url("../img/mosaic/frieze-sidi-v2.jpg");
  --e-frieze-meander: url("../svg/mosaic-frieze-meander.svg");
  --e-frieze-sidi: url("../svg/mosaic-frieze-sidi.svg");
  --e-frieze-tile: url("../img/mosaic/frieze-sidi-v2.jpg");
  --e-field: none;
  --e-field-hex: none;
  --e-field-ruin: none;
  --e-checker: url("../img/mosaic/checker.jpg");
  --e-checker-bold: url("../img/mosaic/checker.jpg");
  --elissa-pattern: none;

  --e-ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --e-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --e-dur: 0.9s;
  --e-dur-slow: 1.35s;
  --e-dur-fast: 0.18s;
  --e-dur-ui: 0.28s;
  --e-dur-panel: 0.45s;
  --e-dur-reveal: 0.85s;
  --e-dur-hover: 0.28s;

  --elissa-ink: #1a2228;
  --elissa-night: #1e5a78;
  --elissa-plaster: #fff8f0;
  --elissa-stone: #fffef9;
  --elissa-sand: #ebe0d0;
  --elissa-brass: #9a7324;
  --elissa-amber: #9a7324;
  --elissa-saffron: #9a7324;
  --elissa-brass-soft: rgba(154, 115, 36, 0.45);
  --elissa-sea: #1e5a78;
  --elissa-muted: #5c6a74;
  --elissa-ink-soft: rgba(26, 34, 40, 0.64);
}

.nav-overlay {
  background: var(--e-chalk);
}

.nav-overlay__pattern {
  opacity: 0.2;
  background-image: var(--e-field-ruin);
  background-size: 72px;
}

.site-header__rail {
  background: var(--e-sea);
}

/* ——— Mosaïque (doctrine v1.8) ———
   Jamais en bande « flottante » entre deux blocs.
   OK : fond de module (faible opacité), cadre d’arche (damier),
   emblema (pavement autour du panneau), bordure intrinsèque d’un composant
   (carte cadeau, footer). Familles : sidi / hex / ruine / damier. */

/* Legacy : classes encore référencées nulle part en PHP — neutralisées */
.e-frieze {
  display: none;
}

.e-section--mosaic-top::before,
.e-section--mosaic-bottom::after {
  content: none !important;
  display: none !important;
}

/* Fond tesselles = matière du module, pas décor posé dessus */
.e-section--field {
  position: relative;
  isolation: isolate;
}

.e-section--field::before {
  content: none;
  display: none;
}

.e-section--field > * {
  position: relative;
  z-index: 1;
}

.e-section--sea {
  background: var(--e-sea);
  color: var(--e-chalk);
}

.e-section--sea .e-eyebrow {
  color: var(--e-brass-soft);
}

.e-section--sea .e-title,
.e-section--sea .e-text {
  color: var(--e-chalk);
}

/* ——— Base claire (remplace le fond sombre + motif de main.css) ——— */
body.elissa-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--e-plaster);
  color: var(--e-ink);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* ——— Loader ——— */
html.e-loading,
html.e-loading body {
  overflow: hidden;
}

.e-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--e-chalk);
  transition: opacity 0.28s var(--e-ease-out), visibility 0.28s linear;
}

.e-loader[hidden] {
  display: none;
}

.e-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.e-loader__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(127, 169, 194, 0.14), transparent 70%),
    var(--e-chalk);
}

.e-loader__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  /* pas d’anim d’entrée — évite opacity 0 pendant 1s+ */
  opacity: 1;
}

.e-loader__mark {
  margin: 0 auto 1.1rem;
  color: var(--e-sea);
  opacity: 0.92;
}

.e-loader__brand {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--e-ink);
}

.e-loader__line {
  margin: 0.65rem 0 0;
  font-family: var(--elissa-font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--e-dusk);
}

@keyframes e-loader-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Scroll reveal ———
   data-reveal | data-reveal="up|left|right|scale|fade"
   data-reveal-delay="ms"  ·  data-reveal-stagger sur un parent (enfants directs) */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.6rem, 0);
  transition:
    opacity var(--e-dur-slow) var(--e-ease-out),
    transform var(--e-dur-slow) var(--e-ease-out);
  will-change: opacity, transform;
}

[data-reveal='left'] {
  transform: translate3d(-1.4rem, 0, 0);
}

[data-reveal='right'] {
  transform: translate3d(1.4rem, 0, 0);
}

[data-reveal='scale'] {
  transform: translate3d(0, 0.8rem, 0) scale(0.96);
}

[data-reveal='fade'] {
  transform: none;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* SVG inline : transform nécessite un contexte de boîte */
svg[data-reveal] {
  display: inline-block;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .e-loader,
  .e-loader__inner,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html.e-loading,
  html.e-loading body {
    overflow: auto;
  }
}

body.elissa-body::before,
body.elissa-body::after {
  display: none;
}

a {
  color: var(--e-ink);
  transition: color var(--e-dur-ui, 0.28s) var(--e-ease-ui, var(--e-ease));
}

a:hover {
  color: var(--e-hover, var(--e-ocre, #9a7324));
}

.chapter__eyebrow {
  color: var(--e-amber);
}

.btn--primary {
  background: var(--e-ink);
  color: var(--e-plaster);
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--e-sea);
  color: var(--e-chalk);
  box-shadow: none;
  transform: none;
}

.entry__title {
  color: var(--e-ink);
}

.entry__body {
  color: var(--e-text-dark);
}

/* Footer : rail Sidi + grille brand / nav / © — padding réel, jamais collé aux bords */
.site-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0;
  background: var(--e-night);
  border-top: 0;
  color: var(--e-chalk);
}

.site-footer__rail {
  height: 8px;
  background: var(--e-frieze-sidi) repeat-x left center / auto 8px;
  opacity: 0.9;
}

.site-footer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--e-wrap);
  margin: 0 auto;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) var(--pad) calc(clamp(2rem, 4vw, 2.75rem) + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  grid-template-areas:
    "brand nav"
    "copy copy";
  gap: 1.25rem 2.5rem;
  align-items: center;
  text-align: left;
}

.site-footer__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  color: var(--e-chalk);
}

.site-footer__mark {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.85rem;
  margin: 0;
  color: var(--e-brass-soft);
}

.site-footer__brand-text {
  min-width: 0;
}

.site-footer__name {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--e-chalk);
}

.site-footer__tag {
  margin: 0.2rem 0 0;
  font-family: var(--elissa-font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--e-text-light);
}

.site-footer__nav {
  grid-area: nav;
  justify-self: end;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.35rem;
}

.site-footer__list a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--e-text-light);
}

.site-footer__list a:hover {
  color: var(--e-chalk);
}

.site-footer__copy {
  grid-area: copy;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--e-rule-light);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 238, 0.55);
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "copy";
    gap: 1.35rem;
    text-align: center;
  }

  .site-footer__brand {
    flex-direction: column;
    justify-content: center;
  }

  .site-footer__nav {
    justify-self: stretch;
  }

  .site-footer__list {
    justify-content: center;
  }
}

/* ——— Primitives ——— */
.e-wrap {
  /* largeur + pad : définis une fois dans atelier.css (.e-shell / .e-wrap) */
  width: 100%;
  max-width: var(--e-wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

.e-wrap--narrow {
  max-width: 760px;
  text-align: center;
}

.e-section {
  position: relative;
  padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
}

.e-section--plaster {
  background: var(--e-plaster);
  color: var(--e-ink);
}

.e-section--sand {
  background: var(--e-sand);
  color: var(--e-ink);
}

.e-section--ink {
  background: var(--e-sea);
  color: var(--e-chalk);
}

.e-section--night {
  background: var(--e-night);
  color: var(--e-chalk);
}

.e-eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--elissa-font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--e-amber);
}

.e-section--ink .e-eyebrow,
.e-section--night .e-eyebrow {
  color: var(--e-brass-soft);
}

.e-title {
  margin: 0 0 1.25rem;
  font-family: var(--elissa-font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: inherit;
}

.e-title--xl {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1.02;
}

.e-text {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--e-text-dark);
}

.e-wrap--narrow .e-text {
  margin-left: auto;
  margin-right: auto;
}

.e-section--ink .e-text,
.e-section--night .e-text {
  color: var(--e-text-light);
}

.e-head {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

/* Bouton : aplat encre, pas de dégradé ni d’ombre colorée */
.e-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3rem;
  height: 3rem;
  padding: 0 1.35rem 0 1.5rem;
  font-family: var(--elissa-font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: var(--e-ink);
  color: var(--e-plaster);
  border: 1px solid var(--e-ink);
  transition: background var(--e-dur-hover) var(--e-ease), color var(--e-dur-hover) var(--e-ease), border-color var(--e-dur-hover) var(--e-ease);
}

.e-btn:hover {
  background: var(--e-punic);
  border-color: var(--e-punic);
  color: var(--e-chalk);
}

.e-btn--light {
  background: var(--e-plaster);
  color: var(--e-ink);
  border-color: var(--e-plaster);
}

.e-btn--light:hover {
  background: var(--e-sea);
  color: var(--e-chalk);
  border-color: var(--e-sea);
}

.e-btn--ghost {
  background: transparent;
  color: var(--e-ink);
  border-color: var(--e-rule-dark);
}

.e-btn--ghost:hover {
  background: var(--e-ink);
  color: var(--e-plaster);
  border-color: var(--e-ink);
}

.e-404 {
  min-height: min(70svh, 40rem);
  display: flex;
  align-items: center;
  text-align: center;
}

.e-404 .e-mark {
  margin: 0 auto 1.25rem;
  color: var(--e-punic);
}

.e-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  margin: 2rem 0 0;
}

/* Signe Tanit (remplace l’étoile maghrébine) */
.e-mark,
.e-star {
  display: block;
  width: 1.35rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--e-punic);
}

.e-mark--sm,
.e-star--sm {
  display: inline-block;
  width: 0.65rem;
  height: 0.85rem;
  stroke-width: 1.4;
}

.e-mark--lg,
.e-star--lg {
  width: 2.1rem;
  height: 2.8rem;
  margin: 0 auto 2rem;
}

.e-mark--xl,
.e-star--xl {
  width: 28%;
  height: auto;
  aspect-ratio: 3 / 4;
  stroke-width: 0.7;
}

.e-section--ink .e-mark,
.e-section--sea .e-mark,
.e-section--night .e-mark,
.e-band .e-mark,
.e-section--ink .e-star,
.e-section--sea .e-star,
.e-section--night .e-star,
.e-band .e-star {
  color: var(--e-brass-soft);
}

/* Cadre fenêtre — images produit (baie + linteau mosaïque) */
.e-arch {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--e-arch);
  aspect-ratio: var(--e-pack-ratio);
  background: var(--e-pack-bg);
}

/* Plus de filet laiton sur le flacon — la couleur du jus doit parler. */
.e-arch::after {
  display: none;
}

.e-arch img,
.e-arch__img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: var(--e-pack-fit);
  object-position: var(--e-pack-pos);
  padding: var(--e-pack-pad);
  background: var(--e-pack-bg);
}

/* Scène produit : pierre froide, flacon détouré au centre */
.e-stage {
  background: var(--e-bay) !important;
}

.e-stage--cutout img.e-cutout--stage,
.e-stage--cutout img.e-cutout {
  object-fit: contain;
  object-position: center 58%;
  padding: 0;
  filter: var(--e-cut-shadow);
  background: transparent;
}

.e-stage--pack img.e-reveal__front {
  object-fit: var(--e-pack-fit, cover);
  object-position: var(--e-pack-pos, center 22%);
  padding: 0;
}

.e-section--sea .e-stage,
.e-section--ink .e-stage,
.e-formats .e-stage {
  background: var(--e-mat-soft) !important;
}

.e-section--sea .e-stage--cutout img.e-cutout--stage,
.e-section--sea .e-stage--cutout img.e-cutout,
.e-formats .e-stage--cutout img.e-cutout--stage {
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.45));
}

.e-arch__empty {
  display: grid;
  place-items: center;
  height: 100%;
}

/* ——— Hero ——— */
.home .site-main {
  padding-top: 0;
}

/*
 * Hero niche — architecture Sidi, pas d’orbe.
 * Chaux à gauche, alcôve mer à droite ; plinthe mosaïque sous l’arche.
 */
.e-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--e-ink);
  padding: clamp(6rem, 10vw, 7.5rem) 0 0;
  background: var(--e-chalk);
}

.e-hero--niche {
  --e-alcove-x: 0%;
  min-height: var(--e-img-max-h, 90vh);
}

.e-hero--niche::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46vw, 560px);
  background: linear-gradient(
    165deg,
    #7fa9c2 0%,
    var(--e-sea) 42%,
    #163a52 100%
  );
  transform: translate3d(var(--e-alcove-x), 0, 0);
  pointer-events: none;
  will-change: transform;
}

.e-hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--e-wrap);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(2.25rem, 4.5vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.e-hero__brand {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--e-sea);
}

.e-hero__title {
  margin: 0 0 0.85rem;
  max-width: 11ch;
  font-family: var(--elissa-font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--e-ink);
}

.e-hero__offer {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--e-ochre);
}

.e-hero__line {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--e-text-dark);
}

.e-hero__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.e-hero__price {
  font-family: var(--elissa-font-display);
  font-size: 1.55rem;
  color: var(--e-ink);
}

.e-hero__price del {
  opacity: 0.45;
  font-size: 0.8em;
}

.e-hero__price ins {
  text-decoration: none;
}

.e-hero__meta {
  margin: 1.75rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--e-rule-dark);
  max-width: 30rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--e-text-dark);
}

.e-hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.e-hero__niche {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.1rem, 2.5vw, 1.75rem) 0;
  background: rgba(250, 246, 238, 0.1);
  border: 1px solid rgba(250, 246, 238, 0.22);
  border-bottom: 0;
}

.e-hero__niche .e-arch--hero {
  margin: 0 auto;
  width: 100%;
}

.e-hero__plinth {
  display: block;
  height: 12px;
  margin: 0 calc(clamp(1.1rem, 2.5vw, 1.75rem) * -1);
  background: var(--e-frieze-sidi) repeat-x left center / auto 12px;
}

.e-hero__sun {
  display: none;
}

/*
 * Cadre média — baie (packshot crème) ou matte (lifestyle coloré).
 * Plinthe mosaïque en socle. Jamais de baie chaude sous une image saturée.
 */
.e-arch--hero,
.e-arch--small,
.e-card__media,
.e-formats__media {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--e-arch);
  background: var(--e-bay);
  box-shadow:
    inset 0 1px 0 rgba(250, 246, 238, 0.65),
    0 18px 40px -28px rgba(13, 34, 51, 0.35);
  transition:
    background var(--e-dur-hover) var(--e-ease),
    box-shadow var(--e-dur-slow) var(--e-ease),
    transform var(--e-dur-hover) var(--e-ease);
}

/* Lifestyle / secondaires — matte encre (passe sur mer, nuit, mosaïque) */
.e-arch--hero,
.e-formats__media,
.e-section--sea .e-arch,
.e-section--ink .e-arch,
.e-section--night .e-arch,
.e-section--field .e-formats__media {
  background: var(--e-mat-soft);
  box-shadow:
    inset 0 1px 0 rgba(250, 246, 238, 0.14),
    0 22px 44px -28px rgba(0, 0, 0, 0.55);
}

/* Plinthe — frise Sidi en base (socle, pas linteau) */
.e-arch--hero::after,
.e-arch--small::after,
.e-card__media::after,
.e-formats__media::after {
  content: "";
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: var(--e-plinth);
  border: 0;
  background: var(--e-frieze-sidi) repeat-x left top / auto var(--e-plinth-src);
  pointer-events: none;
}

.e-arch--hero::before,
.e-arch--small::before,
.e-card__media::before,
.e-formats__media::before {
  content: none;
}

.e-arch--hero {
  max-height: var(--e-img-max-h, 90vh);
  aspect-ratio: var(--e-pack-ratio);
  box-shadow:
    inset 0 1px 0 rgba(250, 246, 238, 0.14),
    0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.e-arch--hero img,
.e-arch--small img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  transform: none;
}

/* Petit arch packshot (si utilisé hors lifestyle) garde le crop flacon */
.e-arch--small img.e-arch__img:not(.e-arch__img--hover) {
  object-fit: var(--e-pack-fit);
  object-position: var(--e-pack-pos);
}

/* Header — chaux + encre hors hero home */
.site-header.is-scrolled,
body:not(.home) .site-header {
  background: rgba(251, 249, 245, 0.94);
  border-bottom-color: var(--e-rule-dark);
}

.site-header .elissa-logo,
.site-header .site-nav__list a,
.site-header .header-seal,
.site-header .nav-toggle {
  color: var(--e-ink);
}

.site-header .site-nav__list a:hover {
  color: var(--e-hover, var(--e-ocre, #9a7324));
}

.site-header .site-brand__mark {
  color: var(--e-amber);
}

.site-header .nav-toggle {
  background: transparent;
  border-color: var(--e-rule-dark);
}

.site-header .nav-toggle__x,
.site-header .nav-toggle__x::before {
  background: var(--e-ink);
}

.site-header .nav-toggle__label {
  color: var(--e-ink);
}

.site-header .header-seal__ring {
  box-shadow: none;
}

/* v2.1 — nav toujours encre (plus de chalk sur hero). Voir atelier.css. */

/* ——— Bande formats ——— */
.e-band {
  background: var(--e-sea);
  color: var(--e-chalk);
}

.e-band__inner {
  max-width: var(--e-wrap);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.e-band__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.e-band__link:hover,
.e-band__link.is-active {
  /* Texte reste chaux (AA) ; l’ocre ne sert qu’au filet */
  color: var(--e-chalk);
  border-bottom-color: var(--e-brass);
}

/* ——— Formats (remplace Signature) ——— */
.e-formats__intro {
  margin: -1rem 0 2.5rem;
  max-width: 32rem;
  color: var(--e-text-light);
  line-height: 1.65;
}

.e-formats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.e-formats__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--e-plaster);
  height: 100%;
}

/* Hover formats (fond mer) — doré, jamais encre (a:hover global) */
.e-formats__link:hover,
.e-formats__link:focus-visible {
  color: var(--e-brass-soft);
}

.e-formats__link:hover .e-formats__name,
.e-formats__link:hover .e-formats__price,
.e-formats__link:focus-visible .e-formats__name,
.e-formats__link:focus-visible .e-formats__price {
  color: var(--e-brass-soft);
}

.e-formats__link:hover .e-formats__label,
.e-formats__link:hover .e-formats__ml,
.e-formats__link:hover .e-formats__go,
.e-formats__link:focus-visible .e-formats__label,
.e-formats__link:focus-visible .e-formats__go {
  color: var(--e-brass);
}

/* Sections sombres : hover lien = doré, pas ink */
.e-section--sea a:hover,
.e-section--ink a:hover,
.e-section--night a:hover,
.e-band a:hover {
  color: var(--e-brass-soft);
}

.e-formats__media {
  aspect-ratio: var(--e-pack-ratio);
}

.e-formats__media img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.e-formats__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.e-formats__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--e-brass-soft);
}

.e-formats__name {
  font-family: var(--elissa-font-display);
  font-size: 1.35rem;
}

.e-formats__ml {
  font-size: 0.85rem;
  color: var(--e-text-light);
}

.e-formats__price {
  margin-top: 0.35rem;
  font-family: var(--elissa-font-display);
  font-size: 1.25rem;
}

.e-formats__link:hover .e-formats__media {
  transform: translateY(-2px);
  transition: transform var(--e-dur-hover) var(--e-ease);
}

/* ——— Collection ——— */
.e-head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.e-head--row .e-title {
  margin-bottom: 0;
}

.e-link {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--e-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
}

.e-link:hover {
  color: var(--e-sea);
}

.e-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Colonnes plus étroites = format portrait adapté aux flacons fins */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 1.75rem);
  width: 100%;
  clear: both;
}

/* Annule le float / width WooCommerce sur ul.products */
.woocommerce ul.products.e-grid,
.woocommerce-page ul.products.e-grid {
  display: grid !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products.e-grid::before,
.woocommerce ul.products.e-grid::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products.e-grid > .product,
.woocommerce-page ul.products.e-grid > .product,
.e-card.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
  position: relative;
}

/* Prix / titres Woo injectés hors de notre markup */
.e-card > .price,
.e-card > .woocommerce-Price-amount,
.e-card > .woocommerce-loop-product__title,
.e-card > .button,
.e-card > .added_to_cart,
.woocommerce ul.products.e-grid > .product > .price,
.woocommerce ul.products.e-grid > .product > .button {
  display: none !important;
}

.e-card__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--e-ink);
  height: 100%;
}

.e-card__media {
  aspect-ratio: var(--e-pack-ratio);
  width: 100%;
  max-height: var(--e-img-max-h, 90vh);
  background: var(--e-bay);
  box-shadow: 0 18px 40px -28px rgba(15, 31, 44, 0.35);
  transition: transform var(--e-dur-hover) var(--e-ease), box-shadow var(--e-dur-slow) var(--e-ease);
}

.e-card__media img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: var(--e-img-max-h, 90vh);
  object-fit: var(--e-pack-fit, cover);
  object-position: var(--e-pack-pos, center 22%);
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  transform: none;
  transition: opacity var(--e-dur-hover) var(--e-ease), filter var(--e-dur-hover) var(--e-ease);
}

.e-card__link:hover .e-stage--cutout img.e-cutout--stage,
.e-card__link:focus-visible .e-stage--cutout img.e-cutout--stage {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 26px 36px rgba(15, 31, 44, 0.38));
}

.e-card__media .e-arch__img--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  /* Lifestyle : cadrage centre (pas le crop « bouchon » des packshots) */
  object-fit: cover;
  object-position: center center;
  padding: 0;
  background: var(--e-mat);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* Card avec secondaire : matte dès le hover / reveal (évite baie pêche sous photo saturée) */
.e-card__link:hover .e-card__media,
.e-card__link:focus-visible .e-card__media,
.e-card__media.is-revealing {
  background: var(--e-mat-soft);
  box-shadow:
    inset 0 1px 0 rgba(250, 246, 238, 0.12),
    0 22px 44px -28px rgba(13, 34, 51, 0.4);
}

/*
 * revealed.js — masquer les imgs sources UNIQUEMENT quand le canvas GL est live.
 * (Ne jamais cacher sous .e-has-gl-reveal seul → images invisibles au repos.)
 */
[data-e-reveal] {
  position: relative;
  overflow: hidden;
}

[data-e-reveal] > canvas {
  z-index: 1;
  border-radius: inherit;
}

[data-e-reveal].revealed--gl > img.e-arch__img,
[data-e-reveal].revealed--gl > img.e-reveal__front,
[data-e-reveal].revealed--gl > img.e-reveal__back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

[data-e-reveal].revealed--gl > img:not(.e-arch__img):not(.e-reveal__front):not(.e-reveal__back) {
  object-fit: cover !important;
}

/* Desktop + revealed : pas de zoom/lift CSS sur le média */
.e-has-gl-reveal .e-card__media {
  transition: background var(--e-dur-hover) var(--e-ease), box-shadow var(--e-dur-slow) var(--e-ease);
}

.e-has-gl-reveal .e-card__link:hover .e-card__media,
.e-has-gl-reveal .e-card__link:focus-visible .e-card__media,
.e-has-gl-reveal .e-card__media.is-revealing {
  transform: none !important;
}

.e-has-gl-reveal .e-card__link:hover .e-card__media img.e-arch__img,
.e-has-gl-reveal .e-card__media .e-arch__img--hover {
  transform: none !important;
  clip-path: none !important;
}

.e-has-gl-reveal .e-card__link:hover .e-arch__img--hover,
.e-has-gl-reveal .e-card__link:focus-visible .e-arch__img--hover {
  opacity: 0 !important;
}

.e-has-gl-reveal .e-formats__link:hover .e-formats__media,
.e-has-gl-reveal .e-formats__link:focus-visible .e-formats__media {
  transform: none !important;
}

.e-has-gl-reveal .e-formats__link:hover .e-formats__media img {
  transform: none !important;
}

/* Mood / à propos — back invisible au repos */
img.e-reveal__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  pointer-events: none;
}

/* Tactile : sans revealed, le swap CSS hover classique reste */

.e-card__link:hover .e-card__media {
  transform: translateY(-2px);
}

.e-card__link:hover .e-arch__img--hover,
.e-card__link:focus-visible .e-arch__img--hover {
  opacity: 1;
}

.e-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  padding: 0 0.25rem;
}

.e-card__format {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--e-amber);
}

.e-card__name {
  font-family: var(--elissa-font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.15;
  max-width: 14ch;
}

.e-card__maker {
  display: none; /* déjà sur la fiche ; évite le bruit en grille */
}

.e-card__notes {
  font-size: 0.85rem;
  color: var(--e-text-dark);
  max-width: 18ch;
}

.e-card__price {
  margin-top: 0.35rem;
  font-family: var(--elissa-font-display);
  font-size: 1.2rem;
}

.e-card__price .woocommerce-Price-amount {
  display: inline !important;
}

.e-card__price del {
  opacity: 0.45;
}

.e-card__price ins {
  text-decoration: none;
}

@media (min-width: 900px) {
  .e-grid {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  }
}

.e-shop {
  padding-top: 0;
}

.e-steps {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.e-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.e-steps__num {
  display: block;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--e-rule-dark);
  font-family: var(--elissa-font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--e-amber);
}

.e-steps h3 {
  margin: 0 0 0.5rem;
  font-family: var(--elissa-font-display);
  font-weight: 500;
  font-size: 1.75rem;
}

.e-steps p {
  margin: 0;
  line-height: 1.65;
  color: var(--e-text-dark);
}

/* ——— Le nom ——— */
.e-name__quote {
  margin: 0 0 2rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--elissa-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.35;
}

/* ——— Cadeau ——— */
.e-gift__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.e-gift .e-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.e-gift__cta {
  margin: 1.75rem 0 0;
  text-align: center;
}

/* Clôture home : cadeau + emblema = un seul bloc */
.e-close {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.e-close__gift {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.35rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--e-chalk);
  border: 1px solid rgba(184, 136, 58, 0.35);
}

.e-close__gift .e-mark {
  color: var(--e-brass);
  width: 1.35rem;
  height: 1.85rem;
  margin: 0;
}

.e-close__gift .e-eyebrow {
  margin-bottom: 0.25rem;
}

.e-close__gift-title {
  margin: 0;
  max-width: 28ch;
  font-family: var(--elissa-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--e-ink);
}

.e-close__gift .e-btn {
  min-height: 2.9rem;
  padding: 0 1.35rem;
  white-space: nowrap;
}

.e-name__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 0 0 1rem;
}

.e-name__maison {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.e-section.e-collection {
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.e-section.e-formats {
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.e-section.e-name {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Sélection home : grille dense, pas un mur de cartes */
.e-grid--home {
  gap: clamp(1.35rem, 3vw, 2rem) clamp(0.85rem, 2vw, 1.35rem);
}

@media (min-width: 900px) {
  .e-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.e-grid--home .e-card__media {
  aspect-ratio: var(--e-pack-ratio);
}

@media (max-width: 720px) {
  .e-close__gift {
    grid-template-columns: auto 1fr;
  }

  .e-close__gift .e-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Carte cadeau = module : linteau Sidi en tête + base damier (pas une bande hors carte) */
.e-gift__item {
  position: relative;
  padding: 3rem 1.75rem 1.75rem;
  background-color: var(--e-chalk);
  background-image: var(--e-frieze-tile);
  background-repeat: repeat-x;
  background-position: left top;
  background-size: auto 28px;
  border-radius: 50% 50% 0 0 / 6rem 6rem 0 0;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 18px 36px -28px rgba(15, 31, 44, 0.35);
}

.e-gift__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: var(--e-checker) repeat-x 0 0 / 56px 56px;
  opacity: 0.95;
}

.e-gift__item .e-mark,
.e-gift__item .e-star {
  width: 1.8rem;
  height: 2.4rem;
  margin: 0 auto 1.25rem;
  color: var(--e-punic);
}

.e-gift__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--elissa-font-display);
  font-weight: 500;
  font-size: 1.45rem;
}

.e-gift__item p {
  margin: 0;
  line-height: 1.6;
  color: var(--e-text-dark);
}

/* ——— Boutique : UI d’achat ——— */
.e-shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--e-rule-dark);
}

.e-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Filtres texte (pills annulés — atelier.css porte le style final). */
.e-shop-filters a {
  display: inline-block;
  min-height: 0;
  padding: 0.4rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--e-ink-soft);
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: color 0.25s var(--ease);
}

.e-shop-filters a:hover {
  color: var(--e-sea);
}

.e-shop-filters a.is-active {
  color: var(--e-ink);
  background: transparent;
  border: 0;
}

.e-shop-count {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--e-dusk);
}

/* Boutique : même hero niche que la home (plus compact) */
.e-hero--shop {
  padding-bottom: 0;
}

.e-hero--shop .e-hero__title {
  max-width: 12ch;
}

.e-hero--shop .e-hero__line {
  margin-bottom: 0;
}

.e-arch--shop-mark {
  background: var(--e-pack-bg);
}

.e-arch--shop-mark .e-arch__empty {
  color: var(--e-sea);
  background: var(--e-pack-bg);
}

.e-arch--shop-mark .e-mark {
  width: 42%;
  height: auto;
}

.e-shop {
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* Carte : ligne d’achat sous l’info */
.e-card {
  display: flex;
  flex-direction: column;
}

.e-card__link {
  flex: 1;
}

.e-card__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--e-rule-dark);
}

.e-card__buy .e-card__price {
  margin: 0;
}

.e-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--e-chalk);
  background: var(--e-sea);
  border: 1px solid var(--e-sea);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.e-card__add:hover {
  background: var(--e-punic);
  border-color: var(--e-punic);
  color: var(--e-chalk);
}

.e-card__add.loading {
  opacity: 0.6;
  pointer-events: none;
}

.e-card__buy .added_to_cart {
  display: none !important;
}

/* Home = vitrine : prix visible, pas de bouton d’achat rapide */
.home .e-card__add {
  display: none;
}

.home .e-card__buy {
  justify-content: center;
  align-items: center;
  border-top: 0;
  padding-top: 0;
  margin-top: 0.35rem;
}

/* ——— Le nom : emblema en mosaïque ——— */
/* ——— Icônes univers (SVG line) ——— */
.e-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--e-brass);
  flex-shrink: 0;
}

.e-icon--band {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--e-sea);
  opacity: 0.85;
}

.e-icon--head {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--e-brass-soft, var(--e-brass));
}

.e-icon--cap {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--e-brass);
}

.e-coast__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin: 0 0 1.1rem;
}

.e-maison-hero__icons {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ——— Côte : photos matière + légendes (pas de cartes) ——— */
.e-coast {
  color: var(--e-chalk);
}

.e-coast .e-eyebrow {
  color: var(--e-brass-soft, var(--e-brass));
}

.e-coast .e-title,
.e-coast .e-text {
  color: var(--e-chalk);
}

.e-coast__head {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.e-coast__head .e-text {
  margin-bottom: 0;
  color: var(--e-text-light);
}

.e-coast__horizon {
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  position: relative;
}

.e-coast__frame {
  overflow: hidden;
  position: relative;
}

.e-coast__horizon .e-coast__frame {
  aspect-ratio: 16 / 9;
}

.e-coast__horizon .e-coast__img,
.e-coast__still .e-coast__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  will-change: transform;
}

.e-coast__horizon .e-coast__img {
  aspect-ratio: auto;
  min-height: 100%;
}

.e-coast__still {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(0.75rem, 2vw, 1.25rem);
}

.e-coast__still--quatre {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.e-coast__still .e-coast__frame {
  aspect-ratio: 1;
}

.e-coast__figure {
  margin: 0;
}

.e-coast__still .e-coast__img {
  aspect-ratio: auto;
  min-height: 100%;
}

.e-coast__cap {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    ". note";
  column-gap: 0.55rem;
  row-gap: 0.2rem;
  align-items: center;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(250, 246, 238, 0.18);
}

.e-coast__cap .e-icon {
  grid-area: icon;
}

.e-coast__label {
  grid-area: label;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--e-chalk);
}

.e-coast__note {
  grid-area: note;
  font-family: var(--elissa-font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--e-text-light);
}

.e-coast--maison {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.e-coast--maison .e-coast__cap {
  grid-template-areas: "icon label";
}

@media (max-width: 820px) {
  .e-coast__still,
  .e-coast__still--quatre {
    grid-template-columns: 1fr;
  }

  .e-coast__still--quatre {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .e-coast__still--quatre {
    grid-template-columns: 1fr;
  }
}

.e-name {
  background: var(--e-sand);
  color: var(--e-ink);
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

/* Emblema = cadre mer + fond sable (pas wallpaper tesselles) */
.e-emblem {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(14px, 2.2vw, 28px);
  background: var(--e-sand);
  border: 6px solid var(--e-sea);
  box-shadow: 0 30px 60px -36px rgba(26, 34, 40, 0.28);
}

.e-emblem--hex,
.e-emblem--ruin {
  background: var(--e-sand);
}

.e-emblem__inner {
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--e-chalk);
  border: 1px solid rgba(184, 136, 58, 0.55);
  outline: 4px solid var(--e-chalk);
  text-align: center;
}

.e-emblem__inner .e-name__quote {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--e-ink);
}

.e-emblem__caption {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--e-dusk);
}

/* ——— Sceau panier : icône sac + pastille ——— */
.site-header .header-seal {
  width: 2.9rem;
  height: 2.9rem;
  color: var(--e-ink);
}

.site-header .header-seal__ring {
  border: 1px solid rgba(29, 79, 115, 0.4);
}

.header-seal__icon {
  position: relative;
  z-index: 1;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.site-header .header-seal__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header .header-seal__count {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  z-index: 2;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  display: grid;
  place-items: center;
  font-family: var(--elissa-font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--e-chalk);
  background: var(--e-sea);
  border-radius: 999px;
}

.site-header .header-seal:hover .header-seal__ring {
  border-color: var(--e-punic);
}

/* ——— PDP : sélecteur de format ——— */
.pdp-formats {
  margin: 1.35rem 0 1.6rem;
}

.pdp-formats__label {
  margin: 0 0 0.7rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--e-dusk);
}

.pdp-formats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdp-formats__list > li {
  margin: 0;
  padding: 0;
}

.pdp-formats__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 4.85rem;
  padding: 0.85rem 1.05rem 0.75rem;
  color: var(--e-ink);
  background: transparent;
  border: 1px solid var(--e-filet, var(--e-rule-dark));
  border-radius: 0;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.pdp-formats__opt:hover {
  border-color: var(--e-ink);
  color: var(--e-ink);
  background: rgba(26, 24, 22, 0.03);
}

.pdp-formats__opt.is-current {
  border-color: var(--e-ink);
  background: var(--e-ink);
  color: var(--e-lait, #f7f3eb);
}

.pdp-formats__vol {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1;
}

.pdp-formats__ml {
  font-family: var(--elissa-font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pdp-formats__unit {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.pdp-formats__price {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.72;
}

.pdp-formats__price del {
  opacity: 0.5;
}

.elissa-pdp .stock.in-stock {
  display: none;
}

.e-card__add.added::after {
  content: "✓";
  margin-left: 0.4em;
}

/* ——— Maison / Shop ——— */
body:not(.home) .site-main > .e-bleed:first-child,
body:not(.home) .site-main > .e-hero:first-child,
body:not(.home) .site-main > .e-section:first-child,
body:not(.home) .site-main > .e-maison-hero-bleed:first-child {
  margin-top: -4.5rem;
}

body.woocommerce-shop .site-main,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
  padding-top: 0;
}

/* Hero plein cadre — système partagé (home / boutique / maison) */
.e-bleed,
.e-maison-hero-bleed {
  position: relative;
  min-height: min(88svh, 52rem);
  max-height: var(--e-img-max-h, 90vh);
  display: grid;
  align-items: end;
  color: var(--e-chalk);
  overflow: hidden;
  background: var(--e-night);
}

.e-bleed__img,
.e-maison-hero-bleed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: var(--e-img-max-h, 90vh);
  object-fit: cover;
  object-position: center 40%;
}

.e-bleed__veil,
.e-maison-hero-bleed__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 34, 51, 0.28) 0%, rgba(13, 34, 51, 0.18) 38%, rgba(13, 34, 51, 0.82) 100%),
    linear-gradient(90deg, rgba(13, 34, 51, 0.52) 0%, transparent 58%);
  pointer-events: none;
}

.e-bleed__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--e-wrap);
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) var(--pad) clamp(2.5rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.e-bleed--maison .e-bleed__inner,
.e-bleed--shop:not(.e-bleed--with-product) .e-bleed__inner {
  grid-template-columns: minmax(0, 1fr);
}

.e-bleed__copy,
.e-maison-hero-bleed__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--e-wrap);
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) var(--pad) clamp(2.5rem, 5vw, 3.75rem);
}

.e-bleed__inner > .e-bleed__copy {
  max-width: none;
  margin: 0;
  padding: 0;
}

.e-bleed__mark,
.e-maison-hero-bleed__mark {
  color: var(--e-brass-soft, var(--e-brass));
  margin-bottom: 0.85rem;
}

.e-bleed__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--e-chalk);
}

.e-bleed__offer,
.e-maison-hero-bleed__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--e-brass-soft, var(--e-brass));
}

.e-bleed__title,
.e-maison-hero-bleed__title {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--elissa-font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--e-chalk);
}

.e-bleed__lead,
.e-maison-hero-bleed__lead {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(250, 246, 238, 0.88);
}

.e-bleed__place,
.e-maison-hero-bleed__place {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.65);
}

.e-bleed__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.e-bleed__price {
  font-family: var(--elissa-font-display);
  font-size: 1.55rem;
  color: var(--e-chalk);
}

.e-bleed__price del {
  opacity: 0.5;
  font-size: 0.8em;
}

.e-bleed__price ins {
  text-decoration: none;
}

.e-bleed__product {
  justify-self: end;
  width: min(100%, 340px);
}

.e-bleed__product .e-arch--hero {
  box-shadow: 0 36px 70px -28px rgba(5, 16, 28, 0.75);
}

.e-bleed__product .e-hero__plinth {
  margin-left: 0;
  margin-right: 0;
}

/* Cutout PNG — flacon détouré sur le bleed (pas de baie crème) */
.e-bleed__cutout {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
  filter: drop-shadow(0 28px 48px rgba(5, 16, 28, 0.55));
}

.e-cutout {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.e-cutout--hero {
  max-height: min(62vh, 28rem);
}

@media (max-width: 900px) {
  .e-bleed,
  .e-maison-hero-bleed {
    min-height: min(var(--e-img-max-h, 90vh), 44rem);
    max-height: var(--e-img-max-h, 90vh);
  }

  .e-bleed__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
    padding-top: clamp(5.5rem, 14vw, 7rem);
  }

  .e-bleed__product {
    order: -1;
    width: min(72%, 280px);
    justify-self: center;
  }

  .e-bleed__title,
  .e-maison-hero-bleed__title {
    margin-left: auto;
    margin-right: auto;
  }

  .e-bleed__lead,
  .e-maison-hero-bleed__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .e-bleed__buy {
    justify-content: center;
  }

  .e-bleed__brand {
    letter-spacing: 0.38em;
    text-indent: 0.38em;
  }

  .e-bleed__veil,
  .e-maison-hero-bleed__veil {
    background:
      linear-gradient(180deg, rgba(13, 34, 51, 0.35) 0%, rgba(13, 34, 51, 0.2) 35%, rgba(13, 34, 51, 0.86) 100%);
  }
}

.e-section.e-maison-intro {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.e-maison-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.e-maison-strip__cell {
  margin: 0;
  overflow: hidden;
}

.e-maison-strip__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.e-maison-strip__frame img,
.e-maison-strip__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e-maison-strip__frame .e-reveal__front {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* Chapitres image | texte */
.e-maison-chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.e-maison-chapter--rev .e-maison-chapter__grid {
  direction: rtl;
}

.e-maison-chapter--rev .e-maison-chapter__grid > * {
  direction: ltr;
}

.e-maison-chapter__copy .e-icon {
  margin-bottom: 0.85rem;
}

.e-maison-chapter__num {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--e-brass);
}

.e-maison-chapter__copy .e-text {
  margin-bottom: 0;
  max-width: 36ch;
}

.e-maison-chapter__copy--light .e-eyebrow {
  color: var(--e-brass-soft, var(--e-brass));
}

.e-maison-chapter__copy--light .e-title,
.e-maison-chapter__copy--light .e-text {
  color: var(--e-chalk);
}

.e-maison-chapter__copy--light .e-text {
  color: var(--e-text-light);
}

.e-maison-chapter__media {
  margin: 0;
}

.e-maison-chapter__frame {
  position: relative;
  max-height: var(--e-img-max-h, 90vh);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.e-maison-chapter__frame--ritual {
  aspect-ratio: 4 / 5;
}

.e-maison-chapter__frame img,
.e-maison-chapter__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e-maison-chapter__frame .e-reveal__front {
  aspect-ratio: inherit;
  height: auto;
}

.e-maison-chapter__grid--ritual .e-maison-chapter__media > img {
  aspect-ratio: 4 / 5;
}

.e-maison-chapter__cap {
  margin-top: 0.65rem;
  font-family: var(--elissa-font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--e-dusk);
}

.e-maison-chapter__cap--light {
  color: var(--e-text-light);
}

.e-maison-grove__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
}

.e-maison-grove__media {
  margin: 0;
}

.e-maison-grove__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.e-maison-grove__frame img,
.e-maison-grove__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e-maison-grove__frame .e-reveal__front {
  aspect-ratio: 16 / 10;
  height: auto;
}

.e-maison-grove__copy .e-text {
  margin-bottom: 0;
}

.e-maison-gallery__head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.e-maison-gallery__head .e-text {
  margin-left: auto;
  margin-right: auto;
}

.e-maison-gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(140px, 18vw);
  gap: 0.55rem;
}

.e-maison-gallery__tile {
  margin: 0;
  overflow: hidden;
  min-height: 0;
}

.e-maison-gallery__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.e-maison-gallery__frame img,
.e-maison-gallery__tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e-maison-gallery__tile--tall {
  grid-row: span 2;
}

.e-maison-gallery__tile--wide {
  grid-column: span 2;
}

.e-maison-cta {
  text-align: center;
}

.e-maison-cta .e-mark {
  margin: 0 auto 1rem;
  color: var(--e-brass-soft, var(--e-brass));
}

.e-maison-cta .e-title {
  margin-bottom: 1.75rem;
  color: var(--e-chalk);
}

.e-maison-cta .e-eyebrow {
  color: var(--e-brass-soft, var(--e-brass));
}

.e-maison-cta__actions {
  margin: 0;
}

.e-maison-cta .e-btn--ghost {
  color: var(--e-chalk);
  border-color: rgba(250, 246, 238, 0.55);
}

.e-maison-cta .e-btn--ghost:hover {
  background: var(--e-chalk);
  color: var(--e-night);
  border-color: var(--e-chalk);
}

@media (max-width: 900px) {
  .e-maison-chapter__grid,
  .e-maison-chapter--rev .e-maison-chapter__grid,
  .e-maison-grove__grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .e-maison-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e-maison-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(160px, 36vw);
  }
}

@media (max-width: 520px) {
  .e-maison-gallery__tile--wide {
    grid-column: span 2;
  }
}

/* ——— PDP story ——— */
.pdp-story__grid--text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pdp-story__figure.e-arch {
  aspect-ratio: var(--e-pack-ratio);
  max-width: 420px;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .e-hero {
    min-height: 0;
    padding-top: 5.75rem;
    padding-bottom: 0;
    background: var(--e-chalk);
  }

  .e-hero--niche::before {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: min(58vw, 22rem);
    bottom: auto;
    background: linear-gradient(
      180deg,
      #6f9db8 0%,
      var(--e-sea) 55%,
      #1a455e 100%
    );
  }

  .e-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding-top: 0;
  }

  .e-hero__visual {
    order: -1;
    width: min(72%, 300px);
    justify-self: center;
    margin-top: clamp(1.25rem, 5vw, 2rem);
  }

  /* Mobile : arche + plinthe sur le bandeau mer, sans cadre niche */
  .e-hero__niche {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .e-hero__plinth {
    margin: 0;
  }

  .e-hero__copy {
    padding-top: 1.25rem;
    text-align: center;
  }

  .e-hero__title {
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .e-hero__offer,
  .e-hero__line,
  .e-hero__buy {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .e-hero__brand {
    letter-spacing: 0.38em;
    text-indent: 0.38em;
  }

  .e-arch--hero {
    aspect-ratio: var(--e-pack-ratio);
  }

  .e-emblem {
    padding: 16px;
    background-size: 56px 56px;
    border-width: 4px;
  }

  .e-steps,
  .e-gift__list,
  .e-formats__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .e-gift__list {
    max-width: none;
  }

  .e-formats__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 0.5rem;
    scrollbar-width: none;
  }

  .e-formats__grid::-webkit-scrollbar {
    display: none;
  }

  .e-formats__item {
    scroll-snap-align: start;
  }

  .e-piece__gallery .e-arch:nth-child(2) {
    transform: translateY(-1.5rem);
  }

  .e-maison-list__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .e-grid,
  .woocommerce ul.products.e-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.75rem 0.85rem !important;
  }

  .e-card__name {
    font-size: 1.05rem;
  }

  .e-card__format {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .e-card__notes {
    font-size: 0.78rem;
  }

  .e-card__buy {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .e-card__add {
    min-height: 2.3rem;
  }

  .e-shop-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad);
    scrollbar-width: none;
  }

  .e-shop-filters a {
    white-space: nowrap;
  }
}

/* ——— PDP : autres muscs ——— */
.pdp-related {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--e-rule-dark);
}

.e-grid--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .e-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .e-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══ Transitions entre pages (Chrome/Edge 126+, Safari 18.2+ ; ailleurs : navigation classique) ═══
   Images produit : le groupe morph (taille/position). old/new forcent cover 100%
   pour éviter le « saut » de crop quand carte et baie PDP ne font pas la même largeur. */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: e-header;
}

.single-product .elissa-gallery__main {
  view-transition-name: e-product;
}

::view-transition-old(root) {
  animation: e-vt-out 0.28s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: e-vt-in 0.48s var(--ease) 0.04s both;
}

@keyframes e-vt-out {
  to {
    opacity: 0;
  }
}

@keyframes e-vt-in {
  from {
    opacity: 0;
  }
}

::view-transition-group(e-header) {
  animation-duration: 0.3s;
}

::view-transition-group(e-product) {
  overflow: clip;
  animation-duration: 0.62s;
  animation-timing-function: var(--ease);
}

::view-transition-image-pair(e-product) {
  isolation: isolate;
}

::view-transition-old(e-product),
::view-transition-new(e-product) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--e-pack-pos, center 22%);
  overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* ═══ Interactions ═══
   Survol réservé aux pointeurs fins (pas d’état « collé » au doigt) ;
   au toucher, un léger enfoncement le remplace. */

/* Boutons : balayage bleu mer de gauche à droite */
.e-btn,
.e-card__add,
.woocommerce .button:not(.e-qty__btn),
.woocommerce button.button.alt,
.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Sweep désactivé — quiet luxury : hover fill discret via atelier.css */
.e-btn::before,
.e-card__add::before,
.woocommerce .button::before,
.woocommerce button.button.alt::before,
.btn--primary::before {
  content: none !important;
  display: none !important;
}

.e-btn--light::before {
  background: var(--e-ciel);
}

.e-link {
  border-bottom: 0;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 100% 1px;
}

@keyframes e-underline {
  0% { background-size: 100% 1px; background-position: right bottom; }
  49.9% { background-size: 0 1px; background-position: right bottom; }
  50% { background-size: 0 1px; background-position: left bottom; }
  100% { background-size: 100% 1px; background-position: left bottom; }
}

.e-band__link {
  position: relative;
  border-bottom: 0;
}

.e-band__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1px;
  background: var(--e-brass-soft);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}

.e-band__link.is-active::after {
  transform: scaleX(1);
}

/* Cartes produit */
.e-card__media {
  transition: transform var(--e-dur-hover) var(--e-ease), box-shadow var(--e-dur-slow) var(--e-ease);
}

.e-card__name {
  transition: color var(--e-dur) var(--e-ease);
}

.e-card__peek {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 4;
  padding: 0.55rem 1.1rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--e-ink);
  background: rgba(250, 246, 238, 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 24px -14px rgba(13, 34, 51, 0.5);
  opacity: 0;
  transform: translate(-50%, 0.6rem);
  transition: opacity var(--e-dur) var(--e-ease), transform var(--e-dur-hover) var(--e-ease);
  pointer-events: none;
}

/* Formats (fond nuit) */
.e-formats__media {
  transition: transform var(--e-dur-hover) var(--e-ease), box-shadow var(--e-dur-slow) var(--e-ease);
}

.e-formats__media img {
  transition: transform 1.1s var(--ease);
}

.e-formats__go {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--e-brass-soft);
}

.e-formats__go::after {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}

/* Cadeau */
.e-gift__item {
  transition: transform var(--e-dur-hover) var(--e-ease), box-shadow var(--e-dur-slow) var(--e-ease);
}

.e-gift__item::after {
  transition: height 0.5s var(--ease);
}

.e-gift__item .e-mark {
  transition: transform var(--e-dur-hover) var(--e-ease);
}

/* Emblème : la mosaïque glisse doucement */
.e-emblem {
  transition: background-position 8s linear, box-shadow 0.8s var(--ease);
}

.e-emblem .e-btn {
  margin-bottom: 1.75rem;
}

.pdp-formats__opt {
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .e-btn:hover {
    background: var(--e-ink);
    border-color: var(--e-punic);
  }

  .e-btn--light:hover {
    background: var(--e-sea);
    border-color: var(--e-sea-deep);
    color: var(--e-chalk);
  }

  .e-card__add:hover {
    background: var(--e-sea);
  }

  .woocommerce .button:hover,
  .woocommerce button.button:hover,
  .woocommerce a.button:hover,
  .woocommerce button.button.alt:hover,
  .btn--primary:hover {
    background: var(--e-ink) !important;
    border-color: var(--e-punic) !important;
  }

  .e-btn:hover::before,
  .e-card__add:hover::before,
  .woocommerce .button:hover::before,
  .woocommerce button.button.alt:hover::before,
  .btn--primary:hover::before {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .e-btn:hover,
  .woocommerce button.button.alt:hover {
    box-shadow: 0 14px 28px -18px rgba(30, 74, 102, 0.55);
  }

  .e-link:hover {
    animation: e-underline 0.8s var(--ease);
  }

  .e-band__link:hover::after {
    transform: scaleX(1);
  }

  .e-card__link:hover .e-card__media {
    transform: translateY(-6px);
    box-shadow: 0 30px 44px -32px rgba(13, 34, 51, 0.55);
  }

  .e-card__link:hover .e-card__media img:not(.e-arch__img--hover) {
    transform: none;
  }

  /* L’image d’ambiance monte comme une marée dans l’arche (fallback tactile / sans GL) */
  .e-card__media .e-arch__img--hover {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
    transform: scale(1.08);
    transition: clip-path var(--e-dur-slow) var(--e-ease), transform 1.45s var(--e-ease);
  }

  .e-card__link:hover .e-arch__img--hover,
  .e-card__link:focus-visible .e-arch__img--hover {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }

  /* GL revealed : annule lift + scale (sinon zoom/dézoom au hover) */
  .e-has-gl-reveal .e-card__link:hover .e-card__media,
  .e-has-gl-reveal .e-card__link:focus-visible .e-card__media {
    transform: none !important;
    box-shadow:
      inset 0 1px 0 rgba(250, 246, 238, 0.12),
      0 22px 44px -28px rgba(13, 34, 51, 0.4);
  }

  .e-has-gl-reveal .e-card__media .e-arch__img--hover,
  .e-has-gl-reveal .e-card__link:hover .e-arch__img--hover {
    transform: none !important;
    clip-path: none !important;
  }

  .e-card__link:hover .e-card__peek {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.15s;
  }

  .e-card__link:hover .e-card__name {
    color: var(--e-sea);
  }

  .e-formats__link:hover .e-formats__media {
    transform: translateY(-8px);
    box-shadow: 0 36px 50px -30px rgba(0, 0, 0, 0.65);
  }

  .e-formats__link:hover .e-formats__media img {
    transform: scale(1.05);
  }

  .e-formats__link:hover .e-formats__go::after {
    width: 2.8rem;
  }

  .e-gift__item:hover {
    transform: translateY(-6px);
    background-color: var(--e-paper);
    box-shadow: 0 26px 40px -30px rgba(15, 31, 44, 0.45);
  }

  .e-gift__item:hover::after {
    height: 26px;
  }

  .e-gift__item:hover .e-mark {
    transform: translateY(-4px);
  }

  .e-emblem:hover {
    background-position: 56px 28px;
    box-shadow: 0 40px 70px -36px rgba(13, 34, 51, 0.6);
  }

  .e-shop-filters a:hover {
    background: var(--e-ciel-soft);
  }

  .pdp-formats__opt:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -16px rgba(13, 34, 51, 0.45);
  }
}

@media (hover: none) {
  .e-card__peek {
    display: none;
  }

  .e-card__link:active .e-card__media,
  .e-formats__link:active .e-formats__media,
  .e-gift__item:active {
    transform: scale(0.98);
    transition-duration: 0.2s;
  }

  .e-btn:active,
  .e-card__add:active,
  .woocommerce button.button.alt:active {
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .e-btn,
  .e-btn::before,
  .e-card__add::before,
  .woocommerce .button::before,
  .woocommerce button.button.alt::before,
  .btn--primary::before,
  .e-card__media,
  .e-card__media img,
  .e-formats__media,
  .e-formats__media img,
  .e-gift__item,
  .e-emblem {
    transition: none !important;
  }

  .e-link:hover {
    animation: none;
  }

  .e-card__link:hover .e-card__media,
  .e-card__link:hover .e-card__media img,
  .e-formats__link:hover .e-formats__media,
  .e-formats__link:hover .e-formats__media img,
  .e-gift__item:hover {
    transform: none !important;
  }

}
