@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --nuit: #0d2a2b;
  --sapin: #14403c;
  --creme: #f7f0e1;
  --papier: #fffaf0;
  --encre: #1c2b28;
  --encre-douce: #566660;
  --rouge: #a8282e;
  --rouge-fonce: #7e1a22;
  --or: #e0a93f;
  --titre: "Fraunces", Georgia, serif;
  --texte: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  overflow-x: hidden;
}
a { color: inherit; }
.defs { position: absolute; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }

/* En-tête + hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--creme);
  background: linear-gradient(180deg, #081c22 0%, var(--nuit) 45%, #1b5048 100%);
}
#neige { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.lune {
  position: absolute;
  top: 11%;
  right: 6%;
  width: clamp(70px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff6d9, #efd590 70%);
  box-shadow: 0 0 90px 24px rgba(240, 214, 145, .28);
}
.entete {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 64px);
}
.marque {
  font: 500 1.25rem/1.2 var(--titre);
  text-decoration: none;
}
.lien-entete { font-weight: 500; text-underline-offset: 5px; }
.hero-contenu {
  position: relative;
  z-index: 4;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) clamp(16px, 5vw, 64px) clamp(170px, 26vh, 300px);
}
.surtitre {
  margin: 0 0 14px;
  color: var(--or);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.surtitre.sombre { color: var(--rouge); }
h1 {
  margin: 0;
  max-width: 11ch;
  font: 400 clamp(3.2rem, 8.5vw, 7rem)/.98 var(--titre);
  letter-spacing: -.02em;
}
h1 em { color: var(--or); font-weight: 300; }
.chapo { max-width: 34rem; margin: 26px 0 30px; font-size: 1.2rem; color: #e6e2d3; }

.compte { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.compte div {
  min-width: 92px;
  padding: 12px 14px 10px;
  text-align: center;
  background: rgba(255, 250, 240, .09);
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.compte strong {
  display: block;
  font: 500 2.4rem/1 var(--titre);
  font-variant-numeric: tabular-nums;
}
.compte span { font-size: .8rem; color: #d8d6c6; }

.bouton {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--rouge);
  color: #fff;
  font: 600 1rem var(--texte);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.bouton[disabled] { background: #66716c; cursor: not-allowed; transform: none; }

.sapins { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(150px, 26vh, 300px); z-index: 2; }

/* Vitrine */
.vitrine {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px);
}
.vitrine-tete { max-width: 44rem; margin-bottom: 44px; }
h2 { margin: 0 0 16px; font: 400 clamp(2rem, 5vw, 3.4rem)/1.08 var(--titre); letter-spacing: -.01em; }
.vitrine-tete p:last-child { margin: 0; color: var(--encre-douce); }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 2.4vw, 26px);
}
.carte {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(28, 43, 40, .1);
  transition: transform .3s, box-shadow .3s;
}
.carte:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(28, 43, 40, .16); }
.visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.visuel svg { width: 68%; height: 68%; transition: transform .3s; }
.carte:hover .visuel svg { transform: scale(1.05) rotate(-2deg); }
.visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carte-corps { padding: 16px; }
.carte h3 { margin: 0 0 2px; font: 500 1.2rem/1.25 var(--titre); }
.carte-type { margin: 0 0 8px; color: var(--encre-douce); font-size: .9rem; }
.prix { margin: 0; font-weight: 600; }
.p1 { background: #173f3b; --box: #a8282e; --lid: #bd3338; --ribbon: #e0a93f; }
.p2 { background: #efd9a8; --box: #14403c; --lid: #1c554f; --ribbon: #f7f0e1; }
.p3 { background: #a8282e; --box: #f7f0e1; --lid: #fffaf0; --ribbon: #14403c; }
.p4 { background: #dbe4d6; --box: #e0a93f; --lid: #ecbc5c; --ribbon: #a8282e; }
.p5 { background: #0d2a2b; --box: #dbe4d6; --lid: #eef2e9; --ribbon: #a8282e; }
.p6 { background: #e4b9a4; --box: #7e1a22; --lid: #a8282e; --ribbon: #f7f0e1; }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filtre {
  padding: 8px 16px;
  border: 1px solid var(--sapin);
  border-radius: 999px;
  background: transparent;
  color: var(--sapin);
  font: 500 .95rem var(--texte);
  cursor: pointer;
}
.filtre[aria-pressed="true"] { background: var(--sapin); color: var(--papier); }
.erreur { margin: 20px 0 0; color: var(--rouge-fonce); font-weight: 500; }

/* Page article */
.page-article { display: flex; flex-direction: column; min-height: 100svh; }
.entete-page { background: var(--nuit); color: var(--creme); }
.fiche-page {
  flex: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px clamp(16px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.retour { display: inline-block; margin-bottom: 24px; font-weight: 500; text-underline-offset: 4px; }
.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.fiche .visuel { border-radius: 16px; }
.fiche h1 { max-width: none; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
.fiche-prix { margin: 16px 0; font: 500 1.6rem var(--titre); }
.fiche-texte { margin: 0 0 24px; font-size: 1.1rem; }
.achat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.choix { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.choix select { min-width: 220px; padding: 10px 12px; border: 1px solid var(--sapin); border-radius: 8px; background: var(--papier); font: inherit; }
.note { margin: 0; color: var(--encre-douce); font-size: .95rem; }
.fiche-sous-titre { margin: 36px 0 10px; font: 500 1.3rem var(--titre); }
.fiche-details { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d9d0bd; }
.fiche-details li { padding: 10px 0; border-bottom: 1px solid #d9d0bd; }
.fiche-vide { grid-column: 1 / -1; padding: 48px 0; }
.fiche-vide h1 { margin-bottom: 24px; }
.voisins { margin-top: clamp(56px, 8vw, 96px); }
.voisins .grille { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.voisins h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* Bandeau + pied */
.bandeau {
  padding: clamp(64px, 11vw, 130px) clamp(16px, 5vw, 64px);
  text-align: center;
  background: var(--rouge);
  color: var(--creme);
}
.bandeau p { margin: 0; font: 300 italic clamp(2rem, 6vw, 4.2rem)/1.15 var(--titre); }
.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px clamp(16px, 5vw, 64px);
  background: var(--nuit);
  color: var(--creme);
  font-size: .95rem;
}

@media (max-width: 760px) {
  .fiche { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lune { top: 76px; right: 16px; width: 62px; }
}
@media (max-width: 360px) {
  .lune { top: 64px; width: 40px; }
  .surtitre { letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .carte, .visuel svg { transition: none; }
  .bouton:hover, .carte:hover, .carte:hover .visuel svg { transform: none; }
}
