/* =========================================================
   CASA DEL ROSSO E DEL FASCINO — Atelier de couture
   Direction : maison de couture française — clair, aéré,
   serif italique pour les titres, petites capitales pour l'interface,
   un rouge profond (« rosso ») utilisé avec parcimonie.
   ========================================================= */

:root {
  /* Couleurs */
  --bg: #ffffff;
  --bg-soft: #f7f2ec;      /* crème : bandeaux, pied de page */
  --bg-card: #f1ebe3;      /* fond des visuels produits */
  --ink: #1d1b18;          /* texte principal */
  --ink-2: #4b463f;        /* texte courant */
  --muted: #8d847a;        /* textes secondaires */
  --line: #e4dbd0;         /* filets */
  --rosso: #9b2a1f;        /* accent */


  /* Typo */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;

  /* Mise en page */
  --pad: clamp(20px, 3vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--rosso); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- Typographie ---------- */
.title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; text-align: center;
}
.title--lg { font-size: clamp(32px, 3.4vw, 46px); }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 14px;
}
.lead {
  font-size: 16px; line-height: 1.75; color: var(--ink-2);
  max-width: 640px; margin: 20px auto 0; text-align: center;
}

/* ---------- Liens & boutons ---------- */
.link {
  position: relative; display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 0;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: left;
}
.link:hover::after { animation: lineSwap .8s var(--ease); }
@keyframes lineSwap {
  0%    { transform: scaleX(1); transform-origin: right; }
  50%   { transform: scaleX(0); transform-origin: right; }
  50.1% { transform: scaleX(0); transform-origin: left; }
  100%  { transform: scaleX(1); transform-origin: left; }
}

.btn {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--rosso); border-color: var(--rosso); color: #fff; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

.announce {
  background: var(--bg-soft); color: var(--ink);
  font-size: 12px; text-align: center;
  max-height: 40px; overflow: hidden;
  transition: max-height .5s var(--ease);
}
.announce p { padding: 9px var(--pad); }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

.bar {
  color: #fff; position: relative;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.bar::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.38), transparent);
  transition: opacity .5s;
}
.site-header.is-solid .bar { background: var(--bg); color: var(--ink); border-color: var(--line); }
.site-header.is-solid .bar::before { opacity: 0; }
.site-header.is-scrolled .announce { max-height: 0; }

.bar__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--pad) 0;
}

.logo { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.logo__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(15px, 1.5vw, 22px); letter-spacing: .08em; white-space: nowrap;
}
.logo__sub { font-size: 8px; letter-spacing: .35em; opacity: .8; }

.icons { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.icons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; display: block; }
.icons button { display: block; position: relative; }

.nav {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px 32px; padding: 20px var(--pad) 16px;
  transition: padding .5s var(--ease);
}
.site-header.is-scrolled .nav { padding: 14px var(--pad) 12px; }
.nav > a, .nav__item > a { position: relative; font-size: 11px; font-weight: 500; letter-spacing: .08em; padding-bottom: 4px; }
.nav > a::after, .nav__item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease);
}
.nav > a:hover::after, .nav > a.is-active::after,
.nav__item:hover > a::after, .nav__item:focus-within > a::after { transform: scaleX(1); }

/* ---------- Sous-menus déroulants (catégories › matières) ---------- */
.nav__item { display: flex; padding-bottom: 16px; margin-bottom: -16px; }   /* zone de survol jusqu'au panneau */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav__item:hover .mega, .nav__item:focus-within .mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
}
.nav__item.is-closed .mega { opacity: 0; visibility: hidden; }
.mega__inner {
  display: grid; grid-template-columns: 1fr 1.4fr 220px; gap: 48px;
  max-width: 1100px; margin: 0 auto; padding: 36px var(--pad) 40px;
  text-align: left;
}
.mega__title { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.1; margin-bottom: 16px; }
.mega__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mega__col a {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--ink-2); padding: 7px 0; border-bottom: 1px solid var(--line);
}
.mega__col a span { color: var(--muted); font-size: 12px; }
.mega__col a:hover { color: var(--ink); }
.mega__feature { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--ink-2); }
.mega__media { aspect-ratio: 4 / 5; background: var(--bg-card); display: grid; place-items: center; overflow: hidden; }
.mega__media img { width: 100%; height: 100%; object-fit: cover; }

/* En-tête opaque tant qu'un sous-menu est ouvert (sur la photo d'accueil) */
.site-header:has(.nav__item:hover) .bar,
.site-header:has(.nav__item:focus-within) .bar { background: var(--bg); color: var(--ink); border-color: var(--line); }
.site-header:has(.nav__item:hover) .bar::before,
.site-header:has(.nav__item:focus-within) .bar::before { opacity: 0; }

.burger { display: none; width: 26px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: .4s var(--ease); }
.burger span:first-child { top: 5px; }
.burger span:last-child { bottom: 5px; }
.burger.is-open span:first-child { top: 9px; transform: rotate(45deg); }
.burger.is-open span:last-child { bottom: 8px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; gap: 6px;
  padding: 150px var(--pad) var(--pad);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.is-open { transform: none; }
.mobile-menu { overflow-y: auto; }
.mobile-menu > a, .m-group summary {
  font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.3;
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.m-group summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary::after { content: "+"; font-family: var(--sans); font-style: normal; font-size: 22px; font-weight: 300; }
.m-group[open] summary::after { content: "−"; }
.m-group__links { display: flex; flex-direction: column; padding: 4px 0 16px 14px; }
/* Sous-liens dans la même famille que le titre (Cormorant), en plus petit et droit */
.m-group__links a {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-style: normal; font-weight: 500;
  font-size: 21px; line-height: 1.3; letter-spacing: .01em;
  color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--line);
}
.m-group__links a:first-child { font-style: italic; color: var(--ink); }
.m-group__links a span {
  font-family: 'IBM Plex Mono', 'Courier New', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .06em; color: var(--muted);
}

/* =========================================================
   INTRO
   ========================================================= */
.hero {
  position: relative; height: 100vh; min-height: 620px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  color: #fff;
}
.hero__media { position: absolute; inset: -8% 0 0; will-change: transform; }
.hero__img {
  position: absolute; inset: 0;
  /* ta photo (images/hero.jpg) ; si elle manque, une texture de pierre chaude prend le relais */
  background:
    url('images/papier.jpg') center / cover no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .13 0 0 0 0 .06 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .06 0 0 0 0 .02 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 30%, #d2ab7c 0%, #a87d50 35%, #6b4a2c 70%, #2e1e11 100%);
  transform: scale(1.12);
  transition: transform 3s cubic-bezier(.2,.7,.1,1);
}
body.is-ready .hero__img { transform: scale(1); }
/* Mode nuit : le papier de nuit apparaît en fondu par-dessus le papier de jour */
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: url('images/papier-nuit.jpg') center / cover no-repeat;
  opacity: 0; transition: opacity .8s var(--ease);
}
html[data-theme="dark"] .hero__img::after { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,.55) 100%);
}
.hero__content {
  position: relative; z-index: 2; max-width: 660px;
  padding: 0 var(--pad) 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; text-shadow: 0 1px 24px rgba(0,0,0,.3);
}
.hero__title, .hero__text { font-family: var(--serif); font-style: italic; }
.hero__title { font-weight: 500; font-size: clamp(34px, 3.2vw, 50px); line-height: 1.1; overflow: hidden; padding: 0 .1em; }
.hero__title span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease) .4s; }
.hero__text { font-weight: 400; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.35; }
.hero__text span { display: block; opacity: 0; transform: translateY(16px); transition: opacity 1.4s var(--ease) .65s, transform 1.4s var(--ease) .65s; }
.hero .link { margin-top: 10px; opacity: 0; transition: opacity 1s var(--ease) 1s; }
body.is-ready .hero__title span, body.is-ready .hero__text span { transform: none; opacity: 1; }
body.is-ready .hero .link { opacity: 1; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(64px, 8vw, 110px) var(--pad); }

/* ---------- Carrousels ---------- */
.carousel { margin-top: 40px; }
.carousel__track {
  --per: 5; --gap: 16px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__controls {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 28px; font-size: 12px; color: var(--muted);
}
.carousel.is-static .carousel__controls { display: none; }
.arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .3s, opacity .3s;
}
.arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.arrow:hover { border-color: var(--ink); }
.arrow:disabled { opacity: .3; pointer-events: none; }

/* Produit sans photo : fond neutre en attendant l'image */
.media-empty {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--bg-card); color: var(--muted);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
/* ---------- Bloc texte ---------- */
.statement { text-align: center; background: var(--bg-soft); }
.statement .btn { margin-top: 32px; }
/* Téléphone : même rendu que le texte sous « MADE IN FRANCE » (.hero__text) */
@media (max-width: 760px) {
  .statement .lead { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.35; }
}

/* ---------- Produits ---------- */
/* Nouveautés : rangée de cartes collées, texte à gauche, petite barre de progression */
.newrow { background: var(--bg-soft); padding: clamp(40px, 5vw, 64px) var(--pad); }
.newrow__progress {
  position: relative; width: 120px; height: 1px; margin: 34px auto 0;   /* sous la rangée de produits */
  background: var(--line); overflow: hidden;
}
.newrow__progress span {
  position: absolute; left: 0; top: -0.5px; height: 2px; width: 20%;
  background: var(--ink); transition: transform .15s linear;
}
.newrow__track {
  display: flex; gap: 2px;
  width: fit-content; max-width: 100%; margin: 0 auto;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  cursor: grab;
}
.newrow__track::-webkit-scrollbar { display: none; }
.newrow__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.newrow__track.is-dragging a { pointer-events: none; }
.newrow .product { flex: 0 0 clamp(170px, 15vw, 240px); scroll-snap-align: start; text-align: left; }
.newrow .product__link { text-align: left; }
.newrow .product__media { aspect-ratio: 3 / 4; margin-bottom: 0; background: var(--bg-card); }
.newrow .product__media img { -webkit-user-drag: none; user-select: none; }
.newrow .product__name { font-size: 13px; font-weight: 400; line-height: 1.5; padding: 16px 8px 0; }
.newrow .product__meta { display: none; }

.product { display: flex; flex-direction: column; text-align: center; }
.product__media {
  aspect-ratio: 4 / 5; background: var(--bg-card);
  display: grid; place-items: center; overflow: hidden; margin-bottom: 16px;
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font-size: 13px; font-weight: 500; }
.product__meta { font-size: 12px; color: var(--muted); }

/* ---------- Film : vidéo plein écran ---------- */
.film {
  position: relative; overflow: hidden;
  height: clamp(460px, 82vh, 860px);
  background: #0f0d0a; color: #fff;
}
.film__media {
  position: absolute; inset: 0;
  transform: scale(1.08); transition: transform 2.4s cubic-bezier(.2, .7, .1, 1);
}
.film.is-visible .film__media { transform: scale(1); }

/* Ambiance de secours (sans vidéo) : pénombre chaude, flous de lumière */
.film__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 214, 160, .16) 0 6%, transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(255, 196, 140, .12) 0 5%, transparent 16%),
    radial-gradient(circle at 64% 58%, rgba(155, 42, 31, .28) 0 10%, transparent 34%),
    radial-gradient(ellipse at 50% 100%, #2a3324 0%, transparent 60%),
    radial-gradient(ellipse at 50% 40%, #3a2a1c 0%, #16120d 55%, #0b0907 100%);
  filter: blur(2px);
  animation: filmBreath 14s ease-in-out infinite alternate;
}
@keyframes filmBreath { to { transform: scale(1.06) translate(-1%, 1%); } }

.film__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.film.has-video .film__video { opacity: 1; }
.film__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.film.has-video .film__particles { display: none; }

.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%, transparent 60%, rgba(0,0,0,.55)),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.35) 100%);
}

.film__link {
  position: absolute; left: 50%; bottom: clamp(28px, 5vh, 44px); z-index: 2;
  transform: translateX(-50%); white-space: nowrap;
  /* Or des liens sur les vidéos : dégradé discret « métal brossé »
     (couleurs de gauche à droite : or profond → champagne → or profond) */
  --gold-grad: linear-gradient(100deg, #b8924a 0%, #d9b56a 30%, #f1dfae 50%, #d9b56a 70%, #b8924a 100%);
  color: #d9b56a;                       /* secours si le dégradé n'est pas géré */
  background: var(--gold-grad);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.45));
  transition: background-position 1.4s var(--ease);
}
.film__link::after { background: var(--gold-grad); background-size: 250% 100%; background-position: inherit; transition: background-position 1.4s var(--ease); }
/* Au survol : le reflet glisse lentement sur le texte */
.film__link:hover { background-position: 0 0; }

.film__controls {
  position: absolute; right: var(--pad); bottom: clamp(24px, 4.5vh, 40px); z-index: 2;
  display: none; gap: 14px;
}
.film.has-video .film__controls { display: flex; }
.film__btn { width: 30px; height: 30px; display: grid; place-items: center; opacity: .8; transition: opacity .3s; }
.film__btn:hover { opacity: 1; }
.film__btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.film__btn .i-play, .film__btn .i-sound { display: none; }
.film.is-paused .i-pause { display: none; }
.film.is-paused .i-play { display: block; }
.film.has-sound .i-muted { display: none; }
.film.has-sound .i-sound { display: block; }

/* Clic sur la vidéo = pause / lecture */
.film.has-video { cursor: pointer; }
.film__flash {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(0,0,0,.35); display: grid; place-items: center;
  opacity: 0;
}
.film__flash svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.film__flash .i-play { display: none; }
.film.is-paused .film__flash .i-pause { display: none; }
.film.is-paused .film__flash .i-play { display: block; }
.film.show-flash .film__flash { animation: filmFlash .8s var(--ease) forwards; }
@keyframes filmFlash {
  0%   { opacity: 0; transform: scale(.8); }
  25%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

@media (max-width: 760px) {
  /* Téléphone : pause / son en bas à droite, le lien centré juste au-dessus */
  .film__link {
    white-space: normal; text-align: center; width: max-content;
    max-width: calc(100% - 2 * var(--pad));
    bottom: calc(clamp(24px, 4.5vh, 40px) + 30px + 14px);   /* position des boutons + leur hauteur + espace */
  }
}

/* ---------- Bandeau services ---------- */
.services-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 34px var(--pad) 30px;
  background: var(--bg-soft); border-top: 1px solid var(--line);
  text-align: center;
}
.service { display: flex; flex-direction: column; align-items: center; max-width: 330px; margin: 0 auto; }
.service svg {
  width: 22px; height: 22px; margin-bottom: 14px;
  fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 {
  font-family: 'IBM Plex Mono', 'Courier New', ui-monospace, monospace;
  font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 12px;
}
.service p { font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.service a { text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.footer { background: var(--bg-soft); }
.social { display: flex; gap: 16px; }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.social a { opacity: .75; transition: opacity .3s; }
.social a:hover { opacity: 1; }

/* Rubriques du pied de page
   - ordinateur : colonnes, tous les liens visibles
   - téléphone / tablette (≤ 900 px) : volets « + / − » (voir le @media plus bas) */
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding: 48px var(--pad); }
.footer__cols > div[hidden] { display: none; }
.footer-acc summary { list-style: none; pointer-events: none; margin-bottom: 14px; }
.footer-acc summary::-webkit-details-marker { display: none; }
.footer-acc h4 {
  font-family: 'IBM Plex Mono', 'Courier New', ui-monospace, monospace;
  font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
}
.footer-acc__links a { display: block; font-size: 13px; color: var(--ink-2); padding: 3px 0; }
.footer-acc__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .footer__cols { display: block; padding: 20px var(--pad) 36px; }
  .footer-acc { border-bottom: 1px solid var(--line); }
  .footer-acc summary {
    pointer-events: auto; cursor: pointer; margin-bottom: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0;
  }
  .footer-acc summary::after {
    content: "+"; font-size: 20px; font-weight: 300; line-height: 1; color: var(--ink);
    transition: transform .3s var(--ease);
  }
  .footer-acc[open] summary::after { content: "−"; }
  .footer-acc summary:hover h4 { text-decoration: underline; text-underline-offset: 4px; }
  .footer-acc__links {
    display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px;
    padding: 0 0 20px;
  }
  .footer-acc[open] .footer-acc__links { animation: footerOpen .4s var(--ease); }
  @keyframes footerOpen { from { opacity: 0; transform: translateY(-6px); } }
  .footer-acc__links a { display: inline; font-size: 13px; color: var(--ink-2); padding: 0 18px; line-height: 1.2; }
  .footer-acc__links a:first-child { padding-left: 0; }
  .footer-acc__links a + a { border-left: 1px solid var(--line); }   /* le séparateur « | » */
  .footer-acc__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 20px var(--pad); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}

/* =========================================================
   BOUTIQUE
   ========================================================= */
.page-shop main { padding-top: 150px; }
.shop-head { text-align: center; padding: 48px var(--pad) 8px; }
.shop-head .lead { margin-top: 14px; }

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px;
  padding: 32px var(--pad) 24px; border-bottom: 1px solid var(--line);
  margin: 0 var(--pad);
}
.filter { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.filter__title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filter__list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.filter__list button {
  position: relative; font-size: 13px; color: var(--ink-2); padding: 4px 0;
}
.filter__list button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transition: transform .4s var(--ease);
}
.filter__list button.is-active { color: var(--ink); }
.filter__list button.is-active::after { transform: scaleX(1); }

.shop-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad) 0; font-size: 12px; color: var(--muted);
}
.shop-bar button { text-decoration: underline; text-underline-offset: 3px; }

.shop-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 24px;
  padding: 32px var(--pad) clamp(64px, 8vw, 110px);
  transition: opacity .3s var(--ease);
}
.shop-grid.is-switching { opacity: 0; }
.shop-grid .product.is-hidden { display: none; }
.shop-empty { display: none; text-align: center; padding: 0 var(--pad) 96px; color: var(--ink-2); }
.shop-empty.is-visible { display: block; }
.shop-empty a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   APPARITIONS AU DÉFILEMENT
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .carousel__track { --per: 3.3; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: block; }
  .bar__top { padding-bottom: 14px; }
  .logo__name { font-size: 13px; letter-spacing: .04em; }
  .icons { gap: 16px; }
  .carousel__track { --per: 2.2; --gap: 12px; }
  .newrow .product { flex-basis: 44vw; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 14px; }
  .filters { gap: 18px; }
  .page-shop main { padding-top: 110px; }
}

/* =========================================================
   MODE SOMBRE
   ========================================================= */
html[data-theme="dark"] {
  --bg: #15120f;
  --bg-soft: #1d1915;
  --bg-card: #26201b;
  --ink: #f2e9dd;
  --ink-2: #cbc0b2;
  --muted: #93887c;
  --line: #3a3229;
  --rosso: #d24c3c;
  color-scheme: dark;
}
body, .bar, .announce, .footer, .statement, .mobile-menu {
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s;
}

/* Bouton lune / soleil */
.theme-btn .icon-sun { display: none !important; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none !important; }
html[data-theme="dark"] .theme-btn .icon-sun { display: block !important; }

/* ---------- Contact & dimensions (version vitrine) ---------- */
.contact { text-align: center; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
/* 🎨 Bouton Instagram : change les couleurs ici */
.btn--insta { background: transparent; color: var(--ink); border-color: var(--ink); border-radius: 0; }
.btn--insta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pdp__desc { margin-top: 22px; }
.pdp__contact { display: block; text-align: center; padding: 17px 24px; margin-top: 28px; }
/* ---------- Dimensions (pour information) ---------- */
.sizes {
  margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px;
}
.sizes__legend {
  width: 100%; margin-bottom: 8px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.sizes span {
  display: grid; place-items: center;
  min-width: 38px; height: 32px; padding: 0 8px;
  border: 1px solid var(--line); font-size: 12px;
}

/* ---------- 2e photo au survol (champ img2 dans products.js) ---------- */
.product__media.has-hover { position: relative; }
.product__media .img-hover {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s var(--ease);
}
.product__media.has-hover:hover .img-hover { opacity: 1; }

/* ---------- Boutique : fil d'Ariane & compteurs des sous-catégories ---------- */
.crumbs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span:last-child:not(.crumbs__sep) { color: var(--ink); }
.filter__list button small { font-size: 10px; color: var(--muted); margin-left: 2px; vertical-align: super; }

/* =========================================================
   PAGE PRODUIT
   ========================================================= */
.product__link { display: flex; flex-direction: column; text-align: center; }

.pdp-page { padding-top: 150px; }
.pdp-crumbs { justify-content: flex-start; padding: 28px var(--pad) 0; margin: 0; }
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: 24px var(--pad) clamp(64px, 8vw, 110px);
}

/* Galerie */
.pdp__gallery { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pdp__gallery.has-thumbs { grid-template-columns: 76px 1fr; }
.pdp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp__thumb { aspect-ratio: 4 / 5; background: var(--bg-card); overflow: hidden; opacity: .55; outline-offset: 2px; transition: opacity .3s; border: 1px solid transparent; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb:hover { opacity: .85; }
.pdp__thumb.is-active { opacity: 1; border-color: var(--ink); }

.pdp__main { position: relative; }
.pdp__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; background: var(--bg-card);
}
.pdp__track::-webkit-scrollbar { display: none; }
.pdp__slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; }
.pdp__slide img { width: 100%; height: 100%; object-fit: cover; }
.pdp__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: grid; place-items: center;
  opacity: 0; transition: opacity .3s;
}
.pdp__arrow svg { width: 18px; height: 18px; fill: none; stroke: #1d1b18; stroke-width: 1.4; }
.pdp__arrow--prev { left: 14px; }
.pdp__arrow--next { right: 14px; }
.pdp__main:hover .pdp__arrow, .pdp__arrow:focus-visible { opacity: 1; }
.pdp__counter {
  position: absolute; right: 14px; bottom: 14px;
  font-size: 11px; letter-spacing: .1em; padding: 4px 10px;
  background: rgba(255,255,255,.85); color: #1d1b18;
}

/* Infos */
.pdp__info { position: sticky; top: 170px; }
.pdp__eyebrow { text-align: left; margin-bottom: 10px; }
.pdp__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 3vw, 44px); line-height: 1.1; }
.pdp__color { color: var(--muted); margin-top: 6px; }
.pdp__desc { color: var(--ink-2); line-height: 1.75; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 26px; }
.pdp__acc { border-top: 1px solid var(--line); }
.pdp__acc details { border-bottom: 1px solid var(--line); }
.pdp__acc summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.pdp__acc summary::-webkit-details-marker { display: none; }
.pdp__acc summary::after { content: "+"; font-size: 18px; font-weight: 300; letter-spacing: 0; }
.pdp__acc details[open] summary::after { content: "−"; }
.pdp__acc details > *:not(summary) { color: var(--ink-2); padding: 0 0 18px; }
.pdp__acc details > ul { padding-left: 18px; }

.pdp-missing { grid-column: 1 / -1; text-align: center; padding: 80px 0; }
.pdp-missing .btn { margin-top: 28px; }

.related { border-top: 1px solid var(--line); }
.related .carousel__track { --per: 4; --gap: 24px; }

@media (max-width: 1000px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .related .carousel__track { --per: 2.3; }
}
@media (max-width: 760px) {
  .pdp-page { padding-top: 110px; }
  .pdp__gallery.has-thumbs { grid-template-columns: 1fr; }
  .pdp__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pdp__thumb { flex: 0 0 64px; }
  .pdp__arrow { display: none; }
  .related .carousel__track { --per: 1.7; --gap: 16px; }
}

/* =========================================================
   PAGE INFORMATIONS LÉGALES
   ========================================================= */
.legal-page { padding-top: 150px; padding-bottom: clamp(64px, 8vw, 110px); }
.legal-head { text-align: center; padding: 48px var(--pad) 24px; }
.legal-body { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); color: var(--ink-2); line-height: 1.75; }
.legal-body section { padding-top: 24px; }
.legal-body h3 { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 32px 0 10px; }
.legal-body p + p, .legal-body ul + p { margin-top: 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 500; }

/* Informations encore à compléter : bien visibles tant qu'elles existent */
mark.todo { background: color-mix(in srgb, var(--rosso) 14%, transparent); color: var(--rosso); padding: 1px 4px; font-weight: 500; }

@media (max-width: 760px) {
  .legal-page { padding-top: 110px; }
}

/* =========================================================
   PROTECTION DU CONTENU (voir protect.js)
   ========================================================= */
.is-protected img, .is-protected video {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;                 /* iPhone : pas de menu « Enregistrer l'image » */
}
.is-shielded body > * { visibility: hidden !important; }
.is-shielded body { overflow: hidden; }

/* ---------- Page de blocage (bloque.html) ---------- */
.page-block { min-height: 100vh; background: var(--bg-soft); }
.block {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; padding: 48px var(--pad);
}
.block__logo { color: var(--ink); }
.block__card {
  width: min(560px, 100%); text-align: center;
  background: var(--bg); border: 1px solid var(--line); padding: clamp(32px, 5vw, 56px);
}
.block__icon { width: 44px; height: 44px; fill: none; stroke: var(--rosso); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.block__eyebrow { color: var(--rosso); }
.block__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 20px; }
.block__text { color: var(--ink-2); line-height: 1.75; }
.block__text + .block__text { margin-top: 12px; }
.block__status {
  display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 22px;
  padding: 10px 16px; font-size: 13px; color: var(--rosso);
  background: color-mix(in srgb, var(--rosso) 8%, transparent);
}
.block__status.is-ok { color: var(--ink-2); background: var(--bg-soft); }
.block__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blockPulse 1.4s ease-in-out infinite; }
.block__status.is-ok .block__dot { background: #3f7d4e; animation: none; }
@keyframes blockPulse { 50% { opacity: .3; } }
.block__back { display: block; }
.block__back.is-disabled { opacity: .35; pointer-events: none; }
.block__hint { font-size: 12px; color: var(--muted); margin-top: 14px; }
.block__foot { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.block__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bandeau services : slider sur tablette et mobile ---------- */
.services-dots { display: none; }
@media (max-width: 900px) {
  .services-strip {
    display: flex; gap: 0; padding: 30px 0 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .services-strip::-webkit-scrollbar { display: none; }
  .service {
    flex: 0 0 100%; max-width: none; margin: 0;
    padding: 0 max(var(--pad), 12%);
    scroll-snap-align: center; scroll-snap-stop: always;
  }
  .services-dots {
    display: flex; justify-content: center; gap: 4px;
    padding: 0 0 26px; background: var(--bg-soft);
  }
  .services-dots button {
    width: 28px; height: 22px; position: relative;
  }
  .services-dots button::before {               /* petit trait, comme les sliders de luxe */
    content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px;
    background: var(--line); transition: background-color .3s, height .3s;
  }
  .services-dots button.is-active::before { background: var(--ink); height: 2px; margin-top: -.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
