/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE DU SITE ===== */
body {
  font-family: "Manrope", sans-serif;
  font-size: 1em;
  background-color: #1f2039;
}

main {
  font-size: 1.8em;
}

html,
main {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

section {
  padding: 0.8em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHIE ===== */
h1,
h2,
p,
li {
  text-align: center;
  color: #f9f8ff;
}

h1 {
  font-size: 3.5em;
  font-family: "Montserrat", sans-serif;
  color: #a5b4fc;
  margin: 2em 0 1em 0;
}

h2 {
  font-size: 2em;
  color: #a5b4fc;
  margin: 0.6em 0 0.4em 0;
}

p,
li {
  font-size: 1.1em;
  line-height: 1.6;
}

a {
  color: #242424;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: bold;
  color: #a5b4fc;
}

.portfolio-section a {
  color: #a5b4fc;
}

.portfolio-section a:hover {
  color: #8788ba;
}

em {
  color: #a5b4fc;
  font-style: normal;
}

/* ===== HEADER ET NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: white;
  display: flex;
  justify-content: space-between; /* <-- important */
  align-items: center;
  padding: 0 20px;
  z-index: 9999;
}

footer,
nav {
  display: flex;
  align-items: center;
  justify-content: space-between; /* <-- on espace tout */
  width: 100%;
}

nav a {
  margin: 0 2em;
}

.lien-icone {
  display: flex;
  align-items: center;
}

.lien-icone:hover {
  opacity: 0.7;
}

.menu-deroulant {
  position: relative;
  display: inline-block;
}

.menu-deroulant .sous-menu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.menu-deroulant:hover .sous-menu {
  display: block;
}

.menu-deroulant .sous-menu a {
  display: block;
  padding: 0.5em;
  margin-top: 0.8em;
  color: #1f2039;
}

.menu-deroulant .sous-menu a:hover {
  background-color: #f1f1f1;
}

.Logoheader,
.Logofooter {
  max-height: 50px;
  height: 100%;
}

footer {
  background-color: #03041b;
  padding: 1em 2em;
  width: 100%;
  max-height: 80px;
}

.copyright {
  color: white;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3em;
}

/* ===== BOUTONS ===== */
.cta {
  display: inline-block;
  background: linear-gradient(#8e86b5, #acaeed);
  color: white;
  border-radius: 50px;
  padding: 0.5em 1.5em;
  font-size: 1em;
  margin-bottom: 2em;
}

.cta:hover {
  background: linear-gradient(#181044, #2d2d3b);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 0.5em;
  right: 0.5em;
  background: #a5b4fc;
  color: white;
  padding: 0.7em 1em;
  border-radius: 50%;
  font-size: 1.3em;
  z-index: 999;
  transition: background 0.3s;
}

.back-to-top:hover {
  background: #8788ba;
}

/* ===== SLIDER ===== */

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-container .hover-text {
  position: absolute;
  bottom: -100%; /* caché au début */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.807); /* fond semi-transparent noir */
  color: #ffffff;
  padding: 10px;
  text-align: center;
  font-size: 0.5em;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none; /* pour ne pas bloquer la souris */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.image-container:hover .hover-text {
  bottom: 0; /* remonte au survol */
  opacity: 1;
}

.slider-container {
  position: relative;
  max-width: 600px;
  margin: 2em auto;
  overflow: hidden;
  background-color: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  min-width: 100%;
  height: 400px;
  object-fit: cover;
  display: none;
  border-radius: 10px;
}

.slider img.active {
  display: block;
}

/* Flèches Slider */
.slider-btn,
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #a5b4fc;
  border: none;
  border-radius: 50%;
  padding: 0.5em;
  font-size: 2em;
  color: white;
  cursor: pointer;
  z-index: 1001;
  font-size: larger;
}

.slider-btn.prev,
.prev {
  left: 10px;
}

.slider-btn.next,
.next {
  right: 10px;
}

.slider-btn:hover,
.prev:hover,
.next:hover {
  background: #8788ba;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

/* ===== BURGER MENU STYLES ===== */
.burger {
  margin-left: auto; /* <-- pousse le burger complètement à droite */
  display: none;
  font-size: 2em;
  background: none;
  border: none;
  color: #1f2039;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
}

/* ===== BURGER RESPONSIVE ===== */
@media screen and (max-width: 996px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
  }

  /* ===== MENU BURGER ===== */
  .burger {
    display: block;
    position: absolute;
    top: 1em;
    right: 1.2em;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #1f2039;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Animation douce */
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 1em 0;
    width: 100%;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-deroulant .sous-menu {
    position: static;
    box-shadow: none;
    background: none;
  }

  .h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
  }
}
