/* @import url('https://fonts.googleapis.com/css2?family=EB+Garamond&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700;900&display=swap');


:root {
  --primary-color: #EEB572;  
  --primary-color-light: rgba(238, 181, 114, 0.8);
  --primary-color-dark: rgba(242, 134, 5, 0.8);
  --bg-color: #FFFCF6; 
  --bg-gold-color: #FFF7E2;
  --text-color:  #2D2C31; /* presque noir pour texte*/
  --textHover-color: #FFF7E2; /*clair pour hover, change nom*/
  
  /*for 2e version*/
/* 
  --primary-color: #1F1E23;  
  --bg-color: #F5F5F5; 
  --text-color:  #E1C475; 
 */
  
/*   --menu-speed: 0.75s; Apparently unused */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust this to the height of your navbar */
   }

body {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  
  cursor: url('images/Cursor_bottle.png') 3 3, auto; 
}

h1 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
  text-align: left;
}

.heading-line {
  display: flex;
  align-items: center;
  gap: 40px; /* space between text and line */
}

.heading-line h1 {
  font-size: 32px;
  margin: 0;
  white-space: nowrap;
}

.heading-line .line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--primary-color); 
  transform: translateY(5px);
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

a {
  text-decoration: none;  
/*   font-weight: bold; */
  color: var(--text-color);
  padding-bottom: 5px;   
  transition: color 0.3s ease, background-size 0.3s ease;  
  background-image: linear-gradient(var(--textHover-color), var(--textHover-color));
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 0% 2px; /* Initially hidden */
}


a:hover {
  color: var(--textHover-color);
  background-size: 100% 2px; /* Expands the underline */
  background-position: center bottom;
}

.container{
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

.containerButton:active{
  transform: scale(0.96);
}

body, button, input, textarea, select, nav, .navbar, a, p, li, h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', serif;
  font-weight: 500; /* ensure normal text stays elegant */
}

strong {
  font-weight: 700;          /* make sure it uses the bold weight */
  letter-spacing: 0.2px;     
}



/* ---------------------- Age disclaimer ---------------------- */


/* Age Verification Overlay */
.age-disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; 
}

.age-disclaimer-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 650px;
    margin:10px;
}

.age-disclaimer-card h2 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 25px;
}

.age-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.age-buttons button {
    padding: 12px 30px;
    font-size: 1.1em;
/*     font-weight: bold; */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#yes-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
}

#yes-btn:hover {
    background-color: var(--primary-color-dark);
}

#no-btn {
    background-color: #c43030 ;
    color: #333;
}

#no-btn:hover {
    background-color: #810b0b;
}

/* Denial Message Page */
.age-denial-message {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.age-denial-message p {
    font-size: 1.5em;
    color: var(--text-color);
}

/* Class to show the denial message and hide the main content */
.show-denial {
    display: flex;
}

/* Hides the main body content */
.hide-main-content {
    display: none;
}



/* ---------------------- navbar ---------------------- */

.navbar {
  height: 60px;
  transition: height 0.3s ease;
  background: var(--primary-color);
  color: var(--text-color);
  width: 100%;
  position: fixed;
  top: 0; 
  left: 0;
  z-index: 1000; 
  overflow: visible;
  }
  
  /* When at top of the page (initial expanded state) */
.navbar.expanded {
  height: 140px;
}

/* shrink even further when scrolled */
.navbar.shrunk {
  height: 80px; 
}

.logo.transition-logo {
  transition: all 0.3s ease-in-out;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Initial state — when user is at top of the page */
.logo.transition-logo.start {
  position: absolute;
  top: 90px; 
  left: 50%;
  transform: translateX(-10%);
  height: 100px; 
  z-index: 500; 
  animation: spin 16s linear infinite;
}

.logo.transition-logo.shrunk {
  height: 40px;=
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  animation: spin 16s linear infinite;
}

  
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  
}

.fix-me{
    position: fixed;
  }

.navbar .logo-link {
  display: flex;
  align-items: center;
}

.navbar .logo {
  height: 60px; 
  width: auto; 
  margin-right: 10px;  
}

.brand-name {
  display: flex;
  align-items: center;
}

.brand-name .name {
  font-size: 28px;
/*   font-weight: bold; */
  margin-left: 10px;
}

.navbar a {
  font-size: 20px;
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .nav {
  display: flex;
  align-items: center; 
}

.navbar ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  position: relative;
  margin-left: 40px;
  justify-content: center;
  text-align: center;
}

.navbar .brand a {
    background-image: none !important; /* Remove the highlight effect */
    color: var(--text-color) !important; 
}

.nav img {
    height: 27px; 
    width: auto; 
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -7px;
    background-color: #A52A2A;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    display: none; /* Initially hidden */
    transform: translate(50%, -50%);
}

.nav li a,
.info-box a {
    position: relative;
    display: inline-block;
}


/* ---------------------- Header ---------------------- */

.header {
  margin-top: 60px;
  position: relative;
  height: 800px;
  overflow: hidden;
/*   padding-bottom: 100px; */
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-image {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  height: auto;
  z-index: 1;
}



/*  ---------------------- Histoire ---------------------- */

#Histoire {
  padding: 40px;
  padding-top: 90px;
  padding-bottom:200px;
} 

.Presentation {
    display: flex;
    align-items: center;
    background-color: var(--bg-gold-color);
    padding: 30px;
    max-width: 1000px;
    margin: 30px auto;
}

.Presentation .pers-content{
    flex: 0 0 30%; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-right: 10px;
}

.Presentation .photopers {
    width: 200px; 
    height: auto; 
    border-radius:20%; 
    margin-bottom: 20px;
}

.Presentation .text-content h2 {
  font-style: italic;
  margin-bottom: 30px;
}

.Presentation .text-content p {
  position: relative;
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.6;
  padding-left: 90px;
  padding-right: 40px;
}

.Presentation .text-content p::before,
.Presentation .text-content p::after {
  font-family: serif;
  font-size: 8em;
  color: var(--primary-color);
  position: absolute;
  pointer-events: none;
}

.Presentation .text-content p::before {
  content: "“";
  left: 0;
  top: -80px;
}

.Presentation .text-content p::after {
  content: "”";
  right: 0;
  bottom: -140px;
}


/*  ---------------------- Actualite ---------------------- */

#Actualite {
  padding: 40px;
/*   padding-top:100px; */
  padding-bottom:200px;
} 

.event-carousel {
  display: flex;
  overflow-x: auto;
  padding: 4rem 2rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.event-card {
  flex: 0 0 70%;
  max-width: 450px;
  min-height: 400px;
  margin-left: -100px; /* Key: overlap by pulling cards left */
  padding: 2rem;
  background: white;
  border-radius: 0px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  scroll-snap-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
  position: relative;
  
  /* Flexbox for layout */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-card:first-child {
  margin-left: 0; /* No overlap for the first one */
}

.event-card.current {
  transform: scale(1.25);
  z-index: 10;
  border: 1px solid var(--primary-color); 
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.event-card.past {
  background-color: #F5F5F5; 
}

.event-card.future {
  background-color: var(--bg-gold-color);
}

.event-card h2, p {
  color: var(--primary-color); 
}

.event-card h2 {
  margin-bottom: 0.5rem;
}

.event-card h3 {
  color: #a0522d; 
  font-size: 1rem;
  font-weight: normal;
}
.event-card h4 {
  color: #a0522d;
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.event-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1; /* Allows the paragraph to take up available space, keeping the image at the bottom */
}

.event-card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain; /* Ensures the image fits without being distorted */
  margin: 0 auto; /* Centers the image */
}

.event-card a {
  font-size: 10px;                 
  font-weight: 500;                
  line-height: 1.1;            
  text-decoration: underline;     
  text-decoration-thickness: 0.5px;
  display: inline-block;          
}

.event-card a:hover {
color: var(--primary-color);
}

.event-carousel::-webkit-scrollbar {
  display: none;
}

.event-spacer {
  flex: 0 0 30%;
  pointer-events: none;
}

.event-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background:transparent; 
  color: var(--primary-color);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 20;
  transition: background 0. ease;
}

.arrow:hover {
  background: var(--bg-gold-color);
}

.left-arrow {
  left: 0.5rem;
}

.right-arrow {
  right: 0.5rem;
}



/*  ---------------------- Contact ---------------------- */

#Contact {
  padding: 40px;
  padding-bottom: 0px;
} 

.info-boxes {
  display: flex;
  flex-direction: row;
  gap: 80px;
  flex-wrap: wrap; 
  justify-content: center;
  padding-top: 0px;
  padding-bottom: 50px;
}

.info-box {
  display: flex;            
  flex-direction: column;    /* Stacks h2 and p vertically */
  align-items: center;       /* Centers text horizontally */
  text-align: center;        /* Ensures text is centered */
  padding: 15px;            
  min-width: 150px;      
  width: auto;               /* Auto-sizing based on content */
  max-width: 300px;          /* Prevents overly large boxes */
}

.info-box h2 {
  font-size: 20px;
}

.info-box p {
  font-size: 16px;
  color:var(--text-color);
}

.info-box a i {
  font-size: 28px;
}

.flag {
  font-size: 22px;
  display: inline-block;
  line-height: 1;
}



/*  ---------------------- footer ---------------------- */


.transition-section {
  height: 250px;
  background-image:
    linear-gradient(to bottom, rgba(245,245,245,0), var(--primary-color)),
    url('images/Pattern_nectarine.png');
  background-repeat: repeat;
  background-size: auto;
}



#footer {
  background: var(--primary-color);
  color: var(--text-color);
  font-size: 12px;
  text-align: center;
  padding:10px;
  padding-bottom: 30px
}

#footer a, p{
  color: var(--text-color);
}

#footer ul {
  list-style-type: none;
  padding-left: 0;
}

#footer ul li {
  list-style-type: none;
}

#footer img {
    height: 36px; 
    width: auto; 
    transform: translateY(-12px);
}










/*  -------------------------------------------- Media -------------------------------------------- */

/* Hamburger button - Hidden on large screens */
.hamburger {
  display: none; /* Hidden by default */
  font-size: 30px;
  background: none;
  border: none;
  color: var(--bgLight-color); /* Matches text color */
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 25px;
}


@media (max-width: 1100px) {   /*  ---------------------- 1100px ---------------------- */

  .container{
      width: 95%;
    }
    
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .brand-name .name {
    font-size: 22px;
  }

  .navbar.expanded {
    height: 80px;
  }
  
  .logo.transition-logo.start {
    /* Override large-screen behavior */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    height: 40px !important; /* same as .shrunk */
    animation: spin 16s linear infinite;
  }
   
   .navbar .nav {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 80px; 
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .navbar ul li {
    text-align: center;
    margin: 10px 0; 
  }

  .nav.active {
    display: flex !important;
  }

  .hamburger {
    display: block;
    top: 22px;
    right: 30px;
    font-size: 26px;
  }
  
  .header {
    margin-top: 40px;
    height: 450px;
  }

  #Histoire {
    padding: 0px;
    padding-top: 50px;
    padding-bottom:50px;
  } 

  .Presentation {
    flex-direction: column;
    text-align: center;
  }

  .Presentation .text-content p {
    padding: 20px;
    font-size: 1.1em;
  }

  .Presentation .photopers {
    padding-top: 30px;
    border-radius:20%; 
  }
  
  #Actualite {
    padding: 0px;
  /*   padding-top:100px; */
    padding-bottom:200px;
  } 
  
  #Actualite .heading-line{
    padding-bottom:30px;
  } 
  
  #Contact {
    padding: 40px 10px; 
  } 
  
  .contact-info {
    gap: 10px;  
  }


}


@media screen and (max-width: 800px) {  
  .container{
      width: 100%;
    }
    
  .age-denial-message {
    padding:50px;
}
    
    
  .header {
    height: 350px;
  }

  #Histoire {
    padding: 0px;
    padding-top: 50px;
    padding-bottom:50px;
  } 
    
  .Presentation {
      display: block;
      text-align: center;
  }
  
  .Presentation .photopers {
    width: 250px; 
  }
  
    #Actualite {
    padding-bottom:100px;
  } 
  
  .event-card {
    flex: 0 0 90%;
    padding: 1rem;
  }

  .event-card h4 {

    margin-bottom: 20px;
  }
  
  .event-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .info-boxes {
    gap: 40px;
  }

}


@media screen and (max-width: 500px) {  
  .event-card.current {
    transform: scale(1.1);
  }
}




