:root {
  --primary: #b46b4e;
  --text-dark: #2e2e2e;
  --bg-light: #faf9f6;

  --header-overlay: rgba(0, 0, 0, 0.4);
  --slider-btn: rgba(255, 255, 255, 0.8);

  --bullet: #555;

  --footer-bg: #222;
  --footer-text: #e0e0e0;
  --footer-text-hover: #fff;
  --footer-subtext: #d0d0d0;
}

/* playfair-display-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}

/* playfair-display-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}

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

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

/* open-sans-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/open-sans-v44-latin-600.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
}

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

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;
}

header {
  position: relative;
  height: 90vh;
  height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.header-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 3em;
  margin-bottom: 0.3em;
}

h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

p {
  font-size: 1em;
}

.section {
  padding: 0px 20px;
  max-width: 1100px;
  margin: 150px auto;
}

.intro {
  text-align: center;
}

.intro p {
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.1em;
}

.gallery-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-slider .slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.gallery-slider .slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  border-radius: 10px;
}

.gallery-slider .slides img.active {
  opacity: 1;
  z-index: 1;
}

.gallery-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--slider-btn);
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 2;
}

.gallery-slider .prev {
  left: 25px;
}

.gallery-slider .next {
  right: 25px;
}

.visit {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.visit-info {
  flex: 1 1 300px;
}

.horaire-list {
  list-style: none;
  margin: 0;
  padding-left: 30px;
}

.horaire-list li::before {
  content: "• ";
  color: var(--bullet);
}

.map {
  flex: 1 1 400px;
  position: relative;
  height: 300px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 40px;
  font-size: 0.9em;
}

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

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

.footer-right p {
  margin: 0;
  font-size: 0.9em;
  color: var(--footer-subtext);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 800px) {
  header {
    height: 70vh;
    height: 70dvh;
  }

  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .section {
    margin: 100px auto;
    padding: 0 15px;
  }

  .intro p {
    font-size: 1em;
    padding: 0 10px;
  }

  .gallery-slider button {
    font-size: 2rem;
    padding: 0 10px;
  }

  .visit {
    flex-direction: column;
    gap: 25px;
  }

  .visit-info,
  .map {
    width: 100%;
    text-align: center;
  }

  .map {
    height: 250px;
  }

  footer {
    padding: 20px;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  header {
    height: 60vh;
    height: 60dvh;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.3em;
  }

  p {
    font-size: 0.95em;
  }

  .section {
    margin: 70px auto;
    padding: 0 12px;
  }

  .intro p {
    font-size: 0.95em;
  }

  .gallery-slider button {
    font-size: 1.8rem;
    padding: 0 5px;
  }

  .visit {
    gap: 20px;
  }

  .horaire-list {
    padding-left: 0;
  }

  .horaire-list li::before {
    content: none;
  }

  .map {
    height: 200px;
  }

  footer {
    font-size: 0.85em;
  }

  .footer-left {
    justify-content: center;
  }
}

/* =========================================================
   HOVER BEHAVIOUR ONLY ON DEVICES THAT SUPPORT HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

  .gallery-slider button:hover {
    color: white;
  }

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

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