:root {
  --primary-color: #ffffff;   
  --accent-color: #44cfef;    
  --text-color: #171232;
  --background-blur: rgba(0, 0, 0, 0.4);
}

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

/* ------------------ BODY ------------------ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 120px; /* espace sous le header */
  transition: margin-top 0.3s ease;
}

/* ------------------ HEADER ------------------ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(76, 195, 224, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-color);
  flex-direction: row;
  transition: height 0.3s ease;
}

header.expanded {
  height: auto; /* s'agrandit avec le menu */
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 1rem;
}

/* ------------------ LOGO ------------------ */
.logo {
  height: 80px;
  margin-right: 1rem;
}

/* ------------------ NAVIGATION ------------------ */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  transition: background 0.3s ease;
}

nav a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* ------------------ SLIDESHOW ------------------ */
.slideshow {
  margin-top: 0;
  width: 100%;
  height: 700px;
  overflow: hidden;
  position: relative;
  transition: margin-top 0.5s ease;
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

/* ------------------ CONTENT ------------------ */
.content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
  background-color: rgba(213, 201, 161, 0.05);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
}

/* ------------------ FOOTER ------------------ */
footer {
  background-color: rgba(76, 195, 224, 0.7);
  border-top: 2px solid var(--accent-color);
  padding: 3rem 1rem;
}

footer .footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-color);
}

/* ------------------ HAMBURGER ------------------ */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 992px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100px;
  }

  nav {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
  }

  nav.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  /* quand le header s'agrandit, on décale le reste du site */
  header.expanded ~ .slideshow {
    margin-top: 200px;
  }
  header.expanded ~ .content {
    margin-top: 200px;
  }
}
:root {
    --primary-color: #ffffff;   
    --accent-color: #44cfef;    
    --text-color: #171232;
    --background-blur: rgba(0, 0, 0, 0.4);
  }
  
  /* ------------------ RESET ------------------ */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ------------------ BODY ------------------ */
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 120px; /* espace sous le header */
    transition: margin-top 0.3s ease;
  }
  
  /* ------------------ HEADER ------------------ */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(76, 195, 224, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent-color);
    flex-direction: row;
    transition: height 0.3s ease;
  }
  
  header.expanded {
    height: auto; /* s'agrandit avec le menu */
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1rem;
  }
  
  /* ------------------ LOGO ------------------ */
  .logo {
    height: 80px;
    margin-right: 1rem;
  }
  
  /* ------------------ NAVIGATION ------------------ */
  nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
  }
  
  nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    transition: background 0.3s ease;
  }
  
  nav a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
  }
  
  /* ------------------ SLIDESHOW ------------------ */
  .slideshow {
    margin-top: 0;
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    transition: margin-top 0.5s ease;
  }
  
  .slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .slideshow img.active {
    opacity: 1;
  }
  
  /* ------------------ CONTENT ------------------ */
  .content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background-color: rgba(213, 201, 161, 0.05);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
  }
  
  /* ------------------ FOOTER ------------------ */
  footer {
    background-color: rgba(76, 195, 224, 0.7);
    border-top: 2px solid var(--accent-color);
    padding: 3rem 1rem;
  }
  
  footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }
  
  footer a {
    color: var(--text-color);
    text-decoration: none;
  }
  
  footer a:hover {
    color: var(--accent-color);
  }
  
  /* ------------------ HAMBURGER ------------------ */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
  }
  
  .menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  /* ------------------ RESPONSIVE ------------------ */
  @media (max-width: 992px) {
    header {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      height: 100px;
    }
  
    nav {
      position: relative;
      display: none;
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin-top: 1rem;
    }
  
    nav.show {
      display: flex;
    }
  
    .menu-toggle {
      display: flex;
    }
  
    /* quand le header s'agrandit, on décale le reste du site */
    header.expanded ~ .slideshow {
      margin-top: 200px;
    }
    header.expanded ~ .content {
      margin-top: 200px;
    }
  }
  