:root {
  --bg: #f5f2ed;
  --surface: #ffffff;
  --surface-soft: #ebe5dc;
  --encre: #1b1d1c;
  --encre-douce: #59605b;
  --accent: #9a4a24;
  --accent-fonce: #763517;
  --accent-clair: rgba(154, 74, 36, 0.1);
  --bordure: #dfd7cb;
  --rayon-lg: 20px;
  --rayon-md: 14px;
  --rayon-sm: 10px;
  --ombre-douce: 0 10px 30px rgba(27, 29, 28, 0.06);
  --ombre-hover: 0 18px 40px rgba(27, 29, 28, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--encre);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Bandeau moderne atelier avec logo 300px */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 134, 77, 0.22), transparent 42%),
    linear-gradient(135deg, #1b1815 0%, #2e231c 55%, #3d2b1f 100%);
  color: #ffffff;
  padding: 4rem 0 3.75rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.75rem;
}

.hero-logo-wrap {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 7px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4d7be;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.accroche {
  margin: 0 0 1.85rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--rayon-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(154, 74, 36, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-fonce);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.btn-block {
  width: 100%;
}

/* Sections & Filtres */
.section {
  padding: 3.75rem 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-header h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 1.2;
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filtre-btn {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--bordure);
  background: var(--surface);
  color: var(--encre-douce);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filtre-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filtre-btn.actif {
  background: var(--encre);
  border-color: var(--encre);
  color: #ffffff;
}

/* Grille & Cartes produits (format photo portrait 3 / 4 plus grand) */
.grille-produits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.85rem;
}

.carte-produit {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: var(--ombre-douce);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.carte-produit:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-hover);
  border-color: rgba(154, 74, 36, 0.35);
}

.carte-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  overflow: hidden;
}

.carte-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.carte-produit:hover .carte-image-wrap img {
  transform: scale(1.03);
}

.carte-corps {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.carte-entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.carte-entete h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.prix {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--accent);
  background: var(--accent-clair);
  padding: 0.24rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
}

.carte-desc {
  margin: 0 0 0.85rem;
  color: var(--encre-douce);
  font-size: 0.93rem;
  flex: 1;
}

.carte-meta {
  margin: 0 0 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-soft);
  font-size: 0.83rem;
  color: var(--encre-douce);
}

/* Bloc commande */
.encadre {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--ombre-douce);
}

.encadre h2 {
  margin: 0 0 1.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
}

.etapes-commande {
  list-style: none;
  counter-reset: etape;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.etapes-commande li {
  counter-increment: etape;
  background: var(--bg);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-md);
  padding: 1.15rem 1.2rem;
  font-size: 0.94rem;
  color: var(--encre-douce);
}

.etapes-commande li::before {
  content: "0" counter(etape);
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.etapes-commande strong {
  display: block;
  color: var(--encre);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* Pied de page */
.footer {
  border-top: 1px solid var(--bordure);
  padding: 1.75rem 0 2.75rem;
  color: var(--encre-douce);
  font-size: 0.84rem;
}

/* Modale avec visuel 3 / 4 */
.modale {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modale.ouverte {
  display: flex;
}

.modale-contenu {
  position: relative;
  background: var(--surface);
  border-radius: var(--rayon-lg);
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.modale-fermer {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--bordure);
  border-radius: 50%;
  background: var(--surface);
  color: var(--encre);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modale-fermer:hover {
  background: var(--surface-soft);
}

.modale-grille {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1.85rem;
  align-items: start;
}

.modale-visuel img {
  width: 100%;
  border-radius: var(--rayon-md);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface-soft);
}

.badge {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--encre);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.modale-infos h3 {
  margin: 0.6rem 0 0.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.prix-grand {
  margin: 0 0 0.9rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.specs-liste {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-md);
  font-size: 0.89rem;
  display: grid;
  gap: 0.4rem;
}

.champ-perso {
  margin-bottom: 1.1rem;
}

.champ-perso label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.champ-perso textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
}

.champ-perso textarea:focus {
  outline: 2px solid rgba(154, 74, 36, 0.35);
  border-color: var(--accent);
}

@media (max-width: 860px) {
  .hero {
    padding: 2.75rem 0 2.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-logo-wrap {
    margin: 0 auto;
    width: 220px;
    height: 220px;
  }

  .accroche {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .encadre {
    padding: 1.4rem;
  }

  .modale-grille {
    grid-template-columns: 1fr;
  }
}
