/* css/style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: url('/images/fond.png') no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
}

/* Structure principale */
body {
  display: flex;
  flex-direction: column;
}

header, footer {
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  width: 100%;
  z-index: 1000;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 0 10px;
}

/* Logo et menu */
.entete-conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 150px;
  height: auto;
  width: auto;
}

nav ul.menu-ligne {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul.menu-ligne li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

#menu-burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Bandeau défilant amélioré */
.bandeau-actualites {
  background-color: #ffecb3;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  padding: 5px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-weight: normal;
  position: relative;
}

.bandeau-actualites .fil-texte {
  display: inline-block;
  padding-left: 100%;
  animation: defilement 25s linear infinite;
}

@keyframes defilement {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Pied de page */
footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

footer .pied-gauche, footer .pied-centre, footer .pied-droite {
  flex: 1;
  min-width: 200px;
}

footer img.banniere {
  max-width: 100%;
  height: auto;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
  nav ul.menu-ligne {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    z-index: 999;
  }

  nav ul.menu-ligne.active {
    display: flex;
  }

  #menu-burger {
    display: block;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  background-color: rgba(255,255,255,0.85);
  padding: 10px;
}

footer .pied-gauche,
footer .pied-centre,
footer .pied-droite {
  flex: 1;
  min-width: 200px;
}

footer .pied-centre {
  text-align: center;
}

footer .pied-droite {
  text-align: right;
}

footer img.banniere {
  max-height: 80px;
  margin-top: 10px;
}

.entete-haut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.entete-haut .logo img {
  max-height: 150px;
  height: auto;
  width: auto;
}

.entete-haut .reseaux {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 180px;
}

.entete-haut .reseaux img {
  height: 40px;
  width: auto;
  display: block;
}

/* Responsive : en-dessous du logo sur mobile */
@media screen and (max-width: 768px) {
  .entete-haut {
    flex-direction: column;
    align-items: center;
  }

  .entete-haut .reseaux {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    margin-top: 10px;
  }

  .entete-haut .logo img {
    max-height: 120px;
  }
}
