:root {
  --bg: #131313;
  --text-color: #fffafa;
  --relief: #1c1c1c;
  --date: #5f5f5f;
  --radius: 16px;
  --transition: 0.3s ease;
  --cards: 0;
  --cardHeight: min(100vh, 40rem);
  --cardTopPadding: 1.2em;
  --cardMargin: 5vw;
}





/* ---------  GENERAL  --------- */
html {
  scroll-behavior: smooth;
  width: 100vw;
  align-items: center;
  justify-content: center;
  cursor: default;
}

body {
  background: var(--bg);
  display: flex;
  justify-content: center;
  height: 100vh;
  max-width: 100vw;
}

main {
  background: var(--bg);
  height: 100vh;
  max-width: 70vw;
}

#about, #skills, #portfolio, #contact {
  color: var(--text-color);
}

.title {
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
  font-size: 60px;
  padding-top: 10%;
  width: fit-content;
}

.glass {
  border: 0.063rem solid rgba(255, 255, 255, 0.26);
  background-color: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(0.238em);
  -webkit-backdrop-filter: blur(0.238em);
  box-shadow: 0 0.25rem 1.875rem rgba(0, 0, 0, 0.1);
}

ul {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
  padding: 0;
  font-family: "Outfit", sans-serif;
  width: fit-content;
}

p {
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
  font-weight: 100;
  font-size: 20px;
}

h3 {
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 50px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

h4 {
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 40px;
  margin-top: 3rem;
  margin-bottom: 1rem;
  width: fit-content;
}

#cursor {
  height: 40px;
  width: 40px;
  border-radius:50%;
  position: absolute;
  z-index: 1000;
  mix-blend-mode: difference;
  background-color: #fadde1;
  /* border: 2px solid white; */
  /* transition: all 100ms ease-out; */
  transform: translateX(-50%) translateY(-50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none; 
}





/* ---------  MENU  --------- */
.menu {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0.5rem;
  border-radius: 16px;
  display: flex;
  gap: 15px;
  z-index: 1000;
}

.link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 60px;
  height: 50px;
  border-radius: var(--radius);
  color: var(--text-color);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.link:hover,
.link:focus-visible {
  width: 150px;
  color: var(--relief);
  background: var(--text-color);
}

.link-icon {
  font-family: "Material Symbols Rounded";
  font-size: 26px;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.link:hover .link-icon {
  transform: scale(1.1);
}

.link-title {
  margin-left: 12px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  font-size: 15px;
}

.link:hover .link-title,
.link:focus-visible .link-title {
  opacity: 1;
  transform: translateX(0);
}





/* ---------  HOME  --------- */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
}

#home div {
  width: 100%;
}

h1 {
  color: var(--text-color);
  font-family: "Monsieur La Doulaise", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 250px;
  margin: 0;
  line-height: 0.9;
  text-align: left;
  width: fit-content;
}

#nom {
  color: var(--text-color);
  font-family: "Monsieur La Doulaise", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 220px;
  margin: 0;
  line-height: 0.9;
  text-align: left;
}

#home p {
  color: white;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  padding-bottom: 5px;
  text-align: right;
}

#home button { 
  padding: 5px 10px 5px 10px;
  width: auto;
  background-color: var(--text-color);
  border: none;
  border-radius: 10px;
  transition: 0.5s ease-in-out;
  z-index: 1000;
  margin-top: 50px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  display: block;
  margin-left: auto;
}

#home button:hover{
  transform: scale(1.02); 
}

#home button a {
  text-decoration: none;
  color: var(--relief);
  font-family: "Outfit", sans-serif;
  font-size: 20px;
}

.link-icon-home {
  font-family: "Material Symbols Rounded";
  font-size: 26px;
  flex-shrink: 0;
}

.cv-link {
  display: flex;
  align-items: center;
  gap: 5px;
}





/* ---------  CONTACT  --------- */
.link-icon-text {
  font-family: "Material Symbols Rounded";
  font-size: 26px;
  margin-right: 15px;
  flex-shrink: 0;
}

.link-contact {
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  overflow: hidden;
  font-size: 20px;
}

#linkedin {
  color: var(--text-color);
}

#contact {
  padding-bottom: 50px;
}

#contact-interest {
  font-size: 22px;
  font-weight: 400;
}

#reference {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

#reference div {
  background-color: var(--relief);
  border-radius: 10px;
  padding: 1rem 1.255rem 1.325rem 1.255rem;
  box-shadow: 0 0 1.875rem 0 rgba(0, 0, 0, 0.3);
  margin-bottom: 3em;
  transition: 0.5s ease-in-out;
}

#reference div:hover {
  transform: scale(1.01);
}

.email {
  font-family: "Outfit", sans-serif;
  color: var(--text-color);
  font-weight: 100;
}

.email-ref {
  font-size: 18px;
  text-align: right;
  /* display: block;
  margin-left: auto; */
}

iframe {
  border-radius: 10px;
}

span.num-tel {
  text-decoration: underline;
  color: var(--text-color);
}

.map-container {
  position: relative;
  padding-top: 42.85%; 
  height: 0;
  overflow: hidden;
  max-width: auto; 
  max-width: 100%;
}

.map-container iframe {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%; 
}





/* ---------  ABOUT ME  --------- */
.p-about {
  text-align: justify;
}

#about section {
  background-color: var(--relief);
  border-radius: 10px;
  padding: 1.355rem;
  box-shadow: 0 0 1.875rem 0 rgba(0, 0, 0, 0.3);
  margin-bottom: 3em;
  transition: 0.5s ease-in-out;
}

#about section:hover {
  transform: scale(1.01);
}

.work-date {
  border-radius: 2rem;
  padding: 0.230rem 0.925rem;
  width: fit-content;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin: 0;
}

.work-title {
  font-family: "Outfit", sans-serif;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 25px;
  margin-top: 0;
}

.work-loc {
  color: var(--date);
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 2rem;
}

#about section div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

#about section p:last-of-type {
  max-width: 80%;
  margin-bottom: 0;
}

#about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#about img {
  width: 400px;
  height: auto;
}

#presentation {
  width: 50%;
}




/* ---------  TECHNICAL SKILLS  --------- */
#skills h4 {
  margin-right: auto;
  margin-left: auto;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2em;
}

#skills section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
  padding-top: 1.5rem;
  width: 200px;
  height: 250px;
  border-radius: 20px;
  transition: transform 0.8s ease;
  margin-bottom: 1rem;
}

#skills section:hover {
  transform: scale(1.03);
  transition: transform 0.5s ease;
}

#skills section .img-skills {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

#skills section p {
  margin: 8px;
  font-size: 14px;
}

.desc {
  position: absolute;
  bottom: 8px;
  padding: 0px 8px 0px 8px;
  font-size: 14px;
}

.langage {
  font-weight: 400;
}

#speak {
  gap: 2em;
  margin-top: 3em;
}

#speak li {
  list-style: none;
  padding: 5px 15px;
  border-radius: 30px;
}

#soft-skills {
  background-color: var(--relief);
  border-radius: 10px;
  padding: 0.625rem 1.255rem 0.625rem 1.255rem;
  box-shadow: 0 0 1.875rem 0 rgba(0, 0, 0, 0.3);
  margin-bottom: 8em;
  transition: 0.5s ease-in-out;
}

#soft-skills:hover {
  transform: scale(1.01); 
}

.carousel-skills {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

#carousel-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 30px;
  transition: opacity 0.3s ease;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.skills-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  /* gap: 5rem; */
  margin-top: 2rem;
}

.carousel-btn {
  border-radius: 2rem;
  padding: 0.230rem 0.925rem;
  width: fit-content;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  color: var(--text-color);
  font-weight: 400;
  transition: 0.5s ease-in-out;
}

.carousel-btn:hover {
  background: var(--text-color);
  color: var(--relief);
  font-weight: 400;
  transform: scale(1.02);
}






/* ---------  NIVEAU SKILLS  --------- */
.progress-circle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.progress-circle svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg); 
}

.progress-circle circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.progress-circle .bg {
  stroke: rgba(255, 255, 255, 0.15);
}

.progress-circle .progress {
  stroke: var(--color-progress); 
  stroke-dasharray: 283; 
  stroke-dashoffset: 283;
}

.progress-circle .percent {
  position: absolute;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  color: var(--text-color);
  transform: rotate(0deg); 
}

.progress-circle .lang {
  font-size: 14px;
  color: var(--text-color);
  margin-top: 4px;
}

.skills-grid section:hover img,
.skills-grid section:hover p {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skills-grid section:hover .progress-circle {
  opacity: 1;
}

.skills-grid section:hover .progress {
  stroke-dashoffset: calc(283 - (var(--percent) * 283 / 100));
}





/* ---------  PORTFOLIO  --------- */
.container {
  width: 100%;
  margin: 1.25rem auto;
}

.cards {
  display: grid;
  grid-template-columns: minmax(auto, 100%);
  grid-template-rows: repeat(var(--cards), var(--cardHeight));
  gap: var(--cardMargin);
  padding-bottom: calc(var(--cards) * var(--cardTopPadding));
  place-content: center;
}

.card {
  position: sticky;
  top: 0;
  padding-top: calc(var(--index) * var(--cardTopPadding));
}

.card-content {
  position: relative;
  box-sizing: border-box;
  border-radius: 1.25rem;
  box-shadow: 0 0 1.875rem 0 rgba(0, 0, 0, 0.3);
  /* height: var(--cardHeight);
  transition: all 0.5s;
  overflow: hidden;
  min-height: 40rem;
  background-color: var(--relief); */

  height: var(--cardHeight);
  min-height: 40rem;
  background-color: var(--relief);
  box-shadow: 0 0 1.875rem 0 rgba(0, 0, 0, 0.3);
  transition: all 0.5s;
  overflow: hidden; 
  display: flex;
  flex-direction: column;
}

.card-info-wrapper {
  flex-shrink: 0; 
  padding-left: 0;
  padding-right: 0;
}

.card-content .header,
.card-content .body {
  padding: 0;
}

.card-content h5 {
  margin-bottom: 0.2rem;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 25px;
  margin-top: 1rem;
}

.card-content span {
  color: var(--date);
  font-size: 0.9rem;
}

.card-content p {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 70%;
  font-size: 16px; 
}

.card-content span.date {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.card-content .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.563em 0 1.563em;
}

.card-content .header .badge {
  display: flex;
  color: var(--relief);
  background: var(--text-color);
  border: 1px solid var(--relief);
  padding: 0.515rem 0.825rem;
  border-radius: 3.125em;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 14px;
  margin-top: 1rem;
}

.card-content .body {
  padding: 0 1.563rem;
}

.card-content .actions {
  /* position: absolute;
  right: 1.563rem;
  bottom: calc(70% + 1.5rem);  */

  position: relative; 
  right: auto;
  bottom: auto;
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem; 
  padding-right: 1.563rem;
  bottom: 1.5rem
}

.card-content .actions .see-more {
  color: var(--text-color);
  background: #303030;
  border:  0.063em solid var(--relief);
  cursor: pointer;
  display: flex;
  align-items: center;
  text-transform: capitalize;
  padding: 0.225em 0.22em 0.225em 0.8em;
  border-radius: 3.125rem;
  transition: 0.5s ease-in-out;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.card-content .actions .see-more a {
  text-decoration: none;
  color: var(--text-color);
}

.card-content .actions .see-more a:hover {
  color: var(--relief);
}

.card-content .actions .see-more:hover {
  border: 0.063em solid var(--relief);
  background: var(--text-color);
  transform: scale(1.02);
  color: var(--relief);
}

.card-content .actions .see-more svg {
  width: 1.443rem;
  background: var(--text-color);
  color: var(--relief);
  border-radius: 50%;
  padding: 0.375em;
  margin-left: 0.625em;
}

.card-content .slideshow-container {
  /* height: 72%;
  border-radius: 1.25rem;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  width: 100%; */


  position: relative; 
  bottom: auto;      
  width: 100%;        
  height: auto;       
  flex-grow: 1;   
  min-height: 0;      
  border-radius: 1.25rem;
  overflow: hidden;
}

.card-content .slideshow-container::before {
  position: absolute;
  content: "";
  inset: 0;
  background: rgba(0, 0, 0, 0.2); 
}

.card-content .slideshow-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.reverse .card-content .slideshow-container {
  position: relative;
  margin: 0.313em;
  width: auto;

  flex-grow: 1;    
  min-height: 0;
  height: auto;
}

.mySlides {
  display: none;
  height: 100%;
}

.info {
  position: absolute;
  bottom: 10px;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-color);
  font-size: 0.9rem;
}

.text {
  text-transform: capitalize;
  list-style: none;
  border-radius: 1rem;
  padding: 0.313rem 0.625rem;
}

.dots {
  top: 0;
  margin-top: 0.438em;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translatex(-50%);
}

.dot {
  cursor: pointer;
  height: 0.538rem;
  width: 0.538rem;
  margin: 0 0.313em;
  background-color: #999;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: var(--text-color);
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
}




/* ---------  FILTRE  --------- */
#filter-card li {
  cursor: pointer;
  list-style: none;
  padding: 5px 15px;
  border-radius: 30px;
  transition: 0.5s ease-in-out;
}

#filter-card li:hover {
  border: 0.063em solid var(--relief);
  background: var(--text-color);
  color: var(--relief);
  transform: scale(1.02);
}

#filter-card li.active {
  border: 0.063em solid var(--relief);
  background: var(--text-color);
  color: var(--relief);
}

.card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.9);
}














