@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 450;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
}

html, body {
   margin: 0;
   padding: 0;
   font-family: "Montserrat", "Arial", sans-serif;
   background: url(fond4.jpg);
   background-size: cover;
   background-position: center center; /* Centre l'image */
   background-repeat: repeat;
   font-size: 100%;
}

* {
   box-sizing: border-box;
}

/* Cartes responsive */
.carte {
  width: 300px;
  height: 150px;
  
  border: 1px solid black;
  border-radius: 12px;
  display: block;

  overflow: auto;
  box-sizing: border-box;
}

a:hover {
   color: green;
}

a {
   color: black;
   text-decoration: none;
}

.retour {
  display: block;
  text-align: right;
  color: black;
  text-decoration: none;
}

.espacebas2 {
   margin-bottom: 4em;
}


.center {
   text-align: center;
}

#main {
  height: auto;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#main-fancy{
	height:100%;
	margin-left:60px;
	margin-right:60px;
	margin-top:30px;
	margin-bottom:30px
}

.expo-header {
  text-align: center;
  margin: 40px auto 20px;
}

.expo-header h2 {
  font-family: "Montserrat", "Arial", sans-serif;
  font-size: 1.5em;
  font-weight: normal;
  letter-spacing: 0.5px;
  color: #536B73;
} 

hr{
	/* The horizontal ruler */
	background-color:#696969;
	border:none;
	color:#696969;
	margin-top:10px;
	margin-bottom:0px;
	height:1px;
	width:100%;
}

#page {
	text-align:justify;
	margin-left: 5%; 
	margin-right: 5%; 
	padding-top: 30px; 
	font-size: 1.1em;
}

#page p {
        font-family: "Montserrat", "Arial", sans-serif;
}

.presentation {
  width: 900px;
  height: auto;
  word-break: break-word;
  margin: auto auto 15px auto;
}

/* Conteneur flexible */
#descro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-left: 5%;
  margin-right: 5%;
  padding: 0.5rem 0;

  /* Active les container queries */
  container-type: inline-size;
}

/* Texte responsive lié à la taille du conteneur */
.text {
  font-size: 0.9rem;
  color: black;
  line-height: 1.2;
  word-break: break-word;
}

/* Cartes responsive */
.carte {
  width: 300px;
  height: 150px;
  
  border: 1px solid black;
  border-radius: 12px;
  display: block;

  overflow: auto;
  box-sizing: border-box;
}

.carte p {
  margin: 10px;
}

/*
* 
*
*
*
*/
@media screen and (max-width: 980px) {
	
#page {
    padding-left: 10px; 
    padding-right: 10px; 
    padding-top: 5px; 
    text-align: justify;
    font-size: 0.8em;
    }

#page p {
    font-family: "Montserrat", "Arial", sans-serif;
    }

h2 {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 1.3em;
    font-weight: normal;
    margin: 0;
    }

#main {
    height: auto;
    top: 0;
    left: 0;
    max-width: 100%;
    text-align: center;
    z-index: 10;
    }

#main img {
   width: 300px;
   height: auto;
   }

#titre {
    margin-left: 10%;
    margin-right: 10%;
    padding-top: 10px;
    }

.presentation {
   width: 90%;
   max-width: 100%;
   height: auto;
   }

}

/*
* 
*
*
*
POUR FANCYBOX */


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 20px);
}

.pic {
    text-align: center;
    margin-bottom: 20px;
}

.pic a {
    display: block;
}

.pic img {
    height: 200px;
    width: auto;
    display: block;
    box-shadow: 4px 4px 6px #807a7a;
}

.fancybox-title {
    visibility: hidden;
    color: #000;
    font: normal 1.1em "Montserrat", "Arial", sans-serif; 
    position: relative;
    text-shadow: none;
    z-index: 8050;
}

.nom {
  text-align: left;
  margin-top: 5px;
  font-size: 0.8em;
}

/* Flèches discrètes */

.fancybox-nav span {
    opacity: 0;
    transition: opacity 0.2s;
}

/* apparition au survol */

.fancybox-wrap:hover .fancybox-nav span {
    opacity: 0.5;
}

/* plus visible si on vise la flèche */

.fancybox-nav span:hover {
    opacity: 1;
}

/* supprimer l'image sprite utilisée par fancybox */

.fancybox-prev span,
.fancybox-next span {
    background: none !important;
}

/* style commun aux flèches */

.fancybox-nav span::before {
    font-size: 56px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

/* flèche gauche */

.fancybox-prev span::before {
    content: "❮";
}

/* flèche droite */

.fancybox-next span::before {
    content: "❯";
}

/* position */

.fancybox-prev span {
    left: 15px;
}

.fancybox-next span {
    right: 15px;
}

/* curseur normal sur les zones de navigation */

.fancybox-prev,
.fancybox-next {
    cursor: default;
}

/* curseur pointeur uniquement au centre */

.fancybox-inner {
    cursor: pointer;
}

/* ===== TABLETTE et MOBILE (moins de 800px) ===== */
@media (max-width: 800px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(120px, 1fr)); /* 3 images par ligne sur tablette et mobile */
        gap: clamp(10px, 2vw, 20px);
    }
/*div.index figcaption {
    transform: translateY(150px);
    }*/

#main-fancy{
	height:100%;
	margin-left:20px;
	margin-right:20px;
	margin-top:20px;
	margin-bottom:20px
}

}


/* ===== MENU HAMBURGER ===== */

/* Le bouton n'est visible que sur téléphone */
.menu-toggle {
    display: none;
}

/* ===== MENU MOBILE ===== */

/* ===== MENU HAMBURGER ===== */

@media screen and (max-width:600px) {

    /* En-tête normal : logo + bouton hamburger */
    #titre {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-left: 5%;
        margin-right: 5%;
        padding-top: 5px;
        gap: 0;
        width: 90%;
    }

    /* Logo */
    #titre img {
        width: 110px;
        height: 110px;
        position: relative;
        z-index: 102;
    }

    /* Bouton hamburger / croix */
    .menu-toggle {
        display: block;
        margin-left: auto;
        padding: 5px 10px;
        border: none;
        background: transparent;
        font-family: Arial, sans-serif;
        font-size: 32px;
        line-height: 1;
        color: #5f5f5f;
        cursor: pointer;
        position: relative;
        z-index: 102;
    }

    /* Menu fermé */
    .menu {
        display: none;
    }

    /*
     * Menu ouvert :
     * il recouvre toute la fenêtre.
     */
    .menu.menu-ouvert {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 220px 5% 40px 5%;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        background: white;
        z-index: 100;
    }

    /* Chaque rubrique */
    .menu.menu-ouvert span {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Liens du menu */
    .menu.menu-ouvert a {
        display: block;
        width: 100%;
        padding: 15px 10px;
        font-size: 1.25em;
        color: #5f5f5f;
        text-decoration: none;
    }

    #titre #en-cours a {
        font-size: 1.35em;
    }

    .menu.menu-ouvert a:hover {
        color: #343434;
    }

    /* Rubrique de la page courante */
    #titre .menu.menu-ouvert #en-cours a {
        color: black;
        border-bottom: 2px solid black;
    }
}


