@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: none;
  transition: all 0.2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: rgba(154, 24, 79, 0.73);
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: #ffe2ee;
}
html::-webkit-scrollbar-thumb {
  background: #9a184f;
}

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #020133;
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: #9a184f;
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 1.57rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}

header .navbar ul li a:hover {
  color: #9a184f ;
  border-bottom: 0.2rem solid #9a184f ;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: #020133;
  display: none;
}
/* hamburger icon ends */

/* hero section starts*/
.home {
  background-size: cover; /* Pour couvrir toute la section */
  background-position: center; /* Centrer l'image */
  background-repeat: no-repeat; /* Ne pas répéter l'image */
  height: 100vh; /* Ajuster la hauteur (ici, pleine hauteur de l'écran) */
  justify-content: center; /* Centrer horizontalement le contenu */
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
  text-align: center;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 5rem;
  z-index: 1;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}
.home .image img {
  width: 70%;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.home .content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #002057;
}

.home .content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #002057;
  margin-top: 3rem;
}

.home .social-links a {
    display: inline-block;
    margin-top: 1rem;
    margin-left: 10px;
    color: #002057;
    font-size: 12px;
}

.home .share {
  display: flex; /* Flexbox pour organiser les enfants */
  flex-wrap: wrap; /* Permet aux enfants de passer à une nouvelle ligne si nécessaire */
  align-items: center; /* Centre les enfants verticalement dans le conteneur .share */
  justify-content: center; /* Centre les enfants horizontalement dans .share */
  margin-top: 1rem;
}

.home .share a {
  height: 5rem;
  width: 5rem;
  padding: 1rem;
  text-align: center;
  border-radius: 8rem;
  font-size: 3rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: transparent;
  color: #02094b;
  border: none;
}
.home .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #9a184f ;
}

/* hero section end */

/* about section starts */
.about {
  background: rgb(255, 255, 255);
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem;
}

.about .row .image img {
  margin: 4rem;
  width: 30rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
}

.about .row .content {
  flex: 1 1 45rem;
  padding: 3rem;
}
.about .row .content h3 {
  color: rgb(27, 27, 27);
  font-size: 2.5rem;
}
.about .row .content .tag {
  font-size: 1.4rem;
  color: #020133;
  font-weight: 600;
  margin-top: 1rem;
}
.about .row .content p {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
  text-transform: none;
}
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
}
.about .row .content .box-container .box p {
  text-transform: none;
}

.about .row .content .box-container .box a {
  color : black;
}


.btn-about {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: #9a184f;
    color: white;
    border-radius: 5px;
    margin-top: 5rem;
    transition: background-color 0.3s ease;
}

.btn-about:hover {
    background-color: #600f31; /* Couleur légèrement plus foncée au survol */
}

.resumebtn {
  margin-top: 6rem;
  margin-right:5rem;
}
.resumebtn .btn {
  padding: 1.7rem 3rem;
  border-radius: 0.5em;
  transition: 0.3s;
  color: #fff;
  background: #9a184f;
  box-shadow: 0px 5px 10px #600f31;
  font-family: "Nunito", sans-serif;
  font-size: 1.2rem;
}
.resumebtn .btn span {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}
.resumebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.2rem;
  transition: 0.3s;
}
.resumebtn .btn:hover {
  background: #600f31;
}
.resumebtn .btn:hover i {
  transform: translateX(5px);
}
/* about section ends */

/* skills section starts */

/* Styles supplémentaires pour la section skills */
.skills {
  display: flex;
  flex-wrap: wrap; /* Pour que les cartes s'ajustent sur plusieurs lignes */
  gap: 30px; /* Espacement entre les cartes */
  justify-content: center;
  padding: 20px;
  min-height: 90vh;
  background: #B9D0DF;
}

.skills h2 {
  color: #020133;
}

.skills h3 {
    font-size: 2em;
    font-weight: bold;
}

.skills .container {
  background: rgba(96, 3, 44, 0.42);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;  /* Centrer horizontalement */
  align-items: center;      /* Centrer verticalement */
  text-align: center;       /* Centrer le texte à l'intérieur des éléments */
  flex-direction: column;   /* Si vous souhaitez aligner les éléments en colonne */
}
.skills .container .row {
  display: flex; /* Utilisation de Flexbox */
  justify-content: center; /* Centre les éléments horizontalement */
  align-items: center; /* Centre les éléments verticalement */
  gap: 2rem; /* Espacement entre les éléments */
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(50, 50, 50, 0.6);
  background: #020133;
  transition: 0.2s;
}

.skills .container .bar:hover {
  box-shadow: 0 8px 10px #35131e !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
}


.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.skills .container .bar .info i {
    align-items: center;
    width: 75px;
}
.skills .container .bar .info span {
  font-size: 1.3rem;
  font-weight: 300;
  margin-left: 0.5rem;
  align-items: center;
}
/* skills section ends */

/* education section starts */
.education {
  background: #e4cdd6;
  min-height: 80vh;
}

.education .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 2rem; /* Augmente l'espace sous le titre */
}
.education .box-container .box {
  display: flex;
  flex-direction: row;
  width: 80%;
  border-radius: 0.5rem;
  text-align: center;
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  transition: 0.3s;
  background: #ffffff;
}
.education .box-container .box:hover {
  transform: scale(1.03);
  box-shadow: 1rem 0.5rem 1.2rem rgba(0, 0, 0, 0.3);
}
.education .box-container .box .image {
  flex: 1 1 20rem;
  width: 100%;
}
.education .box-container .box img {
  object-fit: cover;
  position: relative;
  width: 100%;
  height: 100%;
}
.education .box-container .box .content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex-wrap: wrap;
  flex: 1 1 70rem;
}
.education .box-container .box .content h3 {
  font-size: 1.5rem;
  color: #012970;
  padding: 0.5rem 0;
  font-weight: 600;
  text-align: justify;
  margin-left: 1rem;
}
.education .box-container .box .content p {
  font-size: 1.3rem;
  margin-left: 1rem;
  text-align: justify;
}
.education h4 {
  font-size: 1.3rem;
  color: #32813b;
  text-align: justify;
  margin: 1rem;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

.education a {
  font-size: 1.2rem;
  color: #184f9a;
  text-align: center;
  margin-top: 0.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
}

.education a:hover {
  font-weight: 900; /* Change l'épaisseur au survol */
}

/* education section ends */

/* work section starts */
.work {
  /* background: #010124; */
  background: #020133;
  min-height: 80vh;
}
.work h2 {
  color: #fff;
  padding: 1rem;
}
.work .heading span {
  color: #b02e65;
}
.work .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}
.work .box-container .box {
  flex: 1 1 30rem;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  height: 30rem;
}
.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  background: #b02e65;
}
.work .box-container .box .content .tag h3 {
  font-size: 1.3rem;
  text-align: center;
  margin: 1rem;
}
.work .box-container .box:hover .content {
  top: 25%;
}
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work .desc p {
  font-size: 1.35rem;
  text-align: justify;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}
.work .desc .btns {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
  gap: 20px;
}
.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
}

.work .desc .btns .btn:hover {
  background: #9a184f;
}
/* work section ends */

/* experience section starts */
/* Style de base pour les missions (cachées par défaut) */
.experience details summary {
    cursor: pointer;
    font-size: 12px;
    color: #9a184f;
    margin-top: 10px;
    text-align: center ;
    margin-bottom: 1rem;
}

.experience details .btn {
  margin-top : 2rem;
  margin-bottom: 6rem;
  padding: 1.5rem 1.5rem;
  border-radius: 0.5em;
  color: #555;
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: normal;
  margin-right: 200px;
}

.experience details[open] summary {
    color: #b30047; /* Change la couleur lorsque ouvert */
    font-weight: bold;
}

/* Modifier le texte dynamiquement */
.experience details summary ::after {
    content: "Voir moins"; /* Texte par défaut */
}

.experience details:not([open]) summary ::after {
    content: "Voir plus"; /* Texte lorsqu'il est ouvert */
    color : #333;
    font-weight: normal;
}

.experience .missions {
  display: flex;               /* Active Flexbox */
  flex-direction: column;      /* Organise les éléments en colonne */
  align-items: center;         /* Centre horizontalement */
  justify-content: center;     /* Centre verticalement */
  text-align: justify;          /* Centre le texte des éléments */
  font-family: "Nunito", sans-serif; /* Police sans-serif */
  font-size: 12px;             /* Taille du texte */
  color: #333;                 /* Couleur du texte (gris foncé) */
  padding: 5px;               /* Padding pour ajouter un peu d'espace intérieur */
  margin-left: 30px; /* Centrer horizontalement */
  margin-right: 30px; /* Centrer horizontalement */
}

.missions li {
  margin-bottom: 10px;         /* Espacement entre les éléments de la liste */
  font-weight: normal;         /* Optionnel : Si vous voulez que le texte ne soit pas en gras */
  margin-top: 10px;
}

.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin-top: 3rem; /* Augmente l'espace au-dessus de la timeline */
  margin-bottom: 2rem; /* Augmente l'espace au-dessus de la timeline */
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}
.experience .container {
  padding: 10px 70px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: #fdf2ff;
  border: 4px solid #9a184f;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  font-family: "Font Awesome\ 5 Free";
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}

/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 60px;
  border: medium solid #9a184f;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #9a184f;
}
/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 60px;
  border: medium solid #9a184f;
  border-width: 10px 10px 10px 0;
  border-color: transparent #9a184f transparent transparent;
}
.experience .right::after {
  left: -16px;
}
.experience .content {
  border-bottom: 3px solid #9a184f;
  border-right: 1px solid #9a184f;
  border-top: 1px solid #9a184f;
  border-left: 1px solid #9a184f;
  border-radius: 6px;
  position: relative;
}
.experience .content .tag {
  font-size: 1rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}
.experience .content .desc h3 {
  font-size: 1.1rem;
  font-weight: 400;
  justify-content: center;
}
.experience .content .desc p {
  font-size: 1.1rem;
  margin-bottom: -1.5rem;
}
/* experience section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #9a184f ;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: #9a184f ;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}
.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #9a184f ;
}

@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
/* footer section ends */

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #9a184f;
  color: #3a091e;
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

.bar .info img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 5px; /* Optionnel */
}
