/* JIYU — vitrine (base du futur thème Shopify)
   Chaque bloc .section correspond à une future section Shopify (voir les commentaires dans le HTML). */

:root {
  --creme: #f1eadb;
  --lin: #e6dcc8;
  --lin-fonce: #d8ccb3;
  --encre: #1c1814;
  --encre-douce: #5c5246;
  --brun: #4a3426;
  --kaki: #6f6a4b;
  --rouge: #a8322a;
  --rouge-fonce: #87261f;
  --denim: #50657a;
  --denim-fonce: #2f3f50;
  --fil: #d8b979;
  --fil-clair: #f0dcab;
  --fil-ombre: #a98448;
  --blanc: #fbf8f1;

  --police: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --police-kanji: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --rayon: 14px;
  --largeur: 1180px;
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; display: block; }
[data-dessin], #visuel-grand { width: 100%; }
[data-dessin] svg { width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere-d);
}

/* ---------- Typographie ---------- */
.titre-large, .titre, .marque {
  font-family: var(--police);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.titre-large { font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 0.98; margin: 0; }
.titre { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; margin: 0; }
.surtitre {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
  margin: 0 0 14px;
}
.texte { color: var(--encre-douce); max-width: 60ch; }
.petit { font-size: 0.86rem; color: var(--encre-douce); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid var(--encre);
  font: inherit; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton--plein { background: var(--encre); color: var(--creme); }
.bouton--plein:hover { background: var(--rouge); border-color: var(--rouge); }
.bouton--creux { background: transparent; color: var(--encre); }
.bouton--creux:hover { background: var(--encre); color: var(--creme); }
.bouton[disabled] { opacity: .45; cursor: not-allowed; transform: none; background: var(--encre); color: var(--creme); }

/* ---------- Bandeau d'annonce ---------- */
.annonce {
  background: var(--encre); color: var(--fil-clair);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  text-align: center; padding: 9px 0;
}
.annonce a { color: var(--blanc); text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--creme) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lin-fonce);
}
.entete__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marque { font-size: 1.7rem; letter-spacing: 0.14em; line-height: 1; }
.sceau {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 34px; height: 44px; border-radius: 5px;
  background: var(--rouge); color: var(--blanc);
  font-family: var(--police-kanji); font-weight: 800; font-size: 15px; line-height: 1.05;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.logo__icone { width: 44px; height: 44px; display: block; flex: none; }
.logo__icone--pied { width: 56px; height: 56px; margin-bottom: 12px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--rouge); }
.entete .bouton { min-height: 42px; padding: 0 18px; font-size: 0.88rem; }

/* ---------- Héros ---------- */
.heros { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.heros__grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.heros__texte { min-width: 0; }
.heros__texte .texte { font-size: 1.12rem; margin: 22px 0 30px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.faits { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.faits li { font-size: 0.85rem; font-weight: 600; color: var(--brun); display: flex; align-items: center; gap: 8px; }
.faits li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fil-ombre); }

/* Panneau en denim avec broderie */
.denim {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 22px;
  background-color: var(--denim);
  background-image:
    radial-gradient(120% 80% at 25% 15%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(90% 70% at 85% 95%, rgba(0,0,0,.32), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px);
  box-shadow: 0 30px 60px -30px rgba(28,24,20,.6);
  display: grid; place-items: center;
}
.denim::before {
  content: ""; position: absolute; inset: 16px;
  border: 2px dashed var(--fil); border-radius: 12px; opacity: .75; pointer-events: none;
}
.brode {
  font-family: var(--police-kanji); font-weight: 800;
  writing-mode: vertical-rl;
  font-size: clamp(6.5rem, 16vw, 13.5rem); line-height: 1;
  background-image: repeating-linear-gradient(118deg, var(--fil-clair) 0 1.3px, var(--fil) 1.3px 2.7px, var(--fil-ombre) 2.7px 3.3px);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(20,14,8,.55)) drop-shadow(0 4px 5px rgba(0,0,0,.35));
  user-select: none;
}
.etiquette {
  position: absolute; left: 30px; bottom: 30px;
  background: var(--creme); color: var(--encre);
  padding: 8px 14px 8px 12px; border-radius: 3px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
  border-left: 4px solid var(--rouge);
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--lin { background: var(--lin); }
.section__tete { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__tete > div { min-width: 0; }

/* Drop 01 */
.drop { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.drop__carte {
  background: var(--encre); color: var(--creme);
  border-radius: 22px; padding: clamp(26px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.drop__numero { font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(3.4rem, 8vw, 6rem); line-height: .9; color: var(--fil); margin: 0; }
.drop__carte .texte { color: #d9cfbd; margin: 0; }
.regles { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.regles li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.regles li span { color: var(--fil); font-variant-numeric: tabular-nums; font-size: .85rem; }
.compte {
  background: var(--blanc); border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--lin-fonce);
  display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0;
}
.compte__cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.compte__case { background: var(--lin); border-radius: 12px; padding: 14px 6px; text-align: center; }
.compte__case b { display: block; font-variation-settings: "wdth" 115; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.compte__case small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--encre-douce); }
.compte__attente { font-variation-settings: "wdth" 115; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; line-height: 1.15; }

/* Grille de pièces */
.pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.piece { text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.piece__visuel {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--lin-fonce);
  display: grid; place-items: center; padding: 8%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.piece:hover .piece__visuel { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(28,24,20,.45); }
.piece__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--encre); color: var(--fil-clair);
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.piece__badge--bientot { background: var(--lin); color: var(--encre); }
.piece__info { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.piece__nom { font-weight: 700; margin: 0; }
.piece__prix { font-weight: 700; white-space: nowrap; }
.piece__note { margin: -8px 0 0; }

/* Fabrication */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: etape; list-style: none; margin: 0; padding: 0; }
.etape { background: var(--blanc); border: 1px solid var(--lin-fonce); border-radius: 18px; padding: 24px 22px 26px; min-width: 0; }
.etape__num { font-variation-settings: "wdth" 125; font-weight: 900; font-size: 2.2rem; color: var(--rouge); line-height: 1; margin: 0 0 18px; }
.etape h3 { margin: 0 0 8px; font-size: 1.1rem; }
.etape p { margin: 0; color: var(--encre-douce); font-size: .95rem; }

/* Histoire */
.histoire { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.histoire__kanji { display: grid; place-items: center; background: var(--brun); border-radius: 22px; aspect-ratio: 1; position: relative; overflow: hidden; min-width: 0; }
.histoire__kanji::before { content: ""; position: absolute; inset: 14px; border: 2px dashed var(--fil); border-radius: 12px; opacity: .6; }
.histoire__kanji .brode { writing-mode: horizontal-tb; font-size: clamp(4.5rem, 11vw, 9rem); }
.histoire__texte { min-width: 0; }
.histoire__texte p { margin: 0 0 16px; }
.symboles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; list-style: none; }
.symboles li { border: 1.5px solid var(--encre); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }

/* Liste d'attente */
.attente { background: var(--denim-fonce); color: var(--creme); position: relative; overflow: hidden; }
.attente::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px);
}
.attente__grille { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.attente__grille > * { min-width: 0; }
.attente .surtitre { color: var(--fil); }
.attente .texte { color: #c9d3dc; }
.formulaire { background: var(--creme); color: var(--encre); border-radius: 22px; padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 16px; }
.champ label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.champ input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 2px solid var(--encre); border-radius: 12px; background: var(--blanc);
  font: inherit; color: var(--encre);
}
.accord { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--encre-douce); }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rouge); flex: none; }
.formulaire .bouton { width: 100%; }
.message { min-height: 1.4em; margin: 0; font-weight: 600; font-size: .92rem; }
.message--ok { color: #2f6b3a; }
.message--erreur { color: var(--rouge-fonce); }

/* Pied de page */
.pied { background: var(--encre); color: #cfc5b3; padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.pied__grille { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pied .marque { color: var(--creme); font-size: 2.2rem; }
.pied__col h4 { color: var(--creme); margin: 0 0 12px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.pied__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.pied__bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a332b; font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Page produit ---------- */
.fil-ariane { font-size: .85rem; color: var(--encre-douce); padding: 22px 0 0; }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { color: var(--rouge); }
.produit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4.5vw, 64px); padding: 24px 0 clamp(56px, 8vw, 96px); align-items: start; }
.galerie { display: grid; gap: 12px; min-width: 0; }
.galerie__grand { aspect-ratio: 1; border-radius: 22px; background: var(--blanc); border: 1px solid var(--lin-fonce); display: grid; place-items: center; padding: 9%; position: relative; }
.galerie__note { position: absolute; bottom: 14px; right: 16px; font-size: .75rem; color: var(--encre-douce); }
#visuel-grand { width: 100%; display: grid; place-items: center; }
.galerie__grand--detail {
  background-color: var(--denim);
  background-image:
    radial-gradient(120% 80% at 25% 15%, rgba(255,255,255,.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px);
}
.galerie__grand--detail .galerie__note { color: var(--fil-clair); }
.galerie__grand--detail .brode { writing-mode: horizontal-tb; font-size: clamp(5rem, 13vw, 10rem); }
.galerie__vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vignette { aspect-ratio: 1; border-radius: 14px; background: var(--blanc); border: 2px solid var(--lin-fonce); display: grid; place-items: center; padding: 12%; cursor: pointer; font: inherit; }
.vignette[aria-pressed="true"] { border-color: var(--encre); }
.vignette--detail { background: var(--denim); }
.vignette--detail span { font-family: var(--police-kanji); font-weight: 800; font-size: 2.2rem; color: var(--fil); }
.fiche { position: sticky; top: 96px; display: grid; gap: 22px; min-width: 0; }
.fiche__prix { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fiche__prix b { font-size: 1.7rem; font-variation-settings: "wdth" 115; }
.choix { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.choix legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 10px; }
.choix legend span { font-weight: 500; color: var(--encre-douce); }
.pastilles, .tailles { display: flex; gap: 10px; flex-wrap: wrap; }
.pastille { position: relative; }
.pastille input, .taille input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pastille span { display: block; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--lin-fonce); box-shadow: inset 0 0 0 3px var(--creme); }
.pastille input:checked + span { border-color: var(--encre); }
.pastille input:focus-visible + span, .taille input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.pastille--creme span { background: #e9dfc9; }
.pastille--brun span { background: #5a4031; }
.pastille--noir span { background: #22201d; }
.taille { position: relative; }
.taille span { display: grid; place-items: center; min-width: 56px; height: 46px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--lin-fonce); font-weight: 700; background: var(--blanc); }
.taille input:checked + span { border-color: var(--encre); background: var(--encre); color: var(--creme); }
.fiche__actions { display: grid; gap: 10px; }
.fiche__actions .bouton { width: 100%; }
.livraison { display: flex; gap: 12px; align-items: flex-start; background: var(--lin); border-radius: 14px; padding: 14px 16px; font-size: .9rem; }
.livraison b { display: block; }
.details { border-top: 1px solid var(--lin-fonce); }
.details details { border-bottom: 1px solid var(--lin-fonce); }
.details summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--rouge); }
.details details[open] summary::after { content: "–"; }
.details .contenu { padding: 0 0 18px; color: var(--encre-douce); font-size: .95rem; }
.details ul { margin: 0; padding-left: 18px; }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau th, .tableau td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--lin-fonce); }
.defile { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .heros__grille, .drop, .histoire, .attente__grille, .produit { grid-template-columns: minmax(0, 1fr); }
  .denim { aspect-ratio: 5 / 4; }
  .brode { writing-mode: horizontal-tb; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .histoire__kanji { aspect-ratio: 16 / 9; }
  .fiche { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .marque { font-size: 1.4rem; }
  .sceau { width: 30px; height: 38px; font-size: 13px; }
  .logo__icone { width: 38px; height: 38px; }
  .pieces { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .compte__cases { gap: 6px; }
  .etiquette { left: 22px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .piece__visuel { transition: none; }
}
