/* GLOBAL */
html, body {
  height: 100%;
  font-size: 16px; /* base 16px = 1rem */
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  font-size: 1rem; /* 16px */
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pousse le footer vers le bas quand peu de contenu */
}

main p {
  text-align: left-aligned; 
}

.container {
  width: 90%;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 2vw;
}

/* HEADER RESTRUCTURE */
/* Cacher le bouton burger sur grand écran */
.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
}

header .container {
  max-width: 95vw; /* header container plus large que le main/footer */
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo img {
  height: 5vw;
  max-height: 3rem; /* limite max pour écrans larges */
  vertical-align: middle;
}

.site-title {
  text-align: left;
  flex: 1;
  margin-left: 1rem;
}

.site-title h1 {
  margin-bottom: 0;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}

.site-title p {
  font-size: 0.9rem;
  margin-top: 0rem;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 1rem;
}

nav ul li a {
  color: #888; /* gris par défaut */
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}

nav ul li a.active {
  color: #000; /* noir pour la page active */
  pointer-events: none; /* désactive le lien */
}

/* Responsive : sur petits écrans */
@media (max-width: 768px) {
  /* Affiche le burger */
  .burger {
    display: block;
    position: relative;
    z-index: 1100; /* au-dessus du menu */
  }

  /* Cache le menu par défaut */
  nav {
    display: none;
    position: fixed;      /* position fixe sur l'écran */
    top: 0;
    right: 0;
    height: 100vh;        /* pleine hauteur */
    width: 70vw;          /* largeur du panneau */
    padding: 2rem 1rem;
    box-shadow: -3px 0 8px rgba(0,0,0,0.3);
    z-index: 1000;        /* devant tout */
    overflow-y: auto;     /* scroll si contenu trop grand */
    transition: transform 0.3s ease;
    transform: translateX(100%); /* caché à droite */
  }

  /* Quand menu actif (visible) */
  nav.active {
    display: block;
    background: #bfadcc;
    padding: 1rem;
    transform: translateX(0);    /* visible */
  }

  nav ul {
    flex-direction: column;
    margin-top: 3rem;
  }

  nav ul li {
    margin: 1rem 0;
  }

  nav ul li a {
    color: white;
    font-size: 1.4rem;
  }
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

nav.active + .overlay {
  display: block;
}

/* BANDEAU HERO */
.hero {
  background: url('/assets/images/waves.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  margin-bottom: 3rem; /* ou ce qui te semble confortable */
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3rem); /* taille fluide entre 2rem et 3rem */
  font-weight: bold;
  text-shadow: 0.1rem 0.1rem 0.2rem #000;
  margin: 0;
}

/* BLOC MAJ */
.maj {
  background: #e0e0e0;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  border-left: 0.3rem solid #004080;
  font-size: 1rem;
}

/* LIENS */
a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: #222;
  color: #ddd;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a#cc-link {
  color: white;
  text-decoration: underline;
}

footer a#cc-link:hover {
  color: #ddd;
}
