/* BASE */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: #f8f5ef;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* BARRE DU HAUT */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 65px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: white;
  border-bottom: 1px solid #d4af37;
  z-index: 1000;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 65px;
  min-width: 0;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-icon,
.logo-centre {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-picto {
  display: block;
  width: 55px;
  height: 55px;
  object-fit: contain;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-icon:hover .nav-picto {
  transform: scale(1.08);
  opacity: 0.75;
}

.logo-centre img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: contain;
}

/* PHOTO D'ACCUEIL */
.hero-photo {
  position: relative;
  min-height: 100svh;
  padding: 130px 25px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.55)
    ),
    url("./Image/Facade.jpg") center / cover no-repeat;
}

.hero-contenu {
  width: 100%;
  max-width: 950px;
}

.hero-photo h1 {
  margin: 0;
  font-family: "Bodoni 72", Didot, Georgia, serif;
  font-size: clamp(35px, 5vw, 65px);
  font-weight: normal;
  letter-spacing: 5px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #d4af37;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.description-accueil {
  margin-top: 20px;
  font-family: "Bodoni 72", Didot, Georgia, serif;
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* FLÃˆCHE */
.fleche-bas {
  position: absolute;
  bottom: 28px;
  left: 50%;
  color: white;
  font-size: 42px;
  line-height: 1;
  text-decoration: none;
  animation: flecheBouge 1.4s ease-in-out infinite;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

@keyframes flecheBouge {
  0%, 100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* CADRES */
section {
  scroll-margin-top: 90px;
  text-align: center;
}

.section-infos,
#horaires,
#carte,
#galerie {
  width: calc(100% - 50px);
  max-width: 900px;
  margin: 65px auto;
  padding: 70px 45px;
  background: white;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

section h2 {
  margin: 0 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #111;
}

section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  margin: 22px auto 0;
  background: #d4af37;
}

/* INFORMATIONS */
.info-ligne {
  margin: 14px 0;
  font-family: Palatino, Georgia, serif;
  font-size: 21px;
  line-height: 1.7;
  letter-spacing: 0.5px;
  color: #222;
}

.info-ligne a {
  color: inherit;
  text-decoration-color: #d4af37;
}

/* SERVICES */
.services-bloc {
  margin-top: 42px;
}

.services-bloc h3 {
  margin: 0 0 25px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b28b20;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: auto;
}

.service-item {
  min-width: 0;
  min-height: 100px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(178, 139, 32, 0.5);
  background: white;
}

.service-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  object-fit: contain;
}

.service-item p {
  margin: 0;
  font-family: Palatino, Georgia, serif;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.service-item p::after {
  content: "";
  display: block;
  width: 35px;
  height: 1px;
  margin: 8px auto 0;
  background: #d4af37;
}

/* HORAIRES, CARTE ET GALERIE */
#horaires p,
#carte p,
#galerie p {
  font-family: Palatino, Georgia, serif;
  font-size: 20px;
  line-height: 1.7;
  color: #222;
}

#horaires p {
  margin: 20px 0;
}

/* PHOTOS */
.galerie-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 800px;
  margin: 35px auto 0;
}

.photo {
  display: block;
  width: 100%;
  height: 300px;
  padding: 0;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.zoomable {
  cursor: zoom-in;
}

/* PHOTOS DES MENUS */
#carte .galerie-photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

#carte .photo {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: white;
}

/* AGRANDISSEMENT DES PHOTOS */
.image-zoom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30000;
  padding: 45px 15px;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.94);
}

.image-zoom img {
  display: block;
  max-width: 100%;
  max-height: 85dvh;
  object-fit: contain;
}

.fermer-zoom {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 0 10px;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

/* PIED DE PAGE */
footer {
  padding: 32px 20px;
  text-align: center;
  background: white;
  border-top: 1px solid rgba(212, 175, 55, 0.5);
}

footer p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 2px;
  color: #a48829;
}

/* ANIMATION D'INTRODUCTION */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f8f5ef;
  animation: introSlide 2s ease 1.5s forwards;
}

.intro-loader h1 {
  max-width: 100%;
  margin: 0;
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: 38px;
  font-weight: normal;
  letter-spacing: 10px;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  color: #a48829;
  animation: introText 1.3s ease forwards;
}

@keyframes introText {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introSlide {
  0%, 65% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

/* TABLETTES */
@media (max-width: 850px) {
  .topbar {
    height: 75px;
    padding: 0 18px;
    gap: 8px;
  }

  .nav-left,
  .nav-right {
    gap: 18px;
  }

  .nav-picto {
    width: 35px;
    height: 35px;
  }

  .logo-centre img {
    width: 52px;
    height: 52px;
  }

  .hero-photo h1 {
    font-size: 38px;
    letter-spacing: 3px;
  }
}

/* VERSION TÃ‰LÃ‰PHONE */
@media (max-width: 600px) {

  html {
    scroll-padding-top: 75px;
  }

  /* 4 LOGOS RÃ‰PARTIS UNIFORMÃ‰MENT */
  .topbar {
    height: 75px;
    padding: 0 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .nav-left,
  .nav-right {
    display: contents;
  }

  .nav-icon,
  .logo-centre {
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .nav-picto,
  .logo-centre img {
    width: 42px;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
  }

  /* ORDRE : ITINÃ‰RAIRE, TÃ‰LÃ‰PHONE, LOGO, INSTAGRAM */
  .nav-left .nav-icon:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-left .nav-icon:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .logo-centre {
    grid-column: 3;
    grid-row: 1;
  }

  .nav-right .nav-icon:nth-child(1) {
    grid-column: 4;
    grid-row: 1;
  }

  .nav-right a[href="#galerie"] {
    display: none;
  }

  /* ACCUEIL */
  .hero-photo {
    min-height: 85svh;
    padding: 85px 16px 55px;
    background-position: center;
  }

  .hero-contenu {
    width: 100%;
  }

  .hero-photo h1 {
    font-size: clamp(26px, 8vw, 35px);
    letter-spacing: 1px;
    line-height: 1.3;
  }

  .description-accueil {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.6;
  }

  .fleche-bas {
    bottom: 20px;
    font-size: 34px;
  }

  /* CADRES */
  .section-infos,
  #horaires,
  #carte,
  #galerie {
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 28px auto;
    padding: 35px 18px;
  }

  section {
    scroll-margin-top: 75px;
  }

  section h2 {
    margin-bottom: 25px;
    font-size: 23px;
    letter-spacing: 3px;
  }

  section h2::after {
    width: 55px;
    margin-top: 17px;
  }

  /* TEXTES */
  .info-ligne,
  #horaires p,
  #carte p,
  #galerie p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* SERVICES */
  .services-bloc {
    margin-top: 30px;
  }

  .services-bloc h3 {
    font-size: 17px;
    letter-spacing: 3px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .service-item {
    min-height: 80px;
    padding: 8px 5px;
  }

  .service-item img {
    width: 27px;
    height: 27px;
    margin-bottom: 6px;
  }

  .service-item p {
    font-size: 11px;
  }

  /* GALERIE */
  #galerie .galerie-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
  }

  #galerie .photo {
    height: 145px;
    object-fit: cover;
  }

  /* MENUS */
  #carte .galerie-photos {
    grid-template-columns: 1fr;
    max-width: 260px;
    gap: 18px;
    margin-top: 25px;
  }

  #carte .photo {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  /* INTRODUCTION */
  .intro-loader h1 {
    max-width: 90%;
    font-size: clamp(21px, 6vw, 27px);
    letter-spacing: 2px;
    line-height: 1.5;
    white-space: normal;
  }

  /* PIED DE PAGE */
  footer {
    padding: 20px 12px;
  }

  footer p {
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.5;
  }
}

/* RÃ‰DUIRE LES ANIMATIONS SI DEMANDÃ‰ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro-loader {
    animation: none;
    visibility: hidden;
    pointer-events: none;
  }

  .fleche-bas,
  .intro-loader h1 {
    animation: none;
  }
}

/* 5 LOGOS ALIGNÉS ET ESPACÉS */
@media (max-width: 600px) {
  .topbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: 75px;
    padding: 0 8px;
    gap: 0;
  }

  .nav-left,
  .nav-right {
    display: contents;
  }

  .nav-icon,
  .logo-centre {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 75px;
    min-width: 0;
  }

  .nav-picto,
  .logo-centre img {
    width: 42px;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
  }

  .nav-left .nav-icon:first-child {
    grid-column: 1;
  }

  .nav-left .nav-icon:nth-child(2) {
    grid-column: 2;
  }

  .logo-centre {
    grid-column: 3;
  }

  .nav-right .nav-icon:first-child {
    grid-column: 4;
  }

  .nav-right .nav-icon:nth-child(2) {
    grid-column: 5;
  }
}

/* UNE SEULE PHOTO POUR LA CARTE */
#carte .galerie-photos {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 30px auto 0;
}

#carte .photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}