/* LE CSS GLOBAL */

* {
    box-sizing:border-box;
}


:root {
    /* définir des variables globales */
    --background-color:#f5f5f5;
    --first-color: #ebebeb;
    --link-color: #0095f2;
}


div {
    box-sizing:border-box;
}


body {
    margin: 0;
    background: var(--background-color);
}

img {
    max-width: 100%;
    object-fit: scale-down;
}

img.logo {
    width: 300px;
    height: 150px;
}

img.icon {
    width : 50px;
    height : 50px;
}

img.small {
    width: 150px;
    height: 150px;
}

img.medium {
    width: 350px;
    height: 350px;
}


img.cover {
    object-fit: cover;
    width: 100%;
    max-height:500px;
}

strong {
    font-weight: normal; 
}

mark {
    background: #ffe98a
}

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

blockquote {
    margin: 0; 
}


p{
    margin:0; 
}

p.centre{
    text-align:center; 
}

.centre{
    justify-self:center;
}

h1 {
    font-size:3rem;
    font-weight:bold;
}

h2, .heading {
    font-size: 2rem;
    font-weight:bold;
}

h3 {
    font-size: 1.5rem;
    font-weight:bold;
}


/*------- GRILLE ET FLEX ------*/

.grille-2, .grille-3, .grille-4 {
    display: grid;
    gap: 2rem;

}

.grille-2 {
    grid-template-columns:repeat(2, 1fr);
}

.grille-3 {
    grid-template-columns:repeat(3, 1fr);
}

.grille-4 {
    grid-template-columns:repeat(4, 1fr);
}

.flex {
    display:flex;
    flex-wrap:wrap;
}

.flex.line {
    flex-wrap: nowrap;
}

.col {
    display: flex;
    flex-direction: column;
}


/*----GRILLE GENERALE------*/

body {
    display: grid;
}


header {
    display:flex;
    justify-content: space-between;
    position:fixed;
    width:100%;
    max-width:100%;
    top:0;
    z-index:50;
    align-items: center;
}

main {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    margin-top:200px;
}

main > *{
    grid-column: 2/4;
}

.full {
    grid-column: 1/5;
    place-self: stretch;
}

/*--- LIENS ----------*/

a {
    text-decoration:none;
    color: var(--link-color);
    display:inline-block;
}

a.circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    padding: 5px;
    border: 1px solid black;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

a:hover{
    opacity:0.8;
}

.card {
    display:grid;
    margin:10px;
}

.bouton, button {
    display: inline-block;
    background-color: var(--first-color); 
    text-decoration: none;
    border: 0;
    padding: 10px;
    margin: 1rem 5px;
    color:unset;
    opacity: 0.9;
    transition: ease-in-out 1s; 

}

.bouton:hover{
    cursor:pointer;
    opacity: 1;
    transform:scale(1.1);
    transition: ease-in-out 1s; 
}

.none {
    display: none;
}

.mobile {
    display:none; 
}



/*-----FORMULAIRES----*/

input, textarea{
    background:transparent;
    border:none;
    font-family:inherit;
    padding:10px;
    margin:10px;
}



/*------ patch 10/12--------*/

address{
    font-style:normal;
}

nav ul {
    list-style-type: none;
}



/*---------RESPONSIVE ---- */
@media screen and (max-width: 980px) {

main{
    grid-template-columns: 1fr;
    padding:25px;
}

.grille-2, .grille-3, .grille-4 {
    grid-template-columns: 1fr;
}

.flex, .flex.line {
    flex-wrap:wrap;
}

.desktop, .desktop.tryptique {
    display: none;
}



}


