@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap');




body {
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  padding-top: 130px;
}  

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  background: white;
  border-bottom: 1px solid #000;
  z-index: 1000;  
}

/* 1. Relative container for absolute menu placement */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Ensures content centers properly */
  padding: 8px 1vw;
  min-height: 80px;
}

/* 2. Absolutely position logo on the left */
.logo {
  position: absolute;
  left: 9%;
  width: clamp(50px, 16vw, 160px);
  height: auto;
}

/* 3. Title takes natural center alignment */
.title-block {
  text-align: center;
}

.title-block h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4.4vw, 3.2rem);
font-family: 'Amatic SC', cursive, sans-serif;
}

.title-block h2 {
  margin: 0;
  font-size: clamp(0.6rem, 1.8vw, 2rem);
  font-weight: bold;
font-family: 'Amatic SC', cursive, sans-serif;
}

/* 4. Desktop Navigation (top right) */
.topnav {
  position: absolute;
  right: 2%;
  display: flex;
  gap: 8px;
}

.topnav a {
  padding: 6px 0.5vw;
  text-decoration: none;
  color: #333;
  border-radius: 999px;
  font-size: clamp(0.7rem, 1.2vw, 1.1rem);
  white-space: nowrap;
}


/* Hide hamburger button on desktop */
.menu-toggle {
  display: none;
}


@media (max-width: 768px) {
  /* Show hamburger button on top right */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 4%;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 1001;
  }

  /* Dropdown panel for mobile */
  .topnav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Sits directly below the header banner */
    right: 0;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  }

  /* Revealed when toggled via JS click */
  .topnav.open {
    display: flex;
  }

  .topnav a {
    padding: 12px 20px;
    text-align: center;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .topnav a:last-child {
    border-bottom: none;
  }
  
    .title-block h2 {					
    display: none;/* Fait en sorte que le sous-titre disparait quand l'écran est trop petit */	
  }
}

  .topnav a:hover {
  background-color: #333;			/* Sans ça on n'a pas l'encadré pilule */
  color: white;						/* Change la couleur du texte de noir à blanc pour qu'on puisse lire dans l'encadré */
}
  
			

  
  .bio {
 width:clamp(80px, 75%,  700px);
 display:block;
 margin-left:auto; 
 margin-right:auto; 
}
.section-title h2 {
    text-align: center;
    font-size: clamp(25px, 3vw, 40px);
    font-weight: 400; /* Use numeric weight instead of 'normal' */
	font-family: 'Amatic SC', cursive, sans-serif;
	text-decoration-line: underline;
}
  
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4vw;						/* Marges entre les éléments et non à l'extérieur du cadre des cartes */
  padding: 20px 6vw;          /* Marges verticales, puis à gauche et à droite quand on regarde les photos dans leur ensemble */
  align-items: stretch;
}

.card {
  cursor: pointer;
  position: relative;

  display: grid;
  grid-template-rows: 1fr auto; /* image space + caption */
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);  /* De 1 à 4 éléments (photos) par ligne */
  }
}
  
@media (max-width: 768px) {				
   .gallery-grid  {					
    grid-template-columns: repeat(2, 1fr);
  }
}

.card img {
  width: 100%;		  /* Dicte combien de l'espace est occupé par les cartes d'images (images pas ouvertes) */
  height: auto;
  display: block;	  /* Fait en sorte que la ligne au complet est occupée, empêches les éléments de s'empiler */	
  border-radius: 4px; /* Arrondit un peu les coins des cartes si > 0 */
  align-self: center;
}
  
  .card .meta {
text-align: center;
  margin-top: 15px;
  font-family: 'Amatic SC', cursive, sans-serif; /* Sets the font family */
    font-weight: bold;

}
  
  
  
  
  
  
  
  
  
  
  .lightbox {
  position: fixed;    /* Obligatoire pour le fonctionnement des lightbox */
  inset: 0;				/* La seule valeur qui fonctionne est 0, sinon aucune lightbox */
  background: rgba(0,0,0,0.8);  /* Arrière-plan derrière le lightbox, le dernier nombre détermine si c'est blanc (0) ou noir (1) */
  display: none;			/* Permet de ne pas prendre en compte le reste du site, donc d'afficher en plein milieu */
  z-index: 2000;
  
}

.lightbox.open {		/* Les éléments qui permettent de bien afficher la lightbox */
  display: flex;
  align-items: center;
  justify-content: center;
}




@media (min-width: 900px) {
.lightbox-content {
  background: white;
  max-width: 90%;
  max-height: 90%;
  display: grid;
  grid-template-columns: auto auto ; 
  gap: 3%;
  padding: 2%;
  position: relative;
} 


.lightbox-info #lightbox-title {
  padding-top : 20%;
  max-width: 20vw;
  margin: 0 auto;
  font-size: 1.5rem;
  padding-bottom : 10%;
  text-align : center
}
.lightbox-info {
  max-width: 20vw;
  margin: 0 auto;
  font-size: 1.15rem;
  text-align : left
}

  .lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 12px;
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}


.lightbox-arrow.prev { left: -6%; }
.lightbox-arrow.next { right: -6%; }

}



@media (max-width: 900px) {				
.lightbox-content {
  background: white;
  max-width: 90%;
  max-height: 90%;
  display: grid;
  grid-template-rows: auto auto ; 
  gap: 3%;
  padding: 3%;
  padding-top: 55px;
  position: relative;
} 

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-info {
  max-width: 98%;
  font-size: 0.95rem;
}

.lightbox-arrow {
  display: none; 
}

 .lightbox-info #lightbox-title{
  text-align: center;
}


}











.lightbox-close {						/* Affiche le X pour fermer l'onglet lightbox */
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}


.lightbox-fullscreen {
  position: absolute;
  top: 8px;
  right: 56px;            /* leave space for close button */
  width: 40px;
  height: 40px;

  background: rgba(0,0,0,0);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

  
  
  #fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#fullscreen-close:hover {
  background: rgba(0, 0, 0, 0.8);
}
  
  
body.lightbox-open {					/* Empêche de défiler la page derrière le lightbox */
  overflow: hidden;
}
  
  #contact  {
 text-align: center;
 font-size: 20px;
}

#contact h2  {
 margin-top:48px;
}