@font-face {
    font-family: "Bebas Neue";
    src: url("../styles/polices/BebasNeue-Regular.ttf");
    font-weight: normal;
    font-style: normal;
}

*, *::before, *::after {	/* padding et bordures inclus dans les dimensions */
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%; /* occupe toute la largeur */
	/* overflow-x: hidden; */
	background-color: white;
	color: #222;
}

header {
	font-family: "Bebas Neue", sans-serif;
	display: grid; /* le contenu sera composé d'éléments de cette grille */
	padding: 25px 30px; /* espace intérieur : vertical, horizontal */
	border-bottom: 4px solid #222;
	text-align: right; /* aligne le texte à droite */
	width: 100%;
	height: 240px;
	position: fixed;
	top: 0;
	background-color: white;
	z-index: 999;
}

#logo_fixe { position : absolute; left : 10px; top : 0px; }

header h1 {
	font-weight: 400;
	font-size: 50px;
	line-height: 1;
	letter-spacing: 1px;
}

header ul {
	display: grid; /* le <li> deviennent des éléments de la grille <ul> */
	grid-template-columns: repeat(4, 1fr); /* cette grille est organisée en 4 colonnes */
	list-style: none; /* supprime les puces */
	justify-self: center; /* les <ul> sont centrés horizontalement dans la grille du header */
}

.tagline {
	font-size: 22px;
	color: #b83227;
}

header p {
	font-size: 20px;
	letter-spacing: 1px;
}

main {
	display: grid;
	justify-items: center;  /* centrage horizontal du bloc "section" (align-items : vertical, place-items : h & v) */
	margin-top: 240px; /* calibré sur la hauteur du header */
}

section {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding: 30px 40px;
	width: 80vw;
}

section h2 {
	grid-column: 1 / -1;
	font-family: "Bebas Neue", sans-serif; /* titre "les sites" et "les téléchargeables" */
	font-weight: 400;
	font-size: 32px;
	letter-spacing: 1px;
	border-bottom: 3px solid #222;
}

section > a:link, section > a:visited {
	text-decoration: none;
    color: black;
}

/* sites cards */

.menu-item {
	text-decoration: none;
    color: inherit;
	width: 100%;
	padding: 15px;
	background-color: white;
	border: 2px solid #222;
	box-shadow: 5px 5px 0 #222;
	transition: transform 0.5s ease; /* sites */
}

.menu-item h3 {
	font-family: "Bebas Neue", sans-serif; /* nom de chaque site */
	font-size: 25px;
	letter-spacing: 1px;
}

.menu-item:hover { /* comportement au passage de la souris */
	transform: scale(1.1);
	position: relative;
	z-index: 1;
}

.menu-item p:first-of-type { /* état du site */
	margin: 5px;
	font-family: "Bebas Neue", sans-serif;
	font-size: 22px;
	color: #b83227;
}

.menu-item p { /* description du site */
	text-decoration: none;
    color: inherit;
	font-size: 15px;
	line-height: 1.2;
}

section > p { /* > limite la selection aux enfants directs de "section" */
	grid-column: 1 / -1;
	font-family: "Bebas Neue", sans-serif;
	font-size: 22px;
	letter-spacing: 1px;
}

section > ul {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	font-family: "Bebas Neue", sans-serif;
	font-size: 22px;
	letter-spacing: 1px;
	list-style: none;
}

section > ul li {
	background-color: white;
	border: 2px solid #222;
	padding: 8px 12px;
	transition: transform 0.5s ease; /* fichiers téléchargeables */
}

section > ul li:hover {
	transform: scale(1.05);
	position: relative;
	z-index: 1;
}

.colonne-footer h4 {
    margin-bottom: 0.5em;
}

footer {
	display: grid;
	text-align: left;
	width: 100%;
	background-color: gray;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding: 30px 40px 10px;
}

footer h4 {
	font-size: 20px;	
}

.colonne-footer {
	width: 100%;
	padding: 15px;
	background-color: lightgray;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 0 0;
}


/* Basic mobile */

@media (max-width: 700px) {

    header {
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;

        display: grid;
        justify-items: center;
        text-align: center;

        padding: 25px 20px;
    }

    #logo_fixe {
        position: static;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
        height: auto;
    }

    header h1 {
        font-size: 48px;
        line-height: 1;
        margin-bottom: 20px;
    }

    header ul {
        grid-template-columns: 1fr;
        width: 100%;
        text-align: center;
        justify-items: center;
    }

    main {
        margin-top: 0;
        width: 100%;
    }

    section {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 25px 20px;
    }

    .menu-item {
        width: 100%;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
}
