:root {
  --cream: #f4efe7;
  --terracotta: #b86145;
  --terracotta-dark: #a24a32;
  --green-dark: #3f4a3e;
  --text-dark: #2b1e18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background-color: color-mix(in srgb, var(--cream) 75%, transparent);
  padding: 1.5rem;
  text-align: center;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 300;
}

.nav a:hover {
  color: var(--terracotta-dark);
}

.burger {
  display: none;
}

/* HERO */
.hero {
  height: 60vh;
  background: url("assets/fondcombe.jpeg") center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 5rem;
}

/* SECTIONS */
.section {
  max-width: 700px;
  margin: auto;
  padding: 5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#histoire img {
  margin-top: 5rem;
}

.story {
  font-size: 1.5rem;
  color: var(--terracotta-dark);
  text-align: left;
}

.photo-separator {
  margin: auto;
  padding: 5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta-dark);
  height: 100vh;
}

.photo-bg {
  background: var(--green-dark);
  height: 100vh;
  width: 65%;
  padding: 0 2rem;
  display: flex;
}

.photo-bg div {
  display: flex;
  justify-content: center;
  flex: 1;
}

.photo-bg img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--terracotta-dark);
  margin-bottom: 3rem;
}

.section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.info-container {
  margin-bottom: 3rem;
}

/* CARDS */
.card {
  background: var(--terracotta);
  color: white;
  padding: 1rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.2rem;
  text-align: left;
  width: 75%;
}

.card a {
  color: white;
}

.card p {
  margin-left: 0.1rem;
}

.card h3 {
  margin-block-start: 16px;
  margin-block-end: 16px;
}

.title-container {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin-bottom: 1rem;
}

.title-container h3 {
  margin-bottom: 0.5rem;
}

.title-container span {
  font-size: 1rem;
  text-align: center;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 33%;
}

.icon svg {
  width: 48px;
  height: 48px;
  fill: black;
}

.icon img {
  width: 84px;
  height: 84px;
}

/* INFOS */
.section.dark {
  background: var(--terracotta-dark);
  color: #f4efe7;
  max-width: none;
  font-size: 1.25rem;
}

.section.dark a {
  color: #f4efe7;
}

.section.dark h2 {
  color: var(--cream);
}

.card-bg { 
  background-color: var(--green-dark);
  width: 50%;
  padding: 3rem
}

.info {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin: 1rem auto;
  max-width: 600px;
}

.info img {
  width: 80px;
  height: 80px;
}

.info div {
  font-size: 1.25rem;
  text-align: left;
}

.info a {
  text-align: left;
}

.logement {
  text-align: left;
}

.hotel-container {
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hotel ul {
  margin: 0.5rem 0;
}

.hotel span {
  font-size: 0.9rem;
  max-width: 370px;
}

.theme img {
  width: 100%;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: var(--cream);
    padding: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: block;
    margin: auto;
    font-size: 1.5rem;
    background: none;
    border: none;
  }

  .card {
    flex-direction: column;
    text-align: center;
  }

  .card-bg {
    width: 100%;
    padding: 0 1.5rem;
  }

  #histoire {
    padding: 5rem 1.5rem;
  }

  #accueil {
    text-align: center;
  }

  .story {
    font-size: 1.3rem;
  }

  .photo-separator {
    padding: 1.5rem;
    height: auto;
  }

  .photo-bg {
    width: 100%;
    padding: 1rem;
    height: 40vh;
  }

  .photo-bg img {
    object-position: 20% center;
  }

  .card {
    gap: 1rem;
  }

  .info {
    gap: 2.5rem;
  }

  .info div {
    max-width: 100%;
  }

  .hotel-container {
    padding: 0 1.5rem;
    gap: 1rem;
  }

  .theme {
    display: flex;
    flex-direction: column;
  }

  .theme img {
    position: relative;
    left: -1.5rem;
    width: calc(100% + 3rem);
  }

  .section {
    padding: 1rem;
  }
}
