/* Habillage du site, partie 6/6 : affichage sur petits écrans (ancien responsive.css).
   Les 6 fichiers strasbourg-*.css se chargent dans l'ordre de leur numéro (voir inclure/head.html) ;
   ils reprennent, dans le même ordre, les anciens style.css, form.css, strasbourg.css et responsive.css. */
/* Affichage sur petits ecrans
Cf.: http://www.alsacreations.com/astuce/lire/1177
------------------------------------------ */
@media (max-width: 1480px) {
	.page_sommaire .content {
		grid-template-columns: 70% 30%;
	}
	.page_sommaire .tuile-rubrique {
		width: 12rem;
		height: 12rem;
	}
	.tuile-rubrique p {
		font-size: 0.85rem;
	}
	.page_sommaire .home-rubriques,
	.page_sommaire .texte-accueil {
		width: 54rem;
		margin-left: calc(100% - 54rem);
	}
}
@media (max-width: 1300px) {
	.page_sommaire .content {
		grid-template-columns: 60% 38%;
	}
	.page_sommaire .tuile-rubrique {
		width: 12rem;
		height: 12rem;
	}
	.page_sommaire .home-rubriques {
		max-width: 41rem;
		margin-left: calc(100% - 41rem);
	}
	.page_sommaire .texte-accueil {
		max-width: 38rem;
		margin-left: calc(100% - 40rem);
	}
}
@media (max-width: 1200px) {
	.page_sommaire .content {
		grid-template-columns: 65% 35%;
	}
	.page_sommaire .tuile-rubrique {
		width: 12rem;
		height: 12rem;
	}
	.page_sommaire .home-rubriques {
		max-width: 50rem;
		margin-left: calc(100% - 50rem);
	}
	.header .spip_logo, .header .spip_logos {height: 120px; width: 120px; border-radius: 60px;}
	.tuile-contenu {padding: 0.5rem 0.75rem 0.5rem 0.75rem;}
	.tuile-contenu h2 {margin-bottom: 0.5rem;}
}
@media (max-width: 1080px) {
}
@media screen and (max-width: 1080px) {
	.page_sommaire .content {
		grid-template-columns: 100%;
		grid-template-rows: auto auto auto 1fr;
		grid-template-areas:
			"barrelang"
			"accueil"
			"rubriques"
			"actus";
	}
	.page_sommaire .home-rubriques {width: 54rem;}
	.page_sommaire .selection-une {
		/* width: 56rem; */
		margin: 0 4rem;
	}	
	.page_sommaire .tuile-rubrique {
		width: 12rem;
		height: 12rem;
	}
	.page_sommaire .home-rubriques, .page_sommaire .texte-accueil  {
		width: 100%;
		margin:0;
		padding: 0 4rem;
		max-width: 100%;
		justify-content: flex-start;
	}
	.tuile-contenu {padding: 0.5rem 0.75rem 0.5rem 0.75rem;}
	.tuile-contenu h2 {margin: 0 0 0.5rem 0;}

	h1.logo {font-size:7vw;}
	.footer {height: 60px;}
	.footer ul li a img {height: 60px;}

}
@media only screen and (min-width: 961px) {
  nav a.button-collapse {
    display: none;
  }
}
@media screen and (max-width: 960px) {
	
	#entete {height:270px;}
	#nom-site {top: calc(270px - 5vw);height: 5vw;}
	.page {
		margin: 270px auto 80px auto;
	}
	.page_sommaire .content {
		grid-template-columns: 100%;
		grid-template-rows: 2rem auto auto 1fr;
		grid-template-areas:
			"barrelang"
			"accueil"
			"rubriques"
			"actus";
	}
	.page_sommaire .content {
		/* display:unset; */
		width: 100%;
		/* padding-left: 3rem; */
		/* padding-right: 3rem; */
	}
	.page_sommaire .home-rubriques {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		margin: 0;
		padding: 0;
		/* display: flow; */
		column-gap: 0.5rem;
	}
	.page_sommaire .texte-accueil {width:unset;max-width: 100%;margin: 0;}
	.page_sommaire .selection-une {
		width: 100%;
		margin: 0;
		padding: 0 4rem;
	}	
	.page_sommaire .home-rubriques {
		margin: 0;
		padding: 0 4rem;
		border: none;
	}
	.page_sommaire .home-rubriques .tuile-rubrique {
		width: 100%;
		border-radius: 1px;
		height: 3rem;
		margin: 0 0 0.5rem 0;
		border: none;
	}
	.tuile-rubrique a {
		display: block;
		width: 100%;
		height: 100%;
	}
	.page_sommaire .home-rubriques .tuile-rubrique .spip_logo,
	.page_sommaire .home-rubriques .tuile-rubrique .spip_logos {
		float: none;
		margin: 0;
		width: 3rem;
		height: 3rem;
		background-size: cover;
	}
	.page_sommaire .home-rubriques .tuile-rubrique p {
		text-align: left;
		position: relative;
		top: -2rem;
		left:4rem;
		margin: 0 0 0 0;
		color: var(--texte);
	}
	.page_sommaire .selection-une h2 {
		font-weight:500;
		font-size: 1.5rem;
	}
	.header #logo {margin-top:160px;}
	.header .spip_logo, .header .spip_logos {height: 100px; width: 100px; border-radius: 50px;}
	#nav-mobile {display:inline-block;}

	/* Passer a une seule colonne (a appliquer aux elements multi-colonnes) */
	.content,
	.aside { clear: both; float: none !important;background:none;}
	.content {width:100%;}
	.nav ul li a { float: none; border: 0;}
	#formulaire_recherche { display: none; position: static; text-align: center; }
	.liste-articles {width:98%;margin:0 auto;float:none;}
	.liste-articles h1,
	.liste-articles .intro-rubrique {width:100%;margin:0 auto;float:none;padding-left:4%;}
	.liste-articles h1 {margin-top:1em;}
	.conteneur-article {width:98%;margin:0 auto;float:none;}
	.contenu-rubrique {width:100%;margin:0 auto;float:none;}
	.liste-articles-plan {width:100%;margin:0 auto;float:none;}
	.marge {display:none;}
	.menu {display:none;}
	#barrenav {width:105%;padding: 0.5em 0.5em 1em 0.5em;text-align: left;}
	.tuile-article {width:100%;overflow:hidden;}
	.contenu-rubrique {width:85%;}
	.tuile-contenu .snippet {overflow:hidden;}
	.menu {margin-bottom:50px;}
	.copyright {display:none;}
	ul.nav-site li {margin-right:1vw;}
	a.ghostbutton {/* font-size:95%; *//* padding: 0.4em 0.5em; *//* background-color:rgba(128, 129, 193, 0.8); *//* border:none; */}
	a.ghostbutton:hover, 
	a.ghostbutton:active {background-color: rgba(255, 255, 255, 0.3);}
	.btn, .btn-large, .btn-flat {height:auto;}
	.footer {height: 80px;}
	.footer ul li a img {height: 50px;}
	.footer ul li#nomsite-2 {clear: both;padding: 0;}
	.footer ul li#nomsite {display: none;}
}
@media screen and (max-width: 680px) {
    #entete {height:250px;background-position-x:0;}
	.header .spip_logo, .header .spip_logos {height: 80px; width: 80px; border-radius: 40px;}
    .page {
        /* width: auto !important; */
        margin-top:250px;
        padding: 0;
        /* margin-right: 16px; */
    }
	.page_sommaire .home-rubriques {
		grid-template-columns: 1fr;
	}
	.page_sommaire .content {
		grid-template-rows: auto auto auto 1fr;
		grid-template-columns: 100%;
	}
	.page_sommaire .selection-une {
		padding: 0 1rem;
	}	
	.page_sommaire .home-rubriques {
		padding: 0 1rem;
	}
    #nom-site {top: calc(250px - 5vw);height: 5vw;
	}
    #barrenav {width:100%;padding:1%;text-align: left;}
    h1.logo {padding-left:0;}
    .breves {border:none;background-color:transparent;box-shadow:none;}
    .liste-articles {width: 100%;margin:0 auto;float:none;}
    .liste-articles h1 {padding-left:3%;}
    .conteneur-article {width:98%;margin:0 auto;float:none;}
    .contenu-rubrique {width: 100%;margin:0 auto;float:none;}
    .liste-articles-plan {width:98%;margin:0 auto;float:none;}
    .liste-articles h1 {margin-left:1%;margin-top: 0.5rem;font-size: 1.2rem;}
    .tuile-article {width: calc(100% - 1rem);clear:both;position:relative;padding: 0;height: min-content;}
    .complements {-webkit-columns:1;-moz-columns:1;columns:1;}
    .tuile-logo {display:none;}
    .tuile-logomin {display:block;}
	.tuile-contenu {padding: 0 0.5rem 0.5rem 0.5rem;}
	.tuile-contenu h2 {margin: 0.25rem 0 0.25rem 0;font-size: 1.1rem;}
	.tuile-contenu .snippet {overflow:hidden;font-size: 0.9rem;/* padding: 0; */}
	.tuile-contenu .legupli {display: none;}
    .menu {display:none;}
    [class^="mdi-"], [class*=" mdi-"] {padding:0.2em 0.1em;}
    a.button-collapse {margin-right:0;}
    .footer {padding: 0.5em 0 0; border-top: 1px solid;}
    a.ghostbutton {/* font-size:85%; *//* padding-top: 0.5em; *//* background-color:rgba(128, 129, 193, 0.9); *//* border:none; */}
    a.ghostbutton:hover, 
    a.ghostbutton:active {background-color: rgba(255, 255, 255, 0.3);}
    .contenu-article h1 {font-size: 1.1rem;padding:1em 0 0 10px;}
    .texte, .chapo {padding-left:10px;  font-size: 90%;}
    .btn, .btn-large, .btn-flat {height:auto;}
	.footer {height: 80px;}
	.footer ul li {height: 45px;margin:0;}
	.footer ul li a img {height: 45px;}
	.footer ul li#nomsite {clear: both;padding: 0;}
	.page_sommaire .texte-accueil {padding: 0 1rem 1rem 1rem;} 
	.page_sommaire .texte-accueil .chapo {margin: 0;padding: 0;line-height: 120%;}
	.spip_documents_right, .spip_documents_left {max-width: 100%!important;float: none!important;margin-left:0;margin-right:0;}
}
/* end */
