/* ============================================================
   THE WINE BIBLE — Features (entry flow, locator, features grid)
   Style: terroir / cave luxe
   ============================================================ */

/* ---------- Generic gate overlay ---------- */
.gate-overlay {
  position: fixed; inset: 0; z-index: 600;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(42,12,17,0.92) 0%, rgba(10,5,7,0.97) 100%);
  backdrop-filter: blur(10px);
}
.gate-overlay.open { display: flex; animation: fadeIn 0.4s ease both; }

.gate-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, #1c0f12 0%, #120a0c 100%);
  border: 1px solid rgba(201,162,74,0.32);
  border-radius: 6px;
  padding: 48px 44px 40px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(201,162,74,0.15) inset, 0 40px 90px -30px rgba(0,0,0,0.8);
  animation: gateUp 0.5s cubic-bezier(0.2,0.8,0.2,1) both;
}
@keyframes gateUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.gate-card::before {
  content: '';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 2px;
  background: linear-gradient(90deg, transparent, #C9A24A, transparent);
}
.gate-mark {
  width: 56px; height: 56px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.gate-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: #C9A24A; margin-bottom: 14px;
}
.gate-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem; font-weight: 300; font-style: italic;
  color: #F5E5BD; line-height: 1.1; margin-bottom: 16px;
}
.gate-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px; line-height: 1.7; color: rgba(212,185,122,0.8);
  margin-bottom: 30px; max-width: 360px; margin-left: auto; margin-right: auto;
}
.gate-btns { display: flex; flex-direction: column; gap: 12px; }
.gate-btn {
  padding: 14px 24px; border-radius: 3px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.2s; border: none;
}
.gate-btn-primary {
  background: linear-gradient(180deg, #C9A24A 0%, #A88030 100%);
  color: #1a0d11;
}
.gate-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gate-btn-ghost {
  background: transparent; color: rgba(212,185,122,0.7);
  border: 1px solid rgba(201,162,74,0.3);
}
.gate-btn-ghost:hover { border-color: #C9A24A; color: #F2D58C; }
.gate-fine {
  font-family: 'Inter', sans-serif;
  font-size: 10px; color: rgba(168,137,71,0.55); margin-top: 22px; line-height: 1.6;
}
.gate-fine a { color: #C9A24A; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Registration form ---------- */
.gate-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; text-align: left; }
.gate-field-label {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #A88947; margin-bottom: 5px;
}
.gate-input, .gate-sel {
  width: 100%; padding: 12px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(201,162,74,0.3);
  border-radius: 3px;
  font-family: 'Inter', sans-serif; font-size: 13px; color: #F5E5BD;
  outline: none; transition: border-color 0.2s;
}
.gate-input::placeholder { color: rgba(168,137,71,0.5); }
.gate-input:focus, .gate-sel:focus { border-color: #C9A24A; background: rgba(0,0,0,0.6); }
.gate-sel option { background: #1c0f12; color: #F5E5BD; }

/* ---------- Welcome-back chip (nav) ---------- */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: rgba(201,162,74,0.1);
  border: 1px solid rgba(201,162,74,0.3);
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--wine); cursor: pointer;
  transition: all 0.2s;
}
.user-chip:hover { background: rgba(201,162,74,0.18); }
.user-chip-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(150deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--gold-light, #D4AE70);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 11px; font-style: italic;
}

/* ---------- Legal modal ---------- */
.legal-scroll {
  text-align: left; max-height: 50vh; overflow-y: auto;
  padding-right: 8px; margin-bottom: 24px;
}
.legal-scroll::-webkit-scrollbar { width: 5px; }
.legal-scroll::-webkit-scrollbar-thumb { background: rgba(201,162,74,0.3); border-radius: 3px; }
.legal-h {
  font-family: 'Fraunces', serif; font-size: 1.1rem; color: #F2D58C;
  margin: 18px 0 8px; font-style: italic;
}
.legal-h:first-child { margin-top: 0; }
.legal-p {
  font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.7;
  color: rgba(212,185,122,0.75); margin-bottom: 8px;
}

/* ============================================================
   FEATURES SECTION (home)
   ============================================================ */
.features-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(110,31,42,0.04) 0%, transparent 50%),
    var(--cream);
  border-top: 1px solid var(--line);
}
.features-inner { max-width: 1400px; margin: 0 auto; padding: 96px 32px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}
.feature-cell {
  background: var(--cream);
  padding: 40px 32px;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}
.feature-cell:hover { background: #fff; }
.feature-cell::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 0; height: 3px;
  background: var(--wine);
  transition: width 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.feature-cell:hover::after { width: 100%; }
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  color: var(--gold, #9C7A3C); margin-bottom: 24px;
}
.feature-ico {
  width: 40px; height: 40px; margin-bottom: 20px;
  color: var(--wine);
}
.feature-ico svg { width: 100%; height: 100%; }
.feature-h {
  font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 400;
  color: var(--wine-ink); letter-spacing: -0.01em; line-height: 1.15;
  margin-bottom: 10px;
}
.feature-p {
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.6;
  color: var(--stone-mid);
}
.feature-arrow {
  margin-top: 18px; font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--wine); display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateX(-6px);
  transition: all 0.3s;
}
.feature-cell:hover .feature-arrow { opacity: 1; transform: translateX(0); }

/* Wide map feature card — text left, illustration right */
.feature-cell-map {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.6fr;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.feature-map-text {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}
.feature-map-media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
  border-left: 1px solid rgba(184,149,90,0.18);
}
@media (max-width: 760px) {
  .feature-cell-map { grid-template-columns: 1fr; }
  .feature-map-media { min-height: 220px; border-left: none; border-top: 1px solid rgba(184,149,90,0.18); }
}

/* ============================================================
   LOCATOR ("Où le trouver")
   ============================================================ */
.locator-block {
  margin-top: 28px;
  border: 1px solid var(--line-strong, rgba(60,52,46,0.28));
  border-radius: 10px;
  overflow: hidden;
}
.locator-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream);
}
.locator-head-ico { width: 20px; height: 20px; color: var(--gold-light, #D4AE70); }
.locator-head-title {
  font-family: 'Fraunces', serif; font-size: 1.15rem; font-style: italic;
}
.locator-head-sub {
  margin-left: auto; font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,239,228,0.6);
}
.locator-list { padding: 8px; }
.locator-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 6px;
  transition: background 0.15s;
}
.locator-row:hover { background: var(--cream-warm, #EFE6D5); }
.locator-row:not(:last-child) { border-bottom: 1px solid var(--line-soft, rgba(26,20,18,0.06)); }
.locator-shop-name {
  font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--wine-ink);
}
.locator-shop-addr {
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--stone-light);
  margin-top: 2px;
}
.locator-stock {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.locator-stock.in { background: rgba(107,111,61,0.14); color: var(--olive, #6B6F3D); }
.locator-stock.low { background: rgba(181,85,45,0.14); color: var(--terracotta, #C06B3E); }
.locator-price {
  font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--wine);
}
.locator-empty {
  padding: 24px; text-align: center;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--stone-light);
}

@media (max-width: 560px) {
  .gate-card { padding: 36px 26px 30px; }
  .gate-title { font-size: 1.6rem; }
  .locator-row { grid-template-columns: 1fr; gap: 6px; }
  .visit-btns { flex-wrap: wrap; }
}

/* ============================================================
   VISIT BLOCK ("Coordonnées & Visite")
   ============================================================ */
.visit-block { margin-top: 36px; }
.visit-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-size: 1.25rem; font-style: italic;
  color: var(--ochre, #9C7A3C);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong, rgba(60,52,46,0.28));
}
.visit-pin { width: 18px; height: 18px; color: var(--wine); }
.visit-card {
  background: linear-gradient(180deg, var(--cream, #F5EFE4) 0%, var(--cream-warm, #EFE6D5) 100%);
  border: 1px solid var(--line, rgba(60,52,46,0.14));
  border-radius: 12px;
  padding: 22px 24px;
}
.visit-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.visit-ico {
  width: 22px; height: 22px; color: var(--wine); flex-shrink: 0; margin-top: 2px;
}
.visit-label {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-light, #8A7F73);
  margin-bottom: 4px;
}
.visit-addr {
  font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--wine-ink, #1A0809);
  line-height: 1.4;
}
.visit-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.visit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.visit-btn svg { width: 16px; height: 16px; }
.visit-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.visit-btn.waze { background: #33ccff; color: #053; }
.visit-btn.gmaps { background: #fff; color: #1a73e8; border: 1px solid rgba(26,115,232,0.3); }
.visit-btn.amaps { background: #1c1c1e; color: #fff; }

.visit-near {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  padding: 11px 18px;
  background: linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream, #F5EFE4);
  border: none; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.visit-near:hover { filter: brightness(1.1); transform: translateY(-1px); }
.visit-near svg { color: var(--gold-light, #D4AE70); }

.visit-near-result:not(:empty) { margin-top: 16px; }
.visit-near-loading {
  font-family: 'Inter', sans-serif; font-size: 12px; font-style: italic;
  color: var(--stone-mid, #5E544A); padding: 8px 0;
}
.visit-near-title {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-light, #8A7F73);
  margin-bottom: 10px;
}
.visit-near-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.visit-near-row:hover { background: rgba(107,39,55,0.06); }
.visit-near-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.visit-near-name { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--wine-ink, #1A0809); flex: 1; }
.visit-near-dist {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--wine); letter-spacing: 0.04em;
}
/* Real DB social/contact links */
.visit-sub-label {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-light, #8A7F73);
  margin: 18px 0 10px;
}
.visit-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.visit-social {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  text-decoration: none; color: #fff; transition: transform 0.15s, filter 0.15s;
}
.visit-social:hover { transform: translateY(-2px); filter: brightness(1.08); }
.visit-social.site { background: var(--wine); }
.visit-social.ig { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.visit-social.fb { background: #1877F2; }
.visit-social.tel { background: #1c1c1e; }
.visit-hours {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--stone-mid, #5E544A);
  margin-top: 6px;
}
.visit-hours-ico { color: var(--ochre, #9C7A3C); display: inline-flex; }
.visit-reserve {
  display: inline-block; margin-top: 14px;
  padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(180deg, var(--ochre, #B8893D), #8C6228);
  color: #fff; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: filter 0.15s, transform 0.15s;
}
.visit-reserve:hover { filter: brightness(1.08); transform: translateY(-1px); }
