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

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

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

/* Elements principaux
------------------------------------------ */
body { text-align: center;}
.page { position: relative; width: 960px; max-width:95%; margin: 0 auto 1em auto; text-align: left;  }
.header { background: #fff; padding: 1em;
}
.main { }
.footer { clear: both; padding: 1em 0 0; margin:2em 0 0 0; border-top:1px solid #999; }

/* largeur calculee du wrapper: 960*70%  = 672px */
.wrapper { clear: both; float: left; width: 70%; overflow: hidden; }
.content { min-height: 350px; padding-bottom: 2em; }
/* largeur calculee du aside: 672px / 3 = 224px = 23.333 %*/
.aside { float: right; width: 23.333%; overflow: hidden; }    
#nav { background: #ccc; margin: 0 0 1em 0; padding: 0; 
	/*
	border-bottom: 1px solid #bbb; border: 1px solid #bbb;
	border-bottom-right-radius: 7px; border-bottom-left-radius: 7px;
	box-shadow: 5px 5px 5px #777;
	box-shadow: 5px 5px 5px #777; 
	*/
}
#bloc-contact { border-radius: 7px; border: 1px solid #bbb; background: #ccc; padding: 0 1em; margin-right: 10px; margin-bottom: 12px;
	box-shadow: 5px 7px 5px #aaa;
}
  
/* Entete et barre de navigation
------------------------------------------ */
.header { }
.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; font-weight: bold;}

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

.nav { margin 1em 0; padding: 0; }
.nav ul { display: flex; justify-content: flex-start; flex-wrap: wrap; box-sizing: border-box; padding: 0.25em; margin: 0;}
.nav ul li { flex: auto; margin: 0.5em;}
.nav li a { display: block; padding: 0.25em 0.5em; margin: 0; border-radius: 0.25em;  text-decoration: none; font-weight: bold; }
/*
.nav li.first a { margin-left: 0.5em; }
.nav li.last a { margin-right: 0.5em; }
*/

.footer .colophon { float: left; height: 40px; width: 70%; margin: 0; }
.footer .generator { float: right; }
.footer .generator a { padding: 0; background: none; }
.footer .generator a:hover  {color:#000;}

/* 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 {  	width: 100%;  	max-width: none; 	}
}
 
/* largeur maximum 640px */
@media (max-width: 640px) {
     /* 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; }

}

/* fin */
