*,
::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;
}

@font-face {
  font-family: "luloclean";
  src: url("../fonts/lulo_clean_one_bold-webfont.woff2") format("woff2"),
    url("../fonts/lulo_clean_one_bold-webfont.woff") format("woff");
}

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%;
}

/*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;
}

/* ENR Normandie */

.title h2 {
  display: flex;
  font-family: "luloclean";
  font-size: 50px;
  justify-content: left;
  margin-left: 100px;
  margin-bottom: 80px;
  margin-top: 100px;
}

.description h3 {
  max-width: 80%;
  text-align: left;
  margin-left: 100px;
  font-family: "alegreya_regular";
  font-size: 21px;
}

h1 {
  text-align: left;
  font-size: 23px;
  font-family: "luloclean";
  color: #d85b00;
}

h3 {
  text-align: left;
  font-family: "alegreya_regular";
  font-size: 21px;
}

.row {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

.column {
  flex: 1;
  padding: 20px;
}

.column.text-left {
  width: 50%;
  text-align: left;
  margin-left: 40px;
}

.column.image-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.column img {
  width: 40%; /* Réduit la largeur des images à 50% de leur conteneur */
  height: auto;
}

.enrnormandie-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.colonne {
  width: 50%;
}

.contexte h2 {
  text-align: left;
  font-family: "alegreya_regular";
  font-size: 21px;
}

.colonne .reseauxenr {
  display: flex;
  justify-content: center; /* Centre le logo horizontalement */
}

.colonne .reseauxenr img {
  width: 70%; /* Assurez-vous que l'image occupe la totalité de la largeur du conteneur sans le dépasser */
  height: auto; /* Maintient les proportions de l'image */
  display: block; /* Supprime les espaces blancs autour de l'image */
}

h3 {
  text-align: left;
  font-size: 21px;
  font-family: "alegreya_regular";
}

.logo-container .logo-illustrator {
  width: 70px; /* Largeur souhaitée pour le logo */
  height: 70px; /* Hauteur souhaitée pour le logo */
  margin-top: 20px; /* Ajustez selon vos besoins */
  border-radius: 30%;
  margin-right: 10px;
}

.column.image-blog {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-blog img {
  width: 80%; /* Réduit la largeur des images à 50% de leur conteneur */
  height: auto;
}

.enrnormandie-blog {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.colonne .standenr {
  display: flex;
  justify-content: center; /* Centre le logo horizontalement */
}

.colonne .standenr img {
  width: 70%; /* Assurez-vous que l'image occupe la totalité de la largeur du conteneur sans le dépasser */
  height: auto; /* Maintient les proportions de l'image */
  display: block; /* Supprime les espaces blancs autour de l'image */
  border-radius: 20px;
}

.mockup-container .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;
}

/* 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";
  }
  .logo img {
    width: 150px;
  }

  .row {
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
  }

  .column.text-center {
    width: 70%; /* Augmente la largeur de la colonne de texte */
    text-align: left; /* Aligne le texte à gauche */
    margin-left: 20px; /* Décale le texte vers la droite */
  }

  .description h2 {
    font-family: "arial";
    max-width: 80%;
    text-align: left; /* Aligne le texte à gauche */
    margin-left: 40px;
    font-size: 21px;
  }
}

@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";
  }

  .row {
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
  }

  .column.text-center {
    width: 70%; /* Augmente la largeur de la colonne de texte */
    text-align: left; /* Aligne le texte à gauche */
    margin-left: 20px; /* Décale le texte vers la droite */
  }

  .description h2 {
    font-family: "arial";
    max-width: 80%;
    text-align: left; /* Aligne le texte à gauche */
    margin-left: 40px;
    font-size: 21px;
  }
}
/* 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;
  }

  h1 {
    text-align: left;
    font-size: 23px;
    font-family: "luloclean";
    color: #d85b00;
    margin-top: 60px;
  }

  .title h2 {
    display: flex;
    font-family: "luloclean";
    font-size: 30px;
    justify-content: left;
    margin-left: 40px;
    margin-bottom: 50px;
    margin-top: 100px;
  }

  .row {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: left; /* Centre tous les enfants horizontalement */
  }

  .description h3 {
    font-family: "alegreya_regular";
    margin-left: 40px;
    font-size: 20px;
    max-width: 100%;
  }

  .column.text-left {
    width: 100%; /* Ajustez la largeur de la colonne de texte */
    text-align: left; /* Aligne le texte à gauche */
    margin-left: -20px;
  }

  .column.text-left h3 {
    font-size: 18px;
    font-family: "alegreya_regular";
    color: #315659;
  }

  .column {
    margin-left: 0;
    margin-right: 0;
    order: 1;
    width: 100%; /* Prendre toute la largeur disponible */
    display: flex;
    flex-direction: column;
    justify-content: left; /* Centre le contenu de la colonne horizontalement */
  }

  .column img.enrnormandie {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .colonne {
    width: 100%;
  }

  .colonne.text-description {
    order: 1; /* Place cette colonne en premier */
  }

  .colonne.reseauxenr {
    order: 2; /* Place cette colonne en deuxième */
  }

  .contexte h2 {
    text-align: left;
    font-family: "alegreya_regular";
    font-size: 21px;
  }

  .colonne .reseauxenr {
    display: flex;
    justify-content: center; /* Centre le logo horizontalement */
  }

  .colonne .reseauxenr img {
    width: 100%; /* Assurez-vous que l'image occupe la totalité de la largeur du conteneur sans le dépasser */
    height: auto; /* Maintient les proportions de l'image */
    display: block; /* Supprime les espaces blancs autour de l'image */
  }

  h3 {
    text-align: left;
    font-size: 18px;
    font-family: "alegreya_regular";
  }

  .logo-container .logo-illustrator {
    width: 70px; /* Largeur souhaitée pour le logo */
    height: 70px; /* Hauteur souhaitée pour le logo */
    margin-top: 20px; /* Ajustez selon vos besoins */
    border-radius: 30%;
    margin-right: 10px;
  }

  .column.image-blog {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .image-blog img {
    width: 100%; /* Réduit la largeur des images à 50% de leur conteneur */
    height: auto;
  }

  .enrnormandie-blog {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .colonne.text-description {
    order: 1; /* Place cette colonne en premier */
  }

  .colonne.standenr {
    order: 2; /* Place cette colonne en deuxième */
    margin-top: 40px;
  }

  .colonne .standenr {
    display: flex;
    justify-content: center; /* Centre le logo horizontalement */
  }

  .colonne .standenr img {
    width: 100%; /* Assurez-vous que l'image occupe la totalité de la largeur du conteneur sans le dépasser */
    height: auto; /* Maintient les proportions de l'image */
    display: block; /* Supprime les espaces blancs autour de l'image */
    border-radius: 20px;
  }

  .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;
  }
}

/* RED */

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

  h1 {
    text-align: left;
    font-size: 20px;
    font-family: "luloclean";
    color: #d85b00;
    margin-top: 60px;
  }

  .title h2 {
    display: flex;
    font-family: "luloclean";
    font-size: 25px;
    justify-content: left;
    margin-left: 40px;
    margin-bottom: 50px;
    margin-top: 100px;
  }

  .upper-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 21px;
    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;
  }
}
