/* ===========================
   1. Reset & Base
   =========================== */
*,*::after,*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: inherit;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
@media only screen and (max-width: 75em) { html { font-size: 59%; } }
@media only screen and (max-width: 56.25em) { html { font-size: 56%; } }
@media only screen and (min-width: 112.5em) { html { font-size: 65%; } }
body {
  box-sizing: border-box;
  position: relative;
  line-height: 1.5;
  font-family: 'Source Sans Pro', sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
}
a { text-decoration: none; color: inherit; }
li { list-style: none; }
input:focus, button:focus, a:focus, textarea:focus { outline: none; }
button { border: none; cursor: pointer; }
textarea { resize: none; }

/* ===========================
   2. Typographie & Titres
   =========================== */
.heading-primary {
  font-size: 6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  color: #111;
  font-weight: 800;
}
@media only screen and (max-width: 37.5em) { .heading-primary { font-size: 4.5rem; } }
.heading-sec__mb-bg { margin-bottom: 11rem; }
@media only screen and (max-width: 56.25em) { .heading-sec__mb-bg { margin-bottom: 8rem; } }
#projects .heading-sec__mb-bg { margin-bottom: 5rem; }
@media only screen and (max-width: 56.25em) { #projects .heading-sec__mb-bg { margin-bottom: 3.8rem; } }
.heading-sec__mb-med { margin-bottom: 9rem; }
@media only screen and (max-width: 56.25em) { .heading-sec__mb-med { margin-bottom: 8rem; } }
.heading-sec__main {
  display: block;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  color: #111;
}
.heading-sec__main--lt { color: #111; font-weight: 800; }
.heading-sec__main--lt::after { content: ''; background: #7843E9 !important; }
.heading-sec__main::after {
  content: '';
  position: absolute;
  top: calc(100% + 1.5rem);
  height: 5px;
  width: 3rem;
  background: #7843E9;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}
@media only screen and (max-width: 37.5em) { .heading-sec__main::after { top: calc(100% + 1.2rem); } }
.heading-sec__sub {
  display: block;
  text-align: center;
  color: #555;
  font-size: 2rem;
  font-weight: 500;
  max-width: 80rem;
  margin: auto;
  line-height: 1.6;
}
@media only screen and (max-width: 37.5em) { .heading-sec__sub { font-size: 1.8rem; } }
.heading-sec__sub--lt { color: #333; }
.heading-sm { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; }

/* ===========================
   3. Layout général
   =========================== */
.main-container { max-width: 120rem; margin: auto; width: 92%; }
.sec-pad { padding: 12rem 0; }
@media only screen and (max-width: 56.25em) { .sec-pad { padding: 8rem 0; } }
#about.sec-pad { padding-bottom: 6rem; }
#projects.sec-pad { padding-top: 6rem; }
@media only screen and (max-width: 56.25em) {
  #about.sec-pad { padding-bottom: 2rem; }
  #projects.sec-pad { padding-top: 2rem; }
}
.d-none { display: none; }

/* ===========================
   4. Boutons
   =========================== */
.btn {
  background: #7843E9;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  font-weight: 700;
  border-radius: 5px;
  box-shadow: 0 5px 15px 0 rgba(0,0,0,0.15);
  transition: transform .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--bg { padding: 1.5rem 8rem; font-size: 2rem; }
.btn--med { padding: 1.5rem 5rem; font-size: 1.6rem; }
.btn--theme { background: #7843E9; color: #fff; }
.btn--theme-inv {
  color: #111;
  background: #fff;
  border: 2px solid #7843E9;
  box-shadow: none;
  padding: calc(1.5rem - 2px) calc(5rem - 2px);
}

/* ===========================
   5. Header & Navigation
   =========================== */
.header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 10px 100px rgba(0,0,0,0.1);
}
.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5rem;
}
@media only screen and (max-width: 56.25em) { .header__content { padding: 0 2rem; } }
.header__logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #333;
  transition: color .3s;
}
.header__logo-container:hover { color: #7843E9; }
.header__logo-img-cont {
  width: 5rem;
  height: 5rem;
  border-radius: 50px;
  overflow: hidden;
  margin-right: 1.5rem;
  background: #7843E9;
}
@media only screen and (max-width: 56.25em) { .header__logo-img-cont { width: 4.5rem; height: 4.5rem; margin-right: 1.2rem; } }
.header__logo-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.header__logo-sub { font-size: 1.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.header__main { display: flex; align-items: center; }
.header__links { display: flex; flex-grow: 1; }
@media only screen and (max-width: 37.5em) { .header__links { display: none; } }
.header__link {
  padding: 2.2rem 3rem;
  display: inline-block;
  font-size: 1.6rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color .3s;
}
.header__link:hover { color: #7843E9; }
@media only screen and (max-width: 56.25em) { .header__link { padding: 3rem 1.8rem; font-size: 1.5rem; } }
.header__main-ham-menu-cont { display: none; width: 3rem; padding: 2.2rem 0; }
@media only screen and (max-width: 37.5em) { .header__main-ham-menu-cont { display: block; } }
.header__main-ham-menu { width: 100%; }
.header__main-ham-menu-close { width: 100%; }
.header__sm-menu {
  background: #fff;
  position: absolute;
  width: 100%;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.1);
}
.header__sm-menu--active { visibility: hidden; opacity: 0; }
@media only screen and (max-width: 37.5em) { .header__sm-menu--active { visibility: visible; opacity: 1; } }
.header__sm-menu-link a {
  display: block;
  text-decoration: none;
  padding: 2.5rem 3rem;
  font-size: 1.6rem;
  color: #333;
  text-align: right;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color .3s;
}
.header__sm-menu-link a:hover { color: #7843E9; }
.header__sm-menu-link:first-child a { border-top: 1px solid #eee; }
.header__sm-menu-link-last { border-bottom: 0; }

/* ===========================
   6. Switch de langue (Header)
   =========================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch-btn {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: #7843E9;
  color: #fff;
  margin: 0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(30,32,48,0.10);
  outline: none;
}
.lang-switch-btn:focus { outline: 2px solid #fff; }
.lang-switch-btn[style*="font-weight: bold"],
.lang-switch-btn.active {
  box-shadow: 0 4px 16px rgba(30,32,48,0.18);
  transform: scale(1.08);
  background: #fff;
  color: #7843E9;
  border: 2px solid #7843E9;
}
@media (max-width: 700px) {
  .lang-switch-btn { font-size: 1rem; padding: 8px 14px; }
  .lang-switch { gap: 8px; }
}

/* ===========================
   7. Sections principales
   =========================== */
/* Home Hero */
.home-hero {
  color: #fff;
  background: linear-gradient(to right, rgba(245,245,245,0.8), rgba(245,245,245,0.8)),url(../assets/svg/common-bg.svg);
  background-position: center;
  height: 100vh;
  min-height: 80rem;
  max-height: 120rem;
  position: relative;
}
@media only screen and (max-width: 37.5em) { .home-hero { height: unset; min-height: unset; } }
.home-hero__socials {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: rgba(100,100,111,0.2) 0px 7px 29px 0px;
  padding: .5rem;
}
@media only screen and (max-width: 56.25em) { .home-hero__socials { display: none; } }
.home-hero__mouse-scroll-cont {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
}
@media only screen and (max-width: 37.5em) { .home-hero__mouse-scroll-cont { display: none; } }
.home-hero__social { width: 5rem; }
.home-hero__social-icon-link {
  width: 100%;
  display: block;
  padding: 1rem;
  transition: background .3s;
  border-radius: 5px;
}
.home-hero__social-icon-link:hover { background: rgba(120,67,233,0.2); }
.home-hero__social-icon-link--bd-none { border-bottom: 0; }
.home-hero__social-icon { width: 100%; }
.home-hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90rem;
  width: 92%;
}
@media only screen and (max-width: 37.5em) { .home-hero__content { padding: 19rem 0 13rem 0; margin: auto; position: static; transform: translate(0, 0); } }
.home-hero__info { margin: 3rem auto 0 auto; max-width: 80rem; }
.home-hero__cta { margin-top: 5rem; text-align: center; }

/* About */
.about { background: #fafafa; }
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10rem;
  align-items: start;
}
@media only screen and (max-width: 56.25em) { .about__content { grid-template-columns: 1fr; grid-gap: 8rem; } }
.about__content-title { font-weight: 700; font-size: 2.8rem; margin-bottom: 3rem; }
@media only screen and (max-width: 37.5em) { .about__content-title { font-size: 2.4rem; } }
.about__content-details-para { font-size: 1.8rem; color: #666; max-width: 60rem; line-height: 1.7; margin-bottom: 1rem; }
.about__content-details-para--hl { font-weight: 700; margin: 0 3px; }
.about__content-details-para:last-child { margin-bottom: 4rem; }
.about__content-details-para a { text-decoration: underline; font-weight: 700; color: #7843E9; margin: 0 3px; }

/* Projects — grille de cartes + modale */
.projects { background: #f9f9fb; }
.projects__content { margin-top: 2rem; }
#projects .projects__content { margin-top: 0.4rem; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  gap: 2.4rem;
}
.projects__card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.projects__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(120, 67, 233, 0.14);
}
.projects__card--featured {
  border-color: rgba(120, 67, 233, 0.28);
  box-shadow: 0 10px 36px rgba(120, 67, 233, 0.12);
}
.projects__card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececf0;
}
.projects__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.projects__card:hover .projects__card-img { transform: scale(1.03); }
.projects__card-body {
  padding: 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}
.projects__card-badge {
  align-self: flex-start;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7843E9;
  background: rgba(120, 67, 233, 0.11);
  padding: 0.4rem 0.85rem;
  border-radius: 5px;
}
.projects__card-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.28;
  color: #111;
  margin: 0;
  flex: 1;
}
 .projects__card-summary {
  margin: -0.3rem 0 0.2rem;
  font-size: 1.45rem;
  color: #555;
  line-height: 1.5;
}
@media only screen and (max-width: 37.5em) {
  .projects__card-title { font-size: 1.85rem; }
}
.projects__card-cta {
  align-self: flex-start;
  margin-top: auto;
}

.projects-modal[hidden] { display: none !important; }
.projects-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.projects-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.58);
  backdrop-filter: blur(4px);
}
.projects-modal__panel {
  position: relative;
  width: 100%;
  max-width: 95rem;
  max-height: min(90vh, 58rem);
  background: #fff;
  border-radius: 20px;
  padding: 4rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(120, 67, 233, 0.15);
  z-index: 1;
  overflow: hidden;
}
.projects-modal__close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.projects-modal__close:hover {
  background: #7843E9;
  color: #fff;
  transform: rotate(90deg);
}
.projects-modal__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  height: 100%;
  align-items: stretch;
}
.projects-modal__media {
  border-radius: 12px;
  overflow: hidden;
  background: #ececf0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.projects-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.projects-modal__info {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding-right: 1.5rem;
}
/* Scrollbar personnalisé pour l'info modale */
.projects-modal__info::-webkit-scrollbar {
  width: 6px;
}
.projects-modal__info::-webkit-scrollbar-track {
  background: transparent;
}
.projects-modal__info::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 99px;
}
.projects-modal__info::-webkit-scrollbar-thumb:hover {
  background: #7843E9;
}
.projects-modal__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #111;
}
.projects-modal__desc {
  font-size: 1.6rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 2.4rem;
}
.projects-modal__actions {
  margin-top: auto;
  padding-top: 1rem;
}
.projects-modal__link {
  display: inline-block;
  text-align: center;
}

@media only screen and (max-width: 56.25em) {
  .projects-modal__panel {
    max-width: 58rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2rem;
  }
  .projects-modal__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    height: auto;
  }
  .projects-modal__info {
    overflow-y: visible;
    height: auto;
    padding-right: 0;
  }
}
@media only screen and (max-width: 37.5em) {
  .projects-modal__title { font-size: 2rem; }
  .projects-modal__desc { font-size: 1.5rem; }
}
/* Pagination des Projets */
.projects__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 5rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--theme-btn-inactive-bg) !important;
  border: 1px solid var(--theme-btn-inactive-border) !important;
  color: var(--theme-text-muted) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--theme-btn-sec-hover-bg) !important;
  border-color: var(--theme-btn-sec-border) !important;
  color: var(--theme-text-main) !important;
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(120, 67, 233, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Contact */
.contact {
  position: relative;
  background: var(--theme-contact-bg) !important;
  border-top: 1px solid var(--theme-border) !important;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--theme-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--theme-grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}
.contact > * {
  position: relative;
  z-index: 2;
}
.contact__form-container {
  box-shadow: rgba(100,100,111,0.2) 0px 7px 29px 0px;
  background: white;
  padding: 4rem;
  margin-top: 6rem;
  max-width: 80rem;
  text-align: right;
  width: 95%;
  border-radius: 5px;
  margin: 5rem auto 0 auto;
}
@media only screen and (max-width: 37.5em) { .contact__form-container { padding: 3rem; } }
.contact__form-field { margin-bottom: 4rem; }
@media only screen and (max-width: 37.5em) { .contact__form-field { margin-bottom: 3rem; } }
.contact__form-label { color: #666; font-size: 1.4rem; letter-spacing: 1px; font-weight: 700; margin-bottom: 1rem; display: block; text-align: left; }
.contact__form-input {
  color: #333;
  padding: 2rem;
  width: 100%;
  border: 1px solid #ebebeb;
  font-size: 1.6rem;
  letter-spacing: 0px;
  background: #f0f0f0;
  border-radius: 5px;
  font-weight: 600;
}
.contact__form-input::placeholder { color: #999; font-weight: 600; font-size: 1.6rem; }
.contact__btn { width: 30%; padding: 2rem 4rem; font-size: 1.6rem; }
@media only screen and (max-width: 37.5em) { .contact__btn { width: 100%; } }

/* ===========================
   8. Footer
   =========================== */
.main-footer { background: #000; color: #fff; }
.main-footer__upper { display: flex; justify-content: space-between; padding: 8rem 0; }
@media only screen and (max-width: 56.25em) { .main-footer__upper { padding: 6rem 0; } }
@media only screen and (max-width: 37.5em) { .main-footer__upper { display: block; } }
.main-footer__row-1 { order: 2; }
@media only screen and (max-width: 56.25em) { .main-footer__row-1 { margin-bottom: 5rem; } }
.main-footer__row-2 { width: 40%; order: 1; max-width: 50rem; }
@media only screen and (max-width: 56.25em) { .main-footer__row-2 { width: 100%; } }
.main-footer__short-desc { margin-top: 2rem; color: #eee; font-size: 1.5rem; line-height: 1.7; }
.main-footer__social-cont { margin-top: 2rem; }
.main-footer__icon { margin-right: 1rem; width: 2.5rem; }
.main-footer__icon--mr-none { margin-right: 0; }
.main-footer__lower { padding: 4rem 0; border-top: 1px solid #444; color: #eee; font-size: 1.2rem; text-align: left; text-align: center; }
.main-footer__lower a { text-decoration: underline; font-weight: bold; margin-left: 2px; }
@media only screen and (max-width: 56.25em) { .main-footer__lower { padding: 3.5rem 0; } }

/* ===========================
   9. Divers & Utilitaires
   =========================== */
.skills { display: flex; flex-wrap: wrap; }
.skills__skill { padding: 1rem 2rem; margin-bottom: 1.5rem; margin-right: 1.5rem; font-size: 1.6rem; background: rgba(153,153,153,0.2); border-radius: 5px; font-weight: 600; color: #666; }
.skills--grouped { display: block; }

/* About — compétences (panneau + grille compacte) */
.about__content-skills > .about__content-title { margin-bottom: 1.2rem; }
.about__skills-intro {
  font-size: 1.55rem;
  color: #666;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 1.6rem;
  max-width: none;
}
.about__skills-panel {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2rem 2.2rem;
  box-shadow: 0 8px 32px rgba(120, 67, 233, 0.09);
  border: 1px solid rgba(120, 67, 233, 0.12);
}
.about__skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.about__skills-grid .skills-group { margin-bottom: 0; }
.about__skills-grid .skills-group:nth-child(5) { grid-column: 1 / -1; }
@media only screen and (max-width: 56.25em) {
  .about__skills-grid {
    grid-template-columns: 1fr;
  }
  .about__skills-grid .skills-group:nth-child(5) {
    grid-column: auto;
  }
}
@media only screen and (max-width: 37.5em) {
  .about__skills-panel { padding: 1.6rem 1.4rem 1.8rem; }
}
.skills-group {
  margin-bottom: 2.8rem;
  background: linear-gradient(145deg, rgba(120, 67, 233, 0.06) 0%, rgba(250, 250, 250, 0.95) 48%);
  border-radius: 10px;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid rgba(120, 67, 233, 0.11);
}
.skills-group:last-child { margin-bottom: 0; }
.skills--grouped.about__skills-grid .skills-group:last-child { margin-bottom: 0; }
.skills-group__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #7843E9;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.skills-group__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.about__content-skills .skills__skill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.05rem;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
  font-size: 1.3rem;
  border-radius: 999px;
  line-height: 1.3;
  border: 1px solid rgba(120, 67, 233, 0.12);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}
.skills__icon {
  font-size: 1.55rem;
  line-height: 1;
}
.skills__icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  padding: 0 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(120, 67, 233, 0.14);
  color: #5c34cf;
}
.skills__skill--priority {
  background: rgba(120, 67, 233, 0.12);
  color: #4c1d95;
  border: 1px solid rgba(120, 67, 233, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.mouse { width: 25px; height: 40px; border: 2px solid #333; border-radius: 60px; position: relative; overflow: hidden; }
.mouse::before { content: ''; width: 5px; height: 5px; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); background-color: #333; border-radius: 50%; opacity: 1; animation: wheel 1.3s infinite; -webkit-animation: wheel 1.3s infinite; }
@keyframes wheel { to { opacity: 0; top: 27px; } }
@-webkit-keyframes wheel { to { opacity: 0; top: 27px; } }

/* ==========================================================================
   Section Hero Premium - Mode Sombre & Glassmorphisme
   ========================================================================== */

:root {
  --color-bg-dark: #0a0812;
  --color-text-light: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-primary: #7843E9;
  --color-primary-glow: rgba(120, 67, 233, 0.15);
  --color-secondary-glow: rgba(99, 102, 241, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

.home-hero-premium {
  position: relative;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10rem 0 6rem;
}

/* Lueurs d'arrière-plan */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
  opacity: var(--theme-glow-opacity);
}

.hero-glow--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(120,67,233,0) 70%);
  top: -10%;
  right: -5%;
}

.hero-glow--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99,102,241,0) 70%);
  bottom: -15%;
  left: -10%;
}

/* Grille de fond subtile */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--theme-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--theme-grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
  pointer-events: none;
}

/* Conteneur principal */
.hero-container {
  width: 90%;
  max-width: 120rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 56.25em) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
}

/* Badge de statut */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(120, 67, 233, 0.1);
  border: 1px solid rgba(120, 67, 233, 0.3);
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(120, 67, 233, 0.15);
  animation: floatSubtle 4s ease-in-out infinite;
}

@media (max-width: 56.25em) {
  .hero-status-badge {
    margin: 0 auto 2.5rem;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite;
}

/* Titre principal et dégradé */
.hero-pre-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a78bfa;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

@media (max-width: 37.5em) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rôles et introduction */
.hero-subtitle {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.4;
}

@media (max-width: 37.5em) {
  .hero-subtitle {
    font-size: 1.8rem;
  }
}

.hero-intro {
  font-size: 1.8rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 3rem;
  max-width: 60rem;
}

@media (max-width: 56.25em) {
  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Pillars en pills */
.hero-pillars-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

@media (max-width: 56.25em) {
  .hero-pillars-container {
    justify-content: center;
  }
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.pillar-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(120, 67, 233, 0.4);
  transform: translateY(-2px);
}

.pillar-emoji {
  font-size: 1.6rem;
}

/* Boutons premium */
.hero-actions {
  display: flex;
  gap: 2rem;
}

@media (max-width: 56.25em) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 37.5em) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
  }
}

.btn-premium {
  padding: 1.5rem 3.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-premium--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(120, 67, 233, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-premium--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(120, 67, 233, 0.5);
}

.btn-premium--secondary {
  background: var(--glass-bg);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn-premium--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(120, 67, 233, 0.4);
  transform: translateY(-3px);
}

/* Colonne Visuelle & Scene de badges flottants */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 56.25em) {
  .hero-visual-col {
    margin-top: 4rem;
  }
}

.visual-scene {
  position: relative;
  width: 380px;
  height: 380px;
}

@media (max-width: 37.5em) {
  .visual-scene {
    width: 280px;
    height: 280px;
  }
}

/* Avatar central */
.scene-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  z-index: 5;
}

@media (max-width: 37.5em) {
  .scene-center {
    width: 120px;
    height: 120px;
  }
}

.scene-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(120, 67, 233, 0.25);
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border: 2px dashed rgba(120, 67, 233, 0.4);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}

/* Badges technologiques flottants */
.floating-tech-card {
  position: absolute;
  background: rgba(15, 12, 28, 0.65);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.6rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
}

.floating-tech-card i {
  font-size: 1.8rem;
}

.floating-tech-card:hover {
  transform: scale(1.1) translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(120, 67, 233, 0.4);
}

/* Positionnement et animation des cartes */
.card-react {
  top: 10%;
  left: -5%;
  animation: floatReact 6s ease-in-out infinite;
}

.card-flutter {
  top: 15%;
  right: -5%;
  animation: floatFlutter 7s ease-in-out infinite;
}

.card-laravel {
  bottom: 12%;
  left: -8%;
  animation: floatLaravel 8s ease-in-out infinite;
}

.card-django {
  bottom: 8%;
  right: -2%;
  animation: floatDjango 6.5s ease-in-out infinite;
}

.card-figma {
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  animation: floatFigma 7.5s ease-in-out infinite;
}

/* Réseaux sociaux verticaux */
.hero-socials-vertical {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  z-index: 15;
}

@media (max-width: 75em) {
  .hero-socials-vertical {
    display: none;
  }
}

.social-v-link {
  color: var(--color-text-muted);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.social-v-link:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.x-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Indicateur de scroll de souris */
.hero-scroll-indicator {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-text-light);
  border-radius: 2px;
  animation: scrollWheelAnim 1.8s ease-in-out infinite;
}

/* Animations CSS */
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scrollWheelAnim {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Animations des cartes flottantes */
@keyframes floatReact {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatFlutter {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes floatLaravel {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes floatDjango {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes floatFigma {
  0%, 100% { transform: translate(0, -50%) rotate(0deg); }
  50% { transform: translate(0, calc(-50% - 12px)) rotate(4deg); }
}

#roles-rotator {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==========================================================================
   REDESIGN MODE DYNAMIQUE (Light & Dark Theme Switcher)
   ========================================================================== */

/* Variables de thème par défaut (Mode Sombre) */
body {
  --theme-bg-main: #0a0812;
  --theme-bg-sec: #0c0a18;
  --theme-bg-third: #0e0c1a;
  --theme-text-main: #f3f4f6;
  --theme-text-muted: #9ca3af;
  --theme-border: rgba(255, 255, 255, 0.08);
  
  --theme-card-bg: rgba(255, 255, 255, 0.02);
  --theme-card-hover-bg: rgba(255, 255, 255, 0.04);
  --theme-card-shadow: rgba(0, 0, 0, 0.3) 0px 10px 30px 0px;
  
  --theme-header-bg: rgba(10, 8, 18, 0.75);
  --theme-header-text: #f3f4f6;
  
  --theme-input-bg: rgba(255, 255, 255, 0.05);
  --theme-input-border: rgba(255, 255, 255, 0.15);
  --theme-input-text: #ffffff;
  
  --theme-btn-inactive-bg: rgba(255, 255, 255, 0.05);
  --theme-btn-inactive-text: #9ca3af;
  --theme-btn-inactive-border: rgba(255, 255, 255, 0.08);
  
  --theme-modal-bg: rgba(20, 18, 35, 0.95);
  --theme-modal-backdrop: rgba(5, 5, 10, 0.7);

  --theme-social-v-bg: rgba(255, 255, 255, 0.03);
  --theme-social-v-border: rgba(255, 255, 255, 0.08);
  --theme-social-v-color: #9ca3af;

  --theme-btn-sec-text: #ffffff;
  --theme-btn-sec-bg: rgba(255, 255, 255, 0.03);
  --theme-btn-sec-border: rgba(255, 255, 255, 0.08);
  --theme-btn-sec-hover-bg: rgba(255, 255, 255, 0.08);

  --theme-tech-card-bg: rgba(15, 12, 28, 0.65);
  --theme-tech-card-text: #ffffff;

  --theme-lang-btn-bg: rgba(255, 255, 255, 0.05);
  --theme-lang-btn-text: #9ca3af;
  --theme-lang-btn-border: rgba(255, 255, 255, 0.08);
  --theme-lang-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --theme-lang-btn-hover-text: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --theme-grid-color: rgba(255, 255, 255, 0.02);
  --theme-contact-bg: radial-gradient(circle at 10% 20%, rgba(120, 67, 233, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 40%), #0a0812;
  --theme-form-bg: rgba(15, 12, 28, 0.7);
  --theme-input-placeholder: rgba(255, 255, 255, 0.4);
  --theme-glow-opacity: 0.55;
  
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Variables de thème (Mode Clair) */
body.light-theme {
  --theme-bg-main: #ffffff;
  --theme-bg-sec: #fafafa;
  --theme-bg-third: #f3f4f6;
  --theme-text-main: #111111;
  --theme-text-muted: #555555;
  --theme-border: rgba(120, 67, 233, 0.15);
  
  --theme-card-bg: #ffffff;
  --theme-card-hover-bg: #f5f5f7;
  --theme-card-shadow: rgba(100, 100, 111, 0.1) 0px 7px 29px 0px;
  
  --theme-header-bg: rgba(255, 255, 255, 0.85);
  --theme-header-text: #333333;
  
  --theme-input-bg: #f8fafc;
  --theme-input-border: rgba(120, 67, 233, 0.2);
  --theme-input-text: #111111;
  
  --theme-btn-inactive-bg: #e2e8f0;
  --theme-btn-inactive-text: #475569;
  --theme-btn-inactive-border: #cbd5e1;
  
  --theme-modal-bg: rgba(255, 255, 255, 0.98);
  --theme-modal-backdrop: rgba(15, 15, 20, 0.4);

  --theme-social-v-bg: rgba(0, 0, 0, 0.04);
  --theme-social-v-border: rgba(0, 0, 0, 0.08);
  --theme-social-v-color: #333333;

  --theme-btn-sec-text: #7843e9;
  --theme-btn-sec-bg: rgba(120, 67, 233, 0.06);
  --theme-btn-sec-border: rgba(120, 67, 233, 0.25);
  --theme-btn-sec-hover-bg: rgba(120, 67, 233, 0.12);

  --theme-tech-card-bg: rgba(255, 255, 255, 0.95);
  --theme-tech-card-text: #111111;

  --theme-lang-btn-bg: rgba(0, 0, 0, 0.04);
  --theme-lang-btn-text: #555555;
  --theme-lang-btn-border: rgba(0, 0, 0, 0.08);
  --theme-lang-btn-hover-bg: rgba(0, 0, 0, 0.08);
  --theme-lang-btn-hover-text: #111111;

  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  
  --theme-grid-color: rgba(120, 67, 233, 0.08);
  --theme-contact-bg: radial-gradient(circle at 10% 20%, rgba(120, 67, 233, 0.05) 0%, transparent 45%), radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 45%), #fafafa;
  --theme-form-bg: rgba(255, 255, 255, 0.85);
  --theme-input-placeholder: #94a3b8;
  --theme-glow-opacity: 0.08;
}

/* Bouton basculeur de Thème (Theme Toggle Button) */
.theme-toggle-btn {
  background: var(--theme-btn-inactive-bg) !important;
  color: var(--theme-text-muted) !important;
  border: 1px solid var(--theme-btn-inactive-border) !important;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: none !important;
}

.theme-toggle-btn:hover {
  color: var(--theme-text-main) !important;
  background: var(--theme-card-hover-bg) !important;
  transform: scale(1.05);
}

/* Style de l'icône Dev.to */
.devto-icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  transition: fill 0.3s ease;
}

/* Affichage dynamique de l'icône de thème */
.theme-toggle-btn .sun-icon { display: block; }
.theme-toggle-btn .moon-icon { display: none; }

body.light-theme .theme-toggle-btn .sun-icon { display: none; }
body.light-theme .theme-toggle-btn .moon-icon { display: block; }

/* Styles de switch de langue */
.lang-switch-btn {
  background: var(--theme-lang-btn-bg) !important;
  color: var(--theme-lang-btn-text) !important;
  border: 1px solid var(--theme-lang-btn-border) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
}

.lang-switch-btn:hover {
  background: var(--theme-lang-btn-hover-bg) !important;
  color: var(--theme-lang-btn-hover-text) !important;
}

.lang-switch-btn.active,
.lang-switch-btn[style*="font-weight: bold"] {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: 1px solid var(--color-primary) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 15px rgba(120, 67, 233, 0.4) !important;
}

/* Styles dynamiques de l'en-tête (Header) */
.header {
  background: var(--theme-header-bg) !important;
  border-bottom: 1px solid var(--theme-border) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header__logo-container {
  color: var(--theme-header-text) !important;
}

.header__link {
  color: var(--theme-text-muted) !important;
}

.header__link:hover {
  color: var(--theme-text-main) !important;
}

body:not(.light-theme) .header__main-ham-menu,
body:not(.light-theme) .header__main-ham-menu-close {
  filter: invert(1) !important;
}

body.light-theme .header__main-ham-menu,
body.light-theme .header__main-ham-menu-close {
  filter: none !important;
}

.header__sm-menu {
  background: var(--theme-modal-bg) !important;
  border-bottom: 1px solid var(--theme-border) !important;
}

.header__sm-menu-link a {
  color: var(--theme-text-main) !important;
  border-bottom: 1px solid var(--theme-border) !important;
}

.header__sm-menu-link:first-child a {
  border-top: 1px solid var(--theme-border) !important;
}

/* Styles dynamiques du Hero (Mode Sombre / Clair) */
.home-hero-premium {
  background-color: var(--theme-bg-main) !important;
  color: var(--theme-text-main) !important;
  transition: background-color 0.3s ease;
}

.home-hero-premium .hero-title {
  color: var(--theme-text-main) !important;
}

.home-hero-premium .hero-intro {
  color: var(--theme-text-muted) !important;
}

body.light-theme .home-hero-premium .hero-glow {
  opacity: var(--theme-glow-opacity) !important;
}

body.light-theme .hero-status-badge {
  background: rgba(120, 67, 233, 0.08) !important;
  border-color: rgba(120, 67, 233, 0.25) !important;
  color: #7843e9 !important;
  box-shadow: 0 4px 20px rgba(120, 67, 233, 0.08) !important;
}

body.light-theme .hero-pre-title {
  color: #7843e9 !important;
}

.hero-socials-vertical .social-v-link {
  background: var(--theme-social-v-bg) !important;
  border: 1px solid var(--theme-social-v-border) !important;
  color: var(--theme-social-v-color) !important;
  transition: all 0.3s ease;
}

.hero-socials-vertical .social-v-link:hover {
  color: var(--color-primary) !important;
  background: var(--theme-card-hover-bg) !important;
  box-shadow: 0 4px 12px rgba(120, 67, 233, 0.15);
}

/* Boutons premium */
.btn-premium--secondary {
  background: var(--theme-btn-sec-bg) !important;
  color: var(--theme-btn-sec-text) !important;
  border: 1px solid var(--theme-btn-sec-border) !important;
  transition: all 0.3s ease !important;
}

.btn-premium--secondary:hover {
  background: var(--theme-btn-sec-hover-bg) !important;
}

/* Badges technologiques flottants */
.floating-tech-card {
  background: var(--theme-tech-card-bg) !important;
  color: var(--theme-tech-card-text) !important;
  border: 1px solid var(--theme-border) !important;
}

/* Styles dynamiques de la section À propos (About) */
.about {
  background-color: var(--theme-bg-sec) !important;
  color: var(--theme-text-main) !important;
  border-top: 1px solid var(--theme-border) !important;
  transition: background-color 0.3s ease;
}

.about .heading-sec__main {
  color: var(--theme-text-main) !important;
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.about .heading-sec__sub {
  color: var(--theme-text-muted) !important;
}

.about__pillar {
  background: var(--theme-card-bg) !important;
  border: 1px solid var(--theme-border) !important;
  box-shadow: var(--theme-card-shadow) !important;
  color: var(--theme-text-main) !important;
  transition: all 0.3s ease;
}

.about__pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(120, 67, 233, 0.4) !important;
  background: var(--theme-card-hover-bg) !important;
  box-shadow: 0 10px 30px rgba(120, 67, 233, 0.15) !important;
}

.about__pillar-title {
  color: var(--theme-text-main) !important;
}

.about__pillar-text {
  color: var(--theme-text-muted) !important;
}

.about__content-title {
  color: var(--theme-text-main) !important;
}

.about__content-details-para {
  color: var(--theme-text-muted) !important;
}

.about__content-details-para strong {
  color: #c084fc !important;
}

body.light-theme .about__content-details-para strong {
  color: #7843E9 !important;
}

.about__content-details-para a {
  color: #818cf8 !important;
}

/* Grille et Badges de Compétences (Skills) */
.about__skills-panel {
  background: var(--theme-card-bg) !important;
  border: 1px solid var(--theme-border) !important;
  box-shadow: var(--theme-card-shadow) !important;
}

.skills-group {
  background: var(--theme-card-bg) !important;
  border: 1px solid var(--theme-border) !important;
}

.skills-group__title {
  color: #a78bfa !important;
}

body.light-theme .skills-group__title {
  color: #7843E9 !important;
}

.about__content-skills .skills__skill {
  background: var(--theme-btn-inactive-bg) !important;
  border: 1px solid var(--theme-btn-inactive-border) !important;
  color: var(--theme-text-main) !important;
}

.skills__icon-badge {
  background: rgba(120, 67, 233, 0.2) !important;
  color: #c084fc !important;
}

body.light-theme .skills__icon-badge {
  background: rgba(120, 67, 233, 0.1) !important;
  color: #7843E9 !important;
}

.skills__skill--priority {
  background: rgba(120, 67, 233, 0.15) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(120, 67, 233, 0.4) !important;
}

body.light-theme .skills__skill--priority {
  background: rgba(120, 67, 233, 0.1) !important;
  color: #7843E9 !important;
  border: 1px solid rgba(120, 67, 233, 0.3) !important;
}

/* Styles dynamiques de la section Projets (Projects) */
.projects {
  background-color: var(--theme-bg-main) !important;
  color: var(--theme-text-main) !important;
  border-top: 1px solid var(--theme-border) !important;
  transition: background-color 0.3s ease;
}

.projects .heading-sec__main {
  color: var(--theme-text-main) !important;
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.projects .heading-sec__sub {
  color: var(--theme-text-muted) !important;
}

.projects__card {
  background: var(--theme-card-bg) !important;
  border: 1px solid var(--theme-border) !important;
  box-shadow: var(--theme-card-shadow) !important;
  transition: all 0.3s ease;
}

.projects__card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 44px rgba(120, 67, 233, 0.25) !important;
  border-color: rgba(120, 67, 233, 0.4) !important;
  background: var(--theme-card-hover-bg) !important;
}

.projects__card--featured {
  border-color: rgba(120, 67, 233, 0.35) !important;
  box-shadow: 0 10px 36px rgba(120, 67, 233, 0.15) !important;
}

.projects__card-title {
  color: var(--theme-text-main) !important;
}

.projects__card-summary {
  color: var(--theme-text-muted) !important;
}

.projects__card-badge {
  color: #c084fc !important;
  background: rgba(120, 67, 233, 0.2) !important;
}

body.light-theme .projects__card-badge {
  color: #7843E9 !important;
  background: rgba(120, 67, 233, 0.1) !important;
}

.projects__card-media {
  background: var(--theme-bg-sec) !important;
}

/* Modale de Projets */
.projects-modal__backdrop {
  background: var(--theme-modal-backdrop) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.projects-modal__panel {
  background: var(--theme-modal-bg) !important;
  border: 1px solid var(--theme-border) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  color: var(--theme-text-main) !important;
  box-shadow: var(--theme-card-shadow) !important;
}

.projects-modal__title {
  color: var(--theme-text-main) !important;
}

.projects-modal__desc {
  color: var(--theme-text-muted) !important;
}

.projects-modal__close {
  background: var(--theme-btn-inactive-bg) !important;
  color: var(--theme-text-main) !important;
  border: 1px solid var(--theme-border) !important;
}

.projects-modal__close:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}

.projects-modal__media {
  background: var(--theme-bg-sec) !important;
}

.projects-modal__badge {
  color: #c084fc !important;
  background: rgba(120, 67, 233, 0.2) !important;
}

body.light-theme .projects-modal__badge {
  color: #7843E9 !important;
  background: rgba(120, 67, 233, 0.08) !important;
}

.projects-modal__divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%) !important;
  border-radius: 99px;
  margin: 1.5rem 0 2rem 0;
}

.projects-modal__info::-webkit-scrollbar-thumb {
  background: var(--theme-border) !important;
}

.projects-modal__info::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary) !important;
}

/* Styles de la section Contact */
.contact {
  background: var(--theme-contact-bg) !important;
  border-top: 1px solid var(--theme-border) !important;
}

.contact .heading-sec__main--lt {
  color: var(--theme-text-main) !important;
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.contact .heading-sec__sub--lt {
  color: var(--theme-text-muted) !important;
}

.contact__form-container {
  background: var(--theme-form-bg) !important;
  border: 1px solid var(--theme-border) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: var(--theme-card-shadow) !important;
  border-radius: 16px !important;
}

.contact__form-label {
  color: var(--theme-text-main) !important;
}

.contact__form-input {
  background: var(--theme-input-bg) !important;
  border: 1px solid var(--theme-input-border) !important;
  color: var(--theme-input-text) !important;
  transition: all 0.3s ease !important;
}

.contact__form-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 12px rgba(120, 67, 233, 0.3) !important;
  outline: none !important;
}

.contact__form-input::placeholder {
  color: var(--theme-input-placeholder) !important;
  opacity: 1 !important;
}

.template-btn {
  background: var(--theme-btn-inactive-bg) !important;
  border: 1px solid var(--theme-btn-inactive-border) !important;
  color: var(--theme-text-muted) !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  font-size: 1.35rem !important;
}

.template-btn:hover {
  background: var(--theme-btn-sec-hover-bg) !important;
  border-color: var(--theme-btn-sec-border) !important;
  color: var(--theme-text-main) !important;
}

.template-btn.active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(120, 67, 233, 0.4) !important;
}

.contact__btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(120, 67, 233, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.contact__btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(120, 67, 233, 0.5) !important;
}

/* Styles du Pied de page (Footer) */
.main-footer {
  background-color: var(--theme-bg-third) !important;
  border-top: 1px solid var(--theme-border) !important;
  color: var(--theme-text-main) !important;
  transition: background-color 0.3s ease;
}

.main-footer__short-desc {
  color: var(--theme-text-muted) !important;
}

.main-footer__social-cont-premium {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-social-link {
  color: var(--theme-text-muted) !important;
  font-size: 2.2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--theme-btn-inactive-bg) !important;
  border: 1px solid var(--theme-btn-inactive-border) !important;
}

.footer-social-link:hover {
  color: #fff !important;
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(120, 67, 233, 0.4);
}
