/* Reset & base */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1 0 auto; /* prend tout l’espace possible mais peut réduire */
  display: flex;
  overflow: auto; /* scroll si contenu trop grand */
}

nav {
  /* ta largeur fixe */
  width: 220px;
  overflow-y: auto;
}

main {
  flex: 1 1 auto;
  padding: 1rem;
  overflow-y: auto; /* scroll interne si contenu trop long */
}

footer {
  background-color: #3a3a3a; /* même couleur que header */
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-shrink: 0; /* ne rétrécit pas */
}

/* Entête */
header {
  height: 100px;
  background: #3a3a3a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  padding: 0 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.brand-text h1 {
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.1;
}
.brand-text .slogan {
  font-weight: 400;
  font-size: 0.9rem;
  color: #ccc;
}

/* Container */
.container {
  display: flex;
  margin-top: 100px; /* espace sous l'entête */
  flex: 1;
}

/* Menu latéral */
nav#sidebar {
  background: #3a3a3a;
  color: white;
  width: 220px;       /* largeur fixe */
  min-width: 220px;   /* empêche réduction */
  max-width: 220px;   /* empêche agrandissement */
  padding-top: 1rem;
  position: fixed;
  top: 100px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
  z-index: 1000;
}
nav#sidebar ul {
  list-style: none;
}
nav#sidebar li {
  display: flex;
  align-items: center;
  padding: 1rem;
}

nav#sidebar li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
}

nav#sidebar li i {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #cc2c1c; /* rouge brique */
}

nav#sidebar li:hover {
  background-color: #b23a3a;
  color: white;
  transform: translateX(10px);
}
nav#sidebar li:hover i {
  color: white;
}

/* Contenu principal */
main {
  margin-left: 220px;
  padding: 1.5rem;
  flex: 1;
  background: white;
  min-height: calc(100vh - 100px - 40px); /* 100px header + 40px footer */
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 6px;
}
main h2 {
  margin-bottom: 1rem;
  color: #3a3a3a;
}
main p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
main section h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #b23a3a;
}
main ul {
  list-style: none;
  padding-left: 1.2rem;
}
main ul li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.photo-accueil {
  width: 80vw;
  height: 80vh; /* ou ajustez selon besoin : 70vh, 80vh, etc. */
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.photo-accueil img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit toute la zone, en rognant si nécessaire */
  display: block;
}

.photo {
  width: 80vw;
  height: 80vh; /* ou ajustez selon besoin : 70vh, 80vh, etc. */
  overflow: hidden;
  position: relative;
  margin: 2rem 0;
  padding: 0;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit toute la zone, en rognant si nécessaire */
  display: block;
}

.contacts {
  margin: 0.5rem 0;
  text-align: center;
}

.contacts .line {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
  font-size: 2rem;
}

.contacts span {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 1.5rem;
}

footer {
  background-color: #3a3a3a; /* couleur entête */
  color: white;
  text-align: center;
  padding: 0.5rem 1rem; /* réduire la hauteur verticale */
  font-size: 0.9rem; /* optionnel : réduire légèrement la taille du texte */
  position: fixed; /* si tu veux footer toujours visible */
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Pied de page */
footer p strong {
  font-size: 2.0rem;  /* augmente la taille, ajuste à ta convenance */
  font-weight: 700;   /* pour bien marquer */
  margin: 0.5rem 0;
  text-align: center;
}

/* Burger (mobile) */
.burger {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: #b23a3a;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1100;
}

/* Overlay fond sombre quand menu ouvert */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}
#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .burger {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: #b23a3a;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
  }

  nav#sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  nav#sidebar.open {
    transform: translateX(0);
  }

  main {
    margin-left: 0;
    padding-top: 90px;
  }
  
  .photo-accueil,
  .photo {
    width: 95vw;
    height: auto;
    max-height: 60vh;
    margin: 1rem 0;
  }

  .photo-accueil img,
  .photo img {
    width: 95%;
    height: auto;
    object-fit: cover;
  }
  
  header {
    display: flex;
    align-items: center;
    justify-content: center; /* centre horizontalement le contenu */
    padding-left: 3.5rem; /* espace à gauche pour le bouton burger */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 80px; /* ou ta hauteur d’entête réduite */
    z-index: 1001;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    height: 60px; /* réduire taille du logo */
  }

  .brand-text h1 {
    font-size: 1.3rem;
  }

  .brand-text .slogan {
    font-size: 0.8rem;
  }
}




