@import url('https://fonts.googleapis.com/css2?family=Ruda:wght@400;700&display=swap');

html {
  scroll-behavior: smooth;
}

/* DEV POUR MOBILE PAR DEFAUT */
body {
  margin: 0;
  padding: 0;
  font-family: 'Ruda', sans-serif;
}


/* -------------------------- HEADER -------------------------------- */
#header {
  min-height: 120px;
}

.top-bar {
  background: #4C7C6C;
  padding: 3.3em 15px 1em;
  transition: background .5s;
  /* pour le bandeau CALL du menu */
}

.brand img {
  width: 201px;
}

/* utilisé avec js */
.top-bar.hide {
  transform: translateY(-100%);
}


.site-brand {
  text-align: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-direction: column;
}

nav {
  margin-top: 12px;
}

nav ul {
  display: flex;
  flex-direction: row;
  /* mobile */
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: space-between;
  /*sinon utiliser center et ajouter gap: 40px par exemple */
}

.menu-item {
  margin: 0 10px;
}


.menu-item a {
  font-family: 'Ruda', sans-serif;
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 18px;
  text-decoration: none;
  color: #FFFFFF;
  display: block;
  /* clé du problème */
}

.menu-item a.active {
  text-decoration: underline;
  text-decoration-color: #C97A5A;
  text-underline-offset: 5px;
  text-decoration-thickness: 3px;
}

.menu-ancre {
  margin-top: 30px;
}

@media (min-width: 768px) {

  .top-bar {
    padding: 1.8em 15px;
  }

  .brand img {
    width: 250px;
  }

  .menu-item:not(:last-child)::after {
    content: "";
    margin: 0 14px;
  }

  .header-inner {
    flex-direction: row;
    margin: 0 40px;
    align-items: center;
  }

  nav ul {
    justify-content: space-around;
    padding: auto;
    margin: auto;
  }

  .menu-item {
    margin: 0 20px;
  }

  .menu-item a {
    font-size: 20px;
  }
}

#content {
  max-width: 1480px;
  margin: auto auto 80px;
}

/* ------------------- MENU -------------------------- */
.contact-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  color: #C97A5A;
  text-align: center;
  padding-top: 13px;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.035em;
  background-color: #FFFFFF;
}

.contact-text {
  margin-bottom: 5px;
}

.contact-links a {
  color: #C97A5A;
  margin-left: 10px;
  font-weight: bold;
  text-decoration: none;
}

.whatsapp {
  margin-left: 13px;
}

.contact-divider {
  width: 90%;
  height: 1.5px;
  background: #C97A5A;
  margin: 14px auto;
}

.menu-secondary ul {
  justify-content: space-around;
}

.menu-secondary .menu-item a {
  color: #4C7C6C;
  font-size: 15px;
}

.pizza-list,
.formule-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  width: 90%;
  margin: auto;
  margin-top: 5px;
  scroll-margin-top: 140px;
}

.section-title,
.section-title-1 {
  text-align: center;
  font-size: 18px;
  color: #4C7C6C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  margin: 30px auto 25px;
  border-top: 2px solid #4C7C6C;
  padding-top: 25px;
  width: 80%;
}

.section-title-1 {
  border-top: none;
  width: 100%;
  padding-top: 0;
  margin-top: 25px;
}

.pizza-item {
  display: flex;
  gap: 8px;
}

.pizza-image {
  width: 35%;
  border-radius: 8px;
  margin: -15px;
}

.pizza-image img {
  width: 100%;
  object-fit: cover;
}

.pizza-header {
  display: flex;
  justify-content: space-between;
  /*align-items: center;*/
}

.pizza-price {
  color: #4C7C6C;
}

.pizza-content {
  flex: 1;
}

.pizza-content h3 {
  margin: 0 0 5px;
  font-size: 17px;
  color: #4C7C6C;
  text-transform: uppercase;
  font-weight: 400;
}

.pizza-content p {
  margin: 0;
  font-size: 14px;
  color: #C97A5A;
  letter-spacing: 0.05em;
  line-height: 22px;
}

.formule-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
  margin-top: -10px;
  height: 140px;
}

.formule-image {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: auto;
}

.formule-image h3 {
  color: #C97A5A;
  font-weight: 700;
  font-size: 1.8rem;
}

.formule-image img {
  width: 50px;
}

.formule-content {
  /*flex: 1;*/
  margin: auto;
}

.formule-content h3 {
  margin: 0 0 5px;
  font-size: 17px;
  color: #4C7C6C;
  text-transform: uppercase;
  font-weight: 400;
}

.formule-content p {
  margin: 0;
  font-size: 14px;
  color: #C97A5A;
  letter-spacing: 0.05em;
  line-height: 22px;
  text-align: justify;
}

.formule-header {
  display: flex;
  gap: 52px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mobile-break {
  display: inline;
}

@media (min-width: 768px) {
  .contact-banner {
    letter-spacing: 0.06em;
    font-size: 18px;
    line-height: 33px;
    padding-top: 17px;
  }

  .contact-divider {
    margin: 17px auto 14px auto
  }

  .pizza-list,
  .formule-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
  }

  .pizza-item {
    gap: 20px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    align-items: center;
    height: 140px;
  }

  .pizza-image img {
    width: 115% !important;
    max-width: 245px;
  }

  .pizza-content p, .formule-content p {
    font-size: 16px;
  }

  .pizza-content h3, .formule-content h3 {
    font-size: 20px;
  }

  .pizza-price {
    font-size: 17px;
  }

  .formule-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 140px;
  }

  .formule-header {
    margin-bottom: 0 !important;
  }

  .section-title,
  .section-title-1 {
    width: 45%;
  }

  .mobile-break {
    display: none;
  }

}

/* ------------------- ABOUT -------------------------- */
.infos-background {
  background-color: #4C7C6C;
}

.infos-section {
  padding: 15px 15px;
  margin: auto;
  min-height: 800px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.infos-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  color: whitesmoke;
}

.infos-container {
  display: grid;
  gap: 25px;
}

/* horaires */

.horaires {
  background: #f8f8f8;
  border-radius: 10px;
  color: #C97A5A;
  align-content: center;
  height: 390px;
}

.horaires h3 {
  text-align: center;
}

.horaires ul {
  list-style: none;
  padding: 0;
}

.horaires li {
  margin-bottom: 15px;
  text-align: center;
}

.horaires span {
  font-weight: bold;
}

.jours {
  color: #4C7C6C;
}

/* map */

.map {
  width: 100%;
  height: 390px;
  border-radius: 10px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info {
  text-align: center;
  color: #f8f8f8;
}

.contact-info a {
  color: #f8f8f8;
}

/* desktop */

@media (min-width: 768px) {

  .infos-background {
    background: none;
  }

  .infos-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .infos-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 80%;
  }

  .infos-title {
    color: #4C7C6C;
  }

  .contact-info .infos-title {
    margin-top: 36px;
    margin-bottom: 7px;
  }

  .horaires {
    background: none;
    font-size: 18px;
  }

  .contact-info,
  .contact-info a {
    color: #C97A5A
  }
}

/* ------------------- SCROLL TOP -------------------------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #4C7C6C;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  transform: rotate(-45deg);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

footer p {
  margin-bottom: 10px;
  text-align: center;
  font-size: 13px;
  color: gray;
}


/* ------------------- NOTRE HISTOIRE -------------------------- */

/* SECTION INTRO */
.intro {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  justify-content: center;
}

.intro-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.intro-texte {
  max-width: 600px;
}

.intro-texte h1 {
  margin-bottom: 20px;
  color: #4C7C6C;
}

.intro-texte p {
  font-size: 17px;
  color: #C97A5A;
}

/* GALERIE */
.galerie {
  padding: 40px;
  text-align: center;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.galerie-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* carré */
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.galerie-grid img:hover {
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}