:root {
  --primary: #b46b4e;

  --bg-body: #f8f7f4;
  --text-dark: #2a2a2a;

  --header-bg: #ece8e1;
  --header-title: #3c2f23;
  --header-subtitle: #6b5743;

  --intro-text: #4a4a4a;

  --gallery-btn: black;
  --gallery-btn-shadow: white;

  --visit-bg: #f4f1ec;
  --visit-border: #e0ddd6;
  --visit-title: #3c2f23;
  --visit-subtitle: #6b5743;
  --visit-address: #5a4a38;
  --visit-hours: #3b3b3b;
  --visit-invite: #6a5a4a;

  --footer-bg: #2a2a2a;
  --footer-text: #f0e8dc;
  --footer-hover: #cbb79e;
}

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

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

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

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

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  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;
}

/* ===== HEADER SPLIT STYLE ===== */
.split-header {
  display: flex;
  flex-wrap: wrap;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.header-left,
.header-right {
  flex: 1 1 50%;
  min-height: 400px;
}

.header-left {
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.header-text {
  text-align: center;
}

.header-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 4em;
  margin: 0 0 0.3em;
  color: var(--header-title);
  letter-spacing: 1px;
}

.header-text h2 {
  font-weight: 400;
  font-size: 1.3em;
  color: var(--header-subtitle);
}

.header-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== INTRO ===== */
.intro {
  max-width: 850px;
  margin: 120px auto;
  padding: 0 20px;
  text-align: center;
}

.intro h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2em;
  color: var(--header-title);
}

.intro p {
  font-size: 1.05em;
  color: var(--intro-text);
  margin-top: 1em;
}

/* ===== GALLERY ===== */
.gallery-slider {
  position: relative;
  margin-top: 100px;
}

.slides {
  position: relative;
  aspect-ratio: 3 / 2;
  height: auto;
  width: 100%;
  overflow: hidden;
}

.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 1s ease;
  opacity: 0;
  pointer-events: none;
}

.slides img.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gallery-btn);
  text-shadow: 0 0 3px var(--gallery-btn-shadow);
  font-size: 3rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* ===== VISIT ===== */
.visit {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  padding: 80px 20px;
  background-color: var(--visit-bg);
  border-top: 1px solid var(--visit-border);
  border-bottom: 1px solid var(--visit-border);
}

.visit-info {
  flex: 1 1 350px;
  max-width: 500px;
}

.visit-info h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--visit-title);
  margin-bottom: 0.6em;
}

.visit-info .address {
  font-weight: 500;
  color: var(--visit-address);
  margin-bottom: 1em;
}

.visit-info .label {
  margin-bottom: 0.3em;
  color: var(--visit-subtitle);
  font-weight: 500;
}

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

.horaire-list li {
  margin: 0.3em 0;
  color: var(--visit-hours);
}

.visit-info .invite {
  font-style: italic;
  color: var(--visit-invite);
}

.map {
  flex: 1 1 400px;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.map iframe {
  width: 100%;
  height: 100%;
  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;
  flex-wrap: wrap;
  align-items: center;
  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;
  margin: 0 5px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split-header {
    flex-direction: column;
    height: auto;
  }

  .header-left,
  .header-right {
    flex: 1 1 100%;
    min-height: unset;
  }

  .header-text h1 {
    font-size: 3em;
  }

  .intro {
    margin: 80px auto;
  }
}

@media (max-width: 480px) {
  .intro h2 {
    font-size: 1.5em;
  }

  footer {
    text-align: center;
  }
}

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

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

  .gallery-slider button:hover {
    font-size: 4rem;
  }

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

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