/* =====================================================================
 *  style.css : styles du site (chargé après les styles des bibliothèques)
 * =====================================================================
 *  Sommaire (chercher le titre « ===== XXX ===== ») :
 *    BASE, BOUTON ............ police, liens, boutons CV / WhatsApp
 *    BACK TO TOP, PRELOADER .. bouton « retour en haut », écran de chargement
 *    HEADER / NAV ............ menu latéral (rond, s'élargit au survol)
 *    HERO .................... écran d'accueil
 *    SECTIONS ................ titres de section communs
 *    ABOUT ................... « À propos » (liste nationalité, langues, téléphones…)
 *    FACTS, SKILLS ........... chiffres clés, barres de compétences
 *    RESUME .................. CV : diplôme, accordéons, logos, cartes Erasmus
 *    PORTFOLIO ............... cartes projets, diaporama au survol, bouton « Voir plus »
 *    PORTFOLIO LIGHTBOX ...... fenêtre « Voir plus » (GLightbox restylé)
 *    PORTFOLIO DETAILS, SERVICES .. anciennes sections (non affichées)
 *    TESTIMONIALS, CONTACT, FOOTER
 *    LANGUAGE SELECTOR ....... menu de langue en haut à droite
 *
 *  Couleurs principales : bleu #0563bb (survol #0678e3),
 *  texte gris foncé #45505b, texte secondaire #728394.
 *
 *  Après chaque modification, changer le numéro « ?v= » de style.css
 *  dans index.html pour forcer les navigateurs à recharger le fichier.
 * ===================================================================== */

/* ===== BASE ===== */
/* Fond de la zone visible quand on défile au-delà de la page */
html {
  background: #fff;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
}

a {
  color: #0563bb;
  text-decoration: none;
}

a:hover {
  color: rgb(6, 125, 237);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/* Padding bas uniforme pour tous les h2 */
h2 {
  padding-bottom: 20px;
}

/* ===== BOUTON ===== */
.btn-oval {
  font-family: "Open Sans", sans-serif;
  background-color: #0563bb;
  margin-top: 55px;
  border-radius: 20px;
  padding: 8px 10px;
  font-size: 17px;
  text-align: left;
  width: 215px;
}

/* Bouton WhatsApp sous le bouton CV */
.btn-oval.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  margin-top: 15px;
  width: fit-content;
  min-width: 215px;
  white-space: nowrap;
}

.btn-oval.btn-whatsapp:hover {
  background-color: #1ebe5b;
  border-color: #1ebe5b;
}

@media (max-width: 768px) {
  .btn-oval {
    font-size: 14px;
    display: block;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    width: 175px;
  }

  .btn-oval.btn-whatsapp {
    display: flex !important;
    justify-content: center;
    width: fit-content;
    min-width: 175px;
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #0563bb;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #0678e3;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* ===== PRELOADER : écran d'ouverture « liquid glass » =====
   Verre blanc dépoli posé sur la page (on devine le site flouté derrière),
   aux couleurs du site. En thème sombre, le verre devient sombre. Des lignes de terminal
   s'affichent (main.js), le nom apparaît puis a deux salves de glitch,
   une barre se remplit. main.js ajoute .is-leaving pour la sortie (fondu
   vers le haut), puis supprime l'élément. */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(5, 99, 187, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#preloader .glitch-wrap {
  position: relative;
  text-align: center;
  padding: 0 16px;
}

/* Bloc de terminal : 6 lignes visibles, les plus récentes en bas */
#preloader .glitch-term {
  height: calc(6 * 1.7em);
  margin-bottom: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  font-size: 12px;
  line-height: 1.7;
  color: #728394;
  white-space: pre;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
}

#preloader .glitch-line { flex: none; animation: glitch-line-in 0.25s ease-out; }
#preloader .glitch-line.is-ok::first-letter { color: #0563bb; }
#preloader .glitch-line.is-cmd { color: #0563bb; }
#preloader .glitch-cursor { animation: glitch-blink 0.8s steps(1) infinite; }

#preloader .glitch {
  position: relative;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 6vw, 52px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #45505b;
}

/* Le nom apparaît flou → net, puis deux salves de glitch nettes et courtes :
   décalage horizontal + séparation bleu / rose (text-shadow), et deux copies
   du texte (::before / ::after) découpées en tranches qui sautent. */
#preloader .glitch {
  animation:
    name-reveal 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    name-glitch 1.3s linear both;
}

#preloader .glitch::before,
#preloader .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

#preloader .glitch::before {
  color: #0563bb;
  animation: name-slice-1 1.3s steps(1) both;
}

#preloader .glitch::after {
  color: #ff2a6d;
  animation: name-slice-2 1.3s steps(1) both;
}

#preloader .glitch-bar {
  margin: 22px auto 0;
  width: min(220px, 60vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(69, 80, 91, 0.12);
  overflow: hidden;
}

#preloader .glitch-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #0563bb;
  animation: glitch-load 1.2s ease-in-out forwards;
}

#preloader.is-leaving {
  opacity: 0;
  transform: translateY(-12px);
}

/* Thème sombre : même verre, en sombre */
html[data-theme="dark"] #preloader {
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(15, 22, 32, 0.66);
}
html[data-theme="dark"] #preloader .glitch { color: #eef2f6; }
html[data-theme="dark"] #preloader .glitch-term { color: #9aa8b6; }
html[data-theme="dark"] #preloader .glitch-line.is-ok::first-letter,
html[data-theme="dark"] #preloader .glitch-line.is-cmd { color: #5aa3ea; }
html[data-theme="dark"] #preloader .glitch-bar span { background: #3b8fe0; }
html[data-theme="dark"] #preloader .glitch-bar { background: #2a3746; }

@keyframes glitch-line-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes glitch-blink {
  50% { opacity: 0; }
}

@keyframes glitch-load {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes name-reveal {
  0% { opacity: 0; filter: blur(10px); letter-spacing: 0.14em; }
  100% { opacity: 1; filter: blur(0); letter-spacing: 0.04em; }
}

@keyframes name-glitch {
  0%, 56% { transform: none; text-shadow: none; }
  58% { transform: translateX(-5px) skewX(-10deg); text-shadow: 3px 0 rgba(255, 42, 109, 0.7), -3px 0 rgba(5, 99, 187, 0.8); }
  61% { transform: translateX(4px); text-shadow: -3px 0 rgba(255, 42, 109, 0.7), 3px 0 rgba(5, 99, 187, 0.8); }
  64% { transform: translateX(-2px) skewX(5deg); text-shadow: 2px 0 rgba(255, 42, 109, 0.6), -2px 0 rgba(5, 99, 187, 0.7); }
  67%, 83% { transform: none; text-shadow: none; }
  85% { transform: translateX(6px); text-shadow: -4px 0 rgba(255, 42, 109, 0.7), 4px 0 rgba(5, 99, 187, 0.8); }
  88% { transform: translateX(-3px) skewX(-6deg); text-shadow: 2px 0 rgba(255, 42, 109, 0.6), -2px 0 rgba(5, 99, 187, 0.7); }
  91%, 100% { transform: none; text-shadow: none; }
}

@keyframes name-slice-1 {
  0%, 56% { opacity: 0; }
  58% { opacity: 0.9; clip-path: inset(10% 0 62% 0); transform: translateX(-10px); }
  61% { opacity: 0.9; clip-path: inset(55% 0 25% 0); transform: translateX(8px); }
  64% { opacity: 0.9; clip-path: inset(30% 0 50% 0); transform: translateX(-4px); }
  67%, 83% { opacity: 0; }
  85% { opacity: 0.9; clip-path: inset(70% 0 8% 0); transform: translateX(12px); }
  88% { opacity: 0.9; clip-path: inset(20% 0 65% 0); transform: translateX(-6px); }
  91%, 100% { opacity: 0; }
}

@keyframes name-slice-2 {
  0%, 56% { opacity: 0; }
  58% { opacity: 0.7; clip-path: inset(60% 0 15% 0); transform: translateX(9px); }
  61% { opacity: 0.7; clip-path: inset(15% 0 70% 0); transform: translateX(-7px); }
  64% { opacity: 0.7; clip-path: inset(42% 0 40% 0); transform: translateX(5px); }
  67%, 83% { opacity: 0; }
  85% { opacity: 0.7; clip-path: inset(5% 0 75% 0); transform: translateX(-11px); }
  88% { opacity: 0.7; clip-path: inset(50% 0 30% 0); transform: translateX(7px); }
  91%, 100% { opacity: 0; }
}

/* Visiteurs qui demandent moins d'animations : simple fondu */
@media (prefers-reduced-motion: reduce) {
  #preloader .glitch,
  #preloader .glitch-line,
  #preloader .glitch::before,
  #preloader .glitch::after,
  #preloader .glitch-cursor { animation: none; }
  #preloader .glitch-bar span { animation-duration: 0.3s; }
  #preloader.is-leaving { transform: none; }
}

@keyframes animate-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* ===== HEADER / NAV ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: all 0.5s;
  padding: 15px;
  overflow-y: auto;
}

@media (max-width: 991px) {
  #header {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e6e9ec;
    left: -300px;
  }
}

@media (min-width: 991px) {
  #main {
    margin-left: 100px;
  }
}

.nav-menu {
  padding: 0;
  display: block;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  background: #f2f3f5;
  height: 56px;
  width: 100%;
  overflow: hidden;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: #45505b;
}

@media (min-width: 992px) {
  .nav-menu a,
  .nav-menu a:focus {
    width: 56px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
  color: #fff;
  background: #0563bb;
  width: 100%;
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover > a span {
  color: #fff;
  display: block;
}

.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}

.mobile-nav-toggle i {
  color: #45505b;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: #0563bb;
}

/* ===== HERO ===== */
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/anthony-bg.jpg") top right no-repeat;
  background-size: cover;
  position: relative;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}

/* Flèche « descendre » en bas de l'accueil : positionnée par rapport à toute
 * la largeur de l'écran (left: 50%), et non à la zone de texte qui est
 * décalée de 160 px à droite sur ordinateur pour laisser la place au menu. */
#hero .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  font-size: 3em;
  line-height: 1;
  color: #0563bb;
}

#hero .hero-scroll:hover {
  color: #0678e3;
}

html[data-theme="dark"] #hero .hero-scroll {
  color: #5aa3ea;
}

#hero:before {
  content: "";
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #45505b;
}

#hero p {
  color: #45505b;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #0563bb;
  letter-spacing: 1px;
}

#hero .social-links {
  margin-top: 30px;
}

#hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: #45505b;
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

#hero .social-links a:hover {
  color: #0563bb;
}

@media (max-width: 992px) {
  #hero {
    text-align: center;
  }

  #hero h1 {
    font-size: 32px;
    line-height: 36px;
  }

  #hero p {
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
  }
}

/* ===== SECTIONS ===== */
section {
  padding: 50px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 1em;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  color: #45505b;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #0563bb;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

h3 {
  font-weight: 700;
  font-size: 26px;
  color: #728394;
}

/* ===== ABOUT ===== */
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #728394;
}

.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: #0563bb;
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/* ===== FACTS ===== */
.facts .count-box {
  padding: 30px 30px 25px 30px;
  margin-top: 30px;
  width: 100%;
  position: relative;
  text-align: center;
  background: #fff;
}

.facts .count-box i {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  background: #0563bb;
  color: #fff;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.facts .count-box span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: #011426;
}

.facts .count-box p {
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
}

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

.skills .progress .skill {
  padding: 10px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #45505b;
}

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

.skills .progress-bar-wrap {
  background: #f2f3f5;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: #0563bb;
}

/* ===== RESUME ===== */
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #45505b;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #0563bb;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #0563bb;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #f7f8f9;
  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: #fff;
  border: 2px solid #0563bb;
}

/* --- Petite note sous un titre du CV, visible même fermé
 * (ex. « École d'ingénieurs comparable à l'UTN ou l'ITBA ») --- */
.resume .resume-header-note {
  margin: -4px 0 10px;
  font-size: 14px;
  font-style: italic;
  color: #6b7785;
}

/* --- CV : éléments dépliables (accordéons) ---
 * Fermé : .resume-body a une hauteur 0 (grid-template-rows: 0fr).
 * Ouvert : main.js ajoute .open sur .resume-collapsible -> 1fr (animation fluide).
 * La flèche (.resume-chevron) est placée à gauche via `order: -1`. */
.resume .resume-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  outline: none;
}

.resume .resume-header:focus-visible {
  box-shadow: 0 0 0 2px rgba(5, 99, 187, 0.4);
}

.resume .resume-header:hover h4 {
  color: #0678e3;
}

.resume .resume-chevron {
  order: -1;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0563bb;
  background: rgba(5, 99, 187, 0.1);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.resume .resume-header:hover .resume-chevron,
.resume .resume-collapsible.open .resume-chevron {
  background: #0563bb;
  color: #fff;
}

.resume .resume-collapsible.open .resume-chevron {
  transform: rotate(180deg);
}

.resume .resume-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.resume .resume-collapsible.open .resume-body {
  grid-template-rows: 1fr;
}

.resume .resume-body-inner {
  overflow: hidden;
  min-height: 0;
}

.resume .resume-collapsible .resume-body-inner > :last-child {
  margin-bottom: 0;
}

/* --- Cartes Erasmus dans le bloc « Cycle ingénieur » --- */
.resume .erasmus-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
}

.resume .erasmus-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(5, 99, 187, 0.25);
  border-left: 4px solid #0563bb;
  border-radius: 8px;
  background: rgba(5, 99, 187, 0.05);
}

.resume .erasmus-flag {
  font-size: 26px;
  line-height: 1;
}

.resume .erasmus-card strong {
  display: block;
  color: #45505b;
  font-size: 15px;
}

.resume .erasmus-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: #0563bb;
  border-radius: 4px;
  padding: 1px 8px;
  margin-bottom: 4px;
}

/* --- Logo d'école / d'entreprise dans l'en-tête d'un élément du CV
 * (fichiers dans assets/img/logos/) --- */
.resume .resume-logo {
  flex: 0 0 72px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.resume .resume-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.resume .resume-header-text {
  flex: 1;
  min-width: 0;
}

/* --- Encadré « Prix reconnu par la Ville de Buenos Aires » (French Tech) --- */
.resume .resume-recognition {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(5, 99, 187, 0.08);
  color: #0563bb;
}

/* ===== PORTFOLIO ===== */
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 2px 15px;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  background: #fff;
  border-radius: 50px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #0563bb;
}

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

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(69, 80, 91, 0.8);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  bottom: 30px;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info::before,
.portfolio .portfolio-wrap .portfolio-info::after {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info::before {
  top: 35px;
  left: 35px;
  border-top: 3px solid #d7dce1;
  border-left: 3px solid #d7dce1;
}

.portfolio .portfolio-wrap .portfolio-info::after {
  bottom: 35px;
  right: 35px;
  border-bottom: 3px solid #d7dce1;
  border-right: 3px solid #d7dce1;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #45505b;
  font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: #45505b;
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #45505b;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: #148af9;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
  top: 15px;
  left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
  bottom: 15px;
  right: 15px;
}

/* --- Diaporama au survol (créé par main.js, section 9) ---
 * .portfolio-slides : calque d'images posé sur l'image de la carte ;
 * l'image .active est visible, les autres sont transparentes. */
.portfolio .portfolio-wrap .portfolio-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio .portfolio-wrap .portfolio-slides.on {
  opacity: 1;
}

.portfolio .portfolio-wrap .portfolio-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio .portfolio-wrap .portfolio-slides img.active {
  opacity: 1;
}

.portfolio .portfolio-wrap .portfolio-slide-count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(69, 80, 91, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio .portfolio-wrap.has-slides:hover .portfolio-slide-count {
  opacity: 1;
}

/* Carte avec diaporama : le voile blanc disparaît et le titre + « Voir plus »
 * passent dans une bande dégradée en bas, pour laisser voir les photos. */
.portfolio .portfolio-wrap.has-slides:hover::before {
  opacity: 0;
}

.portfolio .portfolio-wrap.has-slides .portfolio-info {
  justify-content: flex-end;
  padding: 0 20px 18px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.92) 40%,
    rgba(255, 255, 255, 0) 70%
  );
}

.portfolio .portfolio-wrap.has-slides .portfolio-info::before,
.portfolio .portfolio-wrap.has-slides .portfolio-info::after {
  display: none;
}

/* --- Bouton « Voir plus » au survol d'une carte (ouvre la galerie) --- */
.portfolio .portfolio-wrap .portfolio-links a.portfolio-more {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0563bb;
  border-radius: 50px;
  transition: background 0.2s ease;
}

.portfolio .portfolio-wrap .portfolio-links a.portfolio-more:hover {
  color: #fff;
  background: #0678e3;
}

/* ===== PORTFOLIO LIGHTBOX ===== */
/* Fond sombre flouté derrière la photo */
.glightbox-container .goverlay {
  background: rgba(12, 18, 28, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Barre de description de GLightbox masquée (le titre est dans .glb-head) */
.glightbox-container .gslide-description {
  display: none !important;
}

.glightbox-container .gslide-media,
.glightbox-clean .gslide-media {
  box-shadow: none;
  background: transparent;
}

.glightbox-container .gslide-image img {
  max-height: calc(100vh - 210px) !important;
  max-width: min(1100px, calc(100vw - 180px));
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.glightbox-container .ginner-container {
  margin-top: -40px;
}

/* --- Boutons : précédent / suivant / fermer (ronds, effet verre) --- */
.glightbox-clean .gprev,
.glightbox-clean .gnext,
.glightbox-clean .gclose {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gclose:hover {
  background-color: #0563bb;
  border-color: #0563bb;
  transform: scale(1.06);
}

.glightbox-clean .gprev svg,
.glightbox-clean .gnext svg {
  width: 20px;
}

.glightbox-clean .gclose {
  width: 44px;
  height: 44px;
  top: 22px;
  right: 24px;
}

.glightbox-clean .gclose svg {
  width: 14px;
}

.glightbox-clean .gprev {
  left: 32px;
}

.glightbox-clean .gnext {
  right: 32px;
}

.glightbox-clean .gbtn.focused {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* --- En-tête : nom du projet + compteur « 3 / 20 » (créé par main.js) --- */
.glb-head {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 160px);
  color: #fff;
  pointer-events: none;
}

.glb-title {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glb-count {
  flex-shrink: 0;
  padding: 3px 11px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
}

/* --- Bande de miniatures cliquables en bas (créée par main.js) --- */
.glb-thumbs {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  gap: 8px;
  max-width: calc(100vw - 48px);
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glb-thumbs::-webkit-scrollbar {
  display: none;
}

.glb-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.glb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.glb-thumb:hover {
  opacity: 0.85;
}

.glb-thumb.active {
  opacity: 1;
  border-color: #0563bb;
}

.glb-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Fenêtre « Voir plus » sur mobile : image et miniatures plus petites */
@media (max-width: 768px) {
  .glightbox-container .gslide-image img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 190px) !important;
    border-radius: 8px;
  }

  .glightbox-container .ginner-container {
    margin-top: -20px;
  }

  .glb-head {
    top: 20px;
    left: 16px;
    transform: none;
    max-width: calc(100vw - 90px);
  }

  .glb-title {
    font-size: 15px;
  }

  .glightbox-clean .gclose {
    top: 12px;
    right: 12px;
  }

  .glb-thumb {
    width: 64px;
    height: 42px;
  }
}

/* ===== PORTFOLIO DETAILS ===== */
.portfolio-details {
  padding-top: 40px;
}

.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: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(69, 80, 91, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.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;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/* ===== SERVICES ===== */
.services .icon-box {
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .icon-box .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .icon-box .icon svg path {
  transition: 0.5s;
  fill: #f5f5f5;
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: #45505b;
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  border-color: #fff;
  box-shadow: 0px 0 35px 0 rgba(0, 0, 0, 0.08);
}

/* Icon box couleurs - factorisé */
.services .iconbox-blue i { color: #47aeff; }
.services .iconbox-blue:hover .icon i { color: #fff; }
.services .iconbox-blue:hover .icon path { fill: #47aeff; }

.services .iconbox-orange i { color: #ffa76e; }
.services .iconbox-orange:hover .icon i { color: #fff; }
.services .iconbox-orange:hover .icon path { fill: #ffa76e; }

.services .iconbox-pink i { color: #e80368; }
.services .iconbox-pink:hover .icon i { color: #fff; }
.services .iconbox-pink:hover .icon path { fill: #e80368; }

.services .iconbox-yellow i { color: #ffbb2c; }
.services .iconbox-yellow:hover .icon i { color: #fff; }
.services .iconbox-yellow:hover .icon path { fill: #ffbb2c; }

.services .iconbox-red i { color: #ff5828; }
.services .iconbox-red:hover .icon i { color: #fff; }
.services .iconbox-red:hover .icon path { fill: #ff5828; }

.services .iconbox-teal i { color: #11dbcf; }
.services .iconbox-teal:hover .icon i { color: #fff; }
.services .iconbox-teal:hover .icon path { fill: #11dbcf; }

/* ===== TESTIMONIALS ===== */
.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #90c8fc;
  font-size: 26px;
  display: inline-block;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-left {
  left: -5px;
}

.testimonials .testimonial-item .quote-icon-right {
  right: -5px;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

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

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/* ===== CONTACT ===== */
.contact .info,
.contact .php-email-form {
  width: 100%;
  background: #fff;
}

.contact .info i {
  font-size: 20px;
  color: #0563bb;
  float: left;
  width: 44px;
  height: 44px;
  background: #eef7ff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #45505b;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #728394;
}

.contact .info a {
  padding: 0 0 0 15px;
  font-size: 14px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #0563bb;
  color: #fff;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"] {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type="submit"] {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type="submit"]:hover {
  background: #0678e3;
}

/* ===== FOOTER ===== */
#footer {
  background: #f7f8f9;
  color: #45505b;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
}

#footer p {
  font-size: 15px;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
}

#footer .social-links {
  margin: 0 0 40px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #0563bb;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: #0678e3;
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
  margin: 0 0 5px 0;
}

#footer .credits {
  font-size: 13px;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

#language-selector {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #0563bb;
  background: #fff;
  color: #0563bb;
  cursor: pointer;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
  min-width: 140px;
  max-width: 180px;
}

#language-selector:hover {
  background: #0563bb;
  color: #fff;
}

#language-selector:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.2);
}

@media (max-width: 991px) {
  .language-selector-container {
    top: 60px;
    right: 10px;
    left: auto;
  }

  #language-selector {
    font-size: 12px;
    padding: 6px 10px;
    min-width: 120px;
    max-width: 150px;
  }
}

@media (min-width: 992px) {
  .language-selector-container {
    top: 20px;
    right: 20px;
  }
}

/* =====================================================================
 * ===== THÈME SOMBRE =====
 * =====================================================================
 * Activé quand <html data-theme="dark"> (posé par le petit script du
 * <head> de index.html, puis par le bouton soleil / lune).
 * Par défaut : suit le réglage clair / sombre de l'appareil du visiteur.
 * Couleurs : fond #0f1620, surfaces #17212d / #1e2a38, bordures #2a3746,
 * texte #d5dde5, titres #eef2f6, texte secondaire #9aa8b6,
 * bleu éclairci #3b8fe0 (meilleur contraste sur fond sombre).
 * ===================================================================== */

/* --- Bouton soleil / lune (à côté du menu de langue) --- */
.language-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

#theme-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  font-size: 20px;
  color: #0563bb;
  background: #fff;
  border: 1px solid #0563bb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#theme-toggle:hover {
  color: #fff;
  background: #0563bb;
}

#theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.3);
}

/* Icône : lune en clair (passer en sombre), soleil en sombre */
#theme-toggle .bx-sun,
html[data-theme="dark"] #theme-toggle .bx-moon {
  display: none;
}

html[data-theme="dark"] #theme-toggle .bx-sun {
  display: block;
}

@media (max-width: 991px) {
  #theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
}

/* --- Base --- */
html[data-theme="dark"] {
  color-scheme: dark;
  background: #0f1620;
}

html[data-theme="dark"] body {
  background: #0f1620;
  color: #d5dde5;
}

html[data-theme="dark"] a {
  color: #5aa3ea;
}

html[data-theme="dark"] h3,
html[data-theme="dark"] .about .content h3 {
  color: #9aa8b6;
}

/* --- Menu latéral et sélecteurs --- */
html[data-theme="dark"] #header {
  background: transparent;
}

@media (max-width: 991px) {
  html[data-theme="dark"] #header {
    background: #17212d;
    border-right-color: #2a3746;
  }
}

html[data-theme="dark"] .nav-menu a,
html[data-theme="dark"] .nav-menu a:focus {
  color: #d5dde5;
  background: #1e2a38;
}

html[data-theme="dark"] .nav-menu a span,
html[data-theme="dark"] .nav-menu a:focus span,
html[data-theme="dark"] .mobile-nav-toggle i {
  color: #d5dde5;
}

html[data-theme="dark"] .nav-menu a:hover,
html[data-theme="dark"] .nav-menu .active,
html[data-theme="dark"] .nav-menu li:hover > a {
  color: #fff;
  background: #0563bb;
}

html[data-theme="dark"] .nav-menu a:hover span,
html[data-theme="dark"] .nav-menu .active span,
html[data-theme="dark"] .nav-menu li:hover > a span {
  color: #fff;
}

html[data-theme="dark"] #language-selector,
html[data-theme="dark"] #theme-toggle {
  color: #5aa3ea;
  background: #17212d;
  border-color: #3b8fe0;
}

html[data-theme="dark"] #language-selector:hover,
html[data-theme="dark"] #theme-toggle:hover {
  color: #fff;
  background: #0563bb;
}

/* --- Accueil --- */
html[data-theme="dark"] #hero:before {
  background: rgba(15, 22, 32, 0.82);
}

html[data-theme="dark"] #hero h1,
html[data-theme="dark"] #hero p {
  color: #eef2f6;
}

html[data-theme="dark"] #hero p span {
  color: #5aa3ea;
}

/* Boutons « Télécharger le CV » et « WhatsApp » : couleurs adoucies,
 * les teintes vives d'origine paraissent fluo sur fond sombre */
html[data-theme="dark"] .btn-oval {
  color: #e6edf3;
  background-color: #1f4f80;
  border-color: #2b5f93;
}

html[data-theme="dark"] .btn-oval:hover {
  color: #fff;
  background-color: #275f98;
  border-color: #3570aa;
}

html[data-theme="dark"] .btn-oval.btn-whatsapp {
  background-color: #1e6b43;
  border-color: #267a4e;
}

html[data-theme="dark"] .btn-oval.btn-whatsapp:hover {
  background-color: #237c4e;
  border-color: #2d8c5b;
}

/* --- Titres de section --- */
html[data-theme="dark"] .section-title h2 {
  color: #eef2f6;
}

html[data-theme="dark"] .section-title h2::before {
  background: #2a3746;
}

/* --- Compétences --- */
html[data-theme="dark"] .skills .progress .skill {
  color: #d5dde5;
}

html[data-theme="dark"] .skills .progress-bar-wrap {
  background: #1e2a38;
}

/* --- CV --- */
html[data-theme="dark"] .resume .resume-title {
  color: #eef2f6;
}

html[data-theme="dark"] .resume .resume-item h4 {
  color: #5aa3ea;
}

html[data-theme="dark"] .resume .resume-item h5 {
  color: #d5dde5;
  background: #1e2a38;
}

html[data-theme="dark"] .resume .resume-item::before {
  background: #0f1620;
  border-color: #3b8fe0;
}

html[data-theme="dark"] .resume .resume-item {
  border-left-color: #3b8fe0;
}

html[data-theme="dark"] .resume .resume-header-note {
  color: #9aa8b6;
}

html[data-theme="dark"] .resume .resume-chevron {
  color: #5aa3ea;
  background: rgba(59, 143, 224, 0.15);
}

html[data-theme="dark"] .resume .resume-header:hover .resume-chevron,
html[data-theme="dark"] .resume .resume-collapsible.open .resume-chevron {
  color: #fff;
  background: #0563bb;
}

html[data-theme="dark"] .resume .resume-logo {
  border-color: #2a3746;
  box-shadow: none;
}

html[data-theme="dark"] .resume .erasmus-card {
  background: rgba(59, 143, 224, 0.08);
  border-color: rgba(59, 143, 224, 0.3);
  border-left-color: #3b8fe0;
}

html[data-theme="dark"] .resume .erasmus-card strong {
  color: #d5dde5;
}

html[data-theme="dark"] .resume .resume-recognition {
  color: #5aa3ea;
  background: rgba(59, 143, 224, 0.12);
}

/* --- Portfolio --- */
html[data-theme="dark"] .portfolio #portfolio-flters {
  background: #17212d;
}

html[data-theme="dark"] .portfolio #portfolio-flters li {
  color: #d5dde5;
}

html[data-theme="dark"] .portfolio #portfolio-flters li:hover,
html[data-theme="dark"] .portfolio #portfolio-flters li.filter-active {
  color: #5aa3ea;
}

html[data-theme="dark"] .portfolio .portfolio-wrap::before {
  background: rgba(15, 22, 32, 0.78);
}

html[data-theme="dark"] .portfolio .portfolio-wrap .portfolio-info h4 {
  color: #eef2f6;
}

html[data-theme="dark"] .portfolio .portfolio-wrap.has-slides .portfolio-info {
  background: linear-gradient(
    to top,
    rgba(15, 22, 32, 0.96) 0%,
    rgba(15, 22, 32, 0.9) 40%,
    rgba(15, 22, 32, 0) 70%
  );
}

/* --- Témoignages --- */
html[data-theme="dark"] .testimonials .testimonial-item .testimonial-img {
  border-color: #17212d;
}

html[data-theme="dark"] .testimonials .testimonial-item h3 {
  color: #eef2f6;
}

html[data-theme="dark"] .testimonials .testimonial-item h4 {
  color: #9aa8b6;
}

html[data-theme="dark"] .testimonials .swiper-pagination .swiper-pagination-bullet {
  background-color: #17212d;
  border-color: #3b8fe0;
}

html[data-theme="dark"] .testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #3b8fe0;
}

/* --- Contact et pied de page --- */
html[data-theme="dark"] .contact .info {
  background: transparent;
}

html[data-theme="dark"] .contact .info i {
  color: #5aa3ea;
  background: rgba(59, 143, 224, 0.15);
}

html[data-theme="dark"] .contact .info h4 {
  color: #eef2f6;
}

html[data-theme="dark"] .contact .info p {
  color: #9aa8b6;
}

html[data-theme="dark"] #footer {
  color: #d5dde5;
  background: #17212d;
}
