/* ─── RESET & TOKENS ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir:   #0A0A0A;
  --blanc:  #FFFFFF;
  --or:     #D4AF37;
  --or-dim: rgba(212,175,55,.15);
  --glass:  rgba(10,10,10,.72);
  --border: rgba(255,255,255,.10);
  --border-or: rgba(212,175,55,.35);
  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--or); color: var(--noir); }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--or); }

/* ─── ACCESSIBILITY & UTILITIES ─────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── NAV ───────────────────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5vw;
  transition: background .4s var(--ease-out), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--border);
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--blanc);
  text-decoration: none;
}

.nav-logo span { color: var(--or); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  position: relative;
  transition: color .25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width .35s var(--ease-out);
}

.nav-links a:hover { color: var(--blanc); }
.nav-links a:hover::after { width: 100%; }

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: -15% 0;
  will-change: transform;
  /* Fond mis à jour pour pointer vers le dossier d'assets */
  background:
    linear-gradient(to bottom, rgba(10,10,10,.2) 0%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.92) 100%),
    url('assets/img/hero-bg.jpg') center/cover no-repeat;
}

/* grain texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .55;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s var(--ease-out) .3s forwards;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .9s var(--ease-out) .55s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--or);
}

.hero-cta {
  display: inline-block;
  padding: .85rem 2.8rem;
  border: 1px solid var(--or);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blanc);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s var(--ease-out) .85s forwards;
  transition: color .45s var(--ease-out);
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
  z-index: -1;
}

.hero-cta:hover { color: var(--noir); }
.hero-cta:hover::before { transform: scaleX(1); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeUp .6s var(--ease-out) 1.4s forwards;
}

.hero-scroll span {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(212,175,55,.7), transparent);
  animation: scrollPulse 2s ease-in-out 2s infinite;
}

/* ─── SECTION SHARED ────────────────────────────────────────────── */
section { padding: 8rem 5vw; }

.section-eyebrow {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 3.5rem;
  color: var(--blanc);
}

.section-title em { font-style: italic; color: var(--or); }

/* ─── FADE-IN OBSERVER ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: none; }

/* stagger delays */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .22s; }
.reveal-d3 { transition-delay: .34s; }
.reveal-d4 { transition-delay: .46s; }

/* ─── ENGAGEMENTS (BENTO) ───────────────────────────────────────── */
#engagements { padding-top: 7rem; padding-bottom: 7rem; }

.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 480px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.bento-cell {
  background: var(--noir);
  position: relative;
  overflow: hidden;
}

.bento-img {
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease-out);
}

.bento-img img {
  width: 100%; height: 100%;
  filter: brightness(.78) saturate(.9);
}

.bento-cell:hover .bento-img { transform: scale(1.04); }

.bento-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.7) 0%, transparent 55%);
}

.bento-label {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
}

.bento-label-tag {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .4rem;
}

.bento-label-title {
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
}

.bento-text-cell {
  padding: 3rem 2.4rem 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: radial-gradient(circle at top right, rgba(212,175,55,0.04), transparent 70%), var(--noir);
  transition: background 0.4s var(--ease-out);
}

.bento-text-cell:hover {
  background: radial-gradient(circle at top right, rgba(212,175,55,0.12), transparent 75%), var(--noir);
}

.bento-icon {
  width: 44px;
  height: 44px;
  margin-bottom: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 10px rgba(212,175,55,0.3));
  transition: transform 0.4s var(--ease-out), filter 0.4s;
}

.bento-text-cell:hover .bento-icon {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 4px 15px rgba(212,175,55,0.5));
}

.bento-text-cell h3 {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: .8rem;
  color: var(--blanc);
}

.bento-text-cell p {
  font-size: .82rem;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
}

.bento-divider {
  width: 24px;
  height: 1px;
  background: var(--or);
  margin-bottom: 1.2rem;
}

/* ─── CATALOGUE ─────────────────────────────────────────────────── */
#catalogue { border-top: 1px solid var(--border); }

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-card {
  background: var(--noir);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transform: scale(1.06);
  transition: transform .9s var(--ease-out), filter .9s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1);
  filter: saturate(1);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.5);
  opacity: 0;
  transition: opacity .5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .product-overlay { opacity: 1; }

.product-price {
  font-family: var(--ff-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--or);
  transform: translateY(12px);
  transition: transform .45s var(--ease-out);
}

.product-card:hover .product-price { transform: none; }

.product-info {
  padding: 1.4rem 1.6rem 1.8rem;
  border-top: 1px solid var(--border);
}

.product-origin {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .3rem;
}

.product-name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: .4rem;
}

.product-note {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}

/* ─── TORREFACTION ──────────────────────────────────────────────── */
#torrefaction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.torr-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.torr-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.6) saturate(.8);
}

.torr-line {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 60%;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, transparent, var(--or), transparent);
}

.torr-content {
  padding: 6rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.torr-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.torr-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.torr-step:first-child { border-top: 1px solid var(--border); }

.step-num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--or);
  opacity: .3;
  line-height: 1;
  padding-top: .1rem;
}

.step-body h4 {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.step-body p {
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

/* ─── VISITE ────────────────────────────────────────────────────── */
#visite {
  border-top: 1px solid var(--border);
  text-align: center;
}

.visite-inner { max-width: 640px; margin: 0 auto; }

.visite-inner p {
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
  margin-bottom: 3rem;
}

.horaires-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--or-dim);
  border: 1px solid var(--or-dim);
  margin-bottom: 4rem;
  text-align: left;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.horaire-cell {
  background: var(--noir);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
  z-index: 1;
}

.horaire-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.horaire-cell:hover {
  transform: translateY(-4px);
  background: linear-gradient(to bottom, #12100A, #0A0A0A);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.horaire-cell:hover::after {
  transform: scaleX(1);
}

.horaire-day {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.horaire-day::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 8px var(--or);
}

/* Griser la puce pour le dimanche (Fermé) */
.horaire-cell:last-child .horaire-day::before {
  background: rgba(255,255,255,0.15);
  box-shadow: none;
}

.horaire-time {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--or);
}

/* Griser le texte pour le dimanche (Fermé) */
.horaire-cell:last-child .horaire-time {
  color: rgba(255,255,255,0.4);
  font-style: italic;
  font-size: 1.3rem;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 5rem 5vw 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand .nav-logo {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 1.4rem;
}

.footer-address {
  font-size: .8rem;
  line-height: 1.9;
  color: rgba(255,255,255,.45);
  font-style: normal;
}

.footer-address strong {
  display: block;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.footer-sep {
  width: 24px;
  height: 1px;
  background: var(--border-or);
  margin: 2rem 0;
}

.footer-form-title {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.8rem;
}

.form-group { margin-bottom: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  color: var(--blanc);
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 300;
  outline: none;
  transition: border-color .3s;
  resize: none;
}

.form-group textarea { min-height: 80px; }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.3);
  font-size: .78rem;
  letter-spacing: .06em;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--or); }

.btn-submit {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--or);
  color: var(--blanc);
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .8rem 2.4rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease-out);
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
  z-index: -1;
}

.btn-submit:hover { color: var(--noir); }
.btn-submit:hover::before { transform: scaleX(1); }

.btn-submit.sent {
  border-color: #4CAF50;
  color: #4CAF50;
}
.btn-submit.sent::before { display: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.8rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.28);
}

.footer-bottom a {
  color: var(--or);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}

.footer-bottom a:hover { opacity: 1; }

/* ─── KEYFRAMES ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: .6; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(.85); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 340px; }
  .bento-cell:first-child { grid-column: 1 / -1; }
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
  #torrefaction { grid-template-columns: 1fr; }
  .torr-visual { min-height: 380px; }
}

@media (max-width: 680px) {
  nav { padding: 1.2rem 5vw; }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: .68rem; }
  .bento-grid { grid-template-rows: 280px 280px 280px; grid-template-columns: 1fr; }
  .bento-cell:first-child { grid-column: auto; }
  .catalogue-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 3rem; }
  .horaires-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
