/* POLICE ECRITURE */

@font-face {
    font-family: 'Gill Sans';
    src: url('../font/Gill Sans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gill Sans';
    src: url('../font/Gill Sans Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gill Sans';
    src: url('../font/Gill Sans Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gill Sans';
    src: url('../font/Gill Sans Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Book';
    src: url('../font/Gotham-Book.otf') format('opentype');
}

@font-face {
    font-family: 'Lexend Deca';
    src: url('../font/LexendDeca-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Minion Pro';
    src: url('../font/MinionPro-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Regulator Nova';
    src: url('../font/Regulator Nova Medium.otf') format('opentype');
    font-weight: 500;
}

/* FIN POLICE ECRITURE */

body{
    margin: 0;
    padding: 0;
    font-size: clamp(1rem, 3vw, 5rem);
    font-family: 'Gill Sans';
    background-color: #F9B233;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
}

a{
    font-family: 'Gill Sans';
    font-weight: bold;
    font-style: normal;
    color: #2A3945;
    text-transform: uppercase;
}

.logo_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

section{
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section:first-child {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

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

#section1 {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: #F9B23399;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 0;
}

.overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.3s ease-in-out;
    pointer-events: none;
}

.overlay.active {
    transform: translateX(0);
}

.overlay.active::before {
    backdrop-filter: blur(8px);
}

.overlay nav {
    padding: 2rem;
    width: 50%;
    height: 50vh;
    background-color: #2A3945;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overlay nav a {
    display: flex;
    margin: 0.8rem 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #F9B233;
    text-decoration: none;
    align-items: center;
    transition: color 0.3s ease;
}

.overlay nav a:hover {
    color: #fff;
}

/* Appliquer l'effet de soulignement uniquement aux liens dans .nav */
.nav a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-family: 'Gill Sans';
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 10px;
    background-color: black;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

#openOverlayBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    z-index: 1000;
}

.logo_container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(20px);
    margin: 0;
    padding: 0;
}

.logo_container .content {
    position: relative;
    z-index: 1;
    text-align: center;
}


/* CSS */
.button-74 {
  background-color: #fbeee0;
  border: 2px solid #422800;
  border-radius: 30px;
  box-shadow: #422800 4px 4px 0 0;
  color: #422800;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-74:hover {
  background-color: #F9B23399;
}

.button-74:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

/* SOCIAL BUTTON */

.social {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}
  
.social a {
    line-height: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: clamp(3rem, 5vw, 4rem);
    width: clamp(3rem, 5vw, 4rem);
    aspect-ratio: 1;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #7a7a7a;
    background-color: #2A3945;
    border-radius: 50%;
    transition: color 0.5s ease-in-out;
}
  
@property --fill {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 0%;
}
  
.social a:hover {
    color: #F9B233;
    --fill: 100%;
}
  
.social a::after {
    position: absolute;
    z-index: -1;
    content: "";
    inset: -3px;
    border-radius: inherit;
  
    background: conic-gradient(#F9B233 var(--fill), transparent var(--fill));
    transition: --fill 0.6s ease-in-out;
}

iframe {
    max-width: 100%;
    border: none;
    background: transparent;
}

/* IMAGE SLIDERS */

.slider-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
  box-sizing: border-box;
}

.slider-top, .slider-bottom {
  height: 25%;
  margin: 0 auto;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slider-middle {
  height: 45%;
  margin: 0 auto;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slide-track {
  display: flex;
  width: calc(500px * 18);
  animation: scroll 40s linear infinite;
}

.slide-track-reverse {
  display: flex;
  width: calc(1000px * 9);
  animation: scroll-reverse 40s linear infinite;
}

.slide-track:hover, .slide-track-reverse:hover {
  animation-play-state: paused;
}

.slide, .slide-middle {
    height: 100%;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    perspective: 100px;
    box-sizing: border-box;
}

.slide-middle {
    width: 1000px;
}

.slide img, .slide-middle img {
    z-index: 1;
    width: 300px;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.slide img:hover, .slide-middle img:hover {
    transform: translateZ(20px);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-500px * 9));
  }
}

@keyframes scroll-reverse {
  0% {
    transform: translateX(calc(-1000px * 4.5));
  }
  100% {
    transform: translateX(0);
  }
}

/* STYLES POUR LES TITRES DE SECTION */
.section-title {
  position: absolute;
  top: 20px;
  right: 30px;
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #333;
  font-weight: bold;
  z-index: 10;
}

/* STYLES POUR LE PDF */
.pdf-container {
  position: relative;
  width: 66.67%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  transform: scale(1);
  transform-origin: 0 0;
  margin: 0;
  padding: 0;
  display: block;
}

/* Styles pour la section des avis */
.reviews-section-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 100px); /* Hauteur totale moins l'espace pour le titre */
  padding: 20px;
  box-sizing: border-box;
}

/* Zone de gauche (1/3) pour la moyenne des avis */
.average-rating-container {
  width: 33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.average-rating-container h2 {
  margin-bottom: 30px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #333;
}

.average-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rating-circle {
  width: clamp(100px, 15vw, 150px);
  height: clamp(100px, 15vw, 150px);
  border-radius: 50%;
  background-color: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rating-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  color: white;
}

.rating-max {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: white;
  margin-left: 5px;
}

.rating-stars {
  display: flex;
  margin-bottom: 15px;
}

.rating-stars i {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #FFD700;
  margin: 0 2px;
}

.total-reviews {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: #666;
}

/* Zone de droite (2/3) pour les colonnes d'avis */
.reviews-columns-container {
  width: 67%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Styles communs pour les colonnes d'avis */
.review-column {
  width: 30%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.review-track-up, .review-track-down {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  height: auto;
}

.review-track-up {
  animation: scroll-up 30s linear infinite;
}

.review-track-down {
  animation: scroll-down 30s linear infinite;
}

.review-track-up:hover, .review-track-down:hover {
  animation-play-state: paused;
}

.review-card {
  min-height: 100px;
  padding: 15px;
  margin: 10px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-name {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  margin: 0;
}

.review-rating {
  display: flex;
}

.review-rating i {
  color: #FFD700;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  margin-left: 2px;
}

.review-text {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  line-height: 1.4;
  margin: 10px 0;
  color: #333;
}

.review-date {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: #888;
  text-align: right;
  margin: 5px 0 0 0;
}

/* Animations pour les colonnes */
@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes scroll-down {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* STYLES POUR LA ZONE DÉROULANTE DES ALLERGÈNES */
.allergenes-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.allergenes-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: #fbeee0;
  border: 2px solid #422800;
  border-radius: 30px;
  box-shadow: #422800 4px 4px 0 0;
  color: #422800;
  width: clamp(250px, 80vw, 300px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.3s ease-out;
  margin-top: 10px;
  opacity: 0;
}

.allergenes-content.open {
  max-height: 400px;
  padding: 20px;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  overflow-y: auto;
}

.allergenes-content h3 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-align: center;
  font-family: 'Gill Sans', sans-serif;
}

.allergenes-content ul {
  padding-left: 20px;
  margin-bottom: 0;
  max-height: 300px;
  overflow-y: auto;
}

.allergenes-content li {
  margin-bottom: 8px;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-family: 'Gill Sans', sans-serif;
}

/* STYLES POUR LES BOUTONS DE MENU */
.menu-buttons-container {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
  justify-content: center;
}

.menu-button {
  width: 45%;
  max-width: 200px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 0;
}

/* Ajout de marges spécifiques pour les boutons */
.menu-button:first-child {
  margin-left: 20px;
}

.menu-button:last-child {
  margin-right: 20px;
}

/* FOOTER */
.site-footer {
    background-color: #2A3945;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.site-footer p {
    font-size: clamp(12px, 1.5vw, 14px);
    margin: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.admin-link {
    color: #F9B233;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(12px, 1.5vw, 14px);
}

.admin-link:hover {
    color: #fbeee0;
    text-decoration: underline;
}

/* MEDIA QUERIES POUR LA RESPONSIVITÉ */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
  .slide {
    width: 250px;
  }
  
  .slide-middle {
    width: 800px;
  }
  
  .slide-track {
    width: calc(250px * 18);
  }
  
  .slide-track-reverse {
    width: calc(800px * 9);
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 9));
    }
  }
  
  @keyframes scroll-reverse {
    0% {
      transform: translateX(calc(-800px * 4.5));
    }
    100% {
      transform: translateX(0);
    }
  }
  
  .pdf-container {
    width: 80%;
  }
}

/* Tablettes */
@media (max-width: 768px) {
  .overlay nav {
    padding: 1rem;
  }
  
  .overlay nav a {
    margin: 0.5rem 0;
  }
  
  .reviews-section-container {
    flex-direction: column;
    height: auto;
  }
  
  .average-rating-container {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  
  .reviews-columns-container {
    width: 100%;
    height: auto;
    flex-direction: column;
  }
  
  .review-column {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .menu-buttons-container {
    flex-direction: column;
    align-items: center;
  }
  
  .menu-button {
    width: 80%;
    max-width: none;
    margin: 10px 0;
  }
  
  .menu-button:first-child {
    margin-left: 0;
  }
  
  .menu-button:last-child {
    margin-right: 0;
  }
  
  .social {
    bottom: 10px;
    left: 10px;
    gap: 0.5rem;
    z-index: 2;
  }
  
  #openOverlayBtn {
    bottom: 10px;
    right: 10px;
    padding: 8px 15px;
  }
}

/* Mobiles */
@media (max-width: 480px) {
  .slide {
    width: 200px;
  }
  
  .slide-middle {
    width: 600px;
  }
  
  .slide-track {
    width: calc(200px * 18);
  }
  
  .slide-track-reverse {
    width: calc(600px * 9);
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200px * 9));
    }
  }
  
  @keyframes scroll-reverse {
    0% {
      transform: translateX(calc(-600px * 4.5));
    }
    100% {
      transform: translateX(0);
    }
  }
  
  .pdf-container {
    width: 100%;
  }
  
  .section-title {
    top: 10px;
    right: 15px;
  }
  
  .allergenes-content {
    width: 90vw;
  }
}

/* Styles pour le bouton et bandeau déroulant */
.dropdown-container {
    position: absolute;
    top: 0;
    right: 150px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown-content {
  background-image: url('../image/ardoire.jpg');
  background-size: cover;
  background-position: center;
  border-bottom-right-radius: 25px;
  border-bottom-left-radius: 25px;
  color: white;
    width: 550px;
    max-height: 800px;
    overflow: hidden;
    border-top-left-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.5s ease-out;
    border: 10px solid transparent;
    border-image: url('../image/bois.jpg') 30 round;
    border-image-slice: 30;
    border-image-width: 10px;
    border-image-outset: 0;
    border-image-repeat: round;
}

.dropdown-content.visible {
    transform: translateY(0);
}

.dropdown-button {
    background-image: url('../image/bois.jpg');
    background-size: cover;
    background-position: center;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-bottom-left-radius: 5px;
    transition: background-color 0.3s, transform 0.5s ease-out;
    width: 250px;
    position: relative;
    z-index: 1001;
    transform: translateY(-900%);
}

.dropdown-button:hover {
    background-color: #e5a02d;
}

.dropdown-button i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-button.active i {
    transform: rotate(180deg);
}

.dropdown-button.visible {
    transform: translateY(0);
}

/* Styles pour les sections d'horaires dans le bandeau déroulant */
.dropdown-content .horaires-section {
    padding: 1rem 2rem;
    margin: 0;
    max-width: 100%;
}

.dropdown-content .horaires-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: white;
}

.dropdown-content .horaires-section p {
    margin: 5px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.dropdown-content .horaires-section span {
    font-weight: bold;
}

/* Responsive styles for dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .dropdown-content {
        width: 150px;
    }
    
    .dropdown-button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

.dropdown-content h3 {
    margin: 0;
    padding: 15px 15px 10px;
    font-size: 18px;
    border-bottom: 1px solid rgba(42, 57, 69, 0.2);
}

.horaires-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.horaires-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: clamp(2rem, 5vw, 3rem);
}

.horaires-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.horaires-midi,
.horaires-soir {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.horaires-midi:hover,
.horaires-soir:hover {
    transform: translateY(-5px);
}

.horaires-midi h2,
.horaires-soir h2 {
    color: #F9B233;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
}

.horaires-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.horaires-details p {
    font-size: 1.1rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.horaires-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.horaires-note p {
    margin: 0.5rem 0;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin: 2rem 0;
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .horaires-section {
        padding: 2rem 1rem;
    }
    
    .horaires-container {
        grid-template-columns: 1fr;
    }
    
    .horaires-details p {
        font-size: 1rem;
    }
}
