:root {
    --background-color: #FAFAFA;
    --primary-color: #C89F78;
    --primary-color-hover: #d3a67c;
    --secondary-color: #202020;
}

@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  src: url('../../assets/fonts/Poppins-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  src: url('../../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

html{
    font-size: 62.5%;
    height: 100%;
    scroll-behavior: smooth;
}

body{
    background-color: var(--background-color);
    height: 100%;
    overflow-x: hidden;
        animation: fadeInPage 1.2s ease forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1{
  color: var(--primary-color);
  font-size: 3.6rem;
  font-weight: 700;
}

h2{
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 3.4rem;
  font-weight: 700;
}

.h2-white{
  color: var(--background-color);
}

p{
  color: var(--secondary-color);
  font-size: 1.7rem;
  text-align: justify;
}

a{
  color: var(--background-color);
  font-size: 1.7rem;
  text-decoration: none;
}
a:hover{
  color: var(--secondary-color);
}

.button{
  background-color: var(--primary-color);
  color: var(--background-color);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 1rem 2rem;
}

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


/* Header */

header{
    left: 0;
    right: 0;
    top:-30px;
    width: 100%;
    position: absolute;
    z-index: 100;
    display: flex;
    align-items: center;
    padding-right: 3%;
    padding-left: 3%;
    justify-content: space-between;
}

header .logo{
  position: relative;
  top:60px;
  max-width: 130px;
}

.header-links{
  display: flex;
  gap: 3rem;
  cursor: pointer;
  margin-top: 2.5rem;
}

.header-links a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--background-color);
    transition: color 0.3s ease;
}

.header-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px; 
    width: 0%;
    height: 2px;
    background-color: var(--background-color);
    transition: width 0.3s ease;
}

.header-links a:hover::after {
    width: 100%;
}
/* Accroche */

main{
  height: 100%;
}
.accroche{
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accroche .background-image{
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    z-index: -1;
    pointer-events: none;
    object-fit: cover;
}

.accroche-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
      opacity: 0;
    transform: translateY(40px);
    animation: accrocheIn 1.4s ease forwards;
    animation-delay: .3s;
}

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

.arrow-bottom{
  width: 4rem!important;
  height: 4rem!important;
}

.accroche-content h1,
.accroche-content h2 {
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.5);
}

/* presentation */

.presentation{
  position: relative;
  height: 74dvh; /* 800px */
  display: flex;
  justify-content: space-between;
  background-color: var(--background-color);
  overflow: hidden;
}

.presentation .border-top {
  position: absolute;
  top:-80px;
}


.presentation article{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  max-width: 600px;
  gap:3rem;
  justify-self: center;
  margin: 0 auto;
}

.presentation article h2{
  text-align: center;
}

/* Produits */

.produits{
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  overflow: hidden;
  align-items: center;
  background-color: var(--secondary-color);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.produits .mountain{
  position:absolute;
  bottom: 0;
  width: 100%;
  height: 50%; 
  object-fit: cover;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;    
    margin: 0 auto;
    padding: 0 50px;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.produits-swiper {
  width: 100%;
  overflow: visible;
}

.produits-swiper img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.produits .swiper-slide a {
  position: relative;
  display: flex;
  align-items: center;   
  justify-content: center; 
}

.produits .swiper-slide p {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 2;
  padding: 0 1rem;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.produits-prev,
.produits-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.produits-prev { left: 0; }
.produits-next { right: 0; }

.produits-prev img,
.produits-next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.produits .swiper-slide a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
  transition: height 0.5s ease;
  pointer-events: none;
}

.produits .swiper-slide:hover{
    transform: scale(1.02);
}
.produits .swiper-slide:hover a::after {
  height: 100%;
}


.produits .button{
  position: relative; 
  z-index: 3;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.produits p{
  position: relative; 
  z-index: 3;
  max-width: 900px;
  padding: 0 2rem;
}


/* footer */

.footer{
  height: 54.2dvh;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.footer .logo{
  max-width: 190px;
  margin-bottom: 2rem;
}

.footer-list-info{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-left{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-info{
  display: flex;
  gap: 1rem;
}


.footer-info p{
  color: var(--background-color);
  text-transform: uppercase;
  font-size: 1.8rem;
  font-weight: 600;
}

.footer-bottom {
    width: 100%;
    height: 3rem; 
    background-color: var(--secondary-color);
}

/* Contact */

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

.contact {
    position: relative;
    width: 100%;
    padding-top: 15rem;
    padding-bottom: 20rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.contact h1 {
    margin-bottom: 6rem;
}

.contact-content{
  display: flex;
  justify-content: space-evenly;
}

.contact h2 {
    margin-bottom: 3rem;
}

.coord-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.coord {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.coord img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact form {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact input,
.contact textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--primary-color);
    padding: 1rem 0;
    font-size: 1.6rem;
    background: transparent;
    outline: none;
    color: var(--secondary-color);
}

.contact textarea {
    resize: none;
    height: 10rem;
}


.contact button {
    display: flex;
    align-self: center;
    max-width: 250px;
    gap: 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 1rem 3rem;
    cursor: pointer;
    font-size: 1.6rem;
    text-transform: uppercase;
    border-radius: 9999px;
}


.contact button img {
    width: 1.8rem;
}

.contact button:hover {
    background-color: var(--primary-color-hover);
}

.contact .mountain {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.9;
}

/* Gallerie */

.galerie {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 15rem;
    padding-bottom: 45rem;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    overflow: visible;
}

.galerie h1 {
    font-size: 4rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
}

.gallery-menu {
    display: flex;
    gap: 1.6rem;
    align-items: center;          
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0 1rem;
    width: 100%;
    z-index: 10;
}

.gallery-menu > button,
.dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    height: 4.2rem;       
    padding: 0 1.6rem;
    border-radius: 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .12s ease;
    white-space: nowrap;
}

.gallery-menu > button:hover,
.gallery-menu > button.active,
.dropdown-btn:hover,
.dropdown-btn.active {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-1px);
    border-color: var(--primary-color-hover);
}

.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 4.2rem;
    z-index: 1000;
}



.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);    
    left: 0;
    min-width: 18rem;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: .8rem;
    padding: .6rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 1001;
}

.dropdown-content button {
    width: 100%;
    background: transparent;
    border: none;
    padding: .8rem 1rem;
    text-align: left;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    border-radius: .6rem;
}

.dropdown-content button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

.dropdown.show .dropdown-content {
    display: block;
}

.gallery-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
.gallery-container img {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform .25s ease, opacity .25s ease;
    position: relative;
    z-index: 1;
}
.gallery-container img.hide {
    opacity: 0;
    transform: scale(.98);
    pointer-events: none;
}

.galerie .mountain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}


#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    cursor: zoom-out;
}

@media (max-width: 1200px) {
  .gallery-container {
      grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 600px) {
  .gallery-container {  
      grid-template-columns: repeat(1, 1fr);
  }
}


/* main responsive */

@media (max-width: 1200px) {
  p {
      font-size: 1.5rem;
  }
}

@media (max-width: 900px) {

  h2{
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  a{
    font-size: 1.4rem!important;
  }
}
/* header responsive */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 150px;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    gap: 2rem;
    padding-left: 2rem;
    transition: left 0.45s cubic-bezier(.25,.1,.25,1);
    z-index: 9999;
    opacity: 0;
}

.mobile-menu.show {
    left: 0;
    opacity: 1;
}

.mobile-menu a {
    color: white;
    font-size: 1.8rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-15px);
    transition: 0.3s ease;
}


.mobile-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: currentColor; 
    transition: width 0.3s ease;
}

.mobile-menu a:hover::after {
    width: 35%;
}


.mobile-menu.show a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.show a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.show a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.show a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.show a:nth-child(4) { transition-delay: 0.20s; }

.burger {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
    display: none;
}

.burger-index{
  right: 55px;
}
.burger.active {
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 500px) {
    .header-links {
        display: none;
    }
    .burger {
        display: block;
    }
}

/* footer responsive */


@media (max-width: 1200px) {
  .footer{
    flex-direction: column-reverse;
    height: auto;
  }

  .footer-map{
    margin-top: 5rem;
  }

  .footer-left{
    flex-direction: row;
    margin-top: 5rem;
    margin-bottom: 5rem;
    gap: 5rem;
  }

  .footer-info img{
    max-width: 20px;
    max-height: 30px;
  }

  .footer-list-info{
    justify-content: center;
  }

  .footer-info p {
    font-size: 1.5rem;
  }
}

@media (max-width: 650px) {

  .footer{
    padding-left: 10%;
    padding-right: 10%;
  }
  .footer-left{
    flex-direction: column-reverse;
    align-items: center;
  }

  iframe{
    max-width: 300px;
  }
}

/* accroche responsive */

@media (max-width: 650px) {
  .accroche{
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
  }

  .arrow-bottom{
    width: 3rem;
    height: 3rem;
  }
}

/* presentation responsive */

@media (max-width: 1200px) {
  .presentation{
    height: auto;
  }

  .presentation .photo-fromagerie{
    max-width: 600px;
    max-height: 600px;
  }
  .presentation article{
    padding-left: 5%;
    padding-right: 5%;
    margin-top: 3rem;
  }

  .presentation .border-top{
    top: -120px;
  }
}

@media (max-width: 850px) {
  .presentation .photo-fromagerie{
    max-width: 400px;
    max-height: 400px;
  }

    .presentation .border-top{
    top: -160px;
  }

  .presentation article {
    gap: 1.5rem;
  }
}


@media (max-width: 730px) {
  .presentation{
    flex-direction: column;
  }
  .presentation article {
    margin-top: 7rem;
    margin-bottom: 5rem;
  }
    .presentation .photo-fromagerie{
    max-width: 300px;
    max-height: 400px;
    align-self: center;
    margin-bottom: 2rem;
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* Galerie responsive */

@media (max-width: 1399px) and (min-width: 901px) {
    .produits-swiper img {
        max-height: 350px;
    }
}

@media (max-width: 900px) {
    .slider-wrapper {
        max-width: 600px;
    }
    
    .produits-swiper img {
        max-height: 300px;
    }
}

@media (max-width: 900px) {
  .produits .swiper-slide p {
      font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .produits-prev img, .produits-next img {
        width: 55%;
    }

    .galerie{
      padding-top: 20rem;
    }
}

/* Contact responsive */


  @media (max-width: 1300px) {
    .contact-content {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
              padding-left: 5%;
      padding-right: 5%;
    }
  }

    @media (max-width: 600px) {
      .contact{
        padding-top: 20rem;
      }
    }

/* Galerie responsive */


@media (max-width: 900px) {
  .gallery-container img {
    height: 400px;
  }
}

@media (max-width: 700px) {
  .gallery-container img {
    height: 300px;
  }
}

@media (max-width: 700px) {
  .gallery-container img {
    height: 400px;
  }
}


@media (max-width: 400px) {
  .gallery-container img {
    height: 300px;
  }
}

/* animation */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-top {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.show {
    opacity: 1;
    transform: translate(0, 0);
}


.arrow-bounce {
    animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}


.burger:hover {
    animation: wiggle 0.35s ease-in-out;
}

@keyframes wiggle {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(3deg); }
    50%  { transform: rotate(-3deg); }
    75%  { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}


.slider-arrow {
    transition: transform 0.25s ease;
    cursor: pointer;
}

/* Hover flèche gauche */
.left-arrow:hover {
    transform: translateX(-4px);
}

/* Hover flèche droite */
.right-arrow:hover {
    transform: translateX(4px);
}

/* Clic (bonus : petit impact court) */
.left-arrow:active {
    transform: translateX(-6px);
}

.right-arrow:active {
    transform: translateX(6px);
}