/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/

/* =====================================================
   0. VARIABLES GLOBALES — (UNE SEULE FOIS)
   ===================================================== */

:root {
  /* Fonts */
  --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;

  /* Global Colors */
  --background-color: #ffffff;
  --default-color: #272829;
  --heading-color: #050d18;
  --accent-color: #149ddd;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* Nav Menu Colors */
  --nav-color: #a8a9b4;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #040b14;
  --nav-dropdown-background-color: #040b14;
  --nav-dropdown-color: #a8a9b4;
  --nav-dropdown-hover-color: #ffffff;

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

/* Color Presets */
.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

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

/* =======================================================
   1. PERSONNALISATION DU HEADER (SIDEBAR)
   ======================================================= */

/* 1️⃣  Taille et espacement général */
#header {
  width: 400px;
  padding-top: 25px;
  font-size: 1.05rem;
}

/* 2️⃣  Photo de profil plus grande */
#header .profile-img img {
  width: 190px;
  height: 190px;
  border: 3px solid #0ea5e9;
  box-shadow: 0 0 15px rgba(14,165,233,0.3);
  border-radius: 50%;
  object-fit: cover;
}

/* 3️⃣  Nom / titre */
#header .sitename {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 10px;
}

/* 4️⃣  Icônes sociales plus grandes et espacées */
#header .social-links a {
  font-size: 1.4rem;
  margin: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}
#header .social-links a:hover {
  transform: scale(1.15);
}

/* 5️⃣  Liens du menu (icônes + texte) */
#header .navmenu a {
  font-size: 1.5rem;
  padding: 12px 20px;
}
#header .navmenu a i {
  font-size: 1.2rem;
  margin-right: 10px;
}
#header .navmenu a:hover,
#header .navmenu a.active {
  background-color: rgba(14,165,233,0.15);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

/* 6️⃣  Sélecteur de langue */
.language-switcher {
  font-size: 1.5rem;
  margin-top: 10px;
}
.language-switcher a {
  color: #0ea5e9;
  font-weight: 600;
}

/* 7️⃣  Horloge */
#live-clock {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 10px;
  display: inline-block;
}

/*--------------------------------------------------------------
# Global Header (Template)
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 400px; /* ✅ cohérent avec #header */
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 190px; /* ✅ cohérent */
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0ea5e9;
  box-shadow: 0 0 15px rgba(14,165,233,0.3);
}

.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: color-mix(in srgb, var(--default-color), transparent 90%);
  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);
}

/* ✅ important : main/footer doivent suivre la largeur 400px */
@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 400px;
  }
}

@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%);
}

/*--------------------------------------------------------------
# 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: var(--nav-dropdown-color); /* ✅ corrigé */
}

.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: 60px 0;
  overflow: clip;
}

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

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  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;
}

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

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

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

.hero h2 {
  margin: 25px 0 0 0; /* ✅ corrigé */
  font-size: 100px;
  font-weight: 700;
  color: chartreuse; /* (couleur inchangée) */
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 50px;
  color: cornsilk; /* (couleur inchangée) */
}

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

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

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

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

/* =========================================================
   ABOUT — Mise en page propre (photo à gauche + listes alignées)
   ========================================================= */

.about h1 {
  text-align: center;
  font-size: 52px;
  margin-bottom: .25rem;
}

.about .content h2,
#about .content h3 {
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: .75rem;
}

.about-aside {
  position: sticky;
  top: 90px;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.15);
  border: 2px solid rgba(14, 165, 233, 0.25);
}

/* Liste infos classique */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.15rem;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .75rem;
}

.info-list li i {
  font-size: 1rem;
  color: var(--accent-color);
  line-height: 1;
  margin-right: .25rem;
}

.info-list li strong {
  margin-right: .5rem;
  min-width: 120px;
  font-weight: 600;
  color: var(--heading-color, #fff);
}

.info-list li span {
  color: var(--default-color, #cfd6df);
}

/* ✅ LISTE ADN (pour remplacer chevrons par ADN) */
/* =====================================================
   LISTES — PUCE ADN (BIOINFORMATIQUE)
   ===================================================== */

.list-adn {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-adn li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.9rem;
}

/* ADN visible */
.list-adn li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;

  width: 22px;   /* PLUS GRAND */
  height: 22px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23149ddd' d='M7 2c2 2 2 6 0 8s-2 6 0 8 2 6 0 8h2c-2-2-2-6 0-8s2-6 0-8-2-6 0-8H7zm8 0c-2 2-2 6 0 8s2 6 0 8-2 6 0 8h2c-2-2-2-6 0-8s2-6 0-8-2-6 0-8h-2z'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-size: contain;

  filter: drop-shadow(0 0 4px rgba(20,157,221,0.6));
}

.list-adn strong {
  margin-right: .5rem;
  min-width: 120px;
  font-weight: 600;
  color: var(--heading-color);
}

.list-adn span,
.list-adn a {
  color: var(--default-color);
}

#about .content p {
  font-size: 1rem;
  margin-bottom: .75rem;
}

.about-aside .btn {
  border-radius: .6rem;
  padding: .5rem .75rem;
}

@media (max-width: 991.98px) {
  .about-aside { position: static; margin-bottom: 1rem; }
  .info-list, .list-adn { font-size: 1rem; }
  .info-list li strong, .list-adn strong { min-width: 110px; }
}

@media (max-width: 575.98px) {
  .about h1 { font-size: 38px; }
  .about .content h2, #about .content h3 { font-size: 1.35rem; }
  .info-list li, .list-adn li { margin-bottom: .6rem; }
  .info-list li strong, .list-adn strong { min-width: 100px; }
}

/*--------------------------------------------------------------
# Stats Section (version personnalisée)
--------------------------------------------------------------*/
.stats .stats-item {
  position: relative;
  padding: 30px 25px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stats .stats-item:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-4px);
}

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

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

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  padding-top: 10px;
  margin-left: 65px;
  font-family: var(--heading-font);
  font-size: 15px;
  line-height: 1.4;
}

.stats .stats-item p strong {
  display: block;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .stats .stats-item { text-align: center; }
  .stats .stats-item i { float: none; margin: 0 auto 8px; }
  .stats .stats-item .purecounter,
  .stats .stats-item p { margin-left: 0; }
}

/*--------------------------------------------------------------
# Skills Section (version personnalisée bioinformatique)
--------------------------------------------------------------*/
.skills .progress {
  height: 55px;
  background: none;
  border-radius: 10px;
  display: block;
  margin-bottom: 15px;
}

.skills .progress .skill {
  color: var(--heading-color);
  text-transform: none;
  font-weight: 600;
  font-family: var(--heading-font);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 1rem;
}

.skills .progress .skill .val {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--accent-color);
}

.skills .progress-bar-wrap {
  background: rgba(255, 255, 255, 0.07);
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #00b4d8 100%);
  border-radius: 8px;
  transition: width 0.9s ease;
}

.skills .progress:hover .progress-bar {
  opacity: 0.9;
  transform: scaleY(1.1);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .skills .progress { height: 50px; }
  .skills .progress .skill { font-size: 0.95rem; }
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 1.6rem;
  border-bottom: 2px solid rgba(14,165,233,0.25);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.resume .resume-item h4 {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading-color);
  text-transform: none;
}

.resume .resume-item h5 {
  background: rgba(14,165,233,0.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.9rem;
}

.resume .resume-item ul {
  list-style: none;
  padding-left: 1.4em;
}

.resume .resume-item ul li::before {
  content: "▹ ";
  color: var(--accent-color);
}

.resume .resume-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.resume .resume-item a:hover {
  text-decoration: underline;
}

/* Bouton CV */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-cv:hover {
  background: color-mix(in srgb, var(--accent-color), #fff 20%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(14,165,233,0.4);
}

.btn-cv i { font-size: 1.1rem; }

/*--------------------------------------------------------------
# PORTFOLIO — Filtres + Cartes + Overlays
--------------------------------------------------------------*/
.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;
  margin: 0 8px 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  color: var(--heading-color);
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all .25s ease;
}

.portfolio .portfolio-filters li:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.portfolio .portfolio-filters li.filter-active {
  color: var(--heading-color);
  background: rgba(14,165,233,0.16);
  border-color: rgba(14,165,233,0.4);
}

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

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portfolio .portfolio-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14,165,233,0.18);
  border-color: rgba(14,165,233,0.28);
}

.portfolio .portfolio-content img {
  width: 100%;
  height: auto;
  transition: transform .3s ease, filter .3s ease;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.05);
  filter: saturate(1.03);
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.65) 100%);
  transition: opacity .25s ease;
}

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

.portfolio .portfolio-content .portfolio-info h4 {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color);
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0;
}

.portfolio .portfolio-content .portfolio-info p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #fff;
  transition: color .2s ease, transform .2s ease;
  line-height: 1;
}

.portfolio .portfolio-content .portfolio-info .preview-link { left: calc(50% - 36px); }
.portfolio .portfolio-content .portfolio-info .details-link { left: calc(50% + 8px); font-size: 32px; }

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.08);
}

.portfolio .portfolio-content .portfolio-info a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio .portfolio-content,
  .portfolio .portfolio-content img,
  .portfolio .portfolio-filters li { transition: none !important; }
}

/*--------------------------------------------------------------
# Contact Section (version sans formulaire)
--------------------------------------------------------------*/
.contact .info-wrap {
  background: var(--surface-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.contact .info-wrap:hover {
  box-shadow: 0 6px 26px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

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

.contact .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.contact .info-item:last-child { margin-bottom: 0; }

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

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

.contact .info-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--heading-color);
}

.contact .info-item p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.contact .info-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact .info-item a:hover {
  color: color-mix(in srgb, var(--accent-color), #fff 25%);
}

/* Carte */
.contact iframe {
  border-radius: 10px;
  margin-top: 15px;
  width: 100%;
  height: 270px;
  border: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# 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%);
}

/* === Portfolio Details Info Custom === */
.portfolio-details .portfolio-info h3 { font-weight: 700; }
.portfolio-details .portfolio-info ul { list-style: none; padding-left: 0; margin: 0; }
.portfolio-details .portfolio-info ul li { margin: 6px 0; line-height: 1.5; }
.portfolio-details .portfolio-info ul li strong {
  min-width: 120px;
  display: inline-block;
  color: var(--heading-color);
}

/* ===========================
   HERO — TYPOGRAPHIE PRO
   =========================== */

.hero h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem); /* responsive */
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;

  /* effet premium */
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45),
    0 0 25px rgba(14, 165, 233, 0.25);

  margin-bottom: 15px;
}

/* Phrase + typed.js */
.hero p {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Texte animé */
.hero p span.typed {
  font-weight: 600;
  color: #22c55e; /* vert bio */
  border-bottom: 2px solid rgba(34, 197, 94, 0.6);
  padding-bottom: 2px;
}

/* Curseur typed.js */
.typed-cursor {
  font-size: 1.4em;
  color: #22c55e;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .hero h2 {
    letter-spacing: 0.02em;
  }

  .hero p {
    font-size: 1.1rem;
  }
}


/* Motif ADN subtil par-dessus l'image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2; /* même couche que l'overlay, mais on gère avec opacity */
  pointer-events: none;

  /* SVG inline (ADN) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cg fill='none' stroke='%230ea5e9' stroke-width='3' stroke-linecap='round' opacity='0.9'%3E%3Cpath d='M120 40 C 260 160, 260 440, 120 560'/%3E%3Cpath d='M240 40 C 380 160, 380 440, 240 560'/%3E%3Cpath d='M120 120 L240 120'/%3E%3Cpath d='M120 190 L240 190'/%3E%3Cpath d='M120 260 L240 260'/%3E%3Cpath d='M120 330 L240 330'/%3E%3Cpath d='M120 400 L240 400'/%3E%3Cpath d='M120 470 L240 470'/%3E%3C/g%3E%3Cg fill='none' stroke='%2322c55e' stroke-width='2' opacity='0.8'%3E%3Cpath d='M520 30 C 650 170, 650 430, 520 570'/%3E%3Cpath d='M600 30 C 730 170, 730 430, 600 570'/%3E%3Cpath d='M520 105 L600 105'/%3E%3Cpath d='M520 175 L600 175'/%3E%3Cpath d='M520 245 L600 245'/%3E%3Cpath d='M520 315 L600 315'/%3E%3Cpath d='M520 385 L600 385'/%3E%3Cpath d='M520 455 L600 455'/%3E%3C/g%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: clamp(520px, 55vw, 900px);

  /* subtilité */
  opacity: 0.12;
  filter: blur(0.2px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.85) 0%,
    rgba(2, 6, 23, 0.55) 40%,
    rgba(2, 6, 23, 0.20) 100%
  );
}

/* HERO – hauteur réduite */
#hero {
  min-height: 75vh;          /* 🔽 au lieu de 100vh */
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Image du hero */
#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* garde un rendu propre */
  object-position: center;  /* centre l’ADN */
}

/* Texte au-dessus */
#hero .container {
  position: relative;
  z-index: 2;
}

.service-hero {
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #020617 100%
  );
}

.page-title h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.breadcrumbs {
  opacity: 0.8;
}

.vision-box {
  background: linear-gradient(
    145deg,
    rgba(20,157,221,0.08),
    rgba(15,23,42,0.02)
  );
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid #149ddd;
}

.vision-box h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.vision-box p {
  font-size: 0.95rem;
  line-height: 1.7;
}


/*--------------------------------------------------------------
# Starter Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

