/**
 * Theme Name: Panat
 * Template:   saison
 * Author: Hugo Delmotte
 * Version: 1.0
 */
 

/*---Reset---------------------------------------------------------------------*/
*,
*:before,
*:after {box-sizing: border-box;margin: 0;padding: 0;}
body, header, footer, nav,
p, ul, ol, li,
h1, h2, h3, h4, h5, h6, 
form, input, textarea, fieldset, blockquote, 
section, article, aside,
dl, dt, dd, 
table, td, th, tr, 
button, div, span {margin: 0;padding: 0;font-size: 100%;font-weight: normal;box-sizing: border-box;letter-spacing: 0px;}
table {border-collapse: collapse;border-spacing: 0}
ul, ol {list-style: none;}
img, fieldset {border: 0;}
sup {vertical-align: super;font-size: .7em;line-height: .8em;}
sub {vertical-align: sub;font-size: .7em;line-height: .8em;}
address {font-style: normal;}
a, a:hover, a:visited, a:focus, a:active {text-decoration: none;box-sizing: border-box;}
button, button:hover, button:visited, button:focus, button:active {border: none;outline: none;cursor: pointer;}
input, button, textarea, select, optgroup, option {font-family: inherit;font-size: inherit;box-sizing: border-box;}
button img {pointer-events: none;}

pre {background-color: #373737;color: #fff;margin-bottom: 15px;font-size: 11px;}

 /* remplace le rouge par le vert dans la page producteurs */
.page-id-326 {
    --wp--preset--color--custom-vigne: var(--wp--preset--color--custom-feuille)!important;
}

*{
  transition: all 200ms ease-in-out;
}

hr{
  width: 100px;
  position: relative;
  left: 50%;
  transform: translate(-50%,0%);
}

h2{
  font-size: 2em;
}

h3{
  font-size: 1.5em;
}

p{
  font-size: 1.15em;
  line-height: 1.6rem;
}

p.highlight{
  font-size: 1.7rem!important;
  font-weight: 800;
  max-width: 150px;
  margin-left: 2rem!important;
}

p.highlight em{
  font-weight: 400;
}

 a{
   cursor: pointer!important;
 }

 body{
  /* background-color: var(--wp--preset--color--custom-calcaire);
  background-image: url(https://panat.hugodelmotte.fr/wp-content/uploads/2025/10/textured-paper.png); */
 }

 .header-sentinel {
  height: 1px;
  width: 100%;
}

 /*----- BUTTON -----*/

 .wp-block-button a, button#close-popup{
    font-family: var(--wp--preset--font-family--piepie);
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 0px;
    font-size: 1.1rem;
 }

 .wp-element-button:hover, button#close-popup:hover, .popup-content .tel:hover{
   transform: scale(1.1) rotate(-3deg);
 }

 .full-size-color.green .wp-block-button a{
    color: var(--wp--preset--color--custom-feuille);
    background-color: var(--wp--preset--color--custom-calcaire);
 }

.menu-flottant-container{
  position: fixed;
  right:0px;
  top:50%;
  transform: translate(0%,-50%);
  z-index: 100;
  margin: 0;
}

.menu-flottant a{
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 2.25rem;
  border-radius: 10px 0px 00px 10px;
  padding: 1.8rem 1rem;
  background-color: transparent!important;
  filter: drop-shadow(3px 3px 0px var(--wp--preset--color--custom-calcaire));
}

 /*-----------------*/

 .site-container{
   position: relative;
   left: 50%;
   transform: translate(-50%,0%);
   align-items: flex-start;
   gap:0!important;
   margin-top: 2em;
  width : clamp(1024px, calc(100% - 256px), 1461px);
 }

 .baseline{
   letter-spacing: 4px;
 }


 /*------------------------HEADER----------------------------*/

 header .custom-logo {
  width:750px;
 }

 header .custom-logo path{
  fill: var(--wp--preset--color--custom-vigne)!important;
 }

  .wp-site-blocks{
    transition: none;
  }

 .wp-site-blocks.margin-header{
      margin-top: 250px;
 }

 .header-fixed{
    position: fixed;
    z-index: 1000;
    width: 100%;
    background: var(--wp--preset--color--custom-vigne);
    top: 0;
    padding: 0rem;
    display:flex;
    height: 70px;
 }

 .header-fixed *{
  transition: all 200ms ease-in-out!important;
 }

 .header-fixed .wp-block-site-logo{
  align-self: center;
  padding-top: 8px;
 }

 .header-fixed .custom-logo{
  width: 11rem;
  margin: 0;
 }

  .header-fixed .custom-logo path{
    opacity: 1;
  visibility: visible;
    fill: var(--wp--preset--color--custom-calcaire)!important;
 }

 .header-fixed .wp-block-navigation{
  padding-top: 0rem;
  width: 100%;
  justify-content: end;
  padding-right: 1rem;
 }

 .header-fixed .wp-block-navigation li:hover{
    transform: translate(0px, 5px) scale(1.05) rotate(0deg); 
 }
 
 .header-fixed .take-away, .header-fixed .wp-block-spacer, .header-fixed .wp-block-social-links{
  display: none!important;
 }

.header-fixed .custom-logo #baseline, .header-fixed .custom-logo #signature{
  opacity: 0;
  visibility: hidden;
}

 .menu{
   position:fixed;
   right:20px;
   top:50%;
   transform: translate(0%,-50%);
 }

nav.header-menu-button{
  position: fixed;
  right: 200px;
  top:200px;
  z-index: 100;
}

nav.header-menu-button a{
  background-color: var(--wp--preset--color--custom-vigne);
  border-radius: 2px;
  transform: rotate(10deg);
  color: var(--wp--preset--color--custom-calcaire)!important;
  text-transform: lowercase;
  font-size: 1.5rem;
  padding:.5rem
}

.take-away{
  /*display: none;*/
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translate(-50%, 0%) rotate(45deg);
  margin-left: 250px;
  width: 200px;
  /* padding-top: var(--wp--style--root--padding-top); */
}

.take-away text{
  font-size: 4rem;
  text-transform: uppercase;
  font-weight: 800;
  fill: var(--wp--preset--color--custom-vigne);
}

 /*-------- NAVBAR -------*/

.wp-block-navigation{
  padding-top: 2.5rem;
}

nav .current-menu-item a{
  display: none!important;
}

.wp-block-navigation a{
    font-family: var(--wp--preset--font-family--piepie);
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 0px;
    font-size: 1.1rem;
    padding: .5rem;
 }

.wp-block-navigation li:hover{
    transform: translate(0px, -5px) scale(1.05) rotate(1deg); 
 }

.wp-block-navigation a{
    background-color: var(--wp--preset--color--custom-vigne);
 }

 nav .wp-block-navigation__responsive-container-open svg path{
    fill:var(--wp--preset--color--custom-vigne)!important;
 }

 .header-fixed .wp-block-navigation__responsive-container-open svg path{
    fill:var(--wp--preset--color--custom-calcaire)!important;
 }

/*------- MENU MOBILE ------*/

.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open{
  background-color:var(--wp--preset--color--custom-vigne) ;
}

.wp-block-navigation .wp-block-navigation__responsive-container a{
  background-color: none!important;
}


 /*----------------------------------------------------------*/

 /*-------- POP-UP --------*/

 .popup-emporter {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

.popup-emporter.active {
  opacity: 1;
  visibility: visible;
}

 .popup-emporter .popup-content {
  background-color:var(--wp--preset--color--custom-vigne) ;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  max-width: 90%;
  scale: .9;
}

.popup-emporter.active .popup-content{
  scale: 1;
}

.popup-content p{
  color:var(--wp--preset--color--custom-calcaire)!important;
  letter-spacing: .03rem;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.popup-content .big-text{
  font-size: 2rem!important;
  line-height: 2rem;
  margin-bottom: 1.5rem!important;
}

.popup-content a {
  background-color: var(--wp--preset--color--custom-calcaire);
    color: var(--wp--preset--color--custom-vigne);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.7rem;
    padding: .5rem 1rem;
    font-weight: 100;
    font-family: 'piepie';
    line-height: 4rem;
}
.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background:none!important;
  color: var(--wp--preset--color--custom-calcaire);
  cursor: pointer;
}

 /*-------- MENU DETAILLÉ -------*/

.site-container *{
  gap:0;
}

.menu-detail{
  width: clamp(calc(1024px - 40px), 60vw, 1100px);
}

.catchphrase{
}

.catchphrase *{
  font-family: "degular-variable", sans-serif;
  margin: 0;
  font-size: 2rem;
  color: var(--wp--preset--color--custom-vigne);
  text-align: left;
}

.catchphrase h2{
  font-weight: 700;
}

.catchphrase a{
  font-weight: 400;
  font-size: 1.25rem;
  text-decoration: underline;
  text-align: right;
}

.catchphrase strong{
  font-weight: 600;
  font-size: 1.3rem;
}

.catchphrase p{
  font-weight: 400;
  font-size: 1.3rem;
}

.catchphrase .wp-block-columns{
  width: 100%;
}

.menu-columns .wp-block-column{
  margin: 0.5em!important;
}

.menu-detail .menu-grid{
  margin-top:0px;
  margin-bottom: 0px;
}

 .site-container .menu-grid{
  /* max-width: 600px; */
  margin-top: 0em;
  margin-bottom: 2em;
 }

 .site-container h2{
  margin-bottom: .5em;
 }

 .site-container .liste-menu {
  padding-left: 1em!important;
 }

 .site-container h3,  .site-container h3 .prix, .site-container .liste-menu li, .popup-content .big-text{
  text-transform: uppercase;
  font-weight: 700;
  font-family: "degular-variable", sans-serif;
  margin: 0;
  font-size: 1.5rem;
  color: var(--wp--preset--color--custom-vigne);
 }

 .site-container.produits h3, .site-container.produits .prix{
  color: var(--wp--preset--color--custom-feuille);
 }

 .site-container h3::before, .site-container .liste-menu li::before{
  content: '_';
 }

 .menu-images{
  margin-bottom: 4rem!important;
  margin-top: 4rem!important;
  position: relative;
 }

.menu-images .menu-grid{
  width: 53vw;
  min-width: 770px;
  align-self: center;
  padding: 0px 20px;
 }

 .menu-images h3{
  text-transform: lowercase;
  font-weight: 100;
  font-family: "piepie", sans-serif;
  margin: 0;
  font-size: 2rem;
  color: var(--wp--preset--color--custom-vigne);
 }

 .menu-item{
  margin-bottom: 0.5rem;
 }

  .menu-item__image:hover{
    cursor: pointer;
    transform: scale(1.1);
  }

.menu-item .infos{
  position: relative;
  left: 0.8em;
 }

 .panats .menu-item .infos{
  left:0em!important;
 }

 .menu-item ul{
  margin-top: .2rem;
 }

 .menu-item li{
  padding-left: .5rem;
  font-weight: 600;
 }

 .menu-item .producteur{
  padding-left: .8rem;
  color: var(--wp--preset--color--custom-vigne);
  font-style: italic;
  line-height: .8rem;
 }

.menu-item .infos p, .menu-item .infos a, .menu-item ul li{
  font-size: 1.15rem;
  color: var(--wp--preset--color--custom-truffe);
 }

 .menu-item .infos a:hover{
  color: var(--wp--preset--color--custom-feuille);
 }

 .menu-container{
  margin: 2em!important;
  padding: 0;
  padding: 2em;
 }

 .menu-images article.menu-item{
  display: flex;
  flex-direction: row;
  margin: 2rem 0em;
  align-items: center;
  gap:3rem;
 }

 .menu-images article.menu-item h3 .prix{
  display: none!important;
 }

 .menu-images article.menu-item:nth-child(even){
  flex-direction: row-reverse;
 }

.menu-images article.menu-item img{
  transform: rotate(-15deg);
  width: clamp(350px, 28vw, 500px);
 }

 /* .menu-images article.menu-item img.fade-onscroll{
  animation: fade-onscroll linear forwards;
  animation-timeline: view();
  animation-range:entry;
 }

 @keyframes fade-onscroll {
  0%{
    transform: translatey(-400px);
    opacity: 0;
  }
  50%{
    opacity:0;
  }
  100%{
    transform:translateY(0px);
    opacity: 1;
  }
 } */

 .menu-images article.menu-item:nth-child(even) img{
  transform: rotate(15deg);
 }

 .menu-images article.menu-item:last-child img{
  transform: rotate(0deg)!important;
 }

 
 .menu-images article.menu-item:nth-child(even) .menu-item__content{
  text-align: right;
 }

 .menu-images .menu-item__image{
  display: flex!important;
 }

 .menu-images article .menu-item__content{
  max-width: 300px;
  display: flex;
  flex-direction: column;
 }

.full-size-color{
  width: 100%;
  margin-right: 0!important;
  margin-left: 0!important;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
  padding-left: calc((100vw - 960px) / 2);
  padding-right: calc((100vw - 960px) / 2);
}

h2.huge-title{
  font-size: 5rem!important;
  text-align: left!important;
  margin-bottom: 2rem!important;
}

.full-size-color p{
  font-size: 1.5rem;
}

.full-size-color p.highlight{
  font-size: 2rem!important;
  line-height: 2rem!important;
}

.full-size-color.infos-panat p{
  margin: 0;
}

/*------------- RESPONSIVE ---------------*/

@media screen and (min-width: 1700px) {

}

@media screen and (max-width: 1024px) {
    .site-container, .menu-detail{
      width:calc(100% - 40px);
    }

    .menu-grid{
      width: auto!important;
      min-width: auto!important;
    }
    
    .full-size-color{
      padding-right: 20px;
      padding-left: 20px;
    }

  }

  @media screen and (max-width: 781px) {

    .popup-content{
      padding: 1.5rem!important;
    }

    .popup-content .big-text{
      font-size: 1.5rem!important;
      margin-bottom: 1rem!important;
    }

    .popup-content a{
      font-size: 1.5rem;
    }


    .wp-site-blocks.margin-header{
      margin-top: 200px;
    }

     header .custom-logo {
        width:80vw;
      }

      .header-fixed .custom-logo{
        width: 10rem;
      }

      header .wp-block-spacer{
        height:
      }

      .wp-block-navigation{
        padding-top: 1rem;
      }

    .menu-flottant-container{
      bottom: 0;
      right: 0;
      transform: none;
      top: auto;
      transform: scale(.8);
    }

    .menu-flottant a{
      border-radius: 10px;
    }

    .take-away{
      /* top: 16%;
      width: 25%;
      margin-left: 33%; */
      display: none!important;
    }

    .catchphrase{
      margin-top:0;
    }
  
    .catchphrase h2{
      font-size: 1.5rem;
    }
    
    h2.huge-title{
    font-size: 3rem!important;
    margin-bottom: 2rem!important;
  }

  .full-size-color p{
    font-size: 1.3rem;
  }

  .full-size-color p.highlight{
    font-size: 1.7rem!important;
    line-height: 1.7rem!important;
  }

  .menu-images article.menu-item img{
      transform: rotate(0deg)!important;
    }

    .menu-images h3{
      font-size: 1.5rem;
    }

    .menu-images article.menu-item{
      gap:1.5em;
      margin-top:0;
      margin-bottom: 3em;
    }

    .menu-images article.menu-item:last-child{
      margin-bottom: 0em;
    }

    .menu-images article.menu-item, .menu-images article.menu-item:nth-child(even){
      flex-direction: column;
    }

    .menu-images article.menu-item:nth-child(even) .menu-item__content{
      text-align: left;
    }

    .menu-images article.menu-item img, .menu-images article .menu-item__content{
      max-width: 70vw;
      width: auto;
      min-width: auto;
    }
  }