* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --color-primary: #7F9172;
  --color-secondary: #08415C;
  --color-text: #FF9F1C;
  --color-background: #FBFBFF;
}

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: 'Raleway', sans-serif; 
  background-color: var(--color-background); 
}

/* header */
.container-header {
  background-color: var(--color-primary); 
  width: 100%; 
  height: 110px; 
  display: flex; 
  padding: 0 5%; 
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  transition: top 0.3s;
  z-index: 1000;
}

/* .container-header {
  top: -120px; 
} */

.header{
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  z-index: 1000;
}

.logo img {
  width: 130px;
  height: 80px;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    }
    
    
    .menu.active {
    display: flex;
    }

.menu ul{
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.menu ul li {
  display: inline;
  margin-right: 20px;
  position: relative;
  text-transform: uppercase;
}

.menu li a{
  text-decoration: none;
  position: relative;
  color: var(--color-background);
  display: inline-block;
}

.menu ul ul{
  width: 250px;
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 10px;
}



.menu ul li a::after {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: #000;
transform-origin: bottom right;
transition: transform 0.25s ease-out;
}

menu ul li a:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}


.connexion {
  margin-left: 20px; 
  
}

.connexion button {
  background-color: var(--color-text); 
  color: var(--color-secondary); 
  size: 2rem;
  border: none; 
  padding: 10px 30px; 
  border-radius: 20px; 
  cursor: pointer; 
  
}

.connexion button:hover {
  background-color: var(--color-secondary); 
  color: var(--color-text); 
}


.hamburger {
display: flex;
cursor: pointer;
width: 40px;
height: 40px;
position: absolute;
right: 20px;
top: 20px;
flex-direction: column;
justify-content: space-between; 
align-items: center;
z-index: 1000; 
}

.hamburger div {
width: 100%;
height: 4px;
background-color: var(--color-text);
transition: all 0.3s ease;
margin: 8px 0;
}

.hamburger.active .bar1 {
transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar2 {
opacity: 0;
}

.hamburger.active .bar3 {
transform: rotate(45deg) translate(-5px, -6px);
}

.hamburger.active {
position: absolute;
}

.hamburger.active::before,
.hamburger.active::after {
content: '';
position: absolute;
width: 10px;
height: 10px;
background-color: var(--color-text);
border-radius: 50%;
top: -10px;
transition: all 0.3s ease;
}

.hamburger.active::before {
left: -15px;
}

.hamburger.active::after {
right: -15px;
}



/*------------------- Header Meddia queries-----------------*/

/* General styles */
/*.hamburger {
display: none;
cursor: pointer;
font-size: 2rem;
color: var(--color-text);
position: absolute;
right: 20px;
top: 20px;
}*/

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
.header {
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.hamburger {
    display: block;
}

.menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primary);
    position: absolute;
    top: 110px;
    left: 0;
}

.menu.active {
    display: flex;
}

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

.menu ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.menu ul li a {
    padding: 10px 20px;
    display: block;
    color: var(--color-background);
}

.connexion {
    display: none;
}
}

/* Tablets (481px to 900px) */
@media (min-width: 481px) and (max-width: 900px) {
.header {
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

.hamburger {
    display: block;
}

.menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primary);
    position: absolute;
    top: 60px;
    left: 0;
}

.menu.active {
    display: flex;
}

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

.menu ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.menu ul li a {
    padding: 10px 20px;
    display: block;
    color: var(--color-background);
}

.connexion {
    display: none;
}
}

/* Desktops (769px and up) */
@media (min-width: 900px) {
.header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: auto;
    text-align: left;
}

.hamburger {
    display: none;
}

.menu {
    display: flex;
}

.connexion {
    display: block;
}
}

/* footer */
.footer {
background-color: #000;
width: 100%;
color: var(--color-background);
bottom: 0;
}

.footer__flex {
display: flex;
justify-content: space-around;
align-items: center;
padding: 20px;
}

.footer__column {
display: flex;
flex-direction: column;
align-items: center;
width: 90%;
}

.footer__column svg {
margin-right: 10px; 
}

.footer__column-info {
color: var(--color-background);
text-decoration: none;
margin: 8px; 
transition: color 0.3s; 
}

.footer__column-info a{
color: var(--color-background);
}

.footer__column-info:hover {
color: #FF9F1C;
}


.footer__column-content {
margin-top: 10px;
}

.footer__info-wrapper {
display: flex;
justify-content: space-between;
width: 100%;
}

.footer__info-container {
display: flex;
flex-direction: column;
}

.footer__bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
width: 90%;
margin: auto;
}

.footer__logo {
text-decoration: none;
color: white;
}

.footer__logo span {
color: #FF9F1C; 
font-size: 2em;
font-style: bold;
}

.footer__copyright {
color: white;
opacity: 0.6;
}

.footer__socials {
opacity: 0.6;
}

.footer__socials path {
fill: #FF9F1C; 
}

hr{
max-width: 90%;
margin: 0 auto;}

 /*-------------Media queries footer-----------------*/
/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
.footer__flex {
  flex-direction: column;
  align-items: center;
}

.footer__column {
  width: 100%;
  margin-bottom: 20px;
}

.footer__info-wrapper {
  flex-direction: column;
  align-items: center;
}

.footer__info-container {
  width: 100%;
  align-items: center;
  margin-bottom: 10px;
}

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

.footer__logo {
  margin-bottom: 10px;
}
}

/* Tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
.footer__flex {
  flex-direction: column;
  align-items: center;
}

.footer__column {
  width: 100%;
  margin-bottom: 20px;
}

.footer__info-wrapper {
  flex-direction: column;
  align-items: center;
}

.footer__info-container {
  width: 100%;
  align-items: center;
  margin-bottom: 10px;
}

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

.footer__logo {
  margin-bottom: 10px;
}
}

/* Desktops (769px and up) */
@media (min-width: 769px) {
.footer__flex {
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.footer__column {
  width: 30%;
}

.footer__info-wrapper {
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.footer__info-container {
  flex-direction: column;
}

.footer__bottom {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.footer__logo {
  margin: 0;
}
}