/****************
* MAISON COUSIN *
****************/

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 10%;
  padding-bottom: 0;
}
.main__ancres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.main__ancres a:not(:last-of-type) {
  margin-right: 1rem;
}
.main__ancres a {
  color: var(--primaire);
  position: relative;
  margin-top: 0.5rem;
  font-family: "Philosopher", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}
/* Reponsive desktop */
@media screen and (min-width: 1280px) {
  .main {
    margin-top: 15vh;
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 23%;
  }
  .main__texte > p:not(:last-of-type) {
    margin-bottom: 0.5rem;
  }
  .main__ancres a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 0;
    height: 2px;
    background-color: var(--secondaire);
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%);
  }
  .main__ancres a:hover::after {
    width: 40px;
  }
  .main__ancres a:not(:last-of-type) {
    margin-right: 3rem;
  }
  .main::before {
    position: absolute;
    content: url(../images/design/elements-graphiques/plateau-gateaux-2.png);
    right: 0;
    bottom: -3rem;
  }
  .main::after {
    position: absolute;
    content: url(../images/design/elements-graphiques/assiette-6.png);
    left: 0;
    top: 5rem;
  }
}

/* L'histoire */
.histoire__conteneur {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.histoire {
  opacity: 0;
  transition: opacity 1s;
}
.histoire__date {
  color: var(--primaire);
  font-family: "Philosopher", sans-serif;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
}
.histoire p {
  margin-bottom: 0.5rem;
}
.histoire__photo {
  max-height: 12rem;
  max-width: 20rem;
  margin-top: 1rem;
}
/* Responsive desktop */
@media screen and (min-width: 1000px) {
  .histoire__conteneur {
    margin: 0 8%;
    margin-top: 6rem;
    padding-left: 5rem;
    padding-bottom: 3rem;
    gap: 3rem;
    position: relative;
  }
  /* Flèche chronologique */
  .histoire__conteneur::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    background-image: linear-gradient(
      to bottom,
      var(--secondaire) 50%,
      transparent 50%
    );
    background-size: 100% 30px;
    height: 0;
  }
  .histoire__conteneur.active::before {
    animation: drawLine 8s linear forwards;
  }
  @keyframes drawLine {
    0% {
      height: 0;
    }
    100% {
      height: 100%;
    }
  }
  .histoire__conteneur::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: -15px;
    display: inline-block;
    height: 30px;
    width: 30px;
    border: solid 2px var(--secondaire);
    border-top: unset;
    border-left: unset;
    transform: rotate(44deg);
  }
  .histoire__date {
    position: relative;
  }
  .histoire__date::before {
    content: url(../images/design/feu-artifice.svg);
    position: absolute;
    top: -1rem;
    left: -7rem;
    transform: scale(0.9);
    background-color: var(--blanc);
  }
  .histoire:first-of-type .histoire__date::before {
    top: 0;
  }
  .histoire__date {
    font-size: 2rem;
  }
  .historique .titre {
    position: relative;
  }
  .historique .titre::before {
    position: absolute;
    content: url(../images/design/elements-graphiques/overhead-view-croissant-coffee-halved-kiwi-pears-dried-flower-raspberries-white-background.png);
    right: -15vw;
    top: -10rem;
  }
}
.affiche {
  opacity: 1 !important;
}

/* L'équipe */
.equipe {
  background-color: rgba(206, 180, 129, 0.3);
  margin-top: 4rem;
}
.equipe .sous-titre,
.equipe-commerciale .sous-titre {
  text-align: center;
  color: var(--primaire);
}
.fiches {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}
.fiche {
  display: flex;
  flex-direction: column;
  max-width: 20rem;
  padding: 2rem;
  background-color: white;
  box-shadow: 0px 3px 15px 5px rgba(0, 0, 0, 0.05);
  gap: 0.5rem;
  padding-top: 7rem;
  position: relative;
  margin-top: 6rem;
}
.fiche__nom {
  text-align: center;
  color: var(--primaire);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.fiche__poste {
  font-weight: 300;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.fiche strong {
  color: var(--primaire);
  font-weight: 600;
}
.fiche__photo {
  height: 12rem;
  width: 12rem;
  border-radius: 50%;
  position: absolute;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
}
/* Responsive desktop */
@media screen and (min-width: 1000px) {
  .fiche {
    transition: all 0.3s;
    margin-top: 8rem;
    max-width: 26rem;
  }
  .fiche:hover {
    transform: scale(1.05);
  }
}
@media screen and (min-width: 1400px) {
  .equipe-commerciale .sous-titre {
    position: relative;
  }
  .equipe-commerciale .sous-titre::before {
    position: absolute;
    content: url(../images/design/elements-graphiques/plateau-gateaux-3.png);
    left: -15vw;
    top: -4rem;
  }
}

/* Une équipe de cuisiniers */
.cuisiniers {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  background-color: rgba(206, 180, 129, 0.3);
}
.cuisiniers .fireworks {
  max-width: 8rem;
  margin-bottom: 1rem;
}
.cuisiniers__titre {
  color: var(--primaire);
  margin-bottom: 1rem;
}
/* Reponsive desktop */
@media screen and (min-width: 1000px) {
  .cuisiniers {
    display: flex;
    flex-direction: row;
    gap: 6rem;
    align-items: center;
    position: relative;
  }
  .cuisiniers__contenu {
    width: 40%;
  }
  .cuisiniers__photo {
    width: 60%;
    height: auto;
  }
  .cuisiniers .fireworks {
    max-width: 12.5rem;
  }
}
@media screen and (min-width: 1400px) {
  .cuisiniers::after {
    position: absolute;
    content: url(../images/design/elements-graphiques/assiette-7.png);
    right: 0;
    top: -15rem;
  }
}

/* Une équipe de service */
.service {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service .fireworks {
  max-width: 8rem;
  margin-bottom: 1rem;
}
.service__titre {
  color: var(--primaire);
  margin-bottom: 1rem;
}
/* Reponsive desktop */
@media screen and (min-width: 1000px) {
  .service {
    display: flex;
    flex-direction: row;
    gap: 6rem;
    align-items: center;
  }
  .service__contenu {
    width: 40%;
  }
  .service__photo {
    width: 60%;
    height: auto;
  }
  .service .fireworks {
    max-width: 12.5rem;
  }
}

/* Chiffres clés */
.chiffres {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.chiffre {
  text-align: center;
  max-width: 300px;
}
.chiffre__titre {
  color: var(--primaire);
  font-size: 3rem;
  font-family: "Philosopher", sans-serif;
  white-space: nowrap;
}
.chiffre__separation {
  align-self: center;
}
/* Reponsive tablettes */
@media screen and (min-width: 750px) {
  .chiffres {
    gap: 4rem;
    flex-direction: row;
    position: relative;
  }
  .chiffre {
    max-width: 25%;
  }
}
/* Reponsive desktop */
@media screen and (min-width: 1000px) {
  .chiffre__titre {
    font-size: 4rem;
  }
}
@media screen and (min-width: 1280px) {
  .chiffres {
    position: relative;
  }
  .chiffres::before {
    position: absolute;
    content: url(../images/design/elements-graphiques/white-garlic-with-greens-pepper-powder.png);
    left: 0;
    top: -15rem;
    transform: scaleX(-1);
  }
}
