/* ============================================================
   Restaurant La Vouivre — styles.css
   Palette extraite du logo (analyse pixel) :
     Teal  #007070 dominant (66 %), or #D8A830 ornements
   ============================================================ */

/* ── Variables ── */
:root {
  --teal:         #007070;
  --teal-fonce:   #005252;
  --teal-profond: #003D3D;
  --teal-clair:   #C0E0E0;
  --teal-pale:    #E4F2F2;

  --or:           #D8A830;
  --or-fonce:     #B08820;
  --or-clair:     #EEC860;
  --or-pale:      #F8EDD0;

  --creme:        #F5F0E8;
  --creme-f:      #E6DED0;
  --blanc:        #FAFAF6;
  --encre:        #1A2C2C;
  --encre-doux:   #2E4A4A;
  --encre-doux-popup:   #FFF;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--creme);
  color: var(--encre);
  font-size: 15px;
  line-height: 1.75;
}

/* ── Communs ── */
.section-label {
  font-size: .95rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .75rem;
  opacity: 1;
}
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--teal-profond);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.divider { width: 40px; height: 1px; background: var(--or); margin: 1.5rem 0; }
section  { max-width: 680px; margin: 0 auto; padding: 5rem 2rem; }

/* ── Bandeau or ── */
.band {
  height: 3px;
  background: linear-gradient(to right,
    var(--teal-profond), var(--or) 50%, var(--teal-profond));
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal-profond);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: .9rem 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(216,168,48,.22);
}
nav a {
  color: var(--teal-clair);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color .2s;
}
nav a:hover { color: var(--or-clair); }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: var(--teal-profond);
  overflow: hidden;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
   background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.active { opacity: .55; }
.hero-slide:nth-child(1) { background-image: url('../img/w-01.webp'); }
.hero-slide:nth-child(2) { background-image: url('../img/w-02.webp'); }
.hero-slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=80'); }

/* Overlay radial teal */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(0,80,80,.28) 0%, rgba(0,45,45,.58) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Halo sombre derrière logo + textes */
.hero-halo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 3.5rem 2rem;
  border-radius: 50% 50% 46% 46% / 40% 40% 36% 36%;
/*  background: radial-gradient(ellipse at center,
    rgba(0,20,20,.72) 0%,
    rgba(0,20,20,.55) 50%,
    rgba(0,20,20,0)   100%);
	*/
}

.hero-logo-img {
  width: clamp(110px, 18vw, 158px);
  height: auto;
  margin-bottom: 1.6rem;
  /* Ombre portée supplémentaire sur le logo lui-même */
  filter:
    drop-shadow(0 0 18px rgba(0,0,0,.7))
    drop-shadow(0 0 40px rgba(0,0,0,.45));
}

.hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 6rem);
  color: #FAFAFA;
  letter-spacing: .04em;
  line-height: 1.1;
  text-shadow:
    0 2px 12px rgba(0,0,0,.8),
    0 0  40px rgba(0,0,0,.5);
}
.hero-logo em {
  display: block;
  font-style: italic;
  font-size: .55em;
  letter-spacing: .15em;
  color: var(--or-clair);
  text-shadow:
    0 2px 10px rgba(0,0,0,.8),
    0 0  30px rgba(0,0,0,.45);
}
.hero-sub {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal-clair);
  margin-top: 1.4rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
  opacity: .92;
}

/* Dots slideshow — AU-DESSUS de la flèche */
.hero-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 10%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(192,224,224,.3);
  cursor: pointer;
  transition: background .4s, transform .3s;
}
.hero-dot.active { background: var(--or); transform: scale(1.5); }

/* Flèche scroll */
.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--teal-clair);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .6;
  transition: opacity .2s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll span { display: block; width: 1px; height: 28px; background: var(--or); }

/* ── MENU SEMAINE ── */
#menu-wrap { background: var(--blanc); }
#menu-wrap h2  { color: var(--teal-profond); font-size: clamp(2.5rem, 5vw, 3.5rem); }

.menu-date {
  font-size: .95rem;
  letter-spacing: .15em;
  color: var(--encre-doux);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: .85;
}
.menu-day { border-top: 1px solid var(--creme-f); padding: 1.25rem 0; }
.menu-day-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.55rem;
  color: var(--teal);
  margin-bottom: .4rem;
}
.menu-entree, .menu-plat, .menu-dessert { font-size: 1.02rem; color: var(--encre); }
.menu-tag {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-doux);
  margin-right: .5rem;
  opacity: .75;
}
.menu-prix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--teal-fonce);
  margin-top: .4rem;
}

/* ── CARTE PERMANENTE ── */
#carte-wrap { background: var(--teal-pale); }
#carte-wrap h2 { color: var(--teal-profond); font-size: clamp(2.5rem, 5vw, 3.5rem); }
#carte-wrap .section-label { color: var(--or-fonce); }

.carte-section { margin-bottom: 2.5rem; }
.carte-section-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  color: var(--teal-fonce);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--teal-clair);
}
.carte-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px dotted rgba(0,112,112,.18);
  gap: 1rem;
}
.carte-item:last-child { border-bottom: none; }
.carte-item-nom   { font-size: .98rem; color: var(--encre); flex: 1; }
.carte-item-desc  { font-size: .85rem; color: var(--encre-doux); font-style: italic; display: block; opacity: .75; }
.carte-item-prix  { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--teal-fonce); white-space: nowrap; flex-shrink: 0; }

/* ── HORAIRES + PARALLAX ── */
.horaires-outer { position: relative; overflow: hidden; }

.parallax-bg {
  position: absolute;
  inset: -40% 0;
  background-image: url('https://images.unsplash.com/photo-1559329007-40df8a9345d8?w=1400&q=75');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(.12) sepia(.6) hue-rotate(140deg) saturate(1.8);
}
.horaires-outer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,40,40,.55) 0%,
    rgba(0,60,60,.18) 50%,
    rgba(0,40,40,.55) 100%);
  pointer-events: none;
}
.horaires-outer section { position: relative; z-index: 1; padding: 6rem 2rem; }
.horaires-outer h2 { color: var(--teal-pale); }
.horaires-outer .section-label { color: var(--or-clair); }
.horaires-outer .divider { background: var(--or); }

.horaires-grid { display: grid; gap: 0; }
.horaire-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(192,224,224,.2);
  font-size: .9rem;
}
.horaire-row:last-child { border-bottom: none; }
.horaire-jour  { color: #E8F5F5; }
.horaire-heure { color: var(--teal-clair); font-size: .85rem; }
#horaires-note { margin-top: 1.5rem; font-size: .82rem; color: var(--teal-clair); font-style: italic; opacity: .7; }

/* ── ÉVÉNEMENTS ── */
#events-wrap {
  position: relative;
  overflow: hidden;
}

.events-parallax-bg {
  position: absolute;
  inset: -40% 0;
  background-image: url('https://images.unsplash.com/photo-1429962714451-bb934ecdc4ec?w=1400&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.18) sepia(0.3) hue-rotate(140deg) saturate(1.5);
}

#events-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,40,40,.6) 0%,
    rgba(0,60,60,.25) 50%,
    rgba(0,40,40,.6) 100%);
  pointer-events: none;
}

#events-wrap section { position: relative; z-index: 1; }
#events-wrap h2      { color: var(--teal-pale); }
#events-wrap .section-label { color: var(--or-clair); }
#events-wrap .divider       { background: var(--or); }

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(216,168,48,.3);
  border-radius: 2px;
  overflow: hidden;
}

.event-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.event-img-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: rgba(216,168,48,.07);
}

.event-body { padding: 1.2rem; }

.event-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--teal-pale);
  margin-bottom: .4rem;
}

.event-desc {
  font-size: .82rem;
  color: var(--teal-clair);
  line-height: 1.6;
  opacity: .85;
}

.event-date {
  margin-top: .75rem;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or-clair);
}

/* ── GALERIE ── */
#galerie-wrap { background: var(--blanc); }
#galerie-wrap h2 { color: var(--teal-profond); }

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.galerie-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--creme-f);
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.galerie-item:hover img {
  transform: scale(1.06);
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 61, 61, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}

.galerie-overlay span {
  color: white;
  font-size: 2rem;
  font-weight: 300;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .3s ease, transform .3s ease;
}

.galerie-item:hover .galerie-overlay {
  background: rgba(0, 61, 61, .45);
}

.galerie-item:hover .galerie-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 20, 20, .93);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(216,168,48,.2);
  cursor: default;
}

.lightbox-fermer {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(216,168,48,.4);
  color: var(--or-clair);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-fermer:hover { background: rgba(216,168,48,.15); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(216,168,48,.3);
  color: var(--or-clair);
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(216,168,48,.15); }

@media (max-width: 600px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* ── CONTACT ── */
#contact { background: var(--creme); }
#contact h2 { color: var(--teal-profond); }

.contact-bloc { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: var(--encre); }
.contact-bloc a { color: var(--teal); text-decoration: none; transition: color .2s; }
.contact-bloc a:hover { color: var(--or-fonce); }
.contact-tel { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--teal-fonce); margin-top: 1rem; }
.contact-note { margin-top: .75rem; font-size: .82rem; color: var(--encre-doux); }

/* ── FOOTER ── */
footer {
  background: var(--teal-profond);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(192,224,224,.4);
  border-top: 1px solid rgba(216,168,48,.2);
}
footer a { color: var(--or-clair); text-decoration: none; opacity: .7; transition: opacity .2s; }
footer a:hover { opacity: 1; }

.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-links a {
  color: var(--teal-clair);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .55;
  transition: opacity .2s;
}
.social-links a:hover { opacity: 1; }


.event-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.event-img-wrap .event-img {
  transition: transform .5s ease;
}
.event-img-wrap:hover .event-img {
  transform: scale(1.05);
}
.event-img-wrap .event-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 61, 61, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.event-img-wrap .event-img-overlay span {
  color: white;
  font-size: 2rem;
  font-weight: 300;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .3s ease, transform .3s ease;
}
.event-img-wrap:hover .event-img-overlay {
  background: rgba(0, 61, 61, .45);
}
.event-img-wrap:hover .event-img-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* ── Responsive ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 20, 20, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.popup-overlay.active {
  display: flex;
  animation: popupFadeIn .35s ease forwards;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-card {
  position: relative;
  background: var(--creme);
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(216,168,48,.35);
  box-shadow:
    0 0 0 1px rgba(0,80,80,.08),
    0 24px 60px rgba(0,20,20,.55);
  animation: popupSlideUp .4s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes popupSlideUp {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Bandeau teal en haut */
.popup-bandeau {
  height: 4px;
  background: linear-gradient(to right, var(--teal-profond), var(--or), var(--teal-profond));
}

/* Image optionnelle */
.popup-img-wrap {
  display: none;
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--teal-profond); /* fond visible si l'image ne remplit pas tout */
}
.popup-img-wrap.visible { display: block; }

.popup-img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* image entière, jamais rognée, jamais déformée */
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.popup-card:hover .popup-img { transform: scale(1.02); }

/* Dégradé bas sur l'image → fondu vers le corps */
.popup-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--teal-profond) 80%, var(--creme));
  pointer-events: none;
}

.popup-body { padding: 2.2rem 2.4rem 2.4rem; }

.popup-label {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: .6rem;
}

.popup-titre {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--teal-profond);
  line-height: 1.2;
  margin-bottom: 0;
}

.popup-divider {
  width: 36px;
  height: 1px;
  background: var(--or);
  margin: 1.2rem 0;
}

.popup-texte {
  font-size: .92rem;
  color: var(--encre-doux);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.popup-btn {
  display: inline-block;
  padding: .7rem 1.8rem;
  background: var(--teal-profond);
  color: var(--teal-clair);
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid rgba(216,168,48,.3);
  transition: background .2s, color .2s;
}
.popup-btn:hover {
  background: var(--teal-fonce);
  color: var(--or-clair);
}
.popup-btn.hidden { display: none; }

.popup-fermer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--encre-doux-popup);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s, border-color .2s;
}
.popup-fermer:hover {
  background: rgba(0,80,80,.08);
  border-color: var(--teal);
}

@media (max-width: 520px) {
  .popup-body { padding: 1.6rem 1.4rem 1.8rem; }
}
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
  nav { gap: 1.2rem; }
  .hero-halo { padding: 2rem 2rem 1.5rem; }
  .hero-dots { bottom: 3.8rem; }
  .hero-scroll { bottom: 1rem; }
}
