:root {
  --primary: #aca;
  --text: #222;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 18px;
  font-family: Liberation, sans-serif;
  color: var(--text);
  background-color: #f6f6f6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: .5rem 1rem;
}

body > header {
  box-shadow: 0 1px 2px #ccc;
}

h1,
h2 {
  font-family: cursive;
  margin: 0;
  margin-bottom: -.5rem;
  padding: 1rem;
}

body > header h1 {
  padding: 0;
}

.cursive {
  font-family: cursive, Liberation, sans-sans-serif;
  font-size: 26px;
}

section img {
  background-color: #fff;
  padding: 1rem;
  border: solid 2px #222;
  border-radius: 3px;
}

img {
  box-sizing: border-box;
}

section p:first-child {
  margin-top: 0;
}

section p:last-child {
  margin-bottom: 0;
}

.intro {
  background-color: var(--primary);
}

.container .horizontal,
.intro p,
.main-footer {
  padding: 3rem 2rem;
}

.horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.with-bottom-decoration::after {
  display: block;
  content: " ";
  border-bottom: solid var(--primary) 2px;
  width: 40%;
  margin: auto;
}

.center {
  text-align: center;
}

#title {
  display: flex;
  height: 60vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: center center no-repeat url("img/remise.webp");
  background-size: cover;
}

#title div {
  color: #fff;
  background-color: #333b;
  border: solid #333 2px;
  border-radius: 3px;
  padding: 1rem 2rem;
}

#title h2 {
  padding-top: 0;
}

#contact {
  background-color: #4a5050;
}

#contact,
#contact a,
#contact a:visited {
  color: #eee;
}

#contact a:hover {
  color: #ccc;
}

.map {
  text-align: center;
}

/* ---- Header ---- */
header {
  background-color: #fff;
}

header ul {
  padding: 0;
}

header a {
  color: #333;
  text-decoration: none;
  border-bottom: solid 2px #333;
  padding-bottom: 5px;
}

header a:hover {
  border-bottom-color: var(--primary);
}

nav li {
  padding: .7rem;
}

@media (min-width: 1180px) {
  nav li {
    display: inline;
  }

  .open-menu,
  .close-menu {
    display: none;
  }
}

@media (max-width: 1179px) {
  .open-menu,
  .close-menu {
    border: solid black 1px;
    border-radius: 5px;
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin-right: 1rem;
    background: center center no-repeat;
  }

  .open-menu {
    background-image: url("img/icons/show-drawer.svg");
  }

  .close-menu {
    float: right;
    margin: 1rem;
    background-image: url("img/icons/hide-drawer.svg")
  }

  nav {
    position: fixed;
    width: 100%;
    left: 100%;
    top: 0;
    bottom: 0;
    transition: all 0.25s ease;
    background-color: #fff;
  }

  #body:target nav {
    transform: translateX(-100%);
  }

  nav ul {
    clear: right;
    padding: 0;
  }

  nav li {
    margin-left: 1rem;
    padding-left: 2rem;
    list-style: none;
    background: no-repeat left center url("img/icons/right-arrow.svg");
  }
}
/* ---- End header ---- */

/* ---- Contact actions ---- */

.contact-actions {
  text-align: center;
}

.contact-actions p {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.action-buttons a {
  display: flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 20px;
  background-color: var(--primary);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.action-buttons img {
  width: 25px;
  margin-right: 8px;
}

.action-buttons a:hover {
  background-color: #9b9;
}

/* ---- End Contact actions ---- */

@media (max-width: 999px) {
  .horizontal {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .container .horizontal {
    padding: 1rem;
  }

  .img {
    order: -1;
    margin: auto;
  }

  section img {
    padding: .5rem;
  }

  img {
    max-width: 100%;
  }
}

/* ---- Temoignages ---- */
blockquote {
  font-style: italic;
  margin: 0;
}

blockquote footer {
  margin-left: 2rem;
  margin-bottom: 2rem;
}

cite {
  font-style: normal;
  text-align: right;
}

.temoignage-bernard {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ---- Photo ---- */
.picture-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.listeminiatures {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.miniature {
  width: 180px;
  height: 80px;
  border: solid 2px #222;
  border-radius: 3px;
  cursor: pointer;
  object-fit: cover;
}

.miniature:hover {
	border-color: var(--primary);
}

figure {
  margin: 0;
}

figure section {
  padding: 0;
}

.navigation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.left-arrow {
  transform: rotate(180deg);
}
.navigation-container a,
.left-arrow,
.right-arrow {
  cursor: pointer;
  height: 30px;
}