/* --------------------------------------------------------------

   layout.css
   Disposition des blocs principaux
   cf.: http://romy.tetue.net/structure-html-de-base

-------------------------------------------------------------- */

/* Elements principaux
------------------------------------------ */
/*@font-face {
    font-family: 'Swiss 721 Condensed BT';
    src: url('fonts/Swiss721CondensedBT.woff2') format('woff2'),
        url('fonts/Swiss721CondensedBT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

/*
*{
font-family: 'Swiss 721 Condensed BT'}
*/

@font-face {
    font-family: "Everett Regular";
    src: url("fonts/EverettRegular.eot");
    src: url("fonts/EverettRegular.eot?#iefix")format("embedded-opentype"),
    url("fonts/EverettRegular.woff2")format("woff2"),
    url("fonts/EverettRegular.woff")format("woff"),
    url("fonts/EverettRegular.ttf")format("truetype"),
    url("fonts/EverettRegular.svg#Everett Regular")format("svg");
}
*{
font-family: 'Everett Regular'}


body { text-align: center; background:#fff;font-family: 'Everett Regular';}
.page { position: relative; max-width: 100%; margin:0 auto; background: white; text-align: left;  }
.header {float: left;}
.main { 
/*padding: 1.5em 0;*/
margin-top:150px; 
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.footer { clear: both; padding: 1em 0 0; margin:1em 0 0 0; border-top:1px solid rgba(240,240,240,240); }

.menu_fixe {
position: fixed; 
width:100%;
display: block;
border-bottom-style: solid;
border-bottom-width: 1px;
border-color: rgba(240,240,240,240) ;
background-color: white;
height: 150px;
margin:0px;
top: 0;
left:0;
z-index:1000;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80%; /* ou largeur que tu utilises */
  margin: 0 auto;
  height: 150px;
  padding-bottom: 2.8em;
}

.nav-links {
  display: flex;
  gap: 2rem; /* espace entre les liens */
  padding-left: 20px
}

.nav-links a {
  text-decoration: none;
  color: #000; /* adapter à ta charte */
}

/* Hamburger caché par défaut */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: red;
  padding-left: 20px
}
.menu-toggle:hover, .menu-toggle:visited{
text-decoration: none
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 25px;
  background: red;
  border-radius: 2px;
  transition: all .3s;
  position: relative;
  margin-bottom: 0.12em;
}

.menu-toggle.active span:nth-child(1) {
  /*transform: rotate(45deg) translate(6px, 6px);*/
  transform: translateY(4.8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  /*transform: translateX(-20px);*/
}
.menu-toggle.active span:nth-child(3) {
  /*transform: rotate(-45deg) translate(7px, -7px);*/
  transform: translateY(-7px) rotate(-45deg);
}


/* descriptif homme*/

.descriptif_general{
	text-align: left;
	font-size: 1.2em;
	font-family: 'Everett Regular';
	padding-top: 1em;
	/*padding: 2em;*/

	
}

/* centrage des images*/

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  align-items: center; /* au lieu de start */
}

.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centrage vertical */
  align-items: center;     /* centrage horizontal */
}

/* Splash screen */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* ou noir selon ton design */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* au-dessus du reste */
  opacity: 1;
  pointer-events: none; /* empêche d’interagir */
  animation: splashFade 4s forwards;
}

#splash img {
  /*width: 100%;  /* ajuste à ton logo */
  /*height: auto;*/
}

@keyframes splashFade {
  0% { opacity: 1; }
  20% { opacity: 1; }   /* fade-in */
  80% { opacity: 1; }   /* reste visible */
  100% { opacity: 0; }  /* fade-out */
}
/*fin splash screen*/


/*menu deroulant sous projets*/

/* container du dropdown */
.nav-item.dropdown {
  position: relative;
}

/* sous-menu masqué */
.nav-item.dropdown {
  position: relative; /* référence pour le sous-menu */
}

.dropdown-menu {
  position: absolute;
  top: 1em;     /* directement sous le lien */
  left: 0;
  width: max-content; /* ou 100% si tu veux la largeur du parent */
  overflow: hidden;
  height: 0;     /* fermé par défaut */
  opacity: 0;
  background: none; /* ajoute si nécessaire */
  /*left: -5px;*/
}
.menu-opened{
height: 100px;
opacity: 1;
	
}

.dropdown-menu li a {
color: #999;
font-size: 1em;
	
}
.dropdown-menu li a:hover {
color: #000;
	
}
.dropdown-menu.open {
  opacity: 1;
}
/*.dropdown-menu li a::before{
content:"+";
color: red;

}*/

/* page accueil  orig*/

/* on supprime pour centrer les images */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  align-items: start;
}


@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes tablette */
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* 1 colonne smartphone */
  }
}

/* on supprime pour centrer les images */


.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery figure img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

.gallery figcaption {
  margin-top: 0.5em;
  text-align: right;
  color: #000;
  font-size: 0.7em;
  /*font-style: italic;*/
  font-family: 'Everett Regular';
  text-transform: lowercase;
  width: 100%;
  
}


/* apparition douce */

.gallery figure {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(.23,.6,.36,1), transform 0.8s cubic-bezier(.23,.6,.36,1);
}

/* Apparition lorsqu’une classe .visible est ajoutée */
.gallery figure.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Transition douce aussi pour la légende */
.gallery figcaption {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.23,.6,.36,1);
}
.gallery figure.visible figcaption {
  opacity: 1;
}

/* Exemple d’effet au survol (optionnel) */
.gallery figure:hover {
  /*box-shadow: 0 8px 32px rgba(0,0,0,0.12);*/
  /*transform: translateY(-5px) scale(1.02);*/
  /*transition: box-shadow 0.5s cubic-bezier(.23,.6,.36,1), transform 0.5s cubic-bezier(.23,.6,.36,1);*/
}


/* menu en haut*/

.menu {
  display: flex;
  flex-direction: row;
  justify-content: center; /* centré horizontalement */
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2em; /* espace entre chaque bouton */
}

.menu li {
  /* Optionnel : pour éviter le retour à la ligne */
  white-space: nowrap;
}

.menu a {
  display: block;
  color: #333; /* couleur du texte */
  text-decoration: none; /* enlève le soulignement */
  font-weight: 500;
  font-size: 1.1em;
  transition: background 0.3s;
  color: #000;
  font-family: 'Everett Regular';
}

.menu a:hover,
.menu a:focus {
  /*background: #e0e0e0; couleur au survol */
}
.menu a.on{
color: #000;	
}

  .menu li {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: menuFadeIn 0.6s cubic-bezier(.5,.7,.3,1) forwards;
}

/* Couleur par défaut des éléments de sous-menu */
.menu li a {
  color: #666; /* Couleur par défaut des éléments */
}

/* Couleur du texte pour l'élément sélectionné */
.menu li a.selected {
  color: black !important;
}

/* Couleur des autres éléments non sélectionnés */
.menu li a.deselected {
  color: #999 !important;
}

/* Si vous avez un sous-menu qui peut se fermer, garder l'état ouvert */
.menu li.open > .dropdown-menu {
  display: block;
  opacity: 1 !important;
  height: auto !important;
}

.menu li:nth-child(1) { animation-delay: 0.10s; }
.menu li:nth-child(2) { animation-delay: 0.22s; }
.menu li:nth-child(3) { animation-delay: 0.34s; }
.menu li:nth-child(4) { animation-delay: 0.46s; }

@keyframes menuFadeIn {
  from {
    opacity: 0;
    /*transform: translateY(18px) scale(0.96);*/
  }
  to {
    opacity: 1;
   /* transform: translateY(0) scale(1);*/
  }
}


/* Styles pour petit écran */
@media (max-width: 768px) {
	

  .nav-links {
    display: none;             /* cacher le menu */
    flex-direction: column;
    position: absolute;
    top: 100%;                  /* juste sous la navbar */
    left: 0;
    right: 0;
    background-color: #fff;     /* ou couleur de fond désirée */
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
    margin-left: 180px;
    margin-top: 6px;
  }
}


/*page detail projet*/

.gallery-container {
  display: flex;
  flex-direction: column; /* Une image par ligne */
  align-items: center;    /* Centrage horizontal */
  gap: 40px;              /* Marge verticale élégante entre les images */
  padding: 24px 0;
}

.gallery-container img {
  display: block;
  max-width: 90vw;
  /*box-shadow: 0 2px 16px rgba(0,0,0,0.10); Ombre subtile pour l'élégance */
}
.descriptif{
margin-bottom: 2.0em;
}
p{
text-justify: inter-word;
text-align: justify;
}
.descriptif strong{
display: block;
border-bottom-style: solid;
border-bottom-width: 1px;
border-color: rgba(240,240,240,240) ;
margin-top: 1em;
text-transform: uppercase;
}

.descriptif .autobr{
display: none;}


.verslehaut a, .retourprojets a {
color: rgba(100,100,100,100) ;
}

.verslehaut {
float: right;
position: relative; 
}
.retourprojets {
float: left;
position: relative; 
} 
/* largeur calculee du wrapper: 960*70%  = 672px */
.wrapper { clear: both; float: left; width: 80%; position: relative;}
.content { min-height: 350px; }
/* largeur calculee du aside: 672px / 3 = 224px = 23.333 %*/
.aside { float: right; width: 23.333%; overflow: hidden; }    
  
/* Entete et barre de navigation
------------------------------------------ */
.header { padding-bottom: 1.5em;  }
.header .spip_logo_site { display: block; margin: 0; line-height: 1; font-weight: bold;  }
.header .spip_logo_site,
.header .spip_logo_site a,
.header .spip_logo_site a:hover { background: transparent; text-decoration:none; color:#222; }
.header .spip_logo_site a:hover  {color:#db1762;}
.header .spip_logo_site a:hover img {opacity:0.7;}
.header .spip_logo {margin-bottom:0;}
.header #slogan { margin: 0; }

.formulaire_menu_lang { position: absolute; right: 0; top: .9em; display: block; width: 30%; }

.nav {float: right}
.nav li {display:inline;}
.nav li a { display: inline-block; padding: 0.25em 0.5em; margin: 0 0.25em 0.5em 0;border-radius: 0.25em;  text-decoration: none;  background: #f0f0f0; color: #db1762; }
.nav li.on a { background:#c41558; color:#fff; font-weight: normal; }
.nav li a:focus,
.nav li a:hover,
.nav li a:active { background: #c41558; color:#fff; }
 

.footer .colophon { float: left; height: 150px; width: 100%; margin: 0; padding: 20px ; font-size: .7em; font-style: italic;}
.footer .generator { float: right; }
.footer .generator a { padding: 0; background: none; }
.footer .generator a:hover  {color:#c41558;}

/* Gabarit d'impression
------------------------------------------ */
@media print {
    .page,
    .wrapper,
    .content { width: auto; }
    .nav,
    .arbo,
    .aside,
    .footer { display: none; }
}

/* Affichage sur petits ecrans  
Cf.: http://www.alsacreations.com/astuce/lire/1177
------------------------------------------ */

/* largeur maximum 767px */
@media (max-width: 767px) {
	body {   	width: 100%;		/*padding: 0 20px;*/	}
	.page .menu_fixe {  	width: 100%;  	max-width: none; 	}
	.menu a, .dropdown-menu li a{
	font-size: 2em;
		
	}
	.menu{
	display: block;
	height: 100vh;
	}
	
	.menu li.nav-item  {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-color: rgba(240,240,240,240);
	}
	.menu a{
	font-size: 2em;
	}
	.dropdown-menu li a{
	font-size: 1.5em;
	}
	.dropdown-menu {
  display: block;
  opacity: 1;
  height: 160px;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
  margin: 0;
  padding: 0;
  padding-left: 20px;
  list-style: none;

}

	.main { 
	margin-top:30px;
	}
	.menu_fixe {
	height: 50px;
	}
	.navbar-inner {
	height: 50px;
	padding-bottom: 0;
	}

}
 
/* largeur maximum 640px */
@media (max-width: 640px) {

.descriptif_general{
width: 80%;
margin: auto;
}
	.menu-toggle {
    display: block;
    margin-left: 10px;
    margin-top: 6px;
  }
		.gallery figcaption {
		padding-right: 5px;
	}
	.menu a{
	font-size: 2em;
	}
	.dropdown-menu li a{
	font-size: 1.5em;
	}
	.menu{
	display: block;
	height: 100vh;
	}
	
	.menu li.nav-item  {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-color: rgba(240,240,240,240);
	}

	.dropdown-menu {
  display: block;
  opacity: 1;
  height: 160px; 
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
  margin: 0;
  padding: 0;
  padding-left: 20px;
  list-style: none;

}

	.main { 
	margin-top:30px;
	}
	.menu_fixe {
	height: 50px;
	}
	.navbar-inner {
	height: 50px;
	padding-bottom: 0;
	}
     /* layout */
    .wrapper,
    .content,
    .aside { width: 100%;}
    .content,
    .aside { clear: both; float: none; width: 100%; }

    /* Passer a une seule colonne (a appliquer aux elements multi-colonnes) */
    .nav ul li a { float: none; border: 0; }
    .arbo { display: none; }
    .footer .colophon { width: auto; float: none; }
    .footer .generator { display: none; }

    /* header du calendrier full-calendar */
    table.fc-header td { display: block; text-align: left; }
.descriptif{
padding-left: 20px;
padding-right: 20px;
}
.verslehaut {
padding-right: 20px; 
}
.retourprojets {
padding-left: 20px; 
} 
}

/* fin */