/* ==========================================================================
   TYPOGRAPHIE LOCALE : POPPINS & MONTSERRAT
   ========================================================================== */
/* POPPINS */
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-Thin.ttf'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-Light.ttf'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-LightItalic.ttf'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-Medium.ttf'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-MediumItalic.ttf'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-SemiBold.ttf'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../static/fonts/ttf/Poppins-SemiBoldItalic.ttf'); font-weight: 600; font-style: italic; font-display: swap; }

/* MONTSERRAT */
@font-face { font-family: 'Montserrat'; src: url('../static/fonts/ttf/Montserrat-Light.ttf'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../static/fonts/ttf/Montserrat-Regular.ttf'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../static/fonts/ttf/Montserrat-Italic.ttf'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../static/fonts/ttf/Montserrat-Medium.ttf'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../static/fonts/ttf/Montserrat-Bold.ttf'); font-weight: 700; font-style: normal; font-display: swap; }

/* ==========================================================================
   VARIABLES CSS
   ========================================================================== */
:root {
  --primary-color: #d4b264;
  --secondary-color: #c8c3bc;
  --accent-color: #d9212a;
  --background-color: #1a1c1d;
  --font-color: #fff;
  --card-background-color: rgba(42, 44, 45, 0.65);
  --menu-background-color: rgba(50, 52, 53, 0.65);
  --section-background-color: rgba(30, 33, 34, 0.60);
  --overlay-background-color: rgba(0, 0, 0, 0.7);
  --hover-accent-color: #e6cd9c;
  --progress-completed-color: #888;
  --progress-type-color: #e8e6e3;
  --loader-job-color: #d8d8d8;
  --info-text-color: #565a5c;
  --cv-text-color: #222;
}

body.light-mode {
  --primary-color: #c49f50;
  --secondary-color: #4f4f4f;
  --background-color: #f0f2f5;
  --font-color: #333;
  --card-background-color: rgba(255, 255, 255, 0.60);
  --menu-background-color: rgba(255, 255, 255, 0.70);
  --section-background-color: rgba(255, 255, 255, 0.50);
  --overlay-background-color: rgba(255, 255, 255, 0.7);
  --hover-accent-color: #d6b885;
  --progress-completed-color: #bbb;
  --progress-type-color: #202020;
  --loader-job-color: #cccccc;
  --info-text-color: #777;
  --cv-text-color: #333;
}

/* ==========================================================================
   GENERAL
   ========================================================================== */
body {
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
  color: var(--secondary-color);
  height: 100%;
  margin: 0;
  padding: 0;
}

body::before {
content: '';
  position: fixed;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: url('../img/bg1.jpg') no-repeat center center;
  background-size: cover;
  filter: blur(3px);
  z-index: -2;
}

body.light-mode::before {
  filter: brightness(1.8);
}

.animated-gradient-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #b7a462, #c8c3bc, #009d9b, #d9212a, #ae9d67, #b7a462);
    background-size: 600% 600%;
    animation: gradientShift 45s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 20%; }
    25% { background-position: 80% 40%; }
    50% { background-position: 100% 60%; }
    75% { background-position: 20% 80%; }
}

/* ==========================================================================
   LIQUID BACKGROUND
   ========================================================================== */
.liquid-background {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   z-index: -2;
   background-color: var(--background-color);
   transition: background-color 0.5s ease;
   overflow: hidden;
}

.orb {
   position: absolute;
   border-radius: 50%;
   filter: blur(80px);
   opacity: 0.6;
   animation: floatOrb 25s infinite alternate ease-in-out;
}

.orb-1 {
   width: 60vw;
   height: 60vw;
   background: #d4b264;
   top: -15%;
   left: -15%;
   opacity: 0.4;
}

.orb-2 {
   width: 50vw;
   height: 50vw;
   background: var(--hover-accent-color);
   bottom: -10%;
   right: -10%;
   animation-delay: -5s;
   opacity: 0.3;
}

@keyframes floatOrb {
   0% { transform: translate(0, 0) scale(1); }
   100% { transform: translate(30px, 50px) scale(1.1); }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--background-color);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.3s ease;
}

.skip-link:focus {
  top: 6px;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  color: var(--background-color);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: none;
}

@media (max-width: 768px) {
  .back-to-top {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
  }
  
  .back-to-top.show {
    opacity: 0.7;
    visibility: visible;
    transform: translateY(0);
  }
  
  .section-vcardbody {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .ps-scrollbar-y-rail {
    display: none !important;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.color1 { color: var(--primary-color); }
.color2 { color: var(--secondary-color); }
.color3 { color: var(--accent-color); }

/* ==========================================================================
   LINKS & BUTTONS
   ========================================================================== */
a, 
a:visited,
.vcard-profile-description-ft-item p,
.vcard-profile-description-ft-item p a,
.content-text a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover, 
.vcard-profile-description-ft-item p a:hover,
.content-text a:hover {
    opacity: 0.7 !important;
}

body.light-mode a, 
body.light-mode a:visited,
body.light-mode .vcard-profile-description-ft-item p,
body.light-mode .vcard-profile-description-ft-item p a,
body.light-mode .content-text a {
    color: #1a1a1a !important;
}

body.light-mode a:hover, 
body.light-mode .vcard-profile-description-ft-item p a:hover,
body.light-mode .content-text a:hover {
    opacity: 0.7 !important;
}

.btn {
  font-weight: bold;
  color: var(--font-color);
  background: var(--primary-color);
  border-radius: 0;
  font-size: 12px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
  margin-bottom: 2px;
}

.btn:hover {
  background: #00000027;
  color: var(--font-color);
}

.btn i[aria-hidden="true"] {
  margin-right: 0.75em;
}

.btn-default {
  display: inline-block;
  background: var(--primary-color) !important;
  color: var(--section-background-color);
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  border: 0 !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
}

.btn-default:hover {
  color: var(--font-color);
}

.btn-default2 {
  font-size: 1.2rem;
  background: var(--background-color);
  font-weight: lighter;
}

.resume-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-buttons a {
  flex: 1 1 49%;
  text-align: center;
}

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */
#page-loader {
  width: 100%;
  height: 100%;
  background: var(--background-color);
  color: var(--primary-color);
  opacity: 0.99;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.loading-wrapper {
  width: 250px;
  position: fixed;
  top: 40%;
  left: 50%;
  margin-left: -125px;
}

.loader-name {
  color: var(--primary-color);
  opacity: 0.9;
  text-align: center;
  font-size: 32px;
  letter-spacing: -2px;
  font-weight: 200;
  margin-top: 12px;
  transition: all 0.4s ease-in-out;
}

.loader-job {
  margin-bottom: 40px;
  text-align: center;
  font-weight: 200;
  margin-top: 5px;
  color: var(--loader-job-color);
  font-size: 12px;
  transition: all 0.4s ease-in-out;
}

.loader {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid #fff;
  top: 50%;
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #fff;
  animation: loader-inner 2s infinite ease-in;
}

.loader-animation {
  text-align: center;
  transition: all 0.4s ease-in-out;
}

@keyframes loader {
  0%, 100% { transform: rotate(360deg); }
  25%, 50% { transform: rotate(180deg); }
}

@keyframes loader-inner {
  0%, 25%, 100% { height: 0%; }
  50%, 75% { height: 100%; }
}

/* ==========================================================================
   FOOTER & SOCIAL ICONS
   ========================================================================== */
.footer-social-icons {
  text-align: center;
}

.footer-social-icons a {
  color: var(--primary-color);
  display: inline-block;
  width: 30px;
  height: 30px;
  text-align: center;
  background: var(--menu-background-color);
  transition: all 0.3s ease-in-out;
  font-size: 14px;
  line-height: 30px;
  border-radius: 30px;
}

.footer-social-icons a:hover {
  color: var(--background-color);
  background: var(--primary-color);
}

.info {
  text-align: center;
  color: var(--info-text-color);
  font-size: 9px;
  margin-top: 3rem;
}

/* ==========================================================================
   CONTAINER & SECTIONS
   ========================================================================== */
.container {
  position: relative;
  padding-bottom: 80px;
  transition: all 0.3s ease-in-out;
}

@media (min-width:992px) {
  .container {
    min-height: 680px;
  }
}

.section-vcardbody {
  width: 99%;
  margin: 20px auto;
  overflow-y: scroll;
  background: var(--section-background-color);
  padding: 20px;
  transition: all 0.6s ease-in-out;
  border-radius: 0;
  box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.2);}

@media (min-width:1200px) {
  .section-vcardbody {
    position: absolute;
    margin-top: 4%;
    left: 30%;
    height: 100%;
    width: 40%;
    padding: 45px 45px 15px;
    border-radius: 15px;
  }
}

@media (min-width: 1400px) {
  .section-vcardbody {
    margin-top: 4%;
  }
}

.section-vcardbody-pgactive {
  left: 15%;
}

@media (min-width:1200px) {
  .section-page {
    z-index: 11;
    opacity: 0;
  }
}

.section-page-active {
  opacity: 1;
  z-index: 22;
  left: 56%;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width:1200px) {
  .section-page-active {
    margin-top: 4%;
    margin-left: 10px;
  }
}

@media (min-width: 1400px) {
  .section-page-active {
    margin-top: 4%;
  }
}

.ps-scrollbar-y-rail {
  opacity: 0.9 !important;
  right: 4px !important;
}

/* ==========================================================================
   MAIN MENU
   ========================================================================== */
.main-menu {
  width: 15%;
  position: absolute;
  top: 0;
  left: 15%;
  padding-right: 10px;
  margin-top: 4%;
  transition: all 0.6s ease-in-out;
  display: none;
}

@media (min-width:1200px) {
  .main-menu {
    display: block;
  }
}

@media (min-width: 1400px) {
  .main-menu {
    margin-top: 4%;
  }
}

.main-menu-pgactive {
  left: 0%;
}

.main-menu-list {
  margin: 0;
  padding: 0;
}

.main-menu-list li {
  padding: 0;
  margin: 0 0 5px 0;
  list-style: none;
}

.main-menu-list a {
  display: block;
  background: var(--menu-background-color);
  padding: 10px;
  color: var(--font-color);
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 30px;
}

.main-menu-list a:hover {
  color: var(--font-color);
  text-decoration: none;
}

.main-menu-list a.menuActive {
  text-decoration: none;
  background: var(--primary-color);
}

.main-menu-list i[aria-hidden="true"]:not(.icon) {
  margin-right: 0.75em;
}

/* ==========================================================================
   HOME SECTION
   ========================================================================== */
.section-home {
  z-index: 88;
  opacity: 1;
  overflow-y: auto;
}

.profileActive {
  opacity: 1 !important;
}

.vcard-profile-pic {
  width: 200px;
  height: 200px;
  overflow: hidden;
  margin: 0 auto 20px;
  position: relative;
}

.vcard-profile-pic img {
  width: 100%;
  border-radius: 100%;
  border: 6px solid var(--primary-color);
  transition: all 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.vcard-profile-description {
  text-align: center;
}

.profile-title {
  text-align: center;
  font-weight: bold;
  margin-top: 0;
  font-size: 36px;
  letter-spacing: -2px;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.profile-subtitle {
  text-align: center;
  margin-top: 0;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
}

.vcard-profile-description-text {
  padding: 10px 10px 10px 10px;
  margin-bottom: 5px;
}

.vcard-profile-description-text p {
  font-size: 13px;
}

.hr1 {
  border: none;
  height: 1px;
  width: 100%;
  background: url('../img/hr1.png') no-repeat center center;
  margin: 10px 0;
  opacity: 0.5;
}

.vcard-profile-description-ft-item {
  margin-bottom: 15px;
  border-radius: 30px;
  padding: 10px;
}

.vcard-profile-description-ft-item p {
  margin-bottom: 0;
  color: var(--primary-color);
  font-size: 12px;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
.section-title {
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 22px;
  line-height: 26px;
  font-weight: bold;
  margin-top: 0;
  border-bottom: 1px solid #c8c3bc47;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

.section-title i[aria-hidden="true"],
.section-title2 i[aria-hidden="true"] {
  margin-right: 0.75em;
}

.section-title2 {
  font-weight: bold;
  color: var(--secondary-color);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -1px;
  padding: 5px 15px 20px;
  border-radius: 15px 15px 0 0;
  margin-bottom: -15px;
}

.resume-item {
  padding: 15px;
  margin-bottom: 15px;
  background-color: var(--card-background-color);
  border-radius: 15px;
}

.section-item-title-1 {
  font-weight: bold;
  color: var(--secondary-color);
  padding-left: 0;
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -1px;
}

.section-item-title-2 {
  font-weight: bold;
  color: var(--secondary-color);
  padding-left: 0;
  margin: 0 0 8px 0;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -1px;
  border-bottom: 1px solid rgba(140, 140, 140, 0.2);
  padding-bottom: 5px;
}

.graduation-company, .graduation-date {
  width: fit-content;
  font-size: 10px;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
}	

.graduation-company {
  background-color: var(--secondary-color);
  color: var(--section-background-color);
  margin-right: 1rem;
  font-weight: 600;
}

.graduation-date {
  background-color: var(--section-background-color);
}

.graduation-description p {
  font-size: 12px;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-list {
  padding: 0;
  margin: 0 0 40px 0;
  list-style: none;
}

.progress {
  position: relative;
  height: 25px;
  margin-bottom: 10px;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
}

.progress > .progress-type {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--progress-type-color);
  padding: 3px 30px 2px 10px;
  top: 50%;
  transform: translateY(-50%);
}

.progress-bar {
  height: 100%;
  display: flex;
  align-items: center;
  background: none !important;
  transition: width 0.6s ease;
  font-weight: 600;
  line-height: 18px;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.skill-item:nth-child(odd) .progress-bar {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

.skill-item:nth-child(even) .progress-bar {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .progress {
  background: rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light-mode .progress-bar {
  color: #333 !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .skill-item:nth-child(odd) .progress-bar {
  background-color: rgba(255, 255, 255, 0.4) !important;
}

body.light-mode .skill-item:nth-child(even) .progress-bar {
  background-color: rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.project-item {
  padding: 0;
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  opacity: 1;
  transition: all 0.8s ease-in-out;
  transform: translateY(0);
}

.project-item a {
  cursor: url('../img/projects2.cur'), pointer !important;
  border-radius: 15px;
}

.project-thumbnail {
  display: block;
  background-size: cover;
  background-position: center center;
  height: 250px;
  text-align: center;
  color: var(--font-color);
  padding: 15px;
}

.project-thumbnail:hover {
  color: var(--font-color);
}

.project-thumbnail:hover .project-description-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.project-thumbnail:hover .project-title,
.project-thumbnail:hover span.see-more {
  transform: translateY(0);
}

.project-description-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  transition: all 0.4s ease-in-out;
  color: var(--font-color);
  position: relative;
  background: var(--overlay-background-color);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.project-description {
  position: absolute;
  top: 50%;
  margin-top: -55px;
  width: 100%;
}

.project-title {
  text-transform: uppercase;
  font-size: 20px;
  transform: translateY(10px);
  transition: all 0.4s ease-in-out;
}

.project-title:after {
  content: '';
  display: block;
  height: 1px;
  border-bottom: 1px solid var(--background-color);
  width: 50%;
  margin: 10px auto;
  opacity: 0.5;
}

span.see-more {
  text-transform: lowercase;
  letter-spacing: 3px;
  font-size: 12px;
  transition: all 0.4s ease-in-out;
  transform: translateY(10px);
}

span.details {
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 1px;
  font-size: 10px;
  transition: all 0.4s ease-in-out;
  transform: translateY(10px);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-subtitle-1 {
  font-size: 14px;
  letter-spacing: -1px;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--primary-color)1c;
}

.contact-subtitle-1:first-child {
  margin-top: 0;
}

.contact-infos p {
  font-size: 13px;
  line-height: 16px;
}

/* ==========================================================================
   THEME & LANGUAGE SWITCHES
   ========================================================================== */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.theme-switch {
  display: inline-block;
  width: 60px;
  height: 30px;
  position: relative;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--card-background-color);
  border-radius: 30px;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--section-background-color);
}

.icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  transition: opacity 0.3s ease-in-out;
  margin-right: 0;
}

.sun-icon {
  left: 1px;
  opacity: 0.2;
}

.moon-icon {
  right: 4px;
  opacity: 1;
}

input:checked + .slider .moon-icon {
  opacity: 0.15;
}

input:checked + .slider .sun-icon {
  opacity: 1;
}

.language-switch-wrapper {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 100;
}

.language-switch {
  display: inline-block;
  width: 60px;
  height: 30px;
  position: relative;
}

.language-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--card-background-color);
  border-radius: 30px;
  transition: 0.4s;
}

.lang-flag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: opacity 0.3s ease-in-out;
}

.fr-flag {
  left: 6px;
  opacity: 1;
}

.en-flag {
  right: 6px;
  opacity: 0.3;
}

input:checked + .lang-slider .fr-flag {
  opacity: 0.3;
}

input:checked + .lang-slider .en-flag {
  opacity: 1;
}

input:checked + .lang-slider {
  background-color: var(--section-background-color);
}

[data-translate] {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-changing [data-translate] {
  opacity: 0;
  transform: translateY(-5px);
}

/* Effet miroir avec couverture complète du fond */
.mirror-mode {
  transform: scaleX(-1);
  direction: rtl;
  height: 100%;
}
/* Revenir au comportement texte normal dans le mode miroir */
.mirror-mode * {
  direction: ltr;
}

body.mirror-mode {
    transform: scaleX(-1);
    overflow-x: hidden;
    min-height: 100vh;
    /* Important : Force le navigateur à gérer le scroll verticalement proprement */
    overflow-y: auto; 
}

/* CORRECTIF DES FONDS (Image floue + Liquide) */
/* Quand le body est transformé, "fixed" agit comme "absolute". */
/* On doit réinitialiser les positions pour ne pas dépasser. */
body.mirror-mode::before,
body.mirror-mode .liquid-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;  
    z-index: -2;
}

/* ==========================================================================
   GLASS MORPHISM EFFECTS
   ========================================================================== */
.vcard-profile,
.section-vcardbody,
.resume-item,
.skill-item,
.btn,
.btn-default,
button[type="submit"],
.main-menu ul li a,
.form-control {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  box-shadow:
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px -1px 0 0 rgba(0, 0, 0, 0.1),
    0 5px 35px -10px rgba(0, 0, 0, 0.1) !important;
  z-index: 1;
  --mouse-x: -1000px;
  --mouse-y: -1000px;
}

.vcard-profile-description-ft-item {
  box-shadow:
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px -1px 0 0 rgba(0, 0, 0, 0.1),
    0 5px 35px -10px rgba(0, 0, 0, 0.15) !important;
}

.vcard-profile::after,
.section-vcardbody::after,
.resume-item::after,
.skill-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.4), transparent 40%);
  padding: 2px;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: destination-out;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vcard-profile:hover::after,
.section-vcardbody:hover::after,
.resume-item:hover::after,
.skill-item:hover::after {
  opacity: 1;
}

body:not(.light-mode) .vcard-profile::after,
body:not(.light-mode) .section-vcardbody::after {
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.3), transparent 40%);
}

.footer-social-icons a,
.slider,
.lang-slider {
  background-color: transparent !important;
  background-image: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.slider,
.lang-slider {
  position: absolute !important;
  display: block !important;
  border-radius: 34px !important;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  margin: 0 5px;
  font-size: 16px;
}

.main-menu ul li a,
.btn,
.btn-default,
button[type="submit"],
.footer-social-icons a,
.slider,
.lang-slider {
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  transform-origin: center center;
  color: var(--font-color) !important;
  text-decoration: none !important;
}

.main-menu ul li a:hover,
.main-menu ul li.active a,
.btn:hover,
.btn-default:hover,
button[type="submit"]:hover,
.footer-social-icons a:hover,
.switch-cont:hover .slider,
.language-switch:hover .lang-slider,
label:hover .slider {
  transform: scale(1.05) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)) !important;
  box-shadow:
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.15) !important;
  color: var(--font-color) !important;
}

body:not(.light-mode) .vcard-profile,
body:not(.light-mode) .section-vcardbody,
body:not(.light-mode) .main-menu ul li a {
  background: linear-gradient(135deg, rgba(40, 44, 45, 0.6) 0%, rgba(20, 20, 20, 0.5) 100%) !important;
  box-shadow:
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px -1px 0 0 rgba(0, 0, 0, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body:not(.light-mode) .vcard-profile-description-ft-item,
body:not(.light-mode) .resume-item,
body:not(.light-mode) .skill-item,
body:not(.light-mode) .btn,
body:not(.light-mode) .btn-default,
body:not(.light-mode) button[type="submit"],
body:not(.light-mode) .form-control {
  background: linear-gradient(135deg, rgba(40, 44, 45, 0.3) 0%, rgba(20, 20, 20, 0.25) 100%) !important;
  box-shadow:
    inset 1px 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px -1px 0 0 rgba(0, 0, 0, 0.1),
    0 10px 40px -10px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body:not(.light-mode) .main-menu ul li a:hover,
body:not(.light-mode) .btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */
h1, h2, h3, h4, h5,
.section-title,
.section-title2,
.vcard-profile-title {
  font-family: 'Poppins', sans-serif !important;
}

h1 .color1,
h2 .color1,
.vcard-profile-title .color1 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-style: normal;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  background: none !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6) !important;
  text-shadow: none !important;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

body.light-mode h1 .color1,
body.light-mode h2 .color1,
body.light-mode .vcard-profile-title .color1 {
  -webkit-text-stroke: 1px rgba(60, 60, 60, 0.6) !important;
}

.vcard-profile-pic img {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 50% !important;
}

/* ==========================================================================
   Z-INDEX MANAGEMENT
   ========================================================================== */
.section-home {
  z-index: 40 !important;
}

.section-page-active {
  z-index: 30 !important;
}

.main-menu,
.vcard-profile,
.theme-switch-wrapper,
.language-switch {
  z-index: 100 !important;
}

.vcard-profile::after,
.section-vcardbody::after {
  z-index: 2;
}

/* ==========================================================================
   FOCUS STATES (ACCESSIBILITY)
   ========================================================================== */
a:focus, 
a:active,
button:focus, 
button:active,
.btn:focus, 
.btn:active,
.main-menu ul li a:focus, 
.main-menu ul li a:active,
input:focus, 
textarea:focus, 
select:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.btn:focus, 
button[type="submit"]:focus,
.main-menu ul li a:focus {
    box-shadow: 
        inset 1px 1px 0 0 rgba(255, 255, 255, 0.3),
        inset -1px -1px 0 0 rgba(0, 0, 0, 0.1),
        0 5px 35px -10px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (min-width: 1280px) {
  .container {
    width: 90%;
    min-height: 980px;
  }
}

.main-menu-list li {
  margin-bottom: 1rem;
}

.main-menu-list a {
  font-size: 1.5rem;
}

.footer-social-icons a {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  line-height: 3rem;
  width: 40px;
  height: 40px;
}

.profile-title {
  font-size: 5rem;
}

.profile-subtitle {
  font-size: 2rem;
}

.vcard-profile-description-text p {
  font-size: 1.6rem;
  padding: 2rem;
}

.vcard-profile-description-ft-item p {
  font-size: 1.8rem;
}

.vcard-profile-description-ft-item {
  margin-bottom: 3rem;
  padding: 1rem;
}

.info {
  font-size: 1rem;
  margin-top: 3rem;
}

.btn-default2 {
  font-size: 1.2rem;
}

.section-title {
  font-size: 3rem;
  line-height: 2rem;
  padding-bottom: 1rem;
  margin-bottom: 5rem;
}

.section-title2 {
  font-size: 2.5rem;
  line-height: 5rem;
}

.section-item-title-1 {
  font-size: 2.5rem;
  line-height: 4rem;
  margin-bottom: 1rem;
}

.graduation-company, .graduation-date {
  font-size: 1.1rem;
}

h5 {
  font-size: 2rem;
}

h4, h5, h6 {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.graduation-description p {
  font-size: 1.5rem;
  line-height: 2.5rem;
}

p {
  margin: 0 0 2rem;
}

.resume-item {
  padding: 5rem;
}

@media (min-width: 1200px) {
  .section-vcardbody {
    padding: 8rem 8rem 1rem;
  }
}

@media (max-height: 900px) {
  .main-menu, 
  .section-vcardbody, 
  .section-page-active {
    margin-top: 2%;
  }
  
  .container {
    width: 95%;
    min-height: 770px;
  }
  
  .vcard-profile-description-text p {
    font-size: 1.6rem;
    padding: 1rem;
  }
  
  .section-vcardbody {
    padding: 2rem 2rem 1rem;
  }
  
  .info {
    font-size: 1rem;
    margin-top: 2rem;
  }
  
  .section-page-active {
    left: 56%;
  }
}

.section-item-title-2 {
  line-height: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-size: 2rem;
}

.progress > .progress-type {
  font-size: 1.5rem;
}

.progress {
  height: 3.5rem;
  margin-bottom: 1.5rem;
}

.project-title {
  font-size: 3rem;
}

.project-item {
  margin-bottom: 3rem;
}

.project-thumbnail {
  height: 50rem;
  padding: 3rem;
}

span.see-more {
  font-size: 1.8rem;
}

span.details {
  font-size: 2rem;
}

.project-description {
  top: 45%;
}

.contact-subtitle-1 {
  font-size: 2rem;
  padding-bottom: 1rem;
}

.contact-infos p {
  font-size: 1.6rem;
  line-height: 3rem;
}

.main-menu-list a {
  padding-left: 2rem;
}

.vcard-profile-pic {
  margin-bottom: 2rem;
}

.section-vcardbody {
  border-radius: 25px;
}

@media (max-width: 1350px) {
  .main-menu-list a > .fa-solid {
    display: none;
  }
}

@media (max-width: 800px) {
  .resume-item {
    padding: 1rem;
  }
  
  .btn-default2 {
    font-size: 1.2rem;
  }
  
  .progress > .progress-type {
    font-size: 1.3rem;
    padding: 3px 0px 2px 5px;
  }
  
  .project-thumbnail {
    height: 30rem;
    padding: 1rem;
  }
  
  span.details {
    font-size: 1.3rem;
  }
  
  .project-title {
    font-size: 2.5rem;
  }
  
  span.see-more {
    font-size: 1.6rem;
  }
  
  .section-title2 {
    font-size: 2.5rem;
    line-height: 3rem;
    padding: 15px 15px 30px;
  }
  
  .section-item-title-1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  
  .btn-default {
    width: 100%;
  }
  
  .progress {
    height: 4.5rem;
    margin-bottom: 1.5rem;
  }
}