/* CSS Document */


/* ============================= */
/* HEADER */
/* ============================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
  padding: 0.7rem 1.2rem;

  display: flex;
  align-items: center;
}

/* ============================= */
/* LOGO */
/* ============================= */

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

/* ============================= */
/* BURGER */
/* ============================= */

.burger {
  display: none;
  margin-left: auto;

  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

/* ============================= */
/* NAV DESKTOP */
/* ============================= */

.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex: 1;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: #CC3366;
}

.nav a.active {
  color: #0066FF;
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */

@media (max-width: 768px) {

    .hero-inner, .grid, .gridT, section-innerF { grid-template-columns: 1fr; }
  
  /* Affiche le burger */
  .burger {
    display: block;
  }

  /* Menu déroulant sous la barre */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: #f8f8f8;
    border-bottom: 1px solid #ddd;

    flex-direction: column;
    align-items: center;
    gap: 1rem;

    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: max-height 0.5s ease, opacity 0.3s ease;
  }

  /* Quand le menu est ouvert */
  .header.open .nav {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 0;
  }

}
	
	