/* Réinitialisation globale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-container {
  min-height: 80%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body {
    background-color: rgb(208, 184, 168);
}

/* Header */
header {
    background-color: rgb(142, 137, 137);
    width: 100%;
    position:sticky;
    height: 6rem;
    max-height: 9rem;
    align-items: center;
    align-content: center;
    text-align: center;
    font-family: 'Cormorant Infant', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    color: #2b2b2b;
    text-shadow: 0px 1px 0px #fff, 0px 2px 2px rgba(0,0,0,0.1);
    text-decoration: underline;
    font-style: italic;
    
}


/*Barre de navigation pour grand format*/
/* Menu principal */
.menu {
    position: sticky;
    top:0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 13%;
    margin: 0 auto;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    background: linear-gradient(to right, #c42e2e, #e84a4a);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #a22424;
    border-top: 3px solid #a22424;
    flex-wrap: nowrap;
    overflow-x: auto;
    row-gap: 0.5rem;
    text-align: center;
    overflow: hidden;
}

/* Colonnes de navigation */
.menu-left,
.menu-right {
    display: flex;
    gap: 1.5rem;
}

.menu-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Liens */
.menu a {
    
    font-family: "Sofia Sans", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff8f0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffe0b0;
    transform: translateY(-2px);
}

.logo {
    height: 80px;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
}

.logo:hover {
    transform: scale(1.05);
}


/* Footer */
footer {
    background-color: rgb(79, 79, 79);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer.footer {
  background-color: #7a7d7d;
  color: #fff8f0;
  padding: 1.5rem 2rem;
  font-family: "Sofia", sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff8f0;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-socials a {
  margin-left: 1rem;
  display: inline-block;
}

.footer-socials img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-socials img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}


/* Cacher le burger en version desktop */
#openBtn {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }


  .menu {
      display: none;
      
  }

  .menu-left,
  .menu-right {
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;
      margin: 0.5rem 0;
  }

  .logo {
      height: 50px;
      margin: 1rem 0;
  }

  #openBtn {
      display: block;
      position: absolute;
      top: 15px;
      left: 15px;
      z-index: 1001;
  }

  .sidenav {
      display: block;
  }
}

@media (max-width: 1300px) {
  .menu a {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }

  .menu {
    justify-content: space-around;
  }

  .logo {
    height: 40px;
  }
}

/* Menu Burger*/
/* Menu sidenav */
.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: -250px;
  background-color: #e8e8e8;
  padding-top: 60px;
  transition: left 0.5s ease;
}


/* Sidenav menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #111;
}

.sidenav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Active class */
.sidenav.active {
  left: 0;
}

/* Close btn */
.sidenav .close {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

/* Icône burger */
.burger-icon span {
  display: block;
  width: 35px;
  height: 5px;
  background-color: black;
  margin: 6px 0;
}



