/* ══════════════════════════════════════════
   COMPONENTS — Theme · Lang · Mobile Menu · Sections
   ══════════════════════════════════════════ */

/* ── BOUTON LANGUE ── */
[data-lang="es"] .t-fr { display: none !important; }
[data-lang="fr"] .t-es { display: none !important; }

#lang-btn {
  position: fixed;
  top: 50%;
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: var(--z-controls);
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  transform: translateY(-50%);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
#lang-btn:hover { background: var(--gold2); transform: translateY(-50%) scale(1.04); }

/* ── THEME TOGGLE ── */
#tw {
  position: fixed;
  bottom: max(1.75rem, env(safe-area-inset-bottom));
  right: max(1.75rem, env(safe-area-inset-right));
  z-index: var(--z-controls);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border2);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all .3s;
}
[data-theme="light"] #tw { background: rgba(247, 240, 227, 0.92); }
[data-theme="dark"]  #tw { background: rgba(15, 8, 3, 0.92); }

#tw-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold2); font-weight: 500; }

#tw-pill {
  width: 36px;
  height: 20px;
  background: var(--gold);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  transition: background .3s;
}
#tw-pill::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .3s;
}
[data-theme="dark"] #tw-pill::after { transform: translateX(16px); }

/* ── MENU MOBILE ── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s .42s;
}
#mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s 0s;
}

#mm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .42s;
}
#mobile-menu.open #mm-backdrop { background: rgba(0, 0, 0, .55); }

#mm-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.25, .46, .45, .94);
  display: flex;
  flex-direction: column;
  padding: 72px 2.5rem 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
[data-theme="light"] #mm-panel { background: #f7f0e3; }
[data-theme="dark"]  #mm-panel { background: #0f0803; }
#mobile-menu.open #mm-panel { transform: translateX(0); }

.mm-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .18s;
}
.mm-link:active, .mm-link:focus-visible { color: var(--gold2); }
.mm-link-num { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 2px; color: var(--muted); }

.mm-bottom { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }

.mm-lang-row { display: flex; gap: .75rem; }
.mm-lang-btn {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--border2);
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  transition: all .2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mm-lang-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }

.mm-email      { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.mm-email a    { color: var(--gold2); text-decoration: none; }

/* ── HISTORIA ── */
#historia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.hist-left {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
[data-theme="light"] .hist-left { background: linear-gradient(145deg, #c49228 0%, #8b3a10 55%, #5c1e04 100%); }
[data-theme="dark"]  .hist-left { background: linear-gradient(145deg, #3d1c08 0%, #1a0a02 100%); }

.hist-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
}
.hist-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .12);
}
.hist-logo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.4));
  transition: transform .6s cubic-bezier(.25, .46, .45, .94);
}
.hist-logo:hover { transform: scale(1.04) rotate(1deg); }

.hist-num {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 600;
  color: rgba(255, 255, 255, .04);
  line-height: 1;
  z-index: 1;
  user-select: none;
  font-style: italic;
}
.hist-right {
  padding: 5rem 4.5rem;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  transition: background .5s;
}
.hist-divider { width: 48px; height: 1px; background: var(--border2); }

.hist-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  color: var(--sienna);
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}
[data-theme="dark"] .hist-quote { color: var(--gold3); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: all .25s;
  width: fit-content;
  margin-top: .5rem;
  cursor: pointer;
}
.arrow-link:hover { gap: 18px; color: var(--sienna); border-color: var(--sienna); }

/* ── VALEURS ── */
#valeurs {
  padding: 7rem 5rem;
  background: var(--section-alt);
  transition: background .5s;
}
.val-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.val-top p { font-size: 15px; color: var(--muted); line-height: 1.85; font-weight: 300; }

.val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.val-card {
  padding: 3rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background .3s;
  transform-style: preserve-3d;
  will-change: transform;
  perspective: 800px;
}
.val-card:last-child { border: none; }
.val-card-inner     { transition: transform .15s ease-out; }
.val-card-num       { font-family: 'Cormorant Garamond', serif; font-size: 64px; color: var(--border); font-style: italic; line-height: 1; margin-bottom: 1.5rem; font-weight: 300; transition: color .3s; }
.val-card:hover .val-card-num { color: var(--border2); }
.val-card h3        { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: .75rem; transition: color .5s; }
.val-card p         { font-size: 13px; line-height: 1.9; color: var(--muted); font-weight: 300; }

.val-card-shine {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
}
.val-card:hover .val-card-shine { opacity: 1; }

.val-card-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold3));
  transition: width .5s cubic-bezier(.25, .46, .45, .94);
}
.val-card:hover .val-card-accent { width: 100%; }

/* ── QUESO ── */
#queso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  transition: background .5s;
  background: var(--bg);
}
.queso-left {
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.queso-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1;
  font-weight: 300;
  color: var(--ink);
  transition: color .5s;
}
.queso-h em  { font-style: italic; color: var(--gold2); }
.queso-body  { font-size: 15px; line-height: 1.95; color: var(--muted); font-weight: 300; }

.queso-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .5rem; }
.pill {
  padding: 8px 20px;
  border: 1px solid var(--border2);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--gold2);
  text-transform: uppercase;
  transition: all .25s;
  cursor: default;
}
.pill:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }

.queso-facts {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.qf     { display: flex; flex-direction: column; gap: 4px; }
.qf-l   { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.qf-v   { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--gold2); font-style: italic; font-weight: 300; }

.queso-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
[data-theme="light"] .queso-right { background: linear-gradient(145deg, var(--bg2), var(--bg3)); }
[data-theme="dark"]  .queso-right { background: linear-gradient(145deg, #1a0e05, #251205); }

.queso-visual-wrap { position: relative; z-index: 2; }

.queso-logo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .4s;
}
[data-theme="light"] .queso-logo { box-shadow: 0 24px 60px rgba(154, 115, 24, .14); }
[data-theme="dark"]  .queso-logo { box-shadow: 0 24px 60px rgba(196, 146, 40, .14); }
.queso-logo img { width: 100%; height: 100%; object-fit: contain; }

.queso-ring  { position: absolute; inset: -28px; border-radius: 50%; border: 1px dashed var(--border); animation: slowSpin 30s linear infinite; }
.queso-ring2 { position: absolute; inset: -52px; border-radius: 50%; border: 1px solid var(--border); opacity: .4; animation: slowSpin 50s linear infinite reverse; }

.queso-bg-text {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 600;
  color: var(--border);
  opacity: .6;
  user-select: none;
  white-space: nowrap;
  font-style: italic;
  letter-spacing: -4px;
  bottom: 1rem;
  right: -1rem;
}

/* ── POINTS DE VENTE ── */
#vente {
  padding: 7rem 5rem;
  background: var(--card-bg);
  transition: background .5s;
}
.vente-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}
.vente-top p { font-size: 15px; color: var(--muted); line-height: 1.85; font-weight: 300; }

.vente-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border: 1px solid var(--border);
  min-height: 520px;
}
.vente-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 520px;
}
.vente-item {
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.vente-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform .25s;
}
.vente-item:hover,
.vente-item.active          { background: var(--bg2); }
.vente-item.active::before  { transform: scaleY(1); }

.vente-item-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: var(--ink); transition: color .5s; }
.vente-item.active .vente-item-name { color: var(--gold2); }
.vente-item-addr { font-size: 12px; color: var(--muted); font-weight: 300; }
.vente-item-city { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

#map {
  height: 520px;
  z-index: 1;
  transition: filter .4s;
}
[data-theme="dark"] #map { filter: invert(1) hue-rotate(180deg) brightness(.85); }
.leaflet-container { background: var(--bg2); }

/* ── CTA ── */
#cta {
  position: relative;
  overflow: hidden;
  padding: 7rem 5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  transition: background .5s;
}
[data-theme="light"] #cta { background: linear-gradient(135deg, var(--sienna2), var(--sienna), #8b4010); }
[data-theme="dark"]  #cta { background: linear-gradient(135deg, #3d1c08, #5c2d0a); }

#cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,196,106,.4), transparent);
  animation: shimmerLine 4s ease-in-out infinite;
}

.cta-bg-num {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  font-weight: 600;
  color: rgba(255, 255, 255, .03);
  line-height: 1;
  user-select: none;
  font-style: italic;
}
#cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  color: #faf6ee;
  font-weight: 300;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
#cta h2 em    { font-style: italic; color: var(--gold3); }
#cta h2 small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(250, 246, 238, .35);
  font-weight: 300;
  margin-bottom: .75rem;
  font-style: normal;
}

.cta-btn {
  background: #faf6ee;
  color: var(--sienna2);
  border: none;
  padding: 16px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold3);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s;
}
.cta-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.cta-btn:hover         { transform: translateY(-2px); }
.cta-btn span          { position: relative; z-index: 1; }

/* ── CONTACT ── */
#contacto {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 620px;
  transition: background .5s;
}
.cont-left {
  padding: 5.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .cont-left { background: var(--ink2); }
[data-theme="dark"]  .cont-left { background: var(--bg3); }

/* Cercles animés fond gauche */
.cont-circles         { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cont-circle          { position: absolute; border-radius: 50%; border: 1px solid rgba(196, 146, 40, .08); }
.cont-circle:nth-child(1) { width: 400px; height: 400px; bottom: -100px; right: -100px; animation: pulseSlow 8s ease-in-out infinite; }
.cont-circle:nth-child(2) { width: 260px; height: 260px; bottom: -40px;  right: -40px;  animation: pulseSlow 8s ease-in-out infinite 2s; }
.cont-circle:nth-child(3) { width: 150px; height: 150px; bottom: 20px;   right: 20px;   animation: pulseSlow 8s ease-in-out infinite 4s; }

.cont-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.cont-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.cont-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 1;
  font-weight: 300;
  color: #faf6ee;
  position: relative;
  z-index: 2;
}
.cont-h em { font-style: italic; color: var(--gold3); }

.cont-info   { display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 2; }
.ci-item     { display: flex; flex-direction: column; gap: 5px; }
.ci-label    { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ci-val      { font-size: 14px; color: rgba(250, 246, 238, .5); font-weight: 300; line-height: 1.65; }

.cont-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(250, 246, 238, .18);
  line-height: 1.75;
  border-top: 1px solid rgba(250, 246, 238, .07);
  padding-top: 2rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.cont-right {
  padding: 5.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-bg);
  transition: background .5s;
}

/* Formulaire */
.form          { display: flex; flex-direction: column; gap: 1.5rem; }
.form-title    { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--ink); margin-bottom: .5rem; transition: color .5s; }
.form-title em { font-style: italic; color: var(--gold2); }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.fg       { display: flex; flex-direction: column; gap: 8px; }
.fg label { font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

.fg input, .fg textarea, .fg select {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border2);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
  font-weight: 300;
  width: 100%;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-bottom-color: var(--gold); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--muted); opacity: .45; }
.fg textarea { height: 90px; resize: none; }
.fg select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a7318' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.form-submit {
  align-self: flex-start;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  margin-top: .5rem;
  position: relative;
  overflow: hidden;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  transform: translateX(-100%);
  transition: transform .3s;
}
.form-submit:hover::before  { transform: translateX(0); }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(154,115,24,.3); }
