/* LE CSS GLOBAL */

* {
  box-sizing: border-box;
}

:root {
  /* définir des variables globales */
  --background-color: #fff;
  --text: #005797;
  --blue: #005797;
  --secondary-color: #005797;
}

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,
.h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

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;
  align-items: center;
  padding: 3rem;
}

main {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 1fr;
}

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

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

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

a {
  text-decoration: none;
  color: var(--secondary-color);
}

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

.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;
  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 {
    display: block;
    /* grid-template-columns: 1fr; */
  }

  main > * {
    padding: 25px;
  }

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

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

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

  .header {
    flex-direction: column;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  main img {
    object-fit: cover;
  }
}
