/* =========================================
   ORIGINAL CSS (unchanged)
   ========================================= */

:root {
  --primary: #b46b4e;
  --secondary: #3b2d20;
  --accent: #d9c9a6;
  --text-dark: #2c2c2c;
  --text-light: #faf7f3;
  --bg-light: #eae7e3;
  --card-bg: #f7f6f4;
  --footer-bg: #272727;
  --footer-text: #e8d9b8;
  --footer-text-hover: #f7f3e8;
}

/* cormorant-infant-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Infant';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/cormorant-infant-v22-latin-regular.woff2') format('woff2');
}

/* cormorant-infant-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Infant';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/cormorant-infant-v22-latin-600.woff2') format('woff2');
}

/* work-sans-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/work-sans-v24-latin-300.woff2') format('woff2');
}

/* work-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/work-sans-v24-latin-regular.woff2') format('woff2');
}

/* work-sans-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/work-sans-v24-latin-500.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg {
  user-select: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%) contrast(95%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.2), rgba(20, 20, 20, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  padding: 0 20px;
}

.hero-content h1 {
  font-family: "Cormorant Infant", serif;
  font-size: 3em;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.3em;
}

.hero-content h2 {
  font-weight: 400;
  font-size: 1.2em;
  color: var(--accent);
}

/* ===== INTRO ===== */
.intro {
  text-align: center;
  max-width: 800px;
  margin: 120px auto;
  padding: 0 30px;
  color: #333;
}

.intro h2 {
  font-family: "Cormorant Infant", serif;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1em;
}

.intro p {
  font-size: 1.05em;
  color: #4a4a4a;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
  margin: 100px auto;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
}

/* ===== VISIT ===== */
.visit {
  max-width: 800px;
  margin: 100px auto;
  padding: 30px 60px 60px 60px;
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.visit-info h2 {
  font-family: "Cormorant Infant", serif;
  color: var(--secondary);
  margin-bottom: 0.6em;
}

.horaire-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5em;
}

.horaire-list li {
  color: #4c4c4c;
  margin: 0.3em 0;
}

.map {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 25px 40px;
  font-size: 0.95em;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left a {
  color: var(--footer-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.footer-left a svg path {
  fill: var(--footer-text);
  transition: fill 0.2s ease;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 1001;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2em 0.4em;
  line-height: 1;
  transition: color 0.2s ease, transform 0.1s ease;
  z-index: 1001;
}

.nav-btn.prev {
  left: 25px;
}

.nav-btn.next {
  right: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 840px) {
  .visit {
    margin: 100px 20px;
    padding: 25px 20px 40px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    height: 70dvh;
  }

  .intro {
    margin: 80px auto;
  }

  footer {
    text-align: center;
  }
}

@media (max-width: 689px) {
  .gallery img {
    cursor: default;
  }
}

@media (max-width: 480px) {
  .gallery {
    padding: 0 10px;
  }

  .visit-info p,
  .horaire-list li {
    font-size: 0.95em;
  }

  .map iframe {
    height: 260px;
  }
}

@media (max-width: 340px) {
  .gallery {
    padding: 0;
  }
}

/* =========================================
   HOVER STYLES ONLY ON DEVICES THAT SUPPORT HOVER
   ========================================= */
@media (hover: hover) and (pointer: fine) {

  .gallery img:hover {
    transform: scale(1.02);
    opacity: 0.95;
  }

  .footer-left a:hover {
    color: var(--footer-text-hover);
  }

  .footer-left a:hover svg path {
    fill: var(--footer-text-hover);
  }

  .close-btn:hover {
    color: #ccc;
  }

  .nav-btn:hover {
    color: #ccc;
    transform: translateY(-50%) scale(1.1);
  }
}
