html {
  font-size: 100%;
  font-weight: 400;
  font-family: "Open Sans", "Helvetica", "Arial", serif;
  color: black;
  line-height: 25px;
}

body {
  margin: 0;
  padding: 0;
}

/* -------------------------------------
NORMALISATION DES MARGES
------------------------------------- */

/*
supprimer tt les marges top
juste se concentrer sur les marges bottom
*/

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
dl,
form,
blockquote,
figure,
figcaption {
  margin-top: 0;
  margin-bottom: calc(25 / 16 * 1rem);
}

/* -------------------------------------
FONTS FACE
------------------------------------- */

@font-face {
  font-family: "Germania One";
  src: url(../fonts/GermaniaOne-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Satisfy";
  src: url(../fonts/Satisfy-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Open Sans";
  src: url(../fonts/OpenSans-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

/* -------------------------------------
HEADER
------------------------------------- */

.siteheader {
  padding-top: 50px;
}

.siteheader__logo {
  margin: 0;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.logo {
  vertical-align: middle;
}

.mainlink {
  text-decoration: none;
}

.siteheader__name {
  text-align: center;
  font-size: 33px;
  font-family: "Satisfy", "Georgia", "Time News Roman", serif;
  color: #5c5a5b;
  margin-top: 15px;
  margin-bottom: 70px;
}

.siteheader__nav {
  border-top: 1px solid #c4c4c4;
  border-bottom: 1px solid #c4c4c4;
}

.mainnav {
  list-style: none;
  margin: 0;
  padding: 15px 0;
  font-size: (19 / 16 * 1rem);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* medium screens */
@media all and (min-width: 600px) {
  .mainnav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-right: 15%;
    padding-left: 15%;
  }
}

.mainnav__link {
  text-align: center;
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #646464;
}

.mainnav__link:active {
  font-weight: bold;
}

.centered {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0px;
}

/* -------------------------------------
SECTIONS
------------------------------------- */

/*
-Gère padding top et bottom (ajouter media queries en mobile first)
-Gère les images de background avec des variantes (BEM)
  pagesection pagesection--lightgray pagesection--horseshoe
*/

.pagesection {
  padding-top: 15px;
  padding-bottom: 15px;
  background-repeat: no-repeat;
}

@media all and (min-width: 600px) {
  .pagesection {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media all and (min-width: 1024px) {
  .pagesection {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.pagesection--lightgray {
  background-color: #faf9f9;
}

.pagesection--stirrup {
  background-image: url(../img/SVGStirrup.svg);
  background-position: 40% 60%;
  background-size: 100%;
}

.pagesection--logo {
  background-image: url(../img/SVGLogo.svg);
  background-position: 50% 55%;
  background-size: 100%;
}

.pagesection--horseshoe {
  background-image: url(../img/SVGHorseshoe.svg);
  background-position: 50% 12%;
  background-size: 100%;
}

.pagesection--wheelbarrow {
  background-image: url(../img/SVGWheelBarrow.svg);
  background-position: 50% 2%;
  background-color: #f9f9f9;
  padding-bottom: 0px;
  background-size: 100%;
}

.pagesection--fence {
  background-image: url(../img/SVGFence.svg);
  background-position: 0% 0%;
  background-color: white;
  padding-bottom: 0px;
  background-size: 100%;
}

.pagesection--horsehead {
  background-image: url(../img/SVGHorsehead.svg);
  background-position: 50% 3%;
  background-size: 70%;
  background-color: #f9f9f9;
  margin-bottom: 120px;
}

.pagesection--horsefoot {
  background-image: url(../img/SVGHorsefoot.svg);
  background-position: 0 50%;
  background-size: 95%;
  background-repeat: no-repeat;
}

@media all and (min-width: 600px) {
  .pagesection--logo {
    background-position: 50% 7%;
    background-size: 85%;
  }
  .pagesection--stirrup {
    background-position: 50% 100%;
    background-size: 65%;
  }
  .pagesection--wheelbarrow {
    background-position: 0% 20%;
    background-size: 100%;
  }
  .pagesection--fence {
    background-position: 0% 20%;
    background-size: 100%;
  }
  .pagesection--horsehead {
    background-position: 50% 3%;
    background-size: 90%;
  }
  .pagesection--horseshoe {
    background-position: 50% 20%;
    background-size: 100%;
  }
  .pagesection--horsefoot {
    background-position: 50% 120%;
    background-size: 80%;
    background-repeat: no-repeat;
  }
}

@media all and (min-width: 1024px) {
  .pagesection--logo {
    background-position: 50% 50%;
    background-size: 55%;
  }
  .pagesection--stirrup {
    background-position: 10% 50%;
    background-size: 30%;
  }
  .pagesection--wheelbarrow {
    background-position: 50% 100%;
    background-size: 75%;
  }
  .pagesection--fence {
    background-position: 20% 5%;
    background-size: 90%;
  }
  .pagesection--horsehead {
    background-position: 90% 50%;
    background-size: 50%
  }
  .pagesection--horseshoe {
    background-position: 50% 60%;
    background-size: 100%;
  }
  .pagesection--horsefoot {
    background-position: 5% 60%;
    background-size: 45%;
    background-repeat: no-repeat;
  }
}

/* -------------------------------------
MAIN
------------------------------------- */

main {
  margin: 0 auto;
}

/* -------------------------------------
CONTAINER
------------------------------------- */

/*
-Max-width de la taille de la grille dans figma
-Centrer les contenus dans la page
-Petits padding sur les côtés (éviter que cela ne -tape contre les bords en mobile et tablette)
*/

.container {
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
  max-width: 1200px;
}

/* medium screens */
@media all and (min-width: 600px) {
  .container {
    padding-right: 30px;
    padding-left: 30px;
  }
}

/* -------------------------------------
INTROGRID (image avec du texte à côté)
Page d'accueil, à propos
Doit être réversible horizontalement
------------------------------------- */

.introgrid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "img"
    "txt";
  gap: 50px;
}

/* medium screens */
@media all and (min-width: 600px) {
  .introgrid {
    grid-template-areas: "txt" "img";
  }
}

@media all and (min-width: 600px) {
  .introgrid--reverse {
    grid-template-areas: "img" "txt";
  }
}

/* large screens */
@media all and (min-width: 1024px) {
  .introgrid {
    grid-template-columns: 6fr 1fr 5fr;
    grid-template-areas: "img txt txt";
  }
}

@media all and (min-width: 1024px) {
  .introgrid--reverse {
    grid-template-columns: 7fr 6fr;
    grid-template-areas: "txt img";
  }
}

.introgrid__img {
  grid-area: img;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.introgrid__content {
  grid-area: txt;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

/* -------------------------------------
CARDS
------------------------------------- */

/* Tracteur */
.introimg {
  display: grid;
  grid-template-columns: 1fr;
}

.introfluidimg {
  max-width: 100%;
  margin: 0 auto;
}

/* Roger */
.cardintro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;

  margin-left: 25px;
  margin-right: 25px;

  margin-top: 50px;
  margin-bottom: 75px;
}

/* large screens */
@media all and (min-width: 1024px) {
  .cardintro {
    margin-top: 100px;
    margin-bottom: 175px;
  }
}

.cardintro__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;

  padding: 30px 25px 25px 25px;
}

.cardintro__img {
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

/* medium screens */
@media all and (min-width: 600px) {
  .cardintro {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "img txt";
  }
}

/* large screens */
@media all and (min-width: 1024px) {
  .cardintro {
    grid-template-columns: 5fr 6fr 1fr;
    grid-template-areas: "img txt .";
  }
  .cardintro__img {
    grid-area: img;
  }
  .cardintro__content {
    grid-area: txt;
  }
}

/* L'équipe */
.fluidimage--grow {
  width: 100%;
}

.card {
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}

.card__img {
  margin: 0;
  padding: 0;
}

.card__content {
  padding: 30px 25px 25px 25px;
}

.cardslist {
  list-style: none;

  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 100px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;

  max-width: 100%;
}

/* medium screens */
@media all and (min-width: 600px) {
  .cardslist {
    grid-template-columns: repeat(2, 1fr);
  }

  .cardslist > li:nth-child(2n - 1) {
    transform: translateY(60px);
  }
}
/* large screens */
@media all and (min-width: 1024px) {
  .cardslist {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 300px;
  }

  .cardslist > li:nth-child(2n - 1) {
    transform: translateY(0);
  }

  .cardslist > li:nth-child(3n + 1) {
    transform: translateY(120px);
  }

  .cardslist > li:nth-child(3n + 2) {
    transform: translateY(60px);
  }
}

/* -------------------------------------
PICCARDS
Image avec du texte à côté, réversibles
Installations
------------------------------------- */

.piccardslist {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-bottom: 50px;
}

.piccardslist > li:not(:last-child) {
  margin-bottom: 80px;
}

.pageintro {
  text-align: center;
}

.piccard {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "img"
    "txt";
  gap: 10px;
}

.piccard__img {
  grid-area: img;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.piccard__content {
  grid-area: txt;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

/* medium screens */
@media all and (min-width: 600px) {
  .piccard {
    grid-template-columns: 8fr 4fr;
    grid-template-areas: "img txt";
    gap: 50px;
  }
}

@media all and (min-width: 600px) {
  .piccard--reverse {
    grid-template-columns: 4fr 8fr;
    grid-template-areas: "txt img";
  }
}

/* large screens*/
@media all and (min-width: 1024px) {
  .piccard {
    grid-template-columns: 2fr 6fr 3fr 1fr;
    grid-template-areas: ". img txt .";
  }
}

@media all and (min-width: 1024px) {
  .piccard--reverse {
    grid-template-columns: 1fr 3fr 6fr 2fr;
    grid-template-areas: ". txt img .";
  }
}

/* medium screens */
@media all and (min-width: 600px) {
  .pictext {
    text-align: left;
  }
}

.classsubtitle {
  padding-right: 15%;
  padding-left: 15%;
}

/* -------------------------------------
CONTENT GRID
------------------------------------- */

.contentgrid {
  margin-bottom: 40px;
  padding-left: 20%;
}

/* medium screens */
@media all and (min-width: 600px) {
  .contentgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "txt1 txt2";
    margin-bottom: 40px;
    padding-left: 15%;
  }
}

/* large screens */
@media all and (min-width: 1024px) {
  .contentgrid {
    padding-left: 10%;
  }
}

.infos {
  grid-area: txt1;
  padding-bottom: 50px;
}

.contact {
  grid-area: txt2;
}

.text__title {
  margin: 0 auto;
}

.contact__grid {
  margin-bottom: 10px;

  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 10px;
  grid-template-areas:
    "icone contact"
    ". number";
}

.contact__icone {
  grid-area: icone;
  filter: invert(51%) sepia(11%) saturate(4228%) hue-rotate(326deg) brightness(87%) contrast(78%);
  max-width: 20px;
  max-height: 20px;
}

.contact__title {
  grid-area: contact;
  margin-bottom: 0;
  font-weight: bold;
}

.contact__number {
  grid-area: number;
  margin-bottom: 0;
}

.bgcolor {
  padding: 50px;
  background-color: #faf9f9;
}

/* -------------------------------------
TYPOGRAPHIE
------------------------------------- */

a {
  color: #013440;
}

a:hover {
  color: #baa6b2;
  font-size: 105%;

  transition: all 0.2s ease-in-out;
}

/* Titres --------------------------- */

.h1 {
  font-family: "Germania One", "Georgia", "Time News Roman", serif;
  font-size: 65px;
  color: #2f2a2d;

  line-height: 75px;
}

.h2 {
  font-family: "Germania One", "Georgia", "Time News Roman", serif;
  font-size: 48px;
  color: #2f2a2d;

  margin-bottom: 35px;
  line-height: 75px;
}

.h3 {
  font-family: "Germania One", "Georgia", "Time News Roman", serif;
  font-size: 40px;
  color: #2f2a2d;
  text-align: center;

  margin-bottom: 35px;
  line-height: 50px;
}

/* medium screens */
@media all and (min-width: 600px) {
  .h3 {
    font-size: 40px;
    line-height: 75px;
  }
}

.h4 {
  font-family: "Germania One", "Georgia", "Time News Roman", serif;
  font-size: 37px;
  color: #739166;

  margin-bottom: 15px;
  line-height: 50px;
}

.h5 {
  font-family: "Germania One", "Georgia", "Time News Roman", serif;
  font-size: 28px;
  color: #739166;

  margin-bottom: 35px;
  margin-top: 20px;
}

/* Intro --------------------------- */

.textintro {
  font-size: (19 / 16 * 1rem);
  color: #739166;
  margin-top: 15px;
}

.card__text {
  font-family: "Open Sans", "Helvetica", "Time News Roman", serif;
  font-size: 16px;
  color: #7e7e7e;
}

/* -------------------------------------
IMAGES FLUIDES
------------------------------------- */

.fluidimage {
  max-width: 100%;
  vertical-align: middle;
}

.fitimage {
  object-fit: cover;
}

/* -------------------------------------
FOOTER
------------------------------------- */

.sitefooter {
  padding-top: 100px;
  background-color: #beddb1;
}

.sitefooter__content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "contact"
    "navigation"
    "reseaux"
    "copyright";
  gap: 50px;
  text-align: center;
}

/* medium screens */
@media all and (min-width: 600px) {
  .sitefooter__content {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "contact navigation"
      "reseaux reseaux"
      "copyright copyright";
  }
}

/* large screens */
@media all and (min-width: 1024px) {
  .sitefooter__content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "contact navigation reseaux"
      "copyright copyright copyright";
  }
}

.sitefooter__title {
  font-family: "Germania One", "Georgia", "Time News Roman", serif;
  font-size: 24px;
  color: #013440;

  margin-bottom: 30px;
}

.sitefooter__contact {
  grid-area: contact;
}

.sitefooter__navigation {
  grid-area: navigation;
}

.sitefooter__reseaux {
  grid-area: reseaux;
}

.sitefooternav {
  list-style: none;
  padding: 0px;
}

.sitefooternav__item:not(:last-child) {
  margin-bottom: 5px;
}

.sitefooternav__link {
  display: block;
  padding: 5px 0;
  font-family: "Open Sans", "Helvetica", "Time News Roman", serif;
  font-size: 16px;
  color: #2f2a2d;
  text-decoration: none;
}

/* large screens */
@media all and (min-width: 1024px) {
  .sitefooternav__link {
    display: inline-block;
  }
}

.sitefooter__logo {
  max-width: 36px;
  padding-right: 10px;
}

.sitefooter__copyright {
  font-family: "Open Sans", "Helvetica", "Time News Roman", serif;
  font-size: 14px;
  color: #013440;
}

.copyright {
  margin: 0;
  padding: 40px 20px 40px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
