/* ==============================================================
   Anti-flash de langue
   Le script de <head> pose lang="en" avant la première peinture ;
   tant que i18n.js n'a pas traduit le DOM (data-i18n-ready), le corps
   reste invisible plutôt que d'afficher du français. Le script de
   <head> lève l'attente au bout de 3 s si i18n.js ne se charge pas.
   En français (langue d'origine du HTML) la règle ne s'applique pas.
   ============================================================== */
html[lang="en"]:not([data-i18n-ready]) body {
  visibility: hidden;
}

:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* =============================================================
   Design tokens
   Thème sombre = valeur par défaut (identique à l'historique du site).
   Thème clair = même jeu de variables redéfini sur [data-theme="light"].
   Règle : aucune couleur en dur dans le reste de la feuille de style.
   ============================================================= */
:root {
  /* Couleurs globales */
  --background-color: #05070d; /* Fond global du site : noir profond légèrement bleuté */
  --default-color: #c3cbdd; /* Couleur du texte courant */
  --heading-color: #ffffff; /* Couleur des titres et sous-titres */
  --accent-color: #3b82f6; /* Bleu : boutons, liens et éléments mis en avant */
  --accent-color-2: #22d3ee; /* Cyan, associé à l'accent */
  --surface-color: #0b111d; /* Couleur des cartes, panneaux et blocs surélevés */
  --contrast-color: #ffffff; /* Texte lisible sur les fonds accentués */
  --muted-color: #8d97b0; /* Texte secondaire / discret */
  --border-color: rgba(255, 255, 255, 0.08); /* Bordures subtiles */

  /* Navigation (barre latérale) */
  --nav-color: #a9b3c9; /* Couleur par défaut des liens de navigation */
  --nav-hover-color: #ffffff; /* Liens de navigation au survol ou actifs */
  --nav-mobile-background-color: #0b111d; /* Fond de la navigation mobile */
  --nav-dropdown-background-color: #0b111d; /* Fond des menus déroulants */
  --nav-dropdown-color: #a9b3c9; /* Couleur des liens de menu déroulant */
  --nav-dropdown-hover-color: #ffffff; /* Liens de menu déroulant au survol */

  /* Barre latérale */
  --header-fill: #070b14;
  --header-border: rgba(255, 255, 255, 0.08);
  --profile-ring: rgba(255, 255, 255, 0.1);
  --social-fill: rgba(255, 255, 255, 0.06);

  /* Surfaces */
  --panel-fill: rgba(255, 255, 255, 0.03); /* Remplissage des cartes */
  --soft-fill: rgba(255, 255, 255, 0.04); /* Remplissage discret (filtres, champs) */
  --thumb-fill: #0b111d; /* Fond des vignettes d'images */
  --field-fill: rgba(255, 255, 255, 0.04); /* Champs de formulaire */
  --field-fill-focus: rgba(255, 255, 255, 0.06);

  /* Éléments pilule (boutons discrets) */
  --pill-fill: rgba(255, 255, 255, 0.06);
  --pill-border: rgba(255, 255, 255, 0.12);
  --pill-ink: #ffffff;

  /* Pastilles : métadonnées (tags) et tuiles d'icônes */
  --tag-ink: #9fb6e6;
  --tag-fill: rgba(59, 130, 246, 0.1);
  --tag-border: rgba(59, 130, 246, 0.22);
  --tile-fill: rgba(59, 130, 246, 0.12);
  --tile-border: rgba(59, 130, 246, 0.35);
  --tile-ink: #7db1ff;

  /* Interactions */
  --ring-focus: rgba(59, 130, 246, 0.15);
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 16px 40px rgba(0, 0, 0, 0.35);

  /* Scène 3D du hero (lutte par assets/js/hero3d.js) */
  --scene-primary: #3b82f6;
  --scene-secondary: #22d3ee;
  --scene-particle: #8ab4ff;
  --scene-emissive: #0a1f4d;
}

/* Color Presets - Variantes du thème sombre : sections alternées plus ou moins lumineuses */

.light-background {
  --background-color: #080c15;
  --surface-color: #0d1424;
}

.dark-background {
  --background-color: #05070d;
  --default-color: #e6e9f2;
  --heading-color: #ffffff;
  --surface-color: #0b111d;
  --contrast-color: #ffffff;
}

/* =============================================================
   Thème clair — appliqué par le script anti-flash de <head>
   puis maintenu par assets/js/theme.js (stockage local).
   ============================================================= */
[data-theme="light"] {
  /* Couleurs globales */
  --background-color: #f4f6f9;
  --default-color: #3a4354;
  --heading-color: #0f1420;
  --accent-color: #1d4ed8;
  --accent-color-2: #0e7490;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --muted-color: #5b6577;
  --border-color: rgba(15, 20, 32, 0.1);

  /* Navigation */
  --nav-color: #414c62;
  --nav-hover-color: #0f1420;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #414c62;
  --nav-dropdown-hover-color: #0f1420;

  /* Barre latérale */
  --header-fill: #ffffff;
  --header-border: rgba(15, 20, 32, 0.1);
  --profile-ring: rgba(15, 20, 32, 0.12);
  --social-fill: rgba(15, 20, 32, 0.05);

  /* Surfaces */
  --panel-fill: #ffffff;
  --soft-fill: rgba(15, 20, 32, 0.04);
  --thumb-fill: #e8ecf2;
  --field-fill: #ffffff;
  --field-fill-focus: #ffffff;

  /* Éléments pilule */
  --pill-fill: #ffffff;
  --pill-border: rgba(15, 20, 32, 0.14);
  --pill-ink: #1f2735;

  /* Pastilles */
  --tag-ink: #1d4ed8;
  --tag-fill: rgba(29, 78, 216, 0.08);
  --tag-border: rgba(29, 78, 216, 0.22);
  --tile-fill: rgba(29, 78, 216, 0.08);
  --tile-border: rgba(29, 78, 216, 0.24);
  --tile-ink: #1d4ed8;

  /* Interactions */
  --ring-focus: rgba(29, 78, 216, 0.16);
  --shadow-1: 0 2px 8px rgba(15, 20, 32, 0.1);
  --shadow-2: 0 14px 34px rgba(15, 20, 32, 0.1);

  /* Scène 3D du hero */
  --scene-primary: #1d4ed8;
  --scene-secondary: #0e7490;
  --scene-particle: #334155;
  --scene-emissive: #0b1633;
}

[data-theme="light"] .light-background {
  --background-color: #fafbfd;
  --surface-color: #ffffff;
}

[data-theme="light"] .dark-background {
  --background-color: #ffffff;
  --default-color: #232b3a;
  --heading-color: #0f1420;
  --surface-color: #f1f4f8;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}



a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header (barre latérale)
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background: var(--header-fill);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid var(--header-border);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid var(--profile-ring);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-fill);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/* Bascule de thème : même contrôle en desktop (bas de la barre latérale)
   et dans le tiroir mobile, puisqu'il s'agit du même élément. */
.header .theme-bar {
  margin-top: auto;
  padding: 20px 0 24px;
  display: flex;
  gap: 8px;
}

.theme-toggle {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--pill-ink);
  background: var(--pill-fill);
  border: 1px solid var(--pill-border);
  cursor: pointer;
  transition: 0.3s;
}

.theme-toggle i {
  font-size: 16px;
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Bascule de langue : même barre que le thème, largeur au contenu */
.lang-toggle {
  flex: 0 0 auto;
  gap: 6px;
  padding: 10px 15px;
}

.lang-toggle .lang-opt {
  opacity: 0.45;
  font-weight: 500;
  transition: opacity 0.3s;
}

.lang-toggle .lang-opt.is-active {
  opacity: 1;
  font-weight: 600;
}

.lang-toggle .lang-sep {
  opacity: 0.35;
  font-weight: 400;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown > .dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 80px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-family: var(--heading-font);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted-color);
  line-height: 1.75;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 50px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--background-color), transparent 55%);
  z-index: 2;
}

/* Thème clair : voile plus dense, la photo du hero devient une eau-forte discrète
   et le titre reste lisible sans scrim supplémentaire. */
[data-theme="light"] .hero:before {
  background: color-mix(in srgb, var(--background-color) 78%, transparent);
}

.hero #hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 991px) {
  .hero #hero-3d {
    opacity: 0.45;
  }
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.typed-cursor {
  color: var(--accent-color);
  animation: typed-blink 0.9s infinite;
}

@keyframes typed-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}





/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-filters li {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--soft-fill);
  border: 1px solid var(--border-color);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-color);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--heading-color);
  background: color-mix(in srgb, var(--accent-color) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-color) 50%, transparent);
}

/*--------------------------------------------------------------
# Portfolio Cards (cartes modernes glassmorphism + QR code)
--------------------------------------------------------------*/
.portfolio .portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel-fill);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio .portfolio-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
  box-shadow: var(--shadow-2);
}

.portfolio .portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--thumb-fill);
  border-bottom: 1px solid var(--border-color);
}

.portfolio .portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.35) 0%, transparent 35%, rgba(5, 7, 13, 0.5) 100%);
  pointer-events: none;
}

.portfolio .portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio .portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio .portfolio-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe0ff;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.portfolio .portfolio-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--contrast-color);
  background: var(--accent-color);
  box-shadow: var(--shadow-1);
}

.portfolio .portfolio-qr {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: block;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(11, 17, 29, 0.08);
  box-shadow: var(--shadow-2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio .portfolio-qr img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 9px;
}

.portfolio .portfolio-qr:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 45%, transparent),
    var(--shadow-2);
}

.portfolio .portfolio-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 22px;
}

.portfolio .portfolio-body h3 {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading-color);
  margin: 0;
  transition: color 0.3s;
}

.portfolio .portfolio-card:hover .portfolio-body h3 {
  color: var(--accent-color);
}

.portfolio .portfolio-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-color);
  margin: 0;
  flex: 1;
}

.portfolio .portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio .portfolio-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag-ink);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tag-fill);
  border: 1px solid var(--tag-border);
}

.portfolio .portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid var(--border-color);
}

.portfolio .portfolio-actions.is-preview {
  justify-content: flex-end;
}

.portfolio .portfolio-actions .portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pill-ink);
  background: var(--pill-fill);
  border: 1px solid var(--pill-border);
  padding: 9px 16px;
  border-radius: 999px;
  transition: 0.3s;
}

.portfolio .portfolio-actions .portfolio-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.portfolio .portfolio-actions .preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--default-color);
  background: var(--pill-fill);
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  transition: 0.3s;
}

.portfolio .portfolio-actions .preview-link i {
  font-size: 15px;
}

.portfolio .portfolio-actions .preview-link:hover {
  color: var(--heading-color);
  background: color-mix(in srgb, var(--accent-color) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent-color) 50%, transparent);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
}

.services .service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type="submit"] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid
    color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Dark Theme Polish (formulaire, footer, accessibilité)
--------------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.contact label {
  color: var(--muted-color);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.contact .form-control {
  color: var(--default-color);
  background-color: var(--field-fill);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  transition: 0.3s;
}

.contact .form-control:focus {
  color: var(--heading-color);
  background-color: var(--field-fill-focus);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--ring-focus);
}

.contact .form-control::placeholder {
  color: #6b7691;
}

.contact button[type="submit"].btn-primary {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  border-radius: 14px;
  padding: 13px 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-1);
  transition: 0.3s;
}

.contact button[type="submit"].btn-primary:hover {
  color: var(--contrast-color);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent-color) 86%, black);
  box-shadow: var(--shadow-1);
}

.contact .info-wrap {
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.contact .info-wrap iframe {
  border-radius: 14px;
}

.footer .copyright p {
  color: var(--muted-color);
}

/*--------------------------------------------------------------
# About Section (carte glass + portrait encadré)
--------------------------------------------------------------*/
.about .col-lg-4 > img {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about .col-lg-4 > img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.about .content {
  background: var(--panel-fill);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 34px;
  width: calc(100% - 24px);
  margin-inline: auto;
  height: 100%;
}

.about .content h2 {
  font-family: var(--heading-font);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}

.about .content .fst-italic {
  color: var(--muted-color);
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.75;
}

.about .content ul strong {
  color: var(--heading-color);
  font-weight: 600;
}

.about .content ul span {
  color: var(--muted-color);
}

/*--------------------------------------------------------------
# Skills Section (barres dégradées)
--------------------------------------------------------------*/
.skills .progress .skill {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--heading-color);
}

.skills .progress .skill .val {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 700;
  font-style: normal;
}

.skills .progress-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  overflow: hidden;
}

.skills .progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Services Section (cartes glass)
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
  height: 100%;
  padding: 26px;
  width: calc(100% - 24px);
  margin-inline: auto;
  background: var(--panel-fill);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.services .service-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
  box-shadow: var(--shadow-2);
}

.services .service-item .icon {
  border-radius: 16px;
  background: var(--tile-fill);
  border: 1px solid var(--tile-border);
  width: 54px;
  height: 54px;
}

.services .service-item .icon i {
  color: var(--tile-ink);
}

.services .service-item:hover .icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.services .service-item:hover .icon i {
  color: var(--contrast-color);
}

.services .service-item .title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.services .service-item .description {
  color: var(--muted-color);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact Section (coordonnées en cartes)
--------------------------------------------------------------*/
.contact .info-item {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--panel-fill);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s;
}

.contact .info-item:hover {
  border-color: color-mix(in srgb, var(--accent-color) 40%, transparent);
  transform: translateX(4px);
}

.contact .info-item i {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 18px;
  color: var(--tile-ink);
  background: var(--tile-fill);
  margin-right: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .info-item h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading-color);
  margin-bottom: 3px;
}

.contact .info-item p {
  color: var(--muted-color);
  font-size: 14px;
}

.contact .info-wrap iframe {
  border-radius: 14px;
  margin-top: 10px;
}

/* Largeurs des cartes recalées sur le grille Bootstrap (3 colonnes > 2 > 1) */
@media (min-width: 768px) {
  .services .service-item {
    width: calc(50% - 24px);
  }
}

@media (min-width: 992px) {
  .about .content {
    width: calc(66.6667% - 24px);
  }

  .services .service-item {
    width: calc(33.3333% - 24px);
  }
}
