/* ANSE — concept by Kreeative
   Le cadre (.cadre) porte sa couleur en style="background-color:…".
   La photo (.photo) porte sa taille et sa position en style="width:…; margin-top:…" :
   un margin-top négatif fait monter le sac, donc dépasser les anses au-dessus du cadre.
   Ces trois réglages se changent sac par sac dans le panneau Design du Studio Jehre. */

:root {
  --ink: #1d1c1a;
  --muted: #8a8780;
  --body: #55524c;
  --line: #e9e6e0;
  --paper: #ffffff;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -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; }

/* ---------- Bandeau concept ---------- */
.concept-bar {
  background: var(--ink);
  color: #f2efe9;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 10px var(--pad);
}
.concept-bar strong { font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.concept-bar a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- En-tête ---------- */
.head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: .32em; }
.head__nav { display: flex; gap: 40px; font-size: 13px; letter-spacing: .04em; }
.head__nav a { position: relative; }
.head__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.head__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.head__cart { font-size: 13px; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
h1 { font-size: clamp(52px, 7.6vw, 118px); font-weight: 300; letter-spacing: -0.055em; }
h2 { font-size: clamp(34px, 4.2vw, 62px); font-weight: 300; }
.soft { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.lede { max-width: 380px; margin: 32px 0 40px; line-height: 1.7; color: var(--body); font-size: 15px; }
.link { font-size: 13px; letter-spacing: .06em; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }

/* ---------- Le cadre et la photo qui déborde ---------- */
.cadre {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  aspect-ratio: 16 / 10;
  overflow: visible;
  background-color: #f2efe9;
}
.cadre--hero { aspect-ratio: 5 / 4; }
.cadre--large { aspect-ratio: 16 / 7; }
.photo {
  flex: none;
  height: auto;
  max-width: none;
  transition: transform .9s var(--ease), filter .9s var(--ease);
  filter: drop-shadow(0 18px 14px rgba(40, 30, 20, .06));
}
.sac:hover .photo, .hero__piece:hover .photo, .atelier__piece:hover .photo {
  transform: translateY(-10px);
  filter: drop-shadow(0 28px 22px rgba(40, 30, 20, .1));
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: end;
  padding: clamp(40px, 8vw, 110px) var(--pad) clamp(80px, 10vw, 150px);
}
.hero__piece { padding-top: 26%; }
.hero__piece figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; font-size: 12px; color: var(--muted);
}
.hero__name { font-family: var(--display); font-size: 20px; letter-spacing: -0.04em; color: var(--ink); }

/* ---------- Collection ---------- */
.collection, .atelier, .principe { padding: clamp(60px, 8vw, 120px) var(--pad); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(20px, 4vw, 60px); }
.grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 5vw, 80px);
  row-gap: clamp(24px, 3vw, 48px);
}
.sac { padding-top: 46%; }
.grille .sac:nth-child(even) { margin-top: clamp(0px, 8vw, 140px); }
.sac__info {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  column-gap: 16px; row-gap: 4px; padding-top: 16px;
}
.sac__info h3 { font-size: 22px; }
.sac__matiere { grid-column: 1; font-size: 12px; color: var(--muted); }
.sac__prix { grid-column: 2; grid-row: 1; font-size: 13px; white-space: nowrap; }
.sac__add {
  grid-column: 1 / -1; justify-self: start; margin-top: 12px;
  font-size: 12px; letter-spacing: .06em; padding: 0 0 4px; border-bottom: 1px solid var(--ink);
  transition: opacity .3s;
}
.sac__add:hover { opacity: .55; }
.sac__add:disabled, .sac[data-jeere-state="off"] .sac__add { opacity: .35; pointer-events: none; border-color: transparent; }
.sac[data-jeere-state="off"] .photo { opacity: .55; }

/* ---------- Atelier ---------- */
.atelier { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.atelier__piece { padding-top: 16%; }
.atelier__text p:last-child { margin-top: 28px; max-width: 420px; line-height: 1.75; color: var(--body); font-size: 15px; }

/* ---------- Principe photo ---------- */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: 40px; }
.etapes li { border-top: 1px solid var(--ink); padding-top: 22px; }
.etapes span { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.etapes h3 { font-size: 24px; margin: 18px 0 12px; }
.etapes p { font-size: 14px; line-height: 1.7; color: var(--body); }

/* ---------- Panier ---------- */
.panier {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .6s var(--ease);
}
.panier.is-open { transform: none; }
.voile {
  position: fixed; inset: 0; z-index: 30; background: rgba(29, 28, 26, .25);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.panier.is-open + .voile { opacity: 1; pointer-events: auto; }
.panier__head { display: flex; justify-content: space-between; align-items: baseline; padding: 28px; border-bottom: 1px solid var(--line); }
.panier__head h2 { font-size: 28px; }
.panier__close { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.panier__lines { flex: 1; overflow-y: auto; padding: 8px 28px; }
.panier__vide { padding: 28px 0; color: var(--muted); font-size: 14px; }
.ligne { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ligne img { width: 72px; height: 72px; object-fit: contain; background: #f6f4f0; }
.ligne__info p { font-size: 14px; }
.ligne__info p:first-child { font-family: var(--display); font-size: 17px; letter-spacing: -0.03em; }
.ligne__prix { color: var(--muted); margin-top: 2px; }
.ligne__qty { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.ligne__qty button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; line-height: 1; }
.ligne__qty .ligne__remove { width: auto; height: auto; border: 0; border-radius: 0; margin-left: auto; color: var(--muted); font-size: 12px; }
.panier__foot { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.panier__total { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 18px; }
.panier__checkout {
  display: block; text-align: center; padding: 16px; background: var(--ink); color: #fff;
  font-size: 13px; letter-spacing: .08em; transition: opacity .3s;
}
.panier__checkout:hover { opacity: .85; }
.panier__checkout[aria-disabled="true"] { opacity: .3; pointer-events: none; }

/* ---------- Pied de page ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 40px var(--pad); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.foot .brand { color: var(--ink); }
.foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Liens des cartes ---------- */
.sac__lien { display: block; }
.sac__info h3 a:hover, .hero__name:hover { opacity: .6; }

/* ---------- Boutons ---------- */
.btn-noir, .btn-ligne {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-size: 13px; letter-spacing: .08em;
  transition: opacity .3s, background-color .3s, color .3s;
}
.btn-noir { background: var(--ink); color: #fff; }
.btn-noir:hover { opacity: .85; }
.btn-noir:disabled { opacity: .3; cursor: not-allowed; }
.btn-ligne { border: 1px solid var(--ink); }
.btn-ligne:hover { background: var(--ink); color: #fff; }

/* ---------- Page produit ---------- */
.fil { padding: 8px var(--pad) 0; font-size: 12px; color: var(--muted); }
.fil a:hover { color: var(--ink); }
.fil span[aria-hidden] { margin: 0 8px; }
.produit {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 110px);
  align-items: end; padding: clamp(20px, 4vw, 40px) var(--pad) clamp(80px, 10vw, 140px);
}
.produit__visuel { padding-top: 46%; }
.produit__nom { font-size: clamp(48px, 6vw, 92px); font-weight: 300; letter-spacing: -0.055em; }
.produit__matiere { margin-top: 14px; font-size: 13px; color: var(--muted); }
.produit__prix { margin-top: 28px; font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; }
.produit__desc { margin-top: 22px; max-width: 440px; line-height: 1.75; color: var(--body); font-size: 15px; }
.produit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.produit__actions > * { flex: 1 1 200px; }
.produit[data-jeere-state="off"] [data-jeere-add] { opacity: .35; pointer-events: none; }
.produit__details { margin-top: 36px; border-top: 1px solid var(--line); }
.produit__details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.produit__details dt { color: var(--muted); }
.produit__plus { list-style: none; margin-top: 24px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.produit__plus li::before { content: "— "; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--3 .sac:nth-child(even) { margin-top: 0; }

/* ---------- Commande ---------- */
.checkout {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 100px);
  align-items: start; padding: clamp(32px, 6vw, 80px) var(--pad) clamp(80px, 10vw, 140px);
}
.checkout[hidden], .merci[hidden] { display: none; }
.checkout__title { font-size: clamp(40px, 5vw, 76px); font-weight: 300; letter-spacing: -0.055em; margin-bottom: 40px; }
.checkout__alert { margin-bottom: 28px; padding: 16px 18px; background: #fbeeee; color: #8a2a2a; font-size: 14px; line-height: 1.5; }
.bloc { border: 0; border-top: 1px solid var(--ink); padding: 22px 0 36px; }
.bloc legend { float: left; width: 100%; margin-bottom: 22px; font-family: var(--display); font-size: 24px; letter-spacing: -0.04em; }
.bloc legend span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-right: 12px; vertical-align: middle; }
.champ { clear: both; margin-bottom: 18px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; clear: both; }
.champ label { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .04em; }
.opt { color: var(--muted); }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink);
  background: #faf9f7; border: 1px solid var(--line); border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, background-color .3s;
}
.champ select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--ink); background-color: #fff; }
.champ [aria-invalid="true"] { border-color: #b23b3b; }
.champ__err { display: none; margin-top: 6px; font-size: 12px; color: #b23b3b; }
.champ__err.is-on { display: block; }
.champ__aide { clear: both; margin-top: -6px; font-size: 12px; color: var(--muted); }
.paiements { clear: both; display: grid; gap: 10px; }
.paiement { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s; }
.paiement[hidden] { display: none; }
.paiement.is-on { border-color: var(--ink); }
.paiement input { margin-top: 3px; accent-color: var(--ink); }
.paiement strong { display: block; font-weight: 500; font-size: 14px; }
.paiement small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.checkout__form .btn-noir { width: 100%; margin-top: 8px; }
.checkout__legal { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.recap { position: sticky; top: 100px; padding: 28px; background: #faf9f7; }
.recap__title { font-size: 26px; margin-bottom: 8px; }
.recap .ligne { border-bottom-color: #ece9e3; }
.recap .ligne img { background: #fff; }
.recap__totaux { margin-top: 18px; font-size: 14px; }
.recap__totaux div { display: flex; justify-content: space-between; padding: 8px 0; }
.recap__totaux dt { color: var(--muted); }
.recap__total { margin-top: 8px; padding-top: 16px !important; border-top: 1px solid var(--ink); font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; }
.recap__total dt { color: var(--ink) !important; }
.panier__vide a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.merci { max-width: 720px; padding: clamp(60px, 10vw, 140px) var(--pad) clamp(80px, 10vw, 140px); }
.merci__title { font-size: clamp(40px, 5vw, 72px); font-weight: 300; letter-spacing: -0.055em; outline: none; }
.merci__title .soft { display: block; font-size: .5em; letter-spacing: -0.04em; margin-top: 10px; }
.merci__text { margin-top: 24px; max-width: 520px; line-height: 1.75; color: var(--body); font-size: 15px; }
.merci__recap ul { list-style: none; margin: 32px 0; border-top: 1px solid var(--ink); }
.merci__recap li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.merci__total { font-family: var(--display); font-size: 18px; letter-spacing: -0.03em; }
.merci__actions:not(:empty) { margin-bottom: 28px; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--pad, 24px) clamp(60px, 8vw, 110px); line-height: 1.75; }
.legal h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.legal .legal__date { font-size: 12px; opacity: .6; margin-bottom: 34px; }
.legal h2 { font-size: 18px; line-height: 1.3; margin: 38px 0 12px; }
.legal p, .legal li { font-size: 14px; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0 0 20px; }
.legal li + li { margin-top: 6px; }
.legal ul + p { margin-top: 16px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal__alerte { margin: 0 0 30px; padding: 18px 20px; border: 2px solid currentColor; font-size: 14px; }
.legal__alerte strong { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in, .revealed .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .head__nav { display: none; }
  .hero, .atelier, .produit, .checkout { grid-template-columns: 1fr; }
  .recap { position: static; order: -1; }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__text { order: 2; }
  .etapes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grille, .grille--3 { grid-template-columns: 1fr; }
  .champs-2 { grid-template-columns: 1fr; }
  .grille .sac:nth-child(even) { margin-top: 0; }
  .etapes { grid-template-columns: 1fr; }
  .foot { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .photo, .panier, .voile { transition: none; }
  .sac:hover .photo, .hero__piece:hover .photo, .atelier__piece:hover .photo { transform: none; }
}

/* The demonstration bar: one line, « Voir plus » on the right (the details are on mentions-legales/) */
.concept-bar p { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; max-width: 1200px; white-space: nowrap; }
.concept-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.concept-bar a.concept-bar__more { flex: none; text-decoration: none; font-weight: 600; font-size: 11px; line-height: 1; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; }
