*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "expletus_sans_bold";
  src: url("../fonts/expletussans-bold-webfont.woff2") format("woff2"),
    url("../fonts/expletussans-bold-webfont.woff") format("woff");
  font-weight: normal;
  font-size: normal;
}

@font-face {
  font-family: "expletus_sans_regular";
  src: url("../fonts/expletussans-regular-webfont.woff2") format("woff2"),
    url("../fonts/expletussans-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-size: normal;
}
@font-face {
  font-family: "alegreya_bold";
  src: url("../fonts/alegreya-bold-webfont.woff2") format("woff2"),
    url("../fonts/alegreya-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-size: normal;
}

@font-face {
  font-family: "alegreya_regular";
  src: url("../fonts/alegreya-regular-webfont.woff2") format("woff2"),
    url("../fonts/alegreya-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-size: normal;
}

html,
body {
  font-family: "alegreya_regular", serif;
  font-size: 16px;
  line-height: 1.5rem;
  color: #315659;
  background-color: #f7edf0;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
}

section {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease; /* Transition d'opacité et de transform */
  transform: translateY(20px); /* Décalage initial vers le bas */
}

section.visible {
  opacity: 1;
  transform: translateY(
    0
  ); /* Annuler le décalage, faire apparaître vers le haut */
}

/*header*/

header {
  background: #f4cbc6;
  padding: 20px 40px;
  width: 100%;
  border-radius: 0 0 3rem 3rem;
}

header .inner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-flow: wrap;
}

header .logo img {
  width: 100px;
  margin-left: 60px;
}

header .navbar {
  display: flex;
  justify-content: right;
  gap: 50px;
  background-color: #f4cbc6;
  font-family: "expletus_sans_bold";
  margin-right: 60px;
}

header .headerbtn {
  color: #315659;
  font-size: 20px;
}

a:hover {
  color: #253031;
}

/*présentation portfolio*/

#hero .container {
  position: relative;
  max-width: 1200px;
}

.container {
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  font-family: "expletus_sans_regular";
  justify-content: center;
  text-align: center;
}

#hero {
  height: 600px; /* Réduire la hauteur de la section à 500 pixels */
  display: flex;
  background: #f7edf0;
}

#hero .container .inner-text {
  width: fit-content;
}

.inner-text {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  flex-direction: column;
  color: #315659;
  font-size: 18px;
}

.bold {
  font-weight: bold;
  font-family: "expletus_sans_bold";
}

#hero .container .inner-text p:nth-child(2) {
  color: #315659;
  font-family: "expletus_sans_bold";
  font-weight: bold; /* Pour rendre le texte en gras */
}

#hero .inner-btn {
  display: flex;
  margin-top: 50px;
  justify-content: center;
}

.bouton {
  border-radius: 30px;
  font-family: "expletus_sans_bold";
  text-align: center;
  font-size: 16px;
  padding: 12px 39.342px 11.5px 39.688px;
  align-items: center;
  cursor: pointer;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  margin-right: 10px;
}

.bouton.green {
  background-color: #315659;
  color: #f4cbc6;
  border: 4px double #315659;
}

.bouton.pink {
  background-color: #f4cbc6;
  color: #315659;
  border: 4px double #f4cbc6;
}

.bouton.green:hover {
  background-color: #f4cbc6;
  border: 2px solid #f4cbc6;
  box-shadow: 10px 5px 5px #315659;
  color: #315659;
  text-align: center;
  font-size: 16px;
}

.bouton.pink:hover {
  background-color: #315659;
  border: 2px solid #315659;
  box-shadow: 10px 5px 5px #f4cbc6;
  color: #f4cbc6;
  text-align: center;
  font-size: 16px;
}

.deco-hero-right-rose {
  position: absolute;
  bottom: 70px;
  right: 60px;
  width: 150px;
  height: auto;
  transform: rotate(120deg) scaleX(-1);
}

.deco-hero-left-rose {
  position: absolute;
  top: 60px;
  left: 80px;
  width: 150px;
  height: auto;
  transform: rotate(300deg) scaleX(-1);
}

/*ma présentation*/

.container2 {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
}

#presentation {
  display: flex;
  background: #f7edf0;
  margin-bottom: 100px;
}

#presentation .container2 {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

#presentation .container2 .text_about_me {
  display: flex;
  justify-content: space-between;
}

#presentation .container2 .text_about_me .text-wrapper {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

#presentation .container2 .text_about_me .text-wrapper h4 {
  font-family: "expletus_sans_bold";
  margin-bottom: 20px;
  font-size: 24px;
}

#presentation .container2 .text_about_me .text-wrapper h1 {
  font-family: "expletus_sans_bold";
  color: #f4afab;
  position: relative;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 30px;
  font-size: 32px;
}
#presentation .container2 .text_about_me .text-wrapper h1:after {
  position: absolute;
  height: 320px;
  width: 290px;
  content: "";
  background-image: url("/assets/img/petitelement.svg");
  background-repeat: no-repeat;
  background-position: 0 0;
  right: -90px;
  top: -160px;
}
#presentation .container2 .text_about_me .text-wrapper p {
  font-family: "alegreya_regular";
  margin-bottom: 15px;
  font-size: 18px;
}

.container2 {
  position: relative;
  display: inline-block;
}

#presentation .container2 .img-wrapper {
  max-width: 300px;
  display: flex;
  justify-content: center;
  z-index: 2;
  position: relative; /* Ajout de position relative */
}

.img-shadow img {
  display: block;
  width: 270px; /* Ajustement de la largeur à 100% pour le dimensionnement responsive */
  height: 405px;
  margin-right: 10%; /* Utilisation de pourcentage pour la marge droite */
}

.squareimage {
  position: absolute;
  width: 270px; /* Largeur du carré */
  height: 405px;
  background-color: #f4afab;
  bottom: -40px; /* Utilisation de pourcentage pour le positionnement en bas */
  right: 0px; /* Utilisation de pourcentage pour le positionnement à droite */
}

.bolder {
  font-weight: bold;
  font-family: "alegreya_bold";
}

/*Mes formations*/

#formations .container {
  position: relative;
  max-width: 1200px;
  display: block;
}

.formations {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  background: #f7edf0;
}

.formations h2 {
  font-family: "expletus_sans_bold";
  font-size: 27px;
  text-align: center;
  margin-bottom: 50px;
}

.formations p {
  font-family: "alegreya_regular";
  text-align: center;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #f7edf0;
}

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: "";
  position: absolute;
  width: 1.5px;
  background-color: #315659;
  top: 10px;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.formation {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

/* The circles on the timeline */
.formation::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  right: -35px;
  background-color: #315659;
  top: 30px;
  z-index: 1;
}

/* Place the container to the left */
.gauche {
  left: -30px;
}

/* Place the container to the right */
.droite {
  left: 590px;
}

/* Add arrows to the left container (pointing right) */
.gauche::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 30px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.droite::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 30px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.droite::after {
  left: -40px;
}

/* The actual content */
.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 20px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .formation {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .formation::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .gauche::after,
  .droite::after {
    left: 15px;
  }

  /* Make all right containers behave like the left ones */
  .droite {
    left: 0%;
  }
}

.formations .content h3 {
  font-family: "expletus_sans_bold";
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.formations .content p {
  font-family: "alegreya_regular";
  text-align: center;
}

.deco-bottom-left {
  position: absolute;
  bottom: -100px;
  left: 10px;
  width: 150px;
  height: auto;
  transform: rotate(170deg) scaleY(-1);
}

.deco-bottom-right {
  position: absolute;
  bottom: -100px;
  right: 10px;
  width: 150px;
  height: auto;
  transform: rotate(120deg) scaleY(-1);
}

/* Mes compétences */

#competences {
  padding: 50px 0;
  margin-top: 0px;
  margin-bottom: 50px;
  position: relative;
}

#competences .container4 {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.container4 {
  text-align: center; /* Centrer le texte horizontalement */
}

.container4 h2 {
  font-family: "expletus_sans_bold";
  font-size: 27px;
  margin-bottom: 100px;
  margin-top: 100px;
}

.competences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
  grid-auto-rows: 150px;
}

.competence-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.competence-item img {
  max-width: 30%;
  height: auto;
  border-radius: 60px;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.competence-item img:hover {
  transform: scale(1.2);
}

.data-tippy-content {
  background-color: #f4cbc6; /* Couleur de fond */
  color: #315659; /* Couleur du texte */
  font-family: "alegreya_regular";
}

.deco-top-left {
  position: absolute;
  top: -50px;
  left: 10px;
  width: 150px;
  height: auto;
  transform: rotate(120deg) scaleX(-1);
}

.deco-top-right {
  position: absolute;
  top: -50px;
  right: 10px;
  width: 150px;
  height: auto;
  transform: rotate(170deg) scaleX(-1);
}

/* Mon portfolio */

#portfolio .container5 {
  text-align: center; /* Pour centrer le contenu */
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

#portfolio .container5 h2 {
  font-family: "expletus_sans_bold";
  font-size: 27px;
  margin-bottom: 80px;
  margin-top: 50px;
  position: relative;
  display: inline-block;
  align-self: center;
}

#portfolio .container5 h2::before,
#portfolio .container5 h2::after {
  position: absolute;
  width: 90px;
  height: 90px; /* Ajustez la taille selon vos besoins */
  content: "";
  background-image: url(/assets/img/elementrose.svg); /* Assurez-vous que le chemin d'accès est correct */
  background-repeat: no-repeat;
  background-position: center center;
}

#portfolio .container5 h2::before {
  top: 5px; /* Ajustez la position verticale */
  left: 140px; /* Ajustez la position horizontale */
  transform: translateY(-50%) rotate(40deg) scaleX(-1); /* Transformation pour l'angle et l'orientation */
}

#portfolio .container5 h2::after {
  top: 0px; /* Ajustez la position verticale */
  right: 140px; /* Ajustez la position horizontale */
  transform: translateY(-50%) rotate(90deg) scaleY(-1); /* Transformation pour l'angle et l'orientation */
}

.portfolio-item .f-carousel__slide img {
  max-width: 100%;
  height: auto;
}

#myCarousel {
  max-width: 800px;
  margin: 0 auto;
}

#myCarousel .f-carousel__slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.f-carousel {
  --f-button-width: 38px;
  --f-button-height: 38px;

  --f-button-svg-width: 16px;
  --f-button-svg-height: 16px;
  --f-button-svg-stroke-width: 2.5;

  --f-button-color: rgb(71 85 105);
  --f-button-border-radius: 50%;
  --f-button-shadow: 0 6px 12px -2px rgb(50 50 93 / 25%),
    0 3px 7px -3px rgb(0 0 0 / 30%);

  --f-button-bg: #fff;
  --f-button-hover-bg: #f9f9f9;
  --f-button-active-bg: #f0f0f0;
}

.portfolio-btn {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}

.deco-bottom-right-rose {
  position: absolute;
  bottom: -70px;
  right: 0px;
  width: 150px;
  height: auto;
  transform: rotate(130deg) scaleY(-1);
}

/* Contact */

#contact .container6 {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.container6 {
  text-align: center; /* Centrer le texte horizontalement */
  border-radius: 5px;
  background-color: #f7edf0;
  padding: 20px;
}

#contact h2 {
  font-family: "expletus_sans_bold";
  font-size: 27px;
  margin-bottom: 100px;
  margin-top: 50px;
}

.row {
  display: flex;
  gap: 30px;
}

.row .column {
  width: 50%;
}

.column.text-center {
  text-align: center;
  margin-top: 150px;
}

.column.text-center span:first-child {
  display: block;
  font-size: 32px;
  font-family: "expletus_sans_bold";
  margin-bottom: 20px;
}

.column.text-center span:last-child {
  font-size: 28px;
  font-family: "expletus_sans_bold";
  color: #f4afab;
}

/* Style inputs with type="text", select elements and textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: calc(
    100% - 100px
  ); /* Réduire la largeur de 20 pixels par rapport à 100% */
  padding: 10px; /* Some padding */
  border: 3px solid #315659; /* Gray border */
  border-radius: 15px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
  font-family: "alegreya_regular";
}

/* Style the submit button with a specific background color etc */
input[type="submit"] {
  background-color: #f4cbc6;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  color: #315659;
  border: 4px double #f4cbc6;
  border-radius: 30px;
  font-family: "expletus_sans_bold";
  text-align: center;
  font-size: 16px;
  padding: 12px 39.342px 11.5px 39.688px;
  align-items: center;
  cursor: pointer;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type="submit"]:hover {
  background-color: #315659;
  border: 2px solid #315659;
  box-shadow: 10px 5px 5px #f4cbc6;
  color: #f4cbc6;
  text-align: center;
  font-size: 16px;
}

.deco-top-right-rose {
  position: absolute;
  top: -70px;
  right: 10px;
  width: 150px;
  height: auto;
  transform: rotate(170deg) scaleX(-1);
}

.deco-bottom-left-rose {
  position: absolute;
  bottom: 0px;
  left: -120px;
  width: 150px;
  height: auto;
  transform: rotate(180deg) scaleY(-1);
}

/* Footer */

.site-footer {
  background-color: #315659;
  border-radius: 3rem 3rem 0 0;
}

.upper-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: #f7edf0;
}

.footer-menu ul {
  list-style-type: none;
  padding: 0;
}

.footer-menu ul li {
  display: inline-block;
  margin-right: 5px;
  margin-left: 50px;
}

.footer-menu a {
  color: #f4cbc6;
}

.contact-info a {
  display: flex;
  flex-direction: column;
  margin-right: 50px;
  margin-top: 20px;
  color: #f4cbc6;
}

.lower-footer {
  background-color: #253031;
  display: flex;
  justify-content: space-between;
  text-align: center;
  color: #f4cbc6;
  text-decoration: none;
  align-items: center;
  height: 60px;
}

.contact-info img {
  margin-top: 5px;
}

.right p {
  margin-right: 50px;
}

.left p a {
  margin-left: 50px;
  color: #f4cbc6;
}

/*menu hamburger*/

.mobilemenu {
  height: 30px;
  background-color: #f4cbc6;
  transition: 300ms ease all;
  z-index: 40;
}

.mobilemenu.activated {
  width: 100%;
  z-index: 40;
}

a:hover {
  color: #253031;
  text-decoration: none;
}

#mobile_nav {
  transform: scale(2); /* Gardez l'agrandissement */
  z-index: 50; /* Assurez-vous qu'il soit au-dessus des autres éléments */
}

#menu_button {
  width: 32px;
  overflow: hidden;
}

#menu_checkbox {
  display: none;
}

#menu_label {
  position: relative;
  display: block;
  height: 29px;
  cursor: pointer;
}

#menu_label:before,
#menu_label:after,
#menu_text_bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #315659;
}

#menu_label:before,
#menu_label:after {
  content: "";
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) left;
}

#menu_label:before {
  top: 0;
}

#menu_label:after {
  top: 10px;
}

#menu_text_bar {
  top: 20px;
}

#menu_text_bar:before {
  content: "MENU";
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  color: #315659;
  font-size: 10px;
  font-weight: bold;
  font-family: "expletus_sans_bold";
  text-align: center;
}

#menu_checkbox:checked + #menu_label:before {
  left: -39px;
}

#menu_checkbox:checked + #menu_label:after {
  left: 39px;
}

#menu_checkbox:checked + #menu_label #menu_text_bar:before {
  animation: moveUpThenDown 0.8s ease 0.2s forwards,
    shakeWhileMovingUp 0.8s ease 0.2s forwards,
    shakeWhileMovingDown 0.2s ease 0.8s forwards;
}

@keyframes moveUpThenDown {
  0% {
    top: 0;
  }
  50% {
    top: -27px;
  }
  100% {
    top: -14px;
  }
}

@keyframes shakeWhileMovingUp {
  0% {
    transform: rotateZ(0);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  50% {
    transform: rotateZ(0deg);
  }
  75% {
    transform: rotateZ(10deg);
  }
  100% {
    transform: rotateZ(0);
  }
}

@keyframes shakeWhileMovingDown {
  0% {
    transform: rotateZ(0);
  }
  80% {
    transform: rotateZ(3deg);
  }
  90% {
    transform: rotateZ(-3deg);
  }
  100% {
    transform: rotateZ(0);
  }
}

#repere {
  width: 200px;
  height: 66px;
  position: fixed;
  bottom: 2%;
  right: 0;
  color: white;
  padding: 10px;
  z-index: 9999;
  text-shadow: 1px 1px 3px black;
  font-weight: bold;
  display: none;
}

@media (min-width: 1920px) {
  #repere {
    background: chartreuse;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1920 px et +";
  }
}
/* BLACK */

@media (min-width: 1680px) and (max-width: 1919px) {
  #repere {
    background: #000;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1680 px > 1920 px";
  }
}
/* PURPLE */

@media (min-width: 1440px) and (max-width: 1679px) {
  #repere {
    background: purple;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1440px > 1680 px";
  }
}
/* BLUE */

@media (min-width: 1200px) and (max-width: 1439px) {
  #repere {
    background: blue;
    text-shadow: 0 2px 4px #000;
  }
  #repere:after {
    content: "1200 px > 1440 px";
  }
}
/* GREEN */

@media (min-width: 980px) and (max-width: 1199px) {
  #repere {
    background: green;
  }
  #repere:after {
    content: "980 px > 1200 px";
  }

  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .formation {
    width: 100%;
    padding-left: 90px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .formation::before {
    left: 80px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .gauche::after,
  .droite::after {
    left: 51px;
  }

  /* Make all right containers behave like the left ones */
  .droite {
    left: -30px;
  }
}

@media (min-width: 768px) {
  #mobile_nav {
    display: none;
  }
}

/* YELLOW */

@media (min-width: 768px) and (max-width: 979px) {
  #repere {
    background: yellow;
  }
  #repere:after {
    content: "768 px > 980 px";
  }

  #presentation .container2 .text_about_me {
    flex-direction: column; /* Aligner les éléments en colonne sur les petits écrans */
  }

  #presentation .container2 .text_about_me .text-wrapper {
    max-width: 100%; /* Ajuster la largeur maximale du texte sur de petits écrans */
  }

  #presentation .container2 .text_about_me .img-wrapper {
    margin-top: 20px; /* Ajouter un espace entre le texte et l'image */
  }

  #presentation .container2 .text_about_me {
    flex-direction: column; /* Passage en colonne */
    align-items: center; /* Centrage des éléments */
  }

  .img-shadow {
    margin-top: 50px;
    margin-bottom: 20px; /* Espace entre img-shadow et squareimage */
  }

  .squareimage {
    position: relative; /* Retour à la position relative */
    width: 270px; /* Largeur du carré */
    height: 405px; /* Hauteur du carré */
    background-color: #f4afab;
    margin-left: 90px;
    margin-top: -420px; /* Espace entre img-shadow et squareimage */
  }

  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .formation {
    width: 100%;
    padding-left: 90px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .formation::before {
    left: 80px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .gauche::after,
  .droite::after {
    left: 51px;
  }

  /* Make all right containers behave like the left ones */
  .droite {
    left: -30px;
  }

  .competences-grid {
    grid-template-columns: repeat(3, 1fr); /* Deux colonnes de largeur égale */
  }

  .competence-item img {
    max-width: 40%; /* Taille des images ajustée pour deux images par ligne */
  }

  .row {
    flex-direction: column; /* Afficher en colonne sur les petits écrans */
    align-items: center; /* Centrer verticalement les éléments */
  }

  .column.text-center {
    margin-top: 20px; /* Réduire l'espace avant le texte */
    margin-bottom: 20px; /* Réduire l'espace après le texte */
  }

  /* Ajuster le formulaire */
  .column form {
    margin-top: 20px;
  }

  .row .column {
    width: 60%;
  }

  .column.text-center span:first-child {
    display: block;
    font-size: 28px;
    font-family: "expletus_sans_bold";
    margin-bottom: 20px;
  }

  .column.text-center span:last-child {
    font-size: 24px;
    font-family: "expletus_sans_bold";
    color: #f4afab;
  }
}
/* ORANGE */

/* Styles pour les écrans de petite taille */
@media (max-width: 767px) {
  #repere {
    background: orange;
  }
  #repere:after {
    content: "767 px";
  }

  header .logo img {
    width: 100px;
    margin-left: 10px;
  }

  header .navbar {
    order: 2;
    min-width: 100%;
    flex-flow: column;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
  }

  header.active .navbar {
    max-height: 300px;
  }

  #hero .inner-btn {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .bouton {
    margin-right: 0px;
  }

  .competences-grid {
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes de largeur égale */
  }

  .competence-item img {
    max-width: 40%; /* Taille des images ajustée pour deux images par ligne */
  }

  #presentation .container2 .text_about_me {
    flex-direction: column; /* Passage en colonne */
    align-items: center; /* Centrage des éléments */
  }

  .img-shadow {
    margin-top: 50px;
    margin-bottom: 20px; /* Espace entre img-shadow et squareimage */
  }

  .squareimage {
    position: relative; /* Retour à la position relative */
    width: 270px; /* Largeur du carré */
    height: 405px; /* Hauteur du carré */
    background-color: #f4afab;
    margin-left: 90px;
    margin-top: -420px; /* Espace entre img-shadow et squareimage */
  }

  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .formation {
    width: 100%;
    padding-left: 90px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .formation::before {
    left: 80px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .gauche::after,
  .droite::after {
    left: 51px;
  }

  /* Make all right containers behave like the left ones */
  .droite {
    left: -30px;
  }

  .row {
    flex-direction: column; /* Afficher en colonne sur les petits écrans */
    align-items: center; /* Centrer verticalement les éléments */
  }

  .column.text-center {
    margin-top: 20px; /* Réduire l'espace avant le texte */
    margin-bottom: 10px; /* Réduire l'espace après le texte */
  }

  /* Ajuster le formulaire */

  #contact h2 {
    font-family: "expletus_sans_bold";
    font-size: 27px;
    margin-bottom: 50px;
    margin-top: 100px;
  }

  .column form {
    margin-top: 20px;
  }

  .column.text-center {
    text-align: center;
  }

  .column.text-center span:first-child {
    display: block;
    font-size: 20px;
    font-family: "expletus_sans_bold";
    margin-bottom: 20px;
  }

  .column.text-center span:last-child {
    font-size: 20px;
    font-family: "expletus_sans_bold";
    color: #f4afab;
  }

  .row .column {
    width: 70%;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: calc(100% - 20px); /* Largeur des champs de formulaire ajustée */
    padding: 12px; /* Padding intérieur des champs */
    box-sizing: border-box; /* Inclure le padding et la bordure dans la largeur calculée */
  }

  .upper-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #f7edf0;
  }

  .footer-menu ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrer verticalement */
  }

  .footer-menu ul li {
    margin: 10px 0;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrer verticalement */
    margin-top: 20px; /* Espacement entre les éléments de contact */
    color: #f4cbc6;
    text-align: center; /* Centrer le texte à l'intérieur */
  }

  .contact-info a {
    margin-top: 10px; /* Espacement entre les liens de contact */
    display: block; /* Assurez-vous que les liens sont des blocs pour occuper toute la largeur */
    text-align: center; /* Centrer le texte à l'intérieur du lien */
    margin-right: unset;
  }

  .lower-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f4cbc6;
    background-color: #253031;
    height: 60px;
    margin-top: 20px; /* Ajoutez un espacement supplémentaire en haut */
  }

  .left p {
    margin-left: 0; /* Ajustez la marge gauche à zéro */
    margin-right: 0; /* Ajustez la marge droite à zéro */
  }

  .right p a {
    margin: 0; /* Assurez-vous qu'il n'y a pas de marges sur les liens */
    color: #f4cbc6;
  }

  .deco-hero-right-rose {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 90px;
    height: auto;
    transform: rotate(120deg) scaleX(-1);
  }

  .deco-hero-left-rose {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 90px;
    height: auto;
    transform: rotate(300deg) scaleX(-1);
  }

  .deco-bottom-left {
    position: absolute;
    bottom: -100px;
    left: 10px;
    width: 80px;
    height: auto;
    transform: rotate(175deg) scaleY(-1);
  }

  .deco-bottom-right {
    position: absolute;
    bottom: -100px;
    right: 10px;
    width: 80px;
    height: auto;
    transform: rotate(120deg) scaleY(-1);
  }

  .deco-top-left {
    position: absolute;
    top: -50px;
    left: 10px;
    width: 80px;
    height: auto;
    transform: rotate(120deg) scaleX(-1);
  }

  .deco-top-right {
    position: absolute;
    top: -50px;
    right: 10px;
    width: 80px;
    height: auto;
    transform: rotate(180deg) scaleX(-1);
  }

  .deco-bottom-right-rose {
    position: absolute;
    bottom: -70px;
    right: 0px;
    width: 90px;
    height: auto;
    transform: rotate(130deg) scaleY(-1);
  }

  .deco-top-right-rose {
    position: absolute;
    top: -70px;
    right: 10px;
    width: 90px;
    height: auto;
    transform: rotate(170deg) scaleX(-1);
  }

  .deco-bottom-left-rose {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 90px;
    height: auto;
    transform: rotate(190deg) scaleY(-1);
  }
}

/* RED */

@media (max-width: 480px) {
  #repere {
    background: red;
  }
  #repere:after {
    content: "480 px";
  }

  #presentation .container2 .text_about_me {
    flex-direction: column; /* Passage en colonne */
    align-items: center; /* Centrage des éléments */
  }

  .img-shadow {
    margin-top: 50px;
    margin-bottom: 20px; /* Espace entre img-shadow et squareimage */
  }

  .squareimage {
    position: relative; /* Retour à la position relative */
    width: 270px; /* Largeur du carré */
    height: 405px; /* Hauteur du carré */
    background-color: #f4afab;
    margin-left: 90px;
    margin-top: -420px; /* Espace entre img-shadow et squareimage */
  }

  /* Place the timelime to the left */
  .timeline::after {
    left: 1px;
  }

  /* Full-width containers */
  .formation {
    width: 100%;
    padding-left: 50px;
    padding-right: 0px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .formation::before {
    left: 40px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .gauche::after,
  .droite::after {
    left: 21px;
  }

  /* Make all right containers behave like the left ones */
  .droite {
    left: -30px;
  }

  .row {
    flex-direction: column; /* Afficher en colonne sur les petits écrans */
    align-items: center; /* Centrer verticalement les éléments */
  }

  .column.text-center {
    margin-top: 20px; /* Réduire l'espace avant le texte */
    margin-bottom: 20px; /* Réduire l'espace après le texte */
  }

  /* Ajuster le formulaire */
  .column form {
    margin-top: 20px;
  }

  .column.text-center span:first-child {
    font-size: 22px;
    font-family: "expletus_sans_bold";
  }

  .column.text-center span:last-child {
    font-size: 18px;
    font-family: "expletus_sans_bold";
    color: #f4afab;
  }

  .row .column {
    width: 80%;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: calc(100% - 20px); /* Largeur des champs de formulaire ajustée */
    padding: 12px; /* Padding intérieur des champs */
    box-sizing: border-box; /* Inclure le padding et la bordure dans la largeur calculée */
  }

  .upper-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #f7edf0;
  }

  .footer-menu ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrer verticalement */
  }

  .footer-menu ul li {
    margin: 10px 0;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centrer verticalement */
    margin-top: 20px; /* Espacement entre les éléments de contact */
    color: #f4cbc6;
    text-align: center; /* Centrer le texte à l'intérieur */
  }

  .contact-info a {
    margin-top: 10px; /* Espacement entre les liens de contact */
    display: block; /* Assurez-vous que les liens sont des blocs pour occuper toute la largeur */
    text-align: center; /* Centrer le texte à l'intérieur du lien */
  }

  .lower-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f4cbc6;
    background-color: #253031;
    height: 60px;
    margin-top: 20px; /* Ajoutez un espacement supplémentaire en haut */
  }

  .left p {
    margin-left: 0; /* Ajustez la marge gauche à zéro */
    margin-right: 0; /* Ajustez la marge droite à zéro */
  }

  .right p a {
    margin: 0; /* Assurez-vous qu'il n'y a pas de marges sur les liens */
    color: #f4cbc6;
  }
}
