/* =========================
   BASE
========================= */
body {
  margin: 0;
  color: black;
  background-color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}
main {
  padding-top: 160px; /* hauteur du header normal */
}


/* =========================
   HEADER
========================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 20px;
  transition: all 0.4s ease;
  z-index: 1000;
}

/* Logo + titre */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
}

header .titre {
  max-height: 100px;
  max-width: 100%;
  height: auto;
  width: auto;
  cursor: pointer;
  display: block;
  transition: height 0.4s ease;
}

header .logo-scala {
  height: 180px;
  display: block;
  transition: height 0.4s ease;
}

/* Header réduit au scroll */
header.shrink {
  padding: 6px 20px;
}

header.shrink .titre {
  height: 65px;
}

header.shrink .logo-scala {
  height: 95px;
}

header.shrink + main {
  padding-top: 80px; /* hauteur du header réduit */
}

/* =========================
   NAVIGATION
========================= */
nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  color: rgb(255, 0, 0);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   MAIN / SECTIONS
========================= */
main {
  margin-top: 180px; /* espace pour le header fixed */
  padding: 20px;
}

section {
  padding: 60px 20px;
  min-height: 80vh;
}

hr {
  margin: 60px 0;
  border: 1px solid #ccc;
}

/* =========================
   PUBLICITÉS
========================= */
.pub-en-cours {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 150px;
  margin: 10px 0 10px;
}

.pub-item {
  width: 500px;
  text-align: center;
  cursor: pointer;
}

.pub-item img {
  width: 400px;
  height: auto;
  border-radius: 50px;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.pub-item img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 100px rgba(0, 0, 0, 0.3);
}

/* Texte affiché au clic */
.texte-pub {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-top: 30px;
  font-size: 30px;
}

.pub-item.active .texte-pub {
  opacity: 1;
  max-height: 100%;
}
/* Lightbox fond */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

/* Image agrandie */
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
  animation: zoomIn 0.3s ease;
}

/* Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   TITRES
========================= */
h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 55px;
}

/* =========================
   FOOTER / RÉSEAUX
========================= */
.menu-reseaux {
  width: 100%;
  height: 50px;
  background-color: #ff0000;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.menu-reseaux a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.menu-reseaux a:hover {
  color: #000000;
}

/* =========================
   PAGES SPÉCIFIQUES
========================= */
.Boutique img {
  width: 100%;
  height: auto;
  border-radius: 50px;
}

.Agenda img {
  width: 100%;
  height: auto;
  border-radius: 50px;
}

/* ========================= */
/* VERSION MOBILE */
/* ========================= */
@media screen and (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  header a.header-logo {
    display: flex;
    justify-content: center;
  }

  .titre {
    max-height: 100px;
    max-width: 100%;
    height: auto;
    width: auto;
  }

  .logo-scala {
    max-height: 100px;
    max-width: 100%;
    height: auto;
    width: auto;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  nav a {
    margin: 5px 10px;
    font-size: 18px;
  }
  img {
    max-width: 100%;
    height: auto;
  }
    .pub-en-cours {
    flex-direction: column;
    gap: 30px;
    margin: O;
    padding: 0 10px;
  }

  .pub-en-cours img {
    width: 90%;
    border-radius: 20px;
  }

  .texte-pub {
    font-size: 20px;
    margin-top: 20px;
  }
  .menu-reseaux {
    flex-direction: column;
    height: auto;
    gap: 10px;
    padding: 15px 0;
  }

  .menu-reseaux a {
    font-size: 16px;
  }

  header {
    position: sticky;
    top: 0;
  }
  header.shrink + main {
    padding-top: 0px;
  }
}