@font-face {
    font-family: 'dancing'; /* Nom que vous allez utiliser */
    src: url('DancingScript-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'outfit'; /* Nom que vous allez utiliser */
    src: url('Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'merry'; /* Nom que vous allez utiliser */
    src: url('Merriweather_24pt_SemiCondensed-LightItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h4{
    margin: 0px;
    font-family: 'outfit';
    font-weight: lighter;
    font-size: 16px;
}
h5{
    margin: 0px;
    font-family: 'dancing';  
    font-size: 36px;
    font-weight: lighter;

}
:root {
    --primary-color: rgb(255, 249, 235);
    --Rose:#efdcc6ed;
    --Second-color :#956A44;
}

/* Add this universal box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}
html{
    background-color: var(--primary-color);
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
    height: 100%;
}


body{
    min-width: 320px;
    margin: 0;
    padding: 0;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

header{
  background-color: var(--Second-color);
  position: fixed;
  min-width: 320px; /* Changed from 600px to support iPhone */
  /*max-width: 1500px;*/
  width: 100%;
  z-index: 900; /* Ensure header stays above content */
}

.top{
  padding: 20px 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items:center;
  border-bottom: 1px solid;
}
#menuBtn{
  font-size: 16px;

}
.topCenter{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.page{
    padding:40px;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
    justify-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1500px;
    margin: 0px auto;
    width: 100%;
}
/*Slide bar */
button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 20px;
  border: 2px solid black;
  border-radius: 10px;
  color: black;

}
#closeBtn{
  height: auto;
}

#sideMenu ul{
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  list-style-type: none;
  padding: 10px;
}
/* for sideMenuPresantation*/
#sideMenu ul ul {
  gap: 5px; /* Override the parent gap */
  margin: 10px;
  padding: 0;
}
#sideMenuPrestation ul li{
  padding: 5px; /* Add some internal padding if needed */
}

#sideMenu a{
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  font-family: 'merry';
}

#sideMenu #clc{
 display: flex;
 justify-content: right;
}

#sideMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--Second-color);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

/* Mobile: */

#sideMenu.open {
  transform: translateX(0);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#overlay.open {
  opacity: 1;
  pointer-events: all;
}
.content-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: auto;
}
.footer {
    background-color: var(--Second-color);
    color: black;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:normal;
    padding: 40px;
    width: 100%;
    margin-top: auto;/* Add this - ensures footer stays at bottom */
    font-size: inherit;
    padding-bottom: 50px;
}

.footer p, footer a{
  font-size: 1rem;
  padding: 2px;
}
.footTitle{
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'merry';
  }

.foot2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: auto;
}
.foot2 a{
  text-decoration: none;
  color: inherit;
}
.foot3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


@media (max-width: 480px) {
  #sideMenu {
    width: 230px;
    padding: 15px;
    margin: 0px;

  }
  
  #sideMenu button {
    margin-left: 100px;
  }
  #sideMenu ul{
    gap:20px;
    padding: 0px;
    margin-top: 20px;
  }
  .page {
    font-size: 16px;
    padding: 0px 15px;
    padding-top: 100px;
    gap: 20px;
  }
    #menuBtn {
    padding: 3px 10px;
    font-size: 0.7em;
  }
    #menuBtn img{
      height: 20px;
      width: auto;
  }
  .top .right img{
      height: 35px;
      width: auto;
  }
    button {
    padding: 8px 15px;
    font-size: 14px;
  }
    #vision {
    padding-top: 100px;
  }
    #sideMenu{
      font-size: 16px;
  }  
  .footer{
    font-size: 16px;
    padding: 15px;
    gap: 5px; /* Space between sections */
    margin-top: 20px;
    padding-bottom: 50px;
  }
   .footer a , .footer p{
    font-size: 12px;
  }
  footer img{
    height: 25vw;
  }
  
  .top{
  padding: 15px 15px;
  padding-top: 10px;
  
  }
  .topCenter{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  }
}
 

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  body {
    /* Prevent iOS Safari from shrinking content */
    -webkit-text-size-adjust: 100%;
  }
}