
@font-face
{
	font-family: 'PoliceDeTitre';
	src : url('../fonts/AlexBrush-Regular.ttf') format('truetype');	/* ce format est "compatible" sur tous les navigateurs, inutile donc de charger d'autres formats */
}

body {
    background: url('../img/Paintings/village-sous-les-montagnes.jpg') no-repeat fixed center;
	background-size: cover;
	position: relative;
	margin-top: 4px;
}

h1, h2, h3, .sousTitre {font-family: PoliceDeTitre, verdana, times new roman, arial ;}

h2
{
    font-size: 1.7em;
    color: #963F09;
    text-align: center;		
    margin : 0px;
    padding : 0px;
}

#enTete {
    box-sizing: border-box;
    width: 100%;
    border: double medium #555;
    border-radius: 8px;
    background: linear-gradient(#eee, #f6f6f6, #eee);
}

#enTete h1 {
    font-size: 3.8em;
    text-shadow: 3px 7px 4px rgb(135, 135, 135);
    color: #963F09;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 14px;
}

nav
{
	box-sizing: border-box;
    
	margin-top : 4px;
	padding: 3px;
    border: double medium #555;
	border-radius: 10px;
	display: flex;
    
	justify-content: space-around;
	background-color: #eee;
}
nav a {
    box-sizing: border-box;
    text-decoration: none;
    color: unset;
    flex: 1;
}
nav a:hover
{
	background-color: #fafafa;
	border-radius: 10px;
	color: #C1241F;
	box-shadow: 0px 0px 2px #777;
}
nav a:active
{
	background-color: white;
	border-radius: 10px;
}

nav h2 {padding-top: 1px;}

#news {
    margin: auto;
    margin-top: 2px;
    width: 100%;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;

    overflow-y: auto;
}

.news {
    width: 100%;
    max-width: 440px;

    border-radius: 6px;
    margin: 6px;

    border: solid thin #ccc;
    background: white;

    position: relative;

    padding-bottom: 19px;
}

.news header, .news article, .news aside, .news footer {
    padding: 12px;
}

.news a {
    text-decoration: underline;
    color: blue;
}

.news header {
    background-color: #eee;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;

    padding: 6px;
    box-sizing: border-box;
    height: 66px;
}
.news article {
    margin: 4px;
    line-height: 20px;
    text-align: justify;
}

.newsTitle, .newsSubTitle {
    font-family: PoliceDeTitre;
    margin: 0px;
    text-align: center;
}

.newsTitle {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 0px;
    color: #222;
}
.newsSubTitle {
    font-weight: normal;
    font-style: italic;
    font-size: 1.15em;
    color: #444;
}

.news aside img {
    width: 100%;
}

.news footer {
    all: initial;
    width: 100%;
    color: #333;
    position: absolute;
    bottom: 0px;
    left: 0px;
}
.news .date {
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.targetNews {
    box-shadow: 0px 0px 14px #ffe46d;
}

@media all and (max-width: 1024px) {
    #enTete h1 {
        font-size: 3.5em;
    }
}

@media all and (max-width: 800px) {
    #enTete h1 {
        font-size: 3.2em;
    }
}

@media all and (max-width: 440px) {
    #enTete h1 {
        font-size: 2.7em;
        margin-top: 17px;
        margin-bottom: 12px;
    }
    h2 {
        font-size: 1.5em;
    }

    nav a {
        flex: unset;
    }
}

@media all and (max-width: 360px) {
    body {
        margin: 0px;
        padding: 2px;
    }

    #enTete h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.4em;
    }

    .date {
        font-size: 0.9em;
    }
}

