:root {
  --vin: #6E122B;
  --beige: #FDD59A;
  --bordeaux: #8B3C42;
  --rouge-profond: #690B26;
  --rouge-fonce: #6D112A;
}

body {
  font-family: 'Open Sans', sans-serif;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.header {
  display: flex;
  justify-content: center; /* Centrage horizontal */
  align-items: center;     /* Centrage vertical */
  padding: 0 2rem;
  height: 5rem;
  background: var(--vin);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__logo {
  margin-right: auto; /* pousse la nav au centre à gauche */
}

.navbar {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}


.navbar__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.header__logo img{
  height: 70px;
  width: 70px;
}


.navbar__menu {
  position: relative;
  display: flex;
}

.navbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 10rem;
  color: var(--beige);
  transition: 250ms ease all;
  text-decoration: none;
  text-transform: uppercase;
}

.navbar__link:hover svg {
  color: white;
}

.navbar__link:hover span,
.navbar:not(:hover) .navbar__link:focus span {
  opacity: 1;
  transform: translate(0);
    color: white;

}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 15;
}

.burger span {
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .navbar {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background: var(--vin);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    z-index: 12;
  }

  .navbar.active {
    display: flex;
  }

  .navbar__menu {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar__link {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
  }
}


/* Footer */
.footer {
  
  position: relative;
  margin-top: 50px;
  padding: 3rem 0;
  color: #fff;
  background: var(--vin);
}

.footer__columns {
  display: flex;
  justify-content: space-between;
  width: 1200px;
  padding-left: 100px;
  
}

.footer__col-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.footer__col-title * ~ span {
  margin-left: 1rem;
}

.footer a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer a * ~ span {
  margin-left: 1rem;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__copyrights {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyrights p {
  display: flex;
    margin-left: 0.5rem;

}


@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .header__logo {
    margin: 0 auto;
  }

  .navbar {
    justify-content: center;
  }

  .navbar__menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .navbar__link {
    width: auto;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
   .navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: var(--vin); /* Ou var(--vin) */
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 6rem 1rem 2rem;
    gap: 1.5rem;
    z-index: 1000;
    transition: transform 0.3s ease;
  }

  .navbar.active {
    display: flex;
  }

  .navbar__menu {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .navbar__item {
    width: 100%;
    text-align: center;
  }

  .navbar__link {
    width: 100%;
    padding: 1rem 0;
    color: #fff;
    background: transparent;
    font-size: 1.2rem;
    transition: background 0.2s;
  }

  .navbar__link:hover {
    background: var(--rouge-profond);
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1010;
    background: var(--vin); /* ou var(--vin) */
  }

  .burger {
    display: flex;
    position: relative;
    z-index: 1011; /* au-dessus du menu */
  }

  .footer__columns {
    flex-direction: column;
    padding-left: 0;
    padding: 0 2rem;
    gap: 2rem;
    width: 100%;
  }

  .footer__col-title {
    justify-content: center;
  }

  .footer__nav-list {
    align-items: center;
  }

  .footer__copyrights p {
    justify-content: center;
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--vin);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

  .navbar.active {
    display: flex;
  }

  .navbar__menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .navbar__item {
    width: 100%;
    text-align: center;
  }

  .navbar__link {
    width: 100%;
    padding: 0.8rem 0;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .navbar__link:hover {
    background-color: var(--rouge-profond);
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    z-index: 1011;
  }

  .burger span {
    height: 0px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 4rem;
    background: var(--vin);
  }

  .header__logo img {
    height: 50px;
    width: auto;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer__columns {
    padding: 0 1rem;
  }

  .footer__col-title {
    font-size: 1.2rem;
  }

  .footer__nav-list {
    gap: 1rem;
  }
}








