/* /###################### */
/* Global */
/* /###################### */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-decoration: none;
    list-style: none;
    font-family: "Poppins", sans-serif;
}

:root {
  --blue: #40a5e7;
  --bg: #f9f9f9;
  --bg-item: hsl(0, 0%, 100%);
  --light: #1f1f1f;
  --btn-reverse: hsla(204, 78%, 58%, 0.341);
  --bg-nav-bottom: #e0e0e0cc;
  --active-link: linear-gradient(
    180deg,
    #007acc 0%,
    #60a4c9 40%,
    #cbe3f0 80%
  );
  --modal-hover-shadow: 0px 0px 15px 3px rgba(0, 122, 204, 0.3);
  --modal-hover-bg: rgba(0, 122, 204, 0.1);
  --contact-btn-hover: #d3eaff;
  --contact-btn-shadow: #00000050;
  --footer-shadow: #c5c5c555;
  --contact-btn: #40a5e7;
}
/* Dark Mode */
.dark-mode {
  --blue: #40a5e7;
    --bg: #1F1F1F; 
    --bg-item: 	hsl(190, 30%, 20%, 1);
    --light: #f1f1f1;
    --btn-reverse: hsla(204, 78%, 58%, 0.341);
    --bg-nav-bottom: #1c2b36cc;
    --active-link: linear-gradient(
                    180deg,
                    #41A5E7 0%,
                    #1d3f57 40%,
                    hsla(204, 32%, 16%, 1) 80%
                  );
    --modal-hover-shadow: 0px 0px 15px 3px rgba(65, 165, 231, 0.341);
    --modal-hover-bg: rgba(65, 165, 231, 0.1); 
    --contact-btn-hover: #0d3a5f;
    --contact-btn-shadow: #ffffffaf;
    --footer-shadow: #0d3a5f4d;
}
/* DESIGN SWITCH MODE */
.theme-mode {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  top: 9rem;
  right: 1rem;
  z-index: 999;
}

.theme-mode > i {
  font-size: 1.5rem;
}

.theme-mode > .fa-sun {
  color: #FBC935;
}

.theme-mode > .fa-moon {
  color: rgb(248, 14, 248);
}

.theme-mode .icon {
  background: transparent;
}

/* Le switch lui-même */
.switch {
  width: 3.5rem;
  height: 2rem;
  background: var(--bg);
  border-radius: 3rem;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  border: 1px solid var(--light);
}

/* Le cercle qui se déplace */
.switch-circle {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--blue);
  border-radius: 50%;
  position: absolute;
  top: 0.15rem;
  left: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: (var(--light));
  font-size: 1rem;
}

/* Thème clair activé (class ajoutée dynamiquement en JS) */
body.light .switch-circle {
  left: 32px;
}

/* DESIGN SWITCH MODE */

html {
    font-size: 62.5%;
    overflow-x: hidden;
}
body {
    background: var(--bg);
    overflow-x: hidden;
    color: var(--light);
    position: relative;
}

#home {
  margin-top: 8rem;
}

section {
    padding: 10rem 2rem;
    width: 90%;
    margin: 10rem auto;
}

span {
    color: var(--blue)
}

.about-content p span {
  color: var(--light);
}

.alternance {
  font-size: 3rem;
  font-weight: 600;
}

.button{
    background-color: var(--bg);
    color: var(--light);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.3rem 1rem;
    border: 2px solid var(--blue);
    border-radius: 10px;
    transition: 0.2s ease-in-out;
}

.button:hover {
  background-color: var(--blue);
  color: var(--bg);
}

.button-reverse {
    display: inline-block;
    background-color: var(--blue);
    color: var(--bg);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.3rem 1rem;
    border: 2px solid var(--blue);
    border-radius: 10px;
    transition: 0.2s ease-in-out;
}

.button-reverse:hover {
  box-shadow: 0px 0px 15px 3px var(--btn-reverse);
}

/* CONTROLLER LE SCROLL ARRIERE PLAN */
html.noscroll,
body.noscroll {
  overflow: hidden;
  height: 100%;
}

/* /###################### */
/* Header et navigation /
/* /###################### */  

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  right: 0;
  left: 0;
  background-color: var(--bg);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.nav-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.nav-mobile-menu ul li a {
  color: var(--light);
  font-size: 1.4rem;
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  align-items: center;
}

.nav-mobile-menu ul li a i {
  transform: translateY(-2px);
  font-size: 1.5rem;
}

.nav-mobile-menu .fa-comment {
  transform: translateY(-1px);
}

.nav-mobile-menu ul li a:hover {
  background-color: var(--blue);
  border-radius: 0.5rem;
}

/* Affiche le menu mobile quand on ajoute la classe .open */
.nav-mobile-menu.open {
  display: block;
}

.link-top {
  display: none;
}

/* ************************************** */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 100;
    background: var(--bg);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  border-bottom: 1px solid var(--blue);
  box-shadow: 0 10px 12px rgba(13, 58, 95, 0.3);
}

.name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name img {
    width: 55px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.name p {
    font-size: 1.7rem;
}

#menu-burger {
    font-size: 3.6rem;
    cursor: pointer;
    color: var(--blue);
    transition: 0.2s ease-in-out;
}

#menu-burger:hover {
  transform: scale(1.15);
}

.nav-bottom{
    position: fixed;
    bottom: 2rem;
    background-color: var(--bg-nav-bottom);
    width: 90%;
    max-width: 330px;
    border-radius: 4rem;
    padding: 1.5rem 2.25rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}

.nav-link:hover {
  background: var(--active-link);
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  transition: background 0.3s;
}

.nav-link i {
  color: var(--light);
  font-size: 1.5rem;
}

.active-link {
  background: var(--active-link);
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* SECTION HOME */
.slider {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background-image: url(../img/australie.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(31, 31, 31, 0.9));
  z-index: 1;
}

.home-content {
  position: relative;
  z-index: 2;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

.home-left, .home-right {
  width: 100%;
}

#portrait-home {
  z-index: 9999;
}

.home-left h3 {
  font-size: 2rem;
  font-weight: 400;
}

.home-left h1 {
  font-size: 4rem;
  font-weight: 500;
}

.home-left span {
  color: var(--blue);
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.social-icons a {
  color: white;
  font-size: 3.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--blue);
}

.infos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.home-right img {
  border-top-left-radius: 35%;
  border-bottom-right-radius: 35%;
  width: 160px;
  height: auto;
  object-fit: cover;
  margin-top: 1rem;
}

/* SECTION ABOUT */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about .link {
  text-decoration: none;
  color: var(--blue);
}

.about, .skills, .portfolio, .contact {
  text-align: center;
  max-width: 800px;
}

.about-content h2, .skills h2, .portfolio h2, .contact h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.about-content h3 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.about-content p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--light);
  white-space: pre-line;
  margin-bottom: 4rem;
}

.char {
  display: inline-block;
  will-change: transform, opacity;
}

.end-section {
  max-width: 400px;
  width: 50%;
  border-bottom: 1px solid var(--blue);
  margin: 0 auto;
}


/* SECTION SKILLS */
.category-content {
  border-radius: 2rem;
  padding: 1rem;
  width: 100%;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 0 8px var(--blue);
}

.family-container {
  width: 100%;
  margin: 1.5rem;
  padding: 1.5rem;
}

.family-container > h4 {
  width: 100%;
  font-size: 1.7rem;
  font-style: oblique;
  font-weight: 500;
  color: var(--light);
  text-shadow: 2px 1px 10px var(--blue);
  margin: 1rem 0;
}


.langages-container,
.frameworks-container,
.bdd-container,
.methodo-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 2rem;
}


.item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

article > h4 {
  text-align: left;
  width: 90%;
  margin: auto;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 300;
}

.item-content i,
.item-content img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

h5 {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
}

.item-content i, .item-outils i, .item-skills i {
  font-size: 2.5rem;
  color: var(--blue)
}

.item-skills p {
  font-style: italic;
  width: 80%;
  margin: 1rem auto 0;
  font-size: 1.3rem;
  font-weight: 300;
}


/* outils */
.tools {
  flex-wrap: wrap;
  justify-content: space-between;
  padding-right: 2rem;
  padding-left: 2rem;
}

.item-outils{
  margin: 1rem;
  width: 15%;
}

.item-outils img {
  width: 2rem;
}

.colorize {
  filter: brightness(0) saturate(100%) invert(58%) sepia(57%) saturate(640%) hue-rotate(174deg) brightness(93%) contrast(92%);
}

/* soft skills */
.skills {
  flex-direction: column;
}

.item-skills {
  margin-top: 3rem;
  text-align: left;
}

.item-skills > div {
  width: 30%;
  text-align: center;
}

.item-skills:first-child {
  margin-top: 1rem;
}

.item-skills:last-child {
  margin-bottom: 1rem;
}

/* PROJETS */
.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative; 
}

.portfolio .portfolio-container:not(:last-child) {
  margin-bottom: 5rem;
}

.border-line {
  display: none;
}


.cards {
  border-radius: 2rem;
  padding: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 8px var(--blue);
  perspective: 1000px;
}

.content-card {
  transition: all 0.15s ease-out;
}

.card-inner {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

.image-frame {
  width: 100%;
  height: 450px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  margin: 0 auto 3rem;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cards > h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--light);
  text-align: left;
}

.cards i {
  color: var(--blue);
}

.div-btn {
  text-align: center;
  margin-top: 2rem;
}

.btn-modale {
  background-color: var(--bg);
  color: var(--light);
  font-size: 1.2rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border: 2px solid var(--blue);
  border-radius: 10px;
  transition: 0.2s ease-in-out;
  width: 50%;
}

.btn-modale:hover {
  cursor: pointer;
  box-shadow: var(--modal-hover-shadow);
  background-color: var(--modal-hover-bg);
}



/* MODALE GLOBALE */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  backdrop-filter: blur(3px);
}

/* CONTENU */
.modal-content {
  /* background-color: hsla(204, 32%, 16%, 0.9); */
  background-color: var(--bg);
  box-shadow: var(--modal-hover-shadow);
  margin: auto;
  padding: 1rem;
  border-radius: 1rem;
  width: 80%;
  max-height: 90vh;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-header {
  align-self: flex-end;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BOUTON FERMER */
.modale-close {
  color: var(--light);
  font-size: 2rem;
  cursor: pointer;
  transition: 0.1s ease-in-out;
}

.modale-close:hover {
  color: var(--blue);
  transform: scale(1.2);
}

/* SLIDER */
.modal-slider {
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  transition: min-height 0.3s ease;
  border-radius: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--blue);
}

#image-counter {
  color: var(--light);
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 1rem 0.2rem 1rem 0.2rem;
  text-align: center;
  font-weight: 500;
  width: 30%;
  min-width: 7.5rem;
}

.modal-slider img.slide {
  display: none;
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  margin: auto;
  object-fit: contain;
  border-radius: 1rem;
}

.modal-slider img.slide.active {
  display: block;
}

.slide {
    border: 1px solid var(--bg);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

#btn-previous,
#btn-next {
  background-color: var(--blue);
  color: var(--light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#btn-previous:hover,
#btn-next:hover {
  transform: scale(1.1);
}

/* DESCRIPTION */
.modal-description {
  margin-top: 2rem;
  min-height: 5rem;
  max-height: 20rem;
  overflow-y: scroll;
  padding: 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg);

  /* BARRE DE SCROLL */
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg);
  transition: scrollbar-color 0.3s ease;
}

.modal-description h3 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
  font-weight: 400;
}

/* Alignement icône + paragraphe */
.modal-description span {
  display: inline-block;
  width: 1.5rem;
  color: var(--blue);
}

.modal-description i {
  font-size: 1.2rem;
}

.modal-description p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.modal-description em {
  text-decoration: underline;
}

/* LISTES */
.modal-description ul {
  margin: 0.5rem 0 1.2rem 2rem;
  padding-left: 1rem;
}

.modal-description li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.modal-description li span {
  color: var(--blue);
  width: 1.5rem;
  flex-shrink: 0;
}


@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Section Contact */
.contact {
  text-align: center;
  margin-bottom: 15rem;
}

.contact-card {
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.25s ease;

  overflow: hidden;
  position: relative;
}

/* Bordures animées */
.card-left .border-left,
.card-right .border-right,
.card-left .border-top,
.card-right .border-bottom {
  position: absolute;
  background-color: var(--blue);
  z-index: 1;
}

/* Carte gauche */
.card-left .border-left {
  left: 0;
  bottom: 0;
  width: 2px;
  height: 0;
  border-radius: 0;
}

.card-left .border-top {
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 0;
}

/* Carte droite */
.card-right .border-right {
  right: 0;
  top: 0;
  width: 2px;
  height: 0;
  border-radius: 0;
}

.card-right .border-bottom {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0;
  border-radius: 0;
}







.contact-card:hover {
  transform: translateY(-6px);
}

.contact-card > i {
  font-size: 3.2rem;
  color: var(--light);
}

.contact-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.contact-button {
  text-decoration: none;
  background-color: var(--contact-btn);
  color: var(--bg);
  padding: 0.7rem 1.5rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.2s ease;
}

.contact-button i {
  color: var(--bg);
  font-size: 3rem;
}

.contact-button:hover {
  background-color: var(--contact-btn-hover);
  color: var(--light);
  box-shadow: 0px 0px 15px 3px var(--contact-btn-shadow);
  i{
    color: var(--light);
  }
}

.contact-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.contact-button:hover .contact-icon {
  transform: translateX(5px);
}


/* FOOTER */
footer {
  background-color: var(--bg);
  border-top: 1px solid var(--blue);
  color: var(--light);
  padding: 10rem 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 -10px 12px var(--footer-shadow);
  user-select: none;
}

footer .footer-txt p {
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer:hover .footer-txt p {
  opacity: 1;
  color: var(--light);
}








/* ****************************************************************** */

/* RESPONSIVE DESIGN */
@media screen and (max-width: 320px){
    .infos {
        flex-direction: column;
    }
}
 /* TABLET */
@media screen and (min-width: 955px) {
  .navigation {
    padding: 0 5rem;
  }
}

@media screen and (min-width: 750px) {

  .nav-mobile {
        display: none;
  }

  header {
    border-bottom: 1px solid var(--blue);
    box-shadow: 0 10px 12px var(--footer-shadow);
  }

  .navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .link-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }

  .link-top a {
    font-size: 1.7rem;
    color: var(--light);
    margin-left: 4rem;
    transition: color .2s ease-in-out;
    position: relative;
    text-align: center;
  }
  .link-top a::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      display: block;
      width: 0%;
      height: 1px;
      background: var(--blue);
      transition: width 0.2s ease-in-out;
  }
  .link-top a:hover, a.active {
      color: var(--blue);
  }
  .link-top a:hover::before,  a.active::before {
      width: 100%;
  }

  .about-content h2, .skills h2, .portfolio h2, .contact h2 {
  font-size: 3rem;
  }

  h5 {
    font-size: 1.7rem;
  }
  
  .infos {
    flex-direction: row;
  }
  
  .infos a {
    min-width: 19rem;
  }
  /* SECTION ABOUT */
  .about-content {
    text-align: justify;
  }

  .about-content h3 {
    font-size: 2.2rem;
  }

  .about-content p {
    font-size: 1.6rem;
  }

  /* SKILLS */
  article > h4 {
    font-size: 1.5rem;
  }

  .langages-container, .back-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .langages-container h4, .back-content h4 {
  font-size: 2rem;
  }

  .item-content > i {
    font-size: 2.7rem;
  }

  .item-outils i {
    font-size: 2.7rem;
  }

  .item-outils img {
    width: 2.5rem;
  }

  .item-skills p {
    font-size: 1.4rem;
  }

  /* PROJETS */
  .cards {
    max-width: 450px;
  }

  .portfolio-container {
    position: relative;
  }

  .border-line {
  position: absolute;
  display: block;
  top: 25%;
  height: 50%;
  width: 2px;
  background: var(--blue);
  z-index: 1;
  }

  .left-line {
    left: 0;
  }

  .right-line {
    right: 0;
  }
}


/* DESKTOP */
@media screen and (min-width: 1020px) {
  
}