/* Custom font: Desirable Brust Texture */
@font-face {
  font-family: 'Desirable Brust Texture';
  src: url('../fonts/DesirableBrustTexture.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Justification du texte pour les descriptions de projets */
.justify-text {
  text-align: justify;
}
/* Suppression du layout colonne/flex pour revenir à l'affichage d'origine */
@media (min-width: 992px) {
  .software-flex-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }
  .software-grid-3d {
    margin-bottom: 0;
  }
  .software-info-panel {
    max-width: 400px;
    min-width: 320px;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    min-height: 240px;
    max-height: none;
    align-self: flex-start;
  }
}
/* Fondu simple entre les pages */
body.fade-in {
  animation: fadeInPage 0.4s cubic-bezier(.4,1.6,.4,1);
}
body.fade-out {
  animation: fadeOutPage 0.35s cubic-bezier(.4,1.6,.4,1) forwards;
}
@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOutPage {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* Suppression du border-radius sur les images des cartes projets */
.card-img-wrapper img {
  border-radius: 0 !important;
}
/* Boutons motion-toggle-btn transparents en dark mode quand non sélectionnés */
body.dark-theme .motion-toggle-btn.btn-outline-primary {
  background: transparent !important;
  color: #bfc2ff !important;
  border: 2px solid #bfc2ff !important;
  box-shadow: none !important;
  opacity: 0.85;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
body.dark-theme .motion-toggle-btn.btn-outline-primary:hover,
body.dark-theme .motion-toggle-btn.btn-outline-primary:focus {
  background: rgba(60, 60, 120, 0.12) !important;
  color: #fff !important;
  border-color: #fff !important;
  opacity: 1;
}
/* ==================== RESPONSIVE HERO MOBILE ==================== */
@media (max-width: 768px) {
  .hero-simple {
    max-width: 100vw;
    padding: 4rem var(--space-sm) 0 var(--space-sm);
  }
  .hero-simple h1 {
    font-size: 0.98rem;
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--title-project-spacing);
    line-height: 1.13;
    text-align: center;
    word-break: break-word;
  }
  .hero-simple .hero-subtitle {
    font-size: 0.74rem;
    margin-bottom: 0.35rem;
    text-align: center;
    font-weight: var(--font-medium);
    opacity: 0.85;
  }
  .hero-simple .hero-desc {
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--text-muted);
  }
  .hero-btn-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0 auto 0.6rem auto;
    width: 100%;
    max-width: 100vw;
    padding: 0 var(--space-sm);
  }
  .hero-btn-row .btn-mobile {
    width: auto;
    min-width: 0;
    max-width: none;
    font-size: 0.7rem;
    padding: 0.5rem 0.9rem;
    margin: 0;
    border-radius: var(--radius-sm);
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: var(--font-semibold);
    letter-spacing: 0.01em;
    line-height: 1.2;
  }
  /* Bouton CV mobile */
  .btn-cv-bw.btn-mobile {
    width: auto !important;
    max-width: none !important;
    padding: 0.5rem 0.9rem !important;
  }
  .btn-cv-bw.btn-mobile svg {
    flex-shrink: 0;
  }
  /* Paragraphes, descriptions, textes secondaires */
  p, li, .section-desc, .parcours-desc, .inspiration-desc, .timeline-desc, .project-desc, .avenir-desc, .contact-desc {
    font-size: var(--text-desc-mobile) !important;
  }
  /* Boutons */
  .btn-unified, .btn, .btn-mobile, button, input[type="submit"], input[type="button"] {
    font-size: var(--text-btn-mobile) !important;
  }
}
/* Afficher la photo sous la timeline uniquement sur mobile */
@media (max-width: 991px) {
  .photo-mobile-only {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 2.5rem auto 0 auto;
    width: 100%;
  }
  .photo-mobile-only img {
    max-width: 220px;
    width: 80vw;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  }
  /* Masquer la colonne photo à droite sur mobile */
  .timeline-right-column {
    display: none !important;
  }
}
.photo-mobile-only {
  display: none !important;
}

/* Masquer la section logiciels sur mobile */
@media (max-width: 991px) {
  #softwares {
    display: none !important;
  }
}

.timeline-right-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: var(--space-section);
}

.photo-image-card {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: var(--space-2xl);
}

.photo-image-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Séparateur sous les boutons projet du hero */
.hero-separator {
  width: 200px;
  height: 1px;
  margin: var(--title-project-margin) auto 0 auto;
  border-radius: 1px;
  background: var(--color-primary);
  opacity: 1;
  transition: background var(--transition-base);
}

body.dark-theme .hero-separator {
  background: var(--text-white);
}

/* Light theme : boutons projet du hero */
body:not(.dark-theme) .hero-simple h1 {
  color: var(--text-dark);
}

body:not(.dark-theme) .hero-simple .hero-subtitle {
  color: #0d39a2;
  opacity: 0.8;
}

body:not(.dark-theme) .hero-simple .hero-desc {
  color: var(--text-dark);
}

body:not(.dark-theme) .hero-btn-row .hero-btn-category {
  background: var(--color-primary);
  color: var(--text-white);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

body:not(.dark-theme) .hero-btn-row .hero-btn-category:hover,
body:not(.dark-theme) .hero-btn-row .hero-btn-category:focus {
  background: var(--color-primary-dark);
  color: var(--text-white);
}

/* Boutons unifiés pour projet, voir, lettre, calendrier */
.btn-unified {
  min-width: var(--btn-min-width);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-border-radius) !important;
  box-shadow: var(--shadow-sm);
  border: none;
  transition: background var(--transition-base), color var(--transition-base);
  outline: none;
  display: inline-block;
}

/* HERO SIMPLE STYLE */
.home-hero-modern {
  background: var(--bg-gradient-light);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: visible;
}

.hero-simple {
  text-align: center;
  color: var(--text-light);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-simple h1 {
  color: var(--text-white);
  font-family: 'Desirable Brust Texture', cursive;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 2.7rem;
  line-height: 1.05;
}

.hero-simple .hero-subtitle {
  font-size: var(--btn-font-size);
  color: #b3c2e6;
  font-weight: var(--font-medium);
  margin-bottom: 0.2rem;
}

.hero-simple .hero-desc {
  max-width: 700px;
  margin: 0 auto var(--space-sm) auto;
  font-size: 1.08rem;
  color: var(--text-light);
}

.hero-simple .hero-btn-row {
  display: flex;
  gap: var(--gap-lg);
  justify-content: center;
  margin-top: var(--space-lg);
  position: relative;
}

.hero-simple .hero-btn-category {
  background: var(--text-white);
  color: #1a237e;
  border: none;
  border-radius: unset;
  font-weight: var(--font-semibold);
  font-size: var(--btn-font-size);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  min-width: var(--btn-min-width);
  margin: 0 var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), color var(--transition-base);
  outline: none;
}

.hero-simple .hero-btn-category:hover,
.hero-simple .hero-btn-category:focus {
  background: #b3c2e6;
  color: #1a237e;
}

/* Hero mobile */
@media (max-width: 768px) {
  .home-hero-modern {
    padding: 0;
  }
  .hero-simple h1 {
    font-size: var(--title-project-size-mobile);
  }
  .hero-simple .hero-btn-row {
    flex-direction: column;
    gap: var(--gap-sm);
  }
  .hero-simple .hero-btn-category {
    min-width: 0;
    width: 100%;
  }
}

/* Hero desktop - padding top */
@media (min-width: 769px) {
  .home-hero-modern {
    padding: 8vh 0 0 0;
  }
  .hero-simple h1 {
    padding-top: 8vh;
  }
}

/* Dark theme hero */
body.dark-theme .home-hero-modern {
  background: var(--bg-gradient-dark);
}

body.dark-theme .hero-simple {
  color: var(--text-light);
}

body.dark-theme .hero-simple h1 {
  color: var(--text-white);
}

body.dark-theme .hero-simple .hero-subtitle {
  color: #b3c2e6;
}

body.dark-theme .hero-simple .hero-desc {
  color: var(--text-light);
}

body.dark-theme .hero-simple .hero-btn-category {
  background: var(--text-white);
  color: #1a237e;
}

/* Hero bottom labels */
.hero-bottom-labels {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  font-size: 0.9rem;
  color: var(--text-light);
  z-index: 10;
  width: 100%;
}

.hero-labels-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-time-label {
  background: #d1f4e0;
  color: #047857;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  letter-spacing: 0.02em;
}

.hero-time-label::before {
  content: '';
  width: 16px;
  height: 16px;
  background: #047857;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-date {
  color: #e5e7eb;
  font-weight: var(--font-medium);
  font-size: 1rem;
}

.hero-labels-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hero-nav-item {
  color: #e5e7eb;
  font-weight: var(--font-medium);
  transition: opacity 0.2s;
}

.hero-nav-item.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-nav-item:hover {
  opacity: 0.7;
  cursor: pointer;
}

.hero-nav-separator {
  color: #e5e7eb;
  opacity: 0.6;
}

/* Dark theme adjustments for hero labels */
body.dark-theme .hero-bottom-labels {
  color: #e5e7eb;
}

body.dark-theme .hero-date {
  color: #e5e7eb;
}

body.dark-theme .hero-nav-item,
body.dark-theme .hero-nav-separator {
  color: #e5e7eb;
}

/* Mobile responsiveness for hero labels */
@media (max-width: 768px) {
  .hero-bottom-labels {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
    bottom: 1rem;
  }
  
  .hero-labels-left {
    width: 100%;
    justify-content: center;
  }
  
  .hero-labels-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
}


body.dark-theme .hero-simple .hero-btn-category:hover,
body.dark-theme .hero-simple .hero-btn-category:focus {
  background: #b3c2e6;
  color: #1a237e;
}

/* Bouton CV noir et blanc */
.btn-cv-bw {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

.btn-cv-bw:hover,
.btn-cv-bw:focus {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  opacity: 0.85;
}

body:not(.dark-theme) .btn-cv-bw {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

body:not(.dark-theme) .btn-cv-bw:hover,
body:not(.dark-theme) .btn-cv-bw:focus {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  opacity: 0.85;
}

.hero-simple .hero-keyword {
  font-size: var(--title-project-size-mobile);
  font-weight: var(--font-normal);
  color: #b3c2e6;
  margin-bottom: var(--space-sm);
}

/* Inspirations section - Design simple et épuré */
.inspiration-simple-card {
  display: block;
  text-decoration: none;
  border-radius: 0;
  background: rgba(241, 235, 253, 0.3);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-slow) ease;
}

.inspiration-simple-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(38, 38, 123, 0.15);
  background: rgba(241, 235, 253, 0.5);
}

.inspiration-visual {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.inspiration-visual img,
.inspiration-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.inspiration-simple-card:hover .inspiration-visual img,
.inspiration-simple-card:hover .inspiration-visual video {
  transform: scale(1.05);
}

.inspiration-info {
  padding: var(--space-lg);
}

.inspiration-title {
  font-size: var(--btn-font-size);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin: 0 0 0.3rem 0;
  font-family: var(--font-family-heading);
}

.inspiration-category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-sm) 0;
  font-weight: var(--font-medium);
}

.inspiration-desc {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .inspiration-visual {
    height: 160px;
  }
  .inspiration-info {
    padding: var(--space-sm);
  }
  .inspiration-title {
    font-size: 0.9rem;
  }
  .inspiration-category {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }
  .inspiration-desc {
    font-size: var(--text-xs);
    line-height: 1.4;
  }
  /* Bordures mobile */
  .inspiration-simple-card,
  .project-card,
  .photo-image-card {
    border: 1.5px solid rgba(38, 38, 123, 0.25);
    box-shadow: var(--shadow-sm);
  }
  .project-card {
    border-radius: 0;
  }
}

/* ==================== ALIASES POUR RÉTROCOMPATIBILITÉ ==================== */
:root {
  --primary: var(--color-primary);
  --accent: var(--color-accent);
  --muted: var(--text-muted);
  --glass-bg: var(--bg-glass);
  --glass-border: var(--border-glass);
  --card-bg: var(--bg-card);
}

/* Dark Theme */
body.dark-theme {
  --primary: var(--color-primary);
  --accent: var(--color-accent);
  --muted: var(--text-muted);
  --glass-bg: var(--bg-glass);
  --glass-border: var(--border-glass);
  --card-bg: var(--bg-card);
  --border-color: rgba(123,123,212,0.15);
}

body.dark-theme {
  background-color: var(--bg-color);
  color: var(--text-color);
}

body.dark-theme .display-2,
body.dark-theme h2,
body.dark-theme .fw-bolder {
  color: #b8b8e8;
}

body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme .h5 {
  color: var(--color-primary);
}

body.dark-theme .liquid-glass,
body.dark-theme .glass-card,
body.dark-theme .card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-theme .navbar-dynamic {
  background: transparent;
  border-color: transparent;
}

body.dark-theme .navbar-dynamic.scrolled {
  background: rgba(15, 15, 30, 0.85);
  border-color: rgba(138, 138, 255, 0.3);
}

body.dark-theme .btn-contact-nav,
body.dark-theme .cursor-dot {
  background: var(--color-primary);
  color: var(--bg-color);
}

body.dark-theme .cursor-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

body.dark-theme .hero-badge {
  border-color: var(--color-primary);
}

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

body.dark-theme p {
  color: var(--text-color);
}

body.dark-theme .btn {
  background: var(--color-primary);
  color: var(--bg-color);
  border-color: var(--color-primary);
}

body.dark-theme .btn:hover {
  background: #9999e0;
  border-color: #9999e0;
}

body.dark-theme .section-title {
  color: var(--color-primary);
}

body.dark-theme .avenir-card,
body.dark-theme .contact-card,
body.dark-theme .project-card,
body.dark-theme .inspiration-simple-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-theme .avenir-accordion-item {
  border-bottom-color: var(--border-color);
}

body.dark-theme .hero-name,
body.dark-theme .hero-specialties {
  color: var(--text-color);
}

body.dark-theme .scroll-indicator,
body.dark-theme .scroll-to-top,
body.dark-theme .cursor-toggle {
  background: var(--text-white);
  border-color: var(--text-white);
}

body.dark-theme .scroll-text,
body.dark-theme .scroll-arrow svg,
body.dark-theme .scroll-top-arrow {
  color: #000;
  fill: #000;
  stroke: #000;
}

body.dark-theme footer {
  background: var(--color-primary);
  color: var(--text-color);
}

body.dark-theme footer h3 {
  color: var(--color-primary-light);
}

body.dark-theme .footer-left p {
  color: var(--text-white) !important;
}

/* ==================== FOOTER ==================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  border-radius: var(--radius-lg);
  filter: drop-shadow(var(--shadow-popup));
}

body.dark-theme .footer-logo img {
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.footer-left h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.footer-left p {
  font-size: 0.9rem;
  color: var(--text-white) !important;
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-social-links {
  display: flex;
  gap: var(--gap-xs);
  align-items: center;
}

.footer-social-icon {
  width: 42px;
  height: 42px;
  background: var(--text-white);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-slow) ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.footer-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow) ease;
  border-radius: var(--radius-full);
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .footer-left { align-items: center; }
  .footer-right { justify-content: center; }
}

body.dark-theme .software-card,
body.dark-theme .style-frame {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-theme .read-more-btn {
  background: var(--color-primary);
  color: var(--bg-color);
}

/* ==================== RESET / BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: var(--font-family-primary);
  font-weight: var(--font-light);
  font-size: var(--text-base);
  color: var(--text-muted);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  cursor: none !important;
}

/* Responsive HERO mobile */
@media (max-width: 768px) {
  .hero-simple h1 { font-size: 2.5rem !important; }
  .hero-simple .hero-subtitle { font-size: 12px !important; }
  .hero-simple .hero-desc { font-size: 12.5px !important; }
  .hero-btn-row .btn-mobile { font-size: 13px !important; }
  
  /* Hiérarchie typographique mobile uniforme */
  h1, .h1 {
    font-size: 1.75rem !important; /* 28px */
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  
  h2, .h2 {
    font-size: 1.4rem !important; /* 22.4px */
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }
  
  h3, .h3, .timeline-title, .accordion-title {
    font-size: 1.1rem !important; /* 17.6px */
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }
  
  h4, .h4, .inspiration-title {
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
  }
  
  h5, .h5 {
    font-size: 0.95rem !important; /* 15.2px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
  }
  
  h6, .h6 {
    font-size: 0.875rem !important; /* 14px */
    font-weight: 600 !important;
    line-height: 1.4 !important;
  }
}

/* ==================== CUSTOM CURSOR ==================== */
body.custom-cursor-disabled,
body.custom-cursor-disabled *,
body.custom-cursor-disabled *::before,
body.custom-cursor-disabled *::after {
  cursor: auto !important;
}

body:not(.custom-cursor-disabled) *,
body:not(.custom-cursor-disabled) *::before,
body:not(.custom-cursor-disabled) *::after,
body:not(.custom-cursor-disabled) a,
body:not(.custom-cursor-disabled) button,
body:not(.custom-cursor-disabled) input,
body:not(.custom-cursor-disabled) textarea,
body:not(.custom-cursor-disabled) select,
body:not(.custom-cursor-disabled) label,
body:not(.custom-cursor-disabled) [role="button"],
body:not(.custom-cursor-disabled) .card,
body:not(.custom-cursor-disabled) .card-clickable {
  cursor: none !important;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: var(--radius-full);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
  transition: background var(--transition-slow) ease;
}

.cursor-dot.on-blue {
  background: var(--color-primary-light);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 38, 123, 0.5);
  background: transparent;
  transform: translate(-50%, -50%);
  transition: width var(--transition-base) ease, height var(--transition-base) ease, background var(--transition-base) ease, border var(--transition-base) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  text-align: center;
  white-space: nowrap;
}

.cursor-outline.on-blue {
  border-color: rgba(123, 123, 212, 0.8);
  color: var(--color-primary-light);
}

.cursor-outline.hover {
  width: 60px;
  height: 60px;
  background: rgba(38, 38, 123, 0.1);
  border: 1px solid rgba(38, 38, 123, 0.8);
}

.cursor-outline.sound-enabled {
  font-size: 0;
}

.cursor-dot.hover {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Désactiver curseur sur mobile/tablette */
@media (max-width: 1024px) {
  body { cursor: auto; }
  .cursor-dot,
  .cursor-outline { display: none; }
}

/* Scroll progress line désactivée */
.scroll-progress-line {
  display: none;
}

/* Typography */
/* ==================== TYPOGRAPHY ==================== */
.display-2 {
  font-family: var(--font-family-heading);
  font-size: clamp(32px, 6vw, 65px);
  color: var(--color-primary);
  line-height: 1.02;
  margin: 0 0 var(--space-sm) 0;
}

h2, .fw-bolder {
  font-family: var(--font-family-secondary);
  font-weight: var(--font-semibold);
  font-size: var(--title-section-size);
}

/* ==================== GLASS CARD ==================== */
.liquid-glass,
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.liquid-glass > .top-glow,
.glass-card > .top-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01), transparent);
  pointer-events: none;
}

.liquid-glass::after,
.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(to top, rgba(38, 38, 123, 0.12), rgba(38, 38, 123, 0.02) 50%, transparent 100%);
  pointer-events: none;
}

/* ==================== DYNAMIC NAVBAR ==================== */
.navbar-dynamic {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: var(--z-navbar);
  padding: 20px 40px;
  transition: 
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background: transparent;
  border-radius: 0;
    border-bottom: 1px solid rgba(38, 38, 123, 0);
    animation: slideDownNav 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes slideDownNav {
  to {
    top: 20px;
  }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

/* 2. État Scrolled (Bulle flottante) */
.navbar-dynamic.scrolled {
    top: 20px; /* Se détache du haut */
    width: 90%; /* Rétrécit */
    max-width: 900px; /* Taille max de la bulle */
    padding: 10px 25px; /* Devient plus compacte */

    /* Effet Verre (Liquid Glass) */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px; /* Forme capsule */
    box-shadow: 0 10px 30px -10px rgba(38, 38, 123, 0.15);
}

/* Gestion des 3 blocs (Gauche / Centre / Droite) */
.nav-block {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-center { justify-content: center; }
.nav-right { justify-content: flex-end; gap: 20px; }

/* Logo */
.nav-logo-img {
    height: 36px;
    width: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.nav-logo-img:hover { transform: scale(1.1); }

/* Contact logo */
.contact-logo img {
    border-radius: 50%;
}

/* Nom au centre */
.brand-name {
    font-family: var(--font-family-heading);
    font-weight: var(--font-bold);
    font-size: 1.2rem;
    color: var(--primary);
    white-space: nowrap;
    opacity: 0.9;
}

/* Liens - Avec fond pour lisibilité en haut de page */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 25px;

    /* Fond semi-transparent pour lisibilité quand navbar transparente */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 30px;
    transition: background 0.3s ease;
}

/* Quand scrolled, on peut réduire le fond des liens */
.navbar-dynamic.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary); /* Plus visible */
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover { 
    color: var(--primary); 
    opacity: 0.8;
}

/* Bouton Contact (Rond) */
.btn-contact-nav {
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 38, 123, 0.3);
}

/* Audio Control in Navbar */
.audio-control-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.music-toggle-btn,
.theme-toggle-btn,
.lang-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.lang-toggle-btn {
    font-family: var(--font-family-secondary);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    padding: 6px 10px;
    border-radius: var(--radius-md);
}

.music-toggle-btn:hover,
.theme-toggle-btn:hover,
.lang-toggle-btn:hover {
    background: rgba(38, 38, 123, 0.1);
    transform: scale(1.1);
}

.music-toggle-btn.playing .music-icon {
    animation: musicPulse 1s ease-in-out infinite;
}

.theme-control-nav,
.lang-control-nav {
    display: flex;
    align-items: center;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.music-icon {
    display: block;
}

.volume-control {
    display: flex;
    align-items: center;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.audio-control-nav:hover .volume-control {
    opacity: 1;
    max-width: 80px;
    margin-left: 5px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(38, 38, 123, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(38, 38, 123, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(38, 38, 123, 0.4);
}

/* Masquer les contrôles audio sur mobile */
@media (max-width: 768px) {
  .audio-control-nav {
    display: none !important;
  }
}

/* Burger (Mobile) - 3 barres */
.burger-menu {
    background: none; 
    border: none;
    display: flex; 
    flex-direction: column; 
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px; /* Plus d'espace pour éviter la coupure */
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Important pour que la croix ne soit pas coupée */
}

.burger-menu span {
    width: 24px; 
    height: 2px; 
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    display: block;
}

/* Contrôles toujours visibles (audio, thème, langue) */
.nav-controls-always-visible {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .navbar-dynamic {
        padding: 15px 20px; /* Moins de padding sur mobile */
    }

    .navbar-dynamic.scrolled {
        width: 95%; /* Plus large sur mobile */
        top: 10px; /* Plus proche du haut */
        padding: 12px 20px;
    }

    .nav-center { 
        display: none; /* Cache le nom au centre sur mobile */
    }

    .nav-right {
        gap: 10px; /* Réduit l'espacement */
    }

    .nav-links {
        display: none; /* Caché par défaut sur mobile */
        padding: 6px 15px; /* Liens plus compacts */
        gap: 15px;
    }

    .nav-controls-always-visible {
        gap: 6px;
    }

    /* Réduire la taille des boutons sur mobile */
    .music-toggle-btn svg,
    .theme-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    .lang-toggle-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* === MOBILE MENU OVERLAY === */
/* FIX: Force navbar à rester collée en haut quand menu ouvert */
.navbar-dynamic.nav-open {
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0) !important;
    box-shadow: none !important;
}

/* Menu mobile plein écran quand ouvert */
.navbar-dynamic.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 998; /* Plus bas que le burger */
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    padding-top: 100px; /* Espace pour le burger en haut */
    border-radius: 0;
    margin: 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Liens dans le menu mobile - Animation Stagger */
.navbar-dynamic.nav-open .nav-links li {
    list-style: none;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.5s ease forwards;
}

/* Délais progressifs pour effet cascade */
.navbar-dynamic.nav-open .nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar-dynamic.nav-open .nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.navbar-dynamic.nav-open .nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.navbar-dynamic.nav-open .nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-dynamic.nav-open .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

/* Bouton contact visible dans le menu mobile */
.navbar-dynamic.nav-open .btn-contact-nav {
    display: block;
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* Animation du burger en X quand ouvert (3 barres) */
.navbar-dynamic.nav-open .burger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.navbar-dynamic.nav-open .burger-menu span:nth-child(2) {
    opacity: 0; /* Barre du milieu disparaît */
}

.navbar-dynamic.nav-open .burger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Banner plein écran --- */
.home-hero{
  width: 100%;
  min-height: 100vh;               /* prend toute la fenêtre */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;               /* espace pour la navbar */
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;  /* pour contenir l'image */
}

/* Image de fond du hero */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  padding: 0;
}

/* Overlay sombre optionnel pour meilleure lisibilité */

.home-hero-modern {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 8vh;
  padding-bottom: 0;
}

.hero-card { transform: translateY(0); transition: var(--transition-base); }

/* HERO - Modern Design */
.home-hero-modern {
  height: 100vh;
  width: 100%;
  padding: 0;
  background-color: #EDE9DE;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ajustement du padding pour PC portable */
@media (min-width: 1200px) and (max-width: 1600px) {
  .home-hero-modern {
    padding-top: 80px;
  }
}

/* Bouton Scroll Indicator - Demi-cercle fixe */
.scroll-indicator {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 140px;
  height: 70px;
  background: #000;
  border-radius: 140px 140px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 15px;
  z-index: 1000;
  animation: slideUpFromBottom 2.4s ease-out 1.2s forwards;
  cursor: pointer;
  transition: opacity 0.6s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.scroll-text {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: bounceScroll 2.4s ease-in-out infinite 1.2s;
}

@keyframes slideUpFromBottom {
  0% {
    transform: translateX(-50%) translateY(100%);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

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

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Bouton Scroll to Top - Cercle noir fixe à droite */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(150px);
  animation: slideUpToTop 2.4s ease-out 1.2s forwards, bounceUp 2.4s ease-in-out 1.2s infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.scroll-top-arrow svg {
  display: block;
  margin: 0 auto;
}

/* Cursor Toggle Button */
.cursor-toggle {
  position: fixed;
  right: 20px;
  bottom: 110px;
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 3s ease;
}

/* Visible uniquement sur desktop (>768px) */
@media (max-width: 768px) {
  .cursor-toggle {
    display: none !important;
  }
}

.cursor-toggle:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cursor-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cursor-toggle-icon::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
}

.cursor-toggle-icon::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  opacity: 0.5;
}

body.dark-theme .cursor-toggle-icon::before {
  border-color: #000;
}

body.dark-theme .cursor-toggle-icon::after {
  border-color: #000;
}

body.custom-cursor-disabled .cursor-toggle-icon::before,
body.custom-cursor-disabled .cursor-toggle-icon::after {
  opacity: 0.3;
}

body.custom-cursor-disabled .cursor-toggle {
  opacity: 0.7;
}

@keyframes slideUpFromBottom {
  from {
    transform: translateY(150px);
  }
  to {
    transform: translateY(0);
  }
}

/* Cursor Selection Menu */
.cursor-menu {
  position: fixed;
  right: 100px;
  bottom: 110px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 20px;
  padding: 15px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.dark-theme .cursor-menu {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.4);
}

.cursor-menu.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.cursor-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  white-space: nowrap;
}

.cursor-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
}

.cursor-option.selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme .cursor-option {
  background: rgba(0, 0, 0, 0.05);
}

body.dark-theme .cursor-option:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark-theme .cursor-option.selected {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.3);
}

.cursor-option-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cursor-option-icon.default-cursor {
  font-size: 20px;
}

.cursor-option-icon.custom-cursor::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
}

.cursor-option-icon.custom-cursor::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  opacity: 0.5;
}

body.dark-theme .cursor-option-icon.custom-cursor::before,
body.dark-theme .cursor-option-icon.custom-cursor::after {
  border-color: #000;
}

.cursor-option-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

body.dark-theme .cursor-option-text {
  color: #000;
}

/* Hide custom cursor when disabled (default state) */
body.custom-cursor-disabled .cursor-dot,
body.custom-cursor-disabled .cursor-outline {
  display: none !important;
}

/* Desktop only */
@media (min-width: 992px) {
  .cursor-toggle {
    display: flex;
  }
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

@keyframes slideUpToTop {
  0% {
    transform: translateY(150px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* === LIQUID FILL EFFECT === */
/* Banner qui monte du bas */
.hero-banner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3ef 0%, #e8e6e1 100%);
}

.hero-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

/* Afficher banner claire en mode jour */
.hero-banner-light {
  display: block;
}

.hero-banner-dark {
  display: none;
}

/* Afficher banner sombre en mode nuit */
body.dark-theme .hero-banner-light {
  display: none;
}

body.dark-theme .hero-banner-dark {
  display: block;
}

/* Effet machine à écrire */
.typewriter-line {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  opacity: 0;
  width: 0;
}

.typewriter-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0;
  display: none; /* Suppression de la barre bleue */
}

@keyframes showLine {
  to { opacity: 1; }
}

@keyframes typing1 {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes typing2 {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes showCursor {
  to { opacity: 1; }
}

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

@keyframes hideCursor {
  to { opacity: 0; }
}

@keyframes removeCursor1 {
  to { padding-right: 0; }
}

@keyframes removeCursor2 {
  to { padding-right: 0; }
}

/* Fade in pour les autres éléments */
.hero-fade-element {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.5s ease-out;
}

.hero-fade-element:nth-child(3) {
  animation-delay: 1.2s;
}

.hero-fade-element:nth-child(4) {
  animation-delay: 1.3s;
}

.hero-fade-element:nth-child(5) {
  animation-delay: 1.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
  opacity: 1;
}

.hero-left {
  padding-right: 0;
}

/* Ajustements pour PC portable */
@media (min-width: 1200px) and (max-width: 1600px) {
  .hero-container {
    padding: 0 40px;
    gap: 30px;
    grid-template-columns: 1fr 350px;
  }

  .hero-left {
    padding-right: 20px;
  }

  .hero-specialties {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .hero-name {
    font-size: 1.3rem;
  }

  .hero-about-text {
    font-size: 0.9rem;
  }

  .hero-about-text p {
    margin-bottom: 8px;
  }

  .hero-main-btn {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .hero-btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-btn-category {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Styles de la colonne centrale supprimés (icônes défilantes retirées) */

/* NOUVEAU DESIGN - Style Lusion/MakeMePulse */

/* Grand titre principal "Creative Developer" */
.hero-main-title {
  font-family: var(--font-family-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: var(--font-normal);
  line-height: 1.1;
  color: rgba(38, 38, 123, 0.5);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-style: italic;
  position: relative;
  display: block;
  padding-bottom: var(--space-sm);
}

/* Mode sombre : titre en bleu clair */
body.dark-theme .hero-main-title {
  color: #7b7bd4;
}

/* Ajustement spécifique pour les écrans de PC portables (1366px-1600px) */
@media (min-width: 1200px) and (max-width: 1600px) {
  .hero-main-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    margin-bottom: 16px;
  }
}

/* Trait imposant qui grandit avec le scroll - style Lusion */
.hero-main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(
    90deg, 
    rgba(38, 38, 123, 0.9) 0%,
    rgba(38, 38, 123, 0.7) 50%,
    rgba(38, 38, 123, 0.3) 100%
  );
  width: var(--scroll-width, 0%);
  max-width: 100%;
  transition: width 0.1s ease-out;
  border-radius: unset;
  box-shadow: 0 4px 20px rgba(38, 38, 123, 0.3);
}

/* Effet de brillance sur le trait */
.hero-main-title::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  width: var(--scroll-width, 0%);
  max-width: 100%;
  transition: width 0.1s ease-out;
  border-radius: 2px;
  z-index: 1;
}

/* Spécialités sous le titre */
.hero-specialties {
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Section nom avec badge */
.hero-name-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: #2a2a2a;
  letter-spacing: -0.01em;
}

/* Anciens styles pour compatibilité */
.hero-brand {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 20px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 6px 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-badge:hover {
  transform: scale(1.05);
}

.hero-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge-text {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9em;
  margin-left: 10px;
}

.hero-about-text {
  margin: 0 0 24px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  max-width: 580px;
  font-weight: 300;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-about-text p {
  margin-bottom: 10px;
}

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

.hero-main-btn {
  margin: 20px 0 16px;
}

.hero-btn-primary {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: white;
  background: #2a2a2a;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-btn-category {
  display: inline-block;
  background: #1a1a1a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid #1a1a1a;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.hero-btn-category:hover {
  background: #333;
  color: #ffffff;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mode sombre : inverser les couleurs */
body.dark-theme .hero-btn-category {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

body.dark-theme .hero-btn-category:hover {
  background: #f5f5f5;
  color: #1a1a1a;
  border-color: #f5f5f5;
}

/* Mode sombre : background hero */
body.dark-theme .home-hero-modern {
  background-color: #0f0f1e;
}

.hero-color-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.color-badge-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.hero-stats {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stats-arrow {
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.stats-arrow:hover {
  color: #333;
}

.stats-graph {
  flex: 1;
  position: relative;
}

.stats-line {
  width: 100%;
  height: 80px;
  color: #1a1a1a;
}

.stats-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.stat-value {
  font-size: 0.9rem;
  color: #999;
}

.stat-value.current {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-label-sub {
  font-size: 0.8rem;
  color: #999;
  margin-top: 5px;
}

.hero-right {
  position: relative;
  perspective: 1500px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.2s ease-out 1.2s forwards;
}

.hero-badge-top {
  display: none;
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  position: relative;
  z-index: 2;
}

/* Logo JR dans la carte photo */
.hero-logo-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.hero-logo {
  width: 55px;
  height: 55px;
  object-fit: cover;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

/* Réseaux sociaux en dehors de la carte photo */
.hero-socials-external {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.hero-socials-external .hero-social-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-socials-external .hero-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.hero-socials-external .hero-social-beacons {
  border-radius: 50%;
  overflow: hidden;
}

.hero-socials-external .hero-social-beacons img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-socials-external .hero-social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(38, 38, 123, 0.15);
}

/* Palette de couleurs style Pantone */
.hero-color-palette-pantone {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
}

.pantone-color {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pantone-color:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.pantone-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.pantone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pantone-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pantone-hex {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
}

.hero-location {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.location-icon {
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.location-info {
  text-align: left;
}

.location-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.location-date {
  font-size: 0.75rem;
  color: #666;
}

/* OLD HERO - Keep for compatibility */
.home-hero{
  padding-top: calc(72px + 1rem);
  padding-bottom: 90px;
  background-image: url("image/hero-banner.jpg");
  background-size:cover;background-position:center;position:relative;
}
.hero-card{max-width:960px;margin:0 auto;padding:48px;text-align:center}
.lead{color:rgba(255,255,255,0.95);margin-bottom:1.25rem}

/* Buttons */
.btn-success{background:linear-gradient(135deg,var(--primary),#1f1f59);border:none;color:#fff}
.btn-light{background:rgba(255,255,255,0.95);color:var(--primary);border:1px solid rgba(0,0,0,0.04)}

/* Contact button - même bleu que les liens */
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* Layout helpers */
.container {
    width: 100%;
    max-width: 1140px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== RESPONSIVE MOBILE - HERO ==================== */
@media (max-width: 768px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Ajustement du hero pour mobile */
  .home-hero-modern {
    min-height: 100vh;
    height: auto;
    padding: 100px 0 60px;
  }

  /* Hero container en une seule colonne */
  .hero-container {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 40px;
  }

  /* Hero left - contenu texte */
  .hero-left {
    padding-right: 0;
    order: 1;
  }

  /* Garder la taille du titre Creative Developer */
  .hero-main-title {
    font-size: clamp(2.5rem, 7vw, 6.5rem);
    margin-bottom: 20px;
  }

  /* Réduire les spécialités */
  .hero-specialties {
    font-size: 0.65rem;
    margin-bottom: 16px;
  }

  /* Réduire la section nom */
  .hero-name-section {
    margin-bottom: 16px;
  }

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

  .hero-badge {
    width: 40px;
    height: 40px;
  }

  /* Réduire le texte de description */
  .hero-about-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .hero-about-text p {
    margin-bottom: 8px;
  }

  /* Boutons sur la même ligne */
  .hero-main-btn {
    margin: 16px 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .hero-btn-primary {
    padding: 10px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    flex: 1;
    text-align: center;
  }

  /* Boutons catégories plus petits */
  .hero-buttons {
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-btn-category {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  /* Cacher la colonne centrale (animation) sur mobile */
  .hero-center {
    display: none;
  }

  /* Hero right - carte image */
  .hero-right {
    order: 2;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Réduire la taille de la carte image */
  .photo-image-card {
    padding: 12px;
    border-radius: 20px;
    margin: 0;
    width: 100%;
    max-width: none;
  }

  .hero-image {
    height: auto;
    border-radius: 5px;
  }

  /* Ajuster les socials sur mobile */
  .hero-socials {
    right: 20px;
    gap: 12px;
  }

  .hero-social-icon {
    width: 40px;
    height: 40px;
  }

  .hero-social-icon img {
    width: 20px;
    height: 20px;
  }

  /* Ajuster les badges couleurs sur mobile */
  .hero-color-badges-card {
    padding: 14px 16px;
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .hero-color-badges-card .color-badge-label {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .color-badges-row {
    gap: 6px;
  }

  .color-swatch {
    font-size: 0.75rem;
    padding: 6px 10px;
    min-width: 70px;
  }

  /* Badge numéro plus petit */
  .hero-badge-top {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    top: 20px;
    left: 20px;
  }

  /* Scroll indicator caché sur mobile */
  .scroll-indicator {
    display: none;
  }

  /* Boutons scroll-to-top et cursor-toggle cachés sur mobile */
  .scroll-to-top,
  .cursor-toggle {
    display: none !important;
  }

  /* Ajuster les cards projets sur mobile */
  .card-img-wrapper {
    padding: 12px;
  }

  .card-img-wrapper img {
    height: 250px;
    object-fit: cover;
    background: #f5f5f5;
  }

  /* Model Viewer 3D sur mobile - hauteur augmentée */
  .model-3d-viewer {
    height: 250px;
  }

  model-viewer {
    height: 250px !important;
    min-height: 250px !important;
  }

  /* Titres de section responsive - uniformes et sobres */
  h2.section-title,
  .section-title,
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 1rem !important;
    color: var(--primary) !important;
    letter-spacing: -0.01em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Formation & expérience - réduire le texte */
  #formation .liquid-glass,
  #formation p,
  #formation .h5 {
    font-size: 0.95rem !important;
  }

  #formation .h5 {
    font-size: 1.2rem !important;
  }

  #formation .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }

  /* Section Avenir - réduire les cards et le texte */
  .avenir-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px !important;
  }

  .avenir-card {
    padding: 18px !important;
  }

  .avenir-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .avenir-icon svg {
    width: 24px;
    height: 24px;
  }

  .avenir-title {
    font-size: 1.4rem !important;
    margin-bottom: 12px;
    font-weight: 600;
  }

  .avenir-list {
    font-size: 1rem !important;
    padding-left: 18px;
  }

  .avenir-list li {
    margin-bottom: 8px;
  }

  .avenir-text {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  /* Section Contact - ajouter du padding sur mobile */
  #contact {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #contact .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #contact .col-lg-8 {
    max-width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .contact-card {
    padding: 24px 20px !important;
  }

  /* Texte intro logiciels - réduire largeur sur mobile et forcer 3 lignes */
  .software-intro-text {
    max-width: 65% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 0.9rem !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }

  /* Affichage conditionnel des textes desktop/mobile */
  .desktop-text {
    display: none !important;
  }

  .mobile-text {
    display: inline !important;
  }
}

/* Affichage par défaut (desktop) */
.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}
.about-section{display:flex;flex-wrap:wrap;gap:30px;align-items:center}
.about-section .text{flex:1 1 320px}
.about-section img{flex:0 0 300px;max-width:100%}

/* Cards grid */
.card img{width:100%;height:auto;display:block;border-top-left-radius:inherit;border-top-right-radius:inherit}

/* CTA */
.cta-section{background:var(--accent);border-radius:12px;padding:40px;margin:40px 0;text-align:center}
.cta-section h2{color:var(--primary)}

/* Footer */
footer{background:var(--primary);color:#fff;padding-top:24px;padding-bottom:24px}

/* Forms */
input,textarea{border:1px solid rgba(38,38,123,0.12);border-radius:8px;padding:10px;width:100%}

/* About section styles */
#about .lead {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.color-badges .badge {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(38,38,123,0.1);
    color: var(--primary);
    font-family: var(--font-family-secondary);
    font-weight: var(--font-normal);
    transition: var(--transition-base);
}

.color-badges .badge:hover {
    transform: translateY(-2px);
}

/* About section social link styling */
.about-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease;
  margin: 0 4px;
}

.about-social-link img {
  width: 20px;
  height: 20px;
}

.about-social-link:hover {
  transform: translateY(-2px);
}

/* About section — grid layout, photo + color swatches */
.about-grid {
  display: flex;
  gap: 48px; /* espace augmenté pour un rendu plus aéré */
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-left {
  flex: 1 1 420px;
  min-width: 280px;
}

.about-right {
  flex: 0 0 380px; /* colonne photo plus large pour agrandir l'image */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20px; /* petit espace supplémentaire si nécessaire */
}

/* Photo styles (rounding but keep glass behind separate) */
.photo-wrap {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(38,38,123,0.08);
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
  width: 100%;
  max-width: 380px; /* augmente la largeur max de la photo */
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  max-height: 360px; /* limite la hauteur pour garder de bonnes proportions */
}

/* Color swatches */
.color-badges { gap: 12px; }

.color-swatch {
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15,23,42,0.06);
  transition: transform .12s ease, box-shadow .12s ease;
  min-width: 80px;
  text-align: center;
  font-size: 0.85rem;
}

/* text color for light / dark swatches */
.color-swatch.swatch--light { color: var(--muted); border: 1px solid rgba(0,0,0,0.06); }
.color-swatch.swatch--dark  { color: #fff; border: 1px solid rgba(255,255,255,0.06); }

/* hover */
.color-swatch:hover { transform: translateY(-3px); }

/* temporary copied feedback */
.color-swatch.copied {
  transform: scale(0.98);
  opacity: 0.95;
}

/* CTA button small tweak so the linkedin icon sits nicely */
.about-cta img { border-radius: 4px; display: inline-block; }

/* Project cards styling */
.card.glass-card {
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(38,38,123,0.08);
  position: relative;
}

.card.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #26267B, #5b5bdb, #26267B);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  z-index: 10;
}

.card.glass-card:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 3s ease infinite;
}

.card.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(38, 38, 123, 0.12);
}

.card-clickable .card-body {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card-clickable .card-body:hover {
  transform: translateY(-2px);
}

.card-clickable model-viewer {
  cursor: grab;
  pointer-events: auto;
}

.card-clickable model-viewer:active {
  cursor: grabbing;
}

.card-img-wrapper {
  padding: 16px;
  padding-bottom: 16px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

/* Model Viewer 3D - MÊMES DIMENSIONS que les images */
.model-3d-viewer {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  background: transparent;
  display: block;
}

/* Wrapper pour le modèle 3D */
.card-3d-wrapper {
  position: relative;
}

/* Animations au hover pour le modèle 3D */
.card.glass-card:hover .model-3d-viewer {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-body .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--primary), #1f1f59);
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.card-body .btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Fix : trait blanc trop marqué dans liquid glass */
.liquid-glass > .top-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04), /* réduction de l'opacité */
    rgba(255, 255, 255, 0.01), /* plus diffus */
    transparent
  );
  pointer-events: none;
}

/* Fix : bordures arrondies des images dans les cards */
.card.glass-card {
  border-radius: 0;  /* augmenté de 12px à 16px */
  overflow: hidden;
}

.card-img-wrapper {
  padding: 16px;  /* augmenté de 12px à 16px */
  padding-bottom: 16px;  /* ajout du padding en bas */
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 320px; /* Augmenté de 240px à 320px */
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* About : réduire la largeur du conteneur pour que le texte prenne plus de place */
#about .liquid-glass {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Utiliser une grille 2 colonnes : texte = flexible, photo = colonne fixe */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* limiter la colonne photo */
#about .about-right,
#about .photo-wrap {
  max-width: 300px;
  width: 100%;
}

/* plus d'air pour le texte */
#about .about-left {
  padding-right: 8px;
}

/* Badges couleur : centrer et aligner en haut, bleu centré mais légèrement descendu */
#about .color-badges {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

#about .color-swatch {
  min-width: 92px;
  padding: 10px 14px;
}

/* Bleu (swatch dark) : couleur solide au centre + petit décalage vertical vers le bas */
#about .color-swatch.swatch--dark {
  background: #26267B;
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 8px; /* pousse légèrement la pastille vers le bas */
  box-shadow: 0 10px 20px rgba(38,38,123,0.12);
}

/* conserver l'effet hover existant (soulèvement) */
#about .color-swatch:hover {
  transform: translateY(-3px);
}

/* Hero responsive */
@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 30px;
  }

  .hero-left {
    padding-right: 0;
  }

  .hero-center {
    display: none;
  }

  .photo-image-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-stats {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .home-hero-modern {
    min-height: auto; /* Évite les coupures */
    height: auto; /* Laisse le contenu définir la hauteur */
    padding-top: 120px; /* Compense la navbar fixe */
    padding-bottom: 40px;
  }

  .hero-container {
    padding: 0 20px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    width: 40px;
    height: 40px;
  }

  .hero-about-text {
    font-size: 0.95rem;
  }

  .hero-btn-primary {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-btn-category {
    width: 100%;
    text-align: center;
  }

  .hero-color-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    height: auto;
    min-height: 400px;
    border-radius: 5px;
  }

  .hero-badge-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .hero-socials {
    gap: 12px;
  }

  .hero-social-icon {
    width: 42px;
    height: 42px;
  }

  /* Formes géométriques plus petites sur mobile */
  .hero-shape-1 {
    width: 80px;
    height: 80px;
    top: -15px;
    right: -15px;
  }

  .hero-shape-2 {
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: -10px;
  }

  .hero-shape-3 {
    width: 50px;
    height: 50px;
    left: -10px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stats-arrow {
    display: none;
  }
}

/* Responsive : empilement sur tablettes / mobiles */
@media (max-width: 991px) {
  #about .liquid-glass { max-width: 100%; padding: 1.25rem; }
  #about .about-grid { grid-template-columns: 1fr; gap: 28px; }
  #about .about-right { max-width: 100%; }
  #about .color-badges { justify-content: center; }
}

/* Read more styling */
.read-more-container {
  position: relative;
}

.read-more-text {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

/* ellipsis are in the text itself (triple dots) so no ::after needed */

/* blur gradient under preview */
.text-blur-gradient {
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  bottom: -1.5rem; /* descend jusqu'en bas du conteneur */
  height: 80px; /* hauteur augmentée pour plus d'effet */
  pointer-events: none;
  /* Mode clair : couleur de fond glass-bg rgba(241,235,253,0.4) */
  background: 
    linear-gradient(to bottom, rgba(241,235,253,0) 0%, rgba(241,235,253,0.7) 50%, rgba(241,235,253,0.98) 100%),
    linear-gradient(to right, rgba(241,235,253,0.95), transparent 30px, transparent calc(100% - 30px), rgba(241,235,253,0.95));
  transition: opacity 240ms ease, visibility 240ms, background 0.3s ease;
  opacity: 1;
  visibility: visible;
}

body.dark-theme .text-blur-gradient {
  /* Mode sombre : couleur de fond card-bg rgba(26,26,46,0.6) */
  background: 
    linear-gradient(to bottom, rgba(26,26,46,0) 0%, rgba(26,26,46,0.7) 50%, rgba(26,26,46,0.98) 100%),
    linear-gradient(to right, rgba(26,26,46,0.95), transparent 30px, transparent calc(100% - 30px), rgba(26,26,46,0.95));
}

/* Adaptation du blur au hover du conteneur parent */
#parcours .liquid-glass:hover .text-blur-gradient {
  /* Mode clair hover : rgba(241, 235, 253, 0.65) */
  background: 
    linear-gradient(to bottom, rgba(241,235,253,0) 0%, rgba(241,235,253,0.7) 50%, rgba(241,235,253,0.98) 100%),
    linear-gradient(to right, rgba(241,235,253,0.95), transparent 30px, transparent calc(100% - 30px), rgba(241,235,253,0.95));
}

body.dark-theme #parcours .liquid-glass:hover .text-blur-gradient {
  /* Mode sombre hover : bleu sombre */
  background: 
    linear-gradient(to bottom, rgba(60,60,100,0) 0%, rgba(60,60,100,0.6) 40%, rgba(60,60,100,0.98) 100%),
    linear-gradient(to right, rgba(60,60,100,0.95), transparent 30px, transparent calc(100% - 30px), rgba(60,60,100,0.95));
}

/* hidden full content */
.read-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(.2,.8,.2,1);
}

/* when container has class expanded, show content and hide blur */
.read-more-container.expanded .read-more-content {
  /* max-height will be animated by JS to exact scrollHeight */
  /* fallback large value */
  max-height: 800px;
}
.read-more-container.expanded .text-blur-gradient {
  opacity: 0;
  visibility: hidden;
}

/* button */
.read-more-btn {
  background: #26267B;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}
.read-more-btn:hover { transform: translateY(-2px); }

/* end read-more */

/* ============================================
   TIMELINE / FRISE CHRONOLOGIQUE
   ============================================ */

#parcours {
  width: 100%;
}

.parcours-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

#parcours .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
  padding-right: 500px;
  margin-left: 0;
}

.timeline-wrapper {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.timeline-left-column {
  position: relative;
  padding-left: var(--space-lg);
  min-height: 600px;
}

/* Ligne verticale à gauche */
.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(38,38,123,0.15);
  z-index: 1;
}

body.dark-theme .timeline-line {
  background: rgba(138,138,255,0.2);
}

/* Ligne de progression qui se remplit au scroll */
.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #26267B 0%, #8A8AFF 100%);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(138,138,255,0.5);
}

body.dark-theme .timeline-progress {
  background: linear-gradient(180deg, #8A8AFF 0%, #B8B8FF 100%);
  box-shadow: 0 0 20px rgba(138,138,255,0.7);
}

/* ==================== TIMELINE ==================== */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: var(--space-section);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:last-child { margin-bottom: 0; }
.timeline-item.is-visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute;
  left: -41px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: rgba(38,38,123,0.3);
  border: 3px solid var(--text-white);
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(38,38,123,0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .timeline-dot {
  background: rgba(138,138,255,0.3);
  border-color: rgba(26,26,46,0.8);
  box-shadow: 0 0 0 4px rgba(138,138,255,0.15);
}

.timeline-item.is-active .timeline-dot {
  background: var(--color-primary);
  transform: scale(1.4);
  box-shadow: 0 0 0 8px rgba(38,38,123,0.2), 0 0 20px rgba(138,138,255,0.6);
}

body.dark-theme .timeline-item.is-active .timeline-dot {
  background: #8A8AFF;
  box-shadow: 0 0 0 8px rgba(138,138,255,0.25), 0 0 25px rgba(138,138,255,0.8);
}

.timeline-content { flex: 1; }

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0.7;
}

body.dark-theme .timeline-card {
  background: rgba(26,26,46,0.6);
  border-color: rgba(138,138,255,0.2);
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
}

.timeline-item.is-active .timeline-card {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 8px 30px rgba(38,38,123,0.2);
}

body.dark-theme .timeline-item.is-active .timeline-card {
  box-shadow: 0 8px 35px rgba(138,138,255,0.3);
}

.timeline-card:hover {
  transform: scale(1) translateY(-5px);
  box-shadow: 0 10px 35px rgba(38,38,123,0.25);
}

body.dark-theme .timeline-card:hover {
  box-shadow: 0 10px 40px rgba(138,138,255,0.35);
}

.timeline-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-card-head .timeline-title {
  margin-bottom: 0;
}

.timeline-logo-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 58px;
  height: 38px;
  flex: 0 0 auto;
}

.timeline-logo-group .logo-back {
  position: absolute;
  right: 0;
  z-index: 1;
}

.timeline-logo-group .logo-front {
  position: absolute;
  left: 0;
  z-index: 2;
  border: 2px solid #fff;
}

body.dark-theme .timeline-logo-group .logo-front {
  border-color: #1A1A2E;
}

.timeline-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(38,38,123,0.18);
}

body.dark-theme .timeline-logo {
  border-color: rgba(138,138,255,0.25);
}

.timeline-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.4px;
  color: var(--color-primary);
  background: rgba(38,38,123,0.06);
}

body.dark-theme .timeline-logo-badge {
  color: #B8B8FF;
  background: rgba(138,138,255,0.12);
}

.timeline-date {
  font-family: var(--font-family-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark-theme .timeline-date {
  color: #8A8AFF;
}

.timeline-title {
  font-family: var(--font-family-secondary);
  font-size: 1.1rem;
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: 10px;
}

body.dark-theme .timeline-title {
  color: #B8B8FF;
}

.timeline-desc {
  font-family: var(--font-family-body);
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
  color: rgba(38,38,123,0.85);
  margin-bottom: 0;
}

body.dark-theme .timeline-desc {
  color: rgba(255,255,255,0.8);
}

.timeline-right-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
  justify-content: center;
}

.timeline-illustration {
  opacity: 0;
  transform: translateX(30px) scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-illustration.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.timeline-illustration img {
  width: 100%;
  max-width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

body.dark-theme .timeline-illustration img {
  border-color: rgba(138,138,255,0.2);
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
}

.timeline-illustration img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(38,38,123,0.2);
}

body.dark-theme .timeline-illustration img:hover {
  box-shadow: 0 8px 35px rgba(138,138,255,0.3);
}

/* Responsive Timeline */
@media (max-width: 1200px) {
  .timeline-wrapper {
    grid-template-columns: 400px 1fr;
    gap: var(--space-xl);
  }
  .timeline-illustration img {
    max-width: 320px;
    height: 200px;
  }
}

@media (max-width: 991px) {
  .timeline-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .timeline-right-column { display: none; }
  .timeline-left-column { padding-left: var(--space-xl); }
  .timeline-dot { left: -51px; }
}

/* Responsive Timeline - Mobile */
@media (max-width: 768px) {
  #parcours .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .timeline-left-column {
    padding-left: 40px;
  }

  .timeline-line {
    left: 0;
  }

  .timeline-dot {
    left: -41px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .timeline-item {
    margin-bottom: 40px;
  }

  .timeline-card {
    padding: 16px;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-desc {
    font-size: 0.8rem;
  }
}

/* ============================================
   END TIMELINE
   ============================================ */

/* Responsive adjustments for cards */
@media (max-width: 991px) {
  .card-img-wrapper img,
  .model-3d-viewer {
    height: 280px; /* Légèrement plus petit sur tablette */
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 0 10px;
  }

  #projets .card.glass-card {
    max-width: 350px;
    margin: 0 auto;
      height: 340px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }

  #projets .card-img-wrapper {
    padding: 12px;
    height: 180px;
  }

  #projets .card-img-wrapper img,
  #projets .model-3d-viewer {
    height: 180px !important;
  }

  #projets .card-body {
    padding: 1rem;
  }

  #projets .card-body h3 {
    font-size: 1rem;
  }

  #projets .card-body p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  #projets .card-body .btn {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }
}

/* Section projets - espacement uniforme */
#projets {
  padding-top: 6rem !important;
  padding-bottom: 3rem !important;
}

/* Réduction de l'espace quand #projets suit une autre section de contenu (pages projets) */
section + #projets {
  padding-top: 3rem !important;
}

/* Projects Grid Layout */
.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 0;
}

/* Responsive grid */
@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    perspective: 1000px; /* Perspective pour effet 3D Tilt */
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Card styling */
.card.glass-card {
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card.glass-card:hover {
  transform: translateY(-8px);
}

/* ==================== 3D TILT EFFECT - PROJECT CARDS (DESKTOP) ==================== */
@media (min-width: 992px) {
  #projets .projects-grid .card.glass-card {
    transform-style: preserve-3d; /* Activation 3D */
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  }

  /* Image - Ressort en avant */
  #projets .card-img-wrapper,
  #projets .model-3d-viewer {
    transform-style: preserve-3d;
    transform: translateZ(30px);
    transition: transform 0.1s ease-out;
  }

  /* Texte - Ressort légèrement */
  #projets .card-body {
    transform-style: preserve-3d;
    transform: translateZ(20px);
    transition: transform 0.1s ease-out;
  }

  /* Bouton - Flotte encore plus haut */
  #projets .card-body .btn {
    transform-style: preserve-3d;
    transform: translateZ(40px);
    transition: transform 0.1s ease-out;
  }

  /* Au hover, le translateY ne doit pas interférer avec le Tilt */
  #projets .card.glass-card:hover {
    transform: translateY(-8px) rotateX(0deg) rotateY(0deg);
  }
}

.card-img-wrapper {
  padding: 16px;
  padding-bottom: 16px;
}

.card-img-wrapper img {
  width: 100%;
  height: 320px; 
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Responsive adjustments for cards */
@media (max-width: 991px) {
  .card-img-wrapper img {
    height: 280px; /* Légèrement plus petit sur tablette */
  }
}

@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 500px; /* Limite la largeur sur mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .card-img-wrapper img {
    height: 300px; /* Garde une bonne taille sur mobile */
  }
}

/* Responsive: stack on small screens */
@media (max-width: 767.98px) {
  .about-grid { flex-direction: column; }
  .about-right { width: 100%; max-width: none; }
}

@media (max-width: 768px) {
    .about-actions {
        flex-direction: column;
    }

  #projets .card.glass-card {
    max-width: 95vw;
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
    .about-actions .btn {
        width: 100%;
    }
}

/* Responsive tweaks */
@media (max-width:991px){
  .hero-card{padding:28px}
  .about-section{gap:18px}
  .logo{height:32px}
  .display-2{font-size:clamp(28px,6.5vw,42px)}
  /* mobile menu background so links readable */
  .navbar-collapse{background:rgba(255,255,255,0.98);padding:12px;border-radius:10px;margin-top:10px}
  .navbar-glass .nav-link{color:var(--primary)}
  .nav-inner{padding:6px}
  .hero-actions{display:flex;flex-direction:column;gap:10px;align-items:center}
  .nav-inner { padding: 8px 12px; }
  .navbar-scrolled .nav-inner { max-width: calc(100% - 32px); margin: 8px 16px; }
  .home-hero { padding-bottom: 3.5rem; }
  .hero-card { padding: 28px; }
}

/* Tap targets */
.navbar-nav .nav-link,.navbar-nav .btn{padding:.5rem .75rem}

/* transitions */
a,button,.btn{transition:color .18s ease,background .18s ease,opacity .18s ease}

/* utilities */
.text-center{text-align:center}

/* Mobile menu fixes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(38,38,123,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 8px;
    max-height: calc(100vh - 100px); /* Empêche le débordement */
    overflow-y: auto; /* Permet le scroll si besoin */
  }

  .navbar-nav {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    text-align: center;
    margin: 4px 0;
  }

  .nav-link {
    padding: .75rem 1rem;
    display: block;
  }

  .btn-outline-primary {
    width: 100%;
    margin: .5rem 0;
  }

  /* Animation du menu */
  .navbar-collapse.collapsing {
    transition: height .35s ease;
  }

  .navbar-collapse.show {
    display: block;
  }
}

/* Fix : bouton burger cliquable (z-index + pointer-events) */
.nav-inner { position: relative; z-index: 1000; }

/* Le wrapper du titre centré ne doit pas intercepter les clics */
.brand-text-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;    /* important : laisse cliquer le burger derrière */
  z-index: 1050;
}

/* Si tu veux que le texte soit sélectionnable / cliquable (ex: lien),
   active pointer-events seulement sur l'élément texte */
.brand-text {
  pointer-events: auto;
  z-index: 1055;
}

/* assure que le toggler reste au-dessus */
.navbar-toggler { z-index: 1200; position: relative; }

/* nav-inner doit laisser la collapse s'afficher sous lui */
.nav-inner { overflow: visible; position: relative; }

/* --- Mobile : menu vertical (en longueur) --- */
@media (max-width: 991.98px) {
  /* Ne pas utiliser position:absolute ici : laisse Bootstrap dérouler le menu dans le flux */
  .navbar-collapse {
    display: block;                /* permet .show gérer l'affichage */
    width: 100%;
    background: rgba(255,255,255,0.98);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(38,38,123,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-top: 8px;
    max-height: calc(100vh - 120px); /* éviter débordement hors écran */
    overflow-y: auto;              /* scroll si nécessaire */
  }

  /* Forcer les éléments en colonne pleine largeur */
  .navbar-collapse .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .navbar-collapse .nav-item { width: 100%; text-align: center; }
  .navbar-collapse .nav-link { display:block; padding:.75rem 1rem; }
  .navbar-collapse .btn-outline-primary { width:100%; margin-top:.5rem; }

  /* visible only when collapsed closed: hide content */
  .navbar-collapse.collapse:not(.show) { display:none; }
  .navbar-collapse.collapse.show { display:block; }
}

/* Right block (toggler + collapse) */
.nav-right { gap: 8px; }

/* Ensure toggler is at the very right and clickable */
.navbar-toggler {
  z-index: 1300;
  border: 0;
}

/* Desktop: keep collapsed menu inline (Bootstrap default) */
@media (min-width: 992px) {
  .nav-right .navbar-collapse { position: static !important; display: flex !important; }
  .nav-right .navbar-nav { flex-direction: row; gap: 8px; align-items: center; }
}

/* Mobile: vertical menu, contact button centered */
@media (max-width: 991.98px) {
  .nav-right { display: flex; align-items: center; }

  .navbar-collapse {
    width: 100%;
    background: rgba(255,255,255,0.98);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(38,38,123,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-top: 8px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .navbar-nav { display:flex; flex-direction:column; gap:8px; align-items:stretch; padding:0; }
  .nav-item { width:100%; text-align:center; }
  .nav-link { display:block; padding:.75rem 1rem; }

  /* Center the contact button inside the menu */
  .navbar-collapse .contact-btn {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
  }

  /* Ensure collapse hides correctly when closed */
  .navbar-collapse.collapse:not(.show) { display: none; }
  .navbar-collapse.collapse.show { display: block; }
}

/* Contact section */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.social-links a {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(38, 38, 123, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(38, 38, 123, 0.12);
}

/* Beacons specific styling */
.social-links a.beacons-link img {
  width: 32px;
  height: 32px;
  border-radius: 50%; /* Make the logo circular */
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .social-links a {
    width: 50px;
    height: 50px;
  }

  .social-links a.beacons-link img {
    width: 28px;
    height: 28px;
  }
}

/* Footer contact line */
footer .contact-line {
  margin-top: .5rem;
  color: #ffffff !important;
  font-size: 0.95rem;
}
footer .contact-line a {
  color: #ffffff !important;
  text-decoration: none;
}
footer .contact-line a:hover {
  text-decoration: underline;
}

/* override pour les petits textes utilisant .text-muted */
footer .text-muted.small {
  color: #ffffff !important;
}

/* Responsive : About section */
@media (max-width: 991px) {
  .about-grid {
    gap: 32px;
  }

  .about-left {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .about-right {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .photo-wrap {
    max-width: 100%;
    width: 100%;
  }

  .about-photo {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
  }

  .color-badges {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }
}

/* Responsive : Projects section - Grid layout */
@media (min-width: 992px) {
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .card.glass-card {
    max-width: 100%;
  }

  .card-img-wrapper {
    padding: 12px;
  }

  .card-body {
    padding: 1.25rem;
  }
}

/* Ajustements généraux pour petits écrans */
@media (max-width: 576px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .section-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h2 {
    margin-bottom: 1.5rem;
  }
}

/* Parcours section layout */
#parcours {
  position: relative;
  display: flex;
  gap: 40px;
  align-items: center;
}

#parcours .parcours-content {
  width: 50%;
  padding-right: 24px;
}

#parcours .liquid-glass {
  width: 100%;
  margin-bottom: 24px;
  padding: 1.5rem;
  position: relative;
  transform: rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#parcours .liquid-glass:hover {
  background: rgba(241, 235, 253, 0.65);
  border-color: rgba(38, 38, 123, 0.15);
  box-shadow: 0 30px 60px rgba(38, 38, 123, 0.4);
  z-index: 10;
}

body.dark-theme #parcours .liquid-glass:hover {
  background: rgba(180, 180, 230, 0.35);
  border-color: rgba(180, 180, 230, 0.4);
  box-shadow: 0 30px 60px rgba(123, 123, 212, 0.5);
}

/* Illustration côté droit - centrée verticalement */
.experience-illustration {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-illustration img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.parcours-illustration {
  position: sticky;
  top: 100px;
  width: 45%;
  height: 100vh;
  right: 0;
  background-image: url('../image/your-illustration.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  #parcours {
    flex-direction: column;
  }

  #parcours .parcours-content {
    width: 100%;
    padding-right: 0;
  }

  /* Masquer l'illustration sur tablette et mobile */
  .parcours-illustration {
    display: none !important;
  }
}

/* Mobile - Réduire la taille des conteneurs */
@media (max-width: 768px) {
  #parcours .liquid-glass {
    padding: 1rem;
    margin-bottom: 16px;
    font-size: 0.9rem;
  }

  #parcours .liquid-glass p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  #parcours .liquid-glass h3,
  #parcours .liquid-glass .h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  /* Wrapper mobile sans effet liquid-glass */
  .parcours-mobile-wrapper {
    padding: 1rem;
    margin-bottom: 16px;
    font-size: 0.9rem;
  }

  .parcours-mobile-wrapper p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }
}

/* Ajuster l'espacement entre les conteneurs */
#parcours .liquid-glass:not(:last-child) {
  margin-bottom: 24px;
}

/* Mes logiciels */
.softwares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 2rem 0;
  align-items: stretch;
}

/* ========== Carrousel logiciels infini ========== */
.software-carousel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  width: 100%;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.software-slide {
  min-width: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.software-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Card styling - Modern Design */
.software-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  padding: 3rem;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 2px solid rgba(38, 38, 123, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(38, 38, 123, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.software-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #26267B, #5b5bdb, #26267B);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.software-card:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.software-card:hover {
  border-color: rgba(38, 38, 123, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(38, 38, 123, 0.12);
}

/* Logo - Modern with glow effect */
.soft-logo-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.soft-logo-wrap img {
  width: 90px;
  height: 90px;
  transition: transform 0.4s ease;
}
/* === MES LOGICIELS PLEIN ÉCRAN AVEC ANIMATION 3D === */
.softwares-fullscreen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 120px;
  background: linear-gradient(135deg, var(--bg-color) 0%, #E5E1D6 100%);
  position: relative;
  overflow: hidden;
}

.softwares-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.softwares-title {
  text-align: center;
  font-family: var(--font-family-secondary);
  font-weight: var(--font-bold);
  font-size: var(--title-section-size);
  color: var(--primary);
  margin-bottom: var(--space-section);
  opacity: 0;
  animation: fadeInDown 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  letter-spacing: -0.02em;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Grille 3D - 2 colonnes x 3 lignes */
.softwares-grid-3d {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  perspective: 1500px;
}

/* Card avec effet 3D - PLUS GRANDE ET MODERNE */
.software-card-3d {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 55px 42px 90px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(38, 38, 123, 0.12);
  box-shadow: 
    0 4px 24px rgba(38, 38, 123, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  opacity: 0;
  transform: translate(80px, -80px) rotate(8deg) scale(0.85);
  animation: cardAppear 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Animation d'apparition décalée pour chaque carte - SLIDE DIAGONAL DYNAMIQUE */
.software-card-3d[data-index="0"] { animation-delay: 0.1s; }
.software-card-3d[data-index="1"] { animation-delay: 0.2s; }
.software-card-3d[data-index="2"] { animation-delay: 0.3s; }
.software-card-3d[data-index="3"] { animation-delay: 0.4s; }
.software-card-3d[data-index="4"] { animation-delay: 0.5s; }
.software-card-3d[data-index="5"] { animation-delay: 0.6s; }

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translate(80px, -80px) rotate(8deg) scale(0.85);
  }
  50% {
    opacity: 0.8;
    transform: translate(-10px, 10px) rotate(-2deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

/* Effet 3D au survol - PLUS SMOOTH ET MODERNE */
.software-card-3d:hover {
  transform: translateY(-12px) rotateX(3deg) scale(1.03);
  box-shadow: 
    0 32px 64px rgba(38, 38, 123, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(38, 38, 123, 0.2);
}

/* Logo - PLUS GRAND */
.software-card-3d .soft-logo-wrap {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.software-card-3d:hover .soft-logo-wrap {
  transform: scale(1.15) rotateY(8deg) rotateZ(-2deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.software-card-3d .soft-logo-wrap img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
  transition: filter 0.5s ease;
}

.software-card-3d:hover .soft-logo-wrap img {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
}
/* Content */
.soft-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.soft-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.soft-name {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #26267B 0%, #5b5bdb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.02em;
}

.soft-desc {
  color: #555;
  line-height: 1.8;
  margin-top: 50px;
  font-size: 1.1rem;
  font-weight: 400;
}

.soft-stats {
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  background: rgba(38, 38, 123, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
}

.soft-time {
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

.software-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.soft-link {
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
}

.software-card-link:hover .soft-link {
  color: #5b5bdb;
  transform: translateX(4px);
}

/* Background text */
.soft-bg {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  color: rgba(38, 38, 123, 0.04);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
/* Info - TEXTE PLUS GRAND */
.software-card-3d .soft-info {
  flex: 1;
  padding-left: 12px;
  z-index: 2;
}

.software-card-3d .soft-name {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--font-family-secondary);
  transition: var(--transition-base);
}

.software-card-3d:hover .soft-name {
  color: #1a1a5a;
}

.software-card-3d .soft-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.software-card-3d:hover .soft-desc {
  color: #2a3441;
}

/* Nom en arrière-plan - ULTRA AÉRÉ ET MODERNE */
.software-card-3d .soft-bg {
  position: absolute;
  top: auto;
  bottom: 18px;
  right: 15px;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 900;
  color: rgba(38, 38, 123, 0.035);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  letter-spacing: 0.18em;
  transform: rotate(-2deg);
  transition: var(--transition-slow);
  font-family: var(--font-family-secondary);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: clip;
  max-width: 70%;
  margin-top: var(--space-2xl);
}

/* Navigation arrows */
.carousel-arrow {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(38, 38, 123, 0.08);
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 100; /* Z-index élevé pour être au-dessus de tout */
  pointer-events: auto; /* Force les clics */
}

.carousel-arrow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(38, 38, 123, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
.software-card-3d:hover .soft-bg {
  transform: rotate(0deg) scale(1.05);
  color: rgba(38, 38, 123, 0.055);
  letter-spacing: 0.22em;
}

/* === GRILLE MOBILE SIMPLE === */
.software-grid-mobile {
  padding: 0 15px;
}

.software-logo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(38, 38, 123, 0.1);
  border-radius: 0;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(38, 38, 123, 0.12);
}

.software-logo-card img {
  width: auto;
  max-width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.software-logo-card span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 991px) {
  .softwares-grid-3d {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .software-card-3d {
    min-height: 180px;
    padding: 40px 30px 50px;
  }

  .software-card-3d .soft-logo-wrap {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
  }

  .software-card-3d .soft-logo-wrap img {
    width: 60px;
    height: 60px;
  }

  .software-card-3d .soft-name {
    font-size: 1.3rem;
  }

  .software-card-3d .soft-desc {
    font-size: 1rem;
  }

  .software-card-3d .soft-bg {
    font-size: clamp(24px, 4vw, 42px);
    bottom: 15px;
    right: 15px;
    letter-spacing: 0.12em;
    max-width: 85%;
  }
}

@media (max-width: 576px) {
  .softwares-fullscreen {
    padding: 60px 0 80px;
    min-height: auto;
  }

  .softwares-container {
    padding: 0;
  }

  .softwares-title {
    margin-bottom: 30px;
    font-size: clamp(28px, 8vw, 48px);
    padding: 0 15px;
  }

  /* Grille devient un carrousel swipeable sur mobile */
  .softwares-grid-3d {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 0 15px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none;
  }

  .softwares-grid-3d::-webkit-scrollbar {
    display: none;
  }

  .software-card-3d {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
    padding: 32px 24px;
    gap: 18px;
    min-height: 200px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .software-card-3d .soft-logo-wrap {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }

  .software-card-3d .soft-logo-wrap img {
    width: 56px;
    height: 56px;
  }

  .software-card-3d .soft-info {
    padding-left: 0;
  }

  .software-card-3d .soft-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .software-card-3d .soft-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Masquer le texte d'arrière-plan sur mobile - FORCE */
  .software-card-3d .soft-bg,
  .soft-bg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Masquer l'illustration du parcours sur mobile */
  .parcours-illustration,
  .experience-illustration {
    display: none !important;
  }

  /* Indicateur de swipe sur mobile */
  .softwares-grid-3d::after {
    content: '← Swipe →';
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(38, 38, 123, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    animation: fadeOutSwipe 3s ease forwards;
    z-index: 100;
  }

  @keyframes fadeOutSwipe {
    0%, 70% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}

.carousel-arrow:active {
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
  .software-card {
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 2rem;
    min-height: 200px;
  }

  .soft-logo-wrap {
    width: 100px;
    height: 100px;
  }

  .soft-logo-wrap img {
    width: 64px;
    height: 64px;
  }

  .soft-name {
    font-size: 1.25rem;
  }

  .soft-bg {
    font-size: clamp(36px, 8vw, 56px);
    top: 20px;
    right: 24px;
  }

  .carousel-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
  }
}

/* Autres Projets - Carrousel interactif */
/* Filtres de la section projets principale */
.project-filters-main {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn-main {
  padding: 10px 24px;
  border: 1.5px solid rgba(38, 38, 123, 0.3);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  color: rgba(38, 38, 123, 0.8);
  font-family: var(--font-family-secondary);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn-main:hover {
  background: rgba(38, 38, 123, 0.05);
  border-color: rgba(38, 38, 123, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 38, 123, 0.15);
}

.filter-btn-main.active {
  background: rgba(38, 38, 123, 0.9);
  color: white;
  border-color: rgba(38, 38, 123, 0.9);
  box-shadow: 0 4px 16px rgba(38, 38, 123, 0.25);
}

/* Tous les boutons visibles sur mobile */
@media (max-width: 768px) {
  .project-filters-main {
    gap: 8px;
  }

  .filter-btn-main {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Sur desktop, afficher toutes les cartes */
@media (min-width: 769px) {
  #projets .card.glass-card {
    display: block !important;
    opacity: 1 !important;
  }
}

.project-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 200;
}

.filter-btn {
  padding: 10px 24px;
  border: 1.5px solid rgba(38, 38, 123, 0.3);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  color: rgba(38, 38, 123, 0.8);
  border-radius: var(--radius-full);
  font-family: var(--font-family-secondary);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-base);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.filter-btn:hover {
  background: rgba(38, 38, 123, 0.05);
  border-color: rgba(38, 38, 123, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 38, 123, 0.15);
}

.filter-btn.active {
  background: rgba(38, 38, 123, 0.9);
  color: white;
  border-color: rgba(38, 38, 123, 0.9);
  box-shadow: 0 4px 16px rgba(38, 38, 123, 0.25);
}

/* Afficher 1 seule catégorie sur mobile */
@media (max-width: 768px) {
  .filter-btn:not(.active) {
    display: none;
  }
}

/* Filtres de logiciels */
.software-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 200;
}

.software-filter-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition-base);
}

.software-filter-btn .filter-logo {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.software-filter-btn .filter-logo[alt="Premiere Pro"] {
  border-radius: px;
}

.software-filter-btn .filter-icon {
  font-size: 1.2rem;
}

.software-filter-btn:hover {
  background: rgba(38, 38, 123, 0.1);
  transform: translateY(-2px);
}

.software-filter-btn.active {
  background: #26267B;
  color: white;
}

.projects-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: visible;
  z-index: 1;
}

.projects-carousel-track-container {
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  position: relative;
}

.projects-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.project-card {
  width: calc((100% - 48px) / 3);
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #26267B, #5b5bdb, #26267B);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  z-index: 10;
}

.project-card:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 3s ease infinite;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(38, 38, 123, 0.15);
}

/* ==========================================
   CLASSE UTILITAIRE: Masquer les éléments filtrés
   ========================================== */
.is-hidden {
  display: none !important;
}

/* Legacy support (ancienne classe) */
.project-card[data-category].hidden {
  display: none;
}

.project-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.project-card-content {
  padding: 20px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.project-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  z-index: 200 !important;
  color: var(--color-primary);
  pointer-events: auto !important;
}

.carousel-nav:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-left {
  left: 0;
}

.carousel-nav-right {
  right: 0;
}

/* Software carousel wrapper with external arrows */
.software-carousel-wrapper {
  position: relative;
  padding: 0 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.software-carousel-wrapper .carousel-nav-left {
  left: 0;
}

.software-carousel-wrapper .carousel-nav-right {
  right: 0;
}

/* ==================== SOFTWARES SECTION ==================== */
#softwares {
  padding: 5rem 0;
  background: var(--bg-color);
}

#softwares p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: var(--space-lg);
}

/* ==================== SECTION TITLES (GLOBAL) ==================== */
.section-title {
  font-family: var(--font-family-heading);
  font-size: var(--title-section-size);
  font-weight: var(--font-normal);
  font-style: italic;
  color: rgba(38, 38, 123, 0.6);
  letter-spacing: -0.02em;
  position: relative;
  display: block;
  padding-bottom: var(--space-sm);
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: var(--space-md);
  text-align: left;
  white-space: nowrap;
}

/* Titres de section plus grands sur desktop */
@media (min-width: 992px) {
  .section-title {
    font-size: clamp(36px, 4.5vw, 56px);
  }
}

.motion-design-section .section-title {
  text-align: center !important;
  white-space: normal;
}

.liquid-glass h3,
.liquid-glass .h3,
.liquid-glass .h5 {
  font-family: var(--font-family-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--font-normal);
  font-style: italic;
  color: rgba(38, 38, 123, 0.8);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

/* ==================== CONTACT SECTION ==================== */
#contact {
  padding: 5rem 0;
}

#contact p {
  font-size: 1.1rem;
  color: #666;
}

.contact-card {
  position: relative;
  transition: all 0.4s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #26267B, #5b5bdb, #26267B);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
  border-radius: 16px 16px 0 0;
}

.contact-card:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 3s ease infinite;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(38, 38, 123, 0.15);
}

/* ==================== PARCOURS SECTION ==================== */
#parcours {
  padding: 5rem 0;
}

.parcours-wrapper {
  margin-top: 3rem;
}

.experience-item {
  position: relative;
  transition: all 0.3s ease;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #26267B, #5b5bdb, #26267B);
  background-size: 200% 100%;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
  border-radius: 12px 12px 0 0;
}

.experience-item:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 3s ease infinite;
}

.experience-item:hover {
  background: rgba(38, 38, 123, 0.02);
  transform: translateX(8px);
}

/* ==================== AVENIR SECTION ==================== */
#avenir {
  padding: 4rem 2rem !important;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Section Avenir - Accordéon sobre et luxueux */
.avenir-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.avenir-accordion-item {
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  margin-bottom: 1rem;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

.avenir-accordion-item:hover {
  border-color: #000000;
}

.avenir-accordion-item:last-child {
  margin-bottom: 0;
}

/* Mode sombre : contours élégants blancs */
body.dark-theme .avenir-accordion-item {
  background: transparent;
  border: 1px solid #e8e8e8;
}

body.dark-theme .avenir-accordion-item:hover {
  border-color: #ffffff;
}

.avenir-accordion-header {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: var(--font-family-heading);
}

.avenir-accordion-header:hover .accordion-title {
  color: #000000;
}

body.dark-theme .avenir-accordion-header:hover .accordion-title {
  color: #ffffff;
}

.accordion-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  opacity: 0.9;
  text-align: left;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

body.dark-theme .accordion-title {
  color: #e8e8e8;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

body.dark-theme .accordion-icon {
  color: #e8e8e8;
}

.avenir-accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.avenir-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 0;
}

.avenir-accordion-item.active .avenir-accordion-content {
  max-height: 800px;
  padding: 1.5rem 0 0 0;
}

.avenir-accordion-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  margin: 0;
  opacity: 0.85;
}

body.dark-theme .avenir-accordion-content p {
  color: #b8b8b8;
}

.accordion-project {
  margin-bottom: 1.25rem;
}

.accordion-project:last-child {
  margin-bottom: 0;
}

.accordion-project strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.accordion-project p {
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

@media (max-width: 768px) {
  .accordion-title {
    font-size: 1.1rem;
  }

  .avenir-accordion-item {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
  }

  .avenir-accordion-header {
    padding: 0;
  }

  .accordion-icon {
    width: 28px;
    height: 28px;
  }

  .avenir-accordion-item.active .avenir-accordion-content {
    padding: 1rem 0 0 0;
  }
}

@media (max-width: 768px) {
  .software-carousel {
    gap: 1rem;
  }

  .software-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.25rem;
    min-height: auto;
  }

  .projects-carousel-wrapper {
    padding: 0 50px;
  }

  .project-card {
    width: 100%;
    min-width: 100%;
  }

  .projects-carousel-track {
    gap: 16px;
  }

  /* Afficher les flèches pour les projets sur mobile */
  .projects-carousel-wrapper .carousel-nav {
    display: flex;
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }

  /* Filtres de projets sur 2 lignes sur mobile */
  .project-filters {
    flex-wrap: wrap;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
    justify-content: center;
  }

  .filter-btn {
    flex: 0 0 calc(50% - 4px);
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Masquer les boutons de filtrage des logiciels sur mobile */
  .software-filters {
    display: none;
  }

  /* Masquer les flèches du carrousel logiciels sur mobile */
  #softwareCarouselPrev,
  #softwareCarouselNext {
    display: none;
  }

  /* Masquer la palette de couleurs sur mobile */
  .hero-color-badges-card {
    display: none;
  }

  .soft-logo-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .soft-logo-wrap img {
    width: 52px;
    height: 52px;
  }

  .soft-content {
    text-align: center;
  }

  .soft-bg {
    font-size: clamp(28px, 10vw, 40px);
    top: 16px;
    right: 16px;
    opacity: 0.5;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  /* Masquer le nom et l'email dans le footer sur mobile */
  footer h3,
  footer .contact-line {
    display: none;
  }

  /* Réduire l'espace entre les sections sur mobile */
  #softwares {
    padding: 2rem 0 !important;
    margin-bottom: 1rem !important;
  }

  #avenir {
    padding: 2rem 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  #contact {
    padding: 2rem 0 !important;
    margin-top: 1rem !important;
  }
}

/* === PAGE MOTION DESIGN === */
.motion-design-section {
  padding-top: 40px;
  padding-bottom: 80px;
}

.motion-header .section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.motion-header .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

/* ==================== MOTION PROJECT ==================== */
.motion-project-row {
  padding: 40px 0;
}

.motion-project-content {
  padding: 20px;
}

.projet-titlev2 {
  font-size: var(--title-project-size);
  font-weight: var(--title-project-weight);
  margin-bottom: var(--title-project-margin);
  letter-spacing: var(--title-project-spacing);
  line-height: 1.2;
}

.motion-project-description {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.motion-project-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.motion-project-actions .btn {
  padding: var(--space-md) var(--space-xl);
  border-radius: 25px;
  font-weight: var(--font-semibold);
  font-size: 0.95rem;
  transition: all var(--transition-slow) ease;
}

.motion-project-actions .btn-primary {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: var(--text-white);
}

.motion-project-actions .btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 38, 123, 0.3);
}

.motion-project-actions .btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.motion-project-actions .btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.motion-project-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  line-height: 0;
}

.motion-project-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(38, 38, 123, 0.15);
}

.motion-project-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.motion-project-image:hover img {
  transform: scale(1.05);
}

/* Lecteur vidéo personnalisé avec miniature */
.custom-video-container {
  width: 100%;
  height: 400px;
  position: relative;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.custom-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.video-thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  margin: 0;
  padding: 0;
  scale: 1.01;
}

.video-thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.video-thumbnail-overlay:hover .video-thumbnail-img {
  transform: scale(1.05);
}

.custom-play-btn {
  position: relative;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.custom-play-btn:hover {
  transform: scale(1.15);
}

.custom-play-btn svg {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.custom-play-btn:hover .play-circle {
  fill: rgba(255, 255, 255, 1);
}

.custom-play-btn:hover .play-icon {
  fill: #5b5bdb;
}

.custom-video-player {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.custom-video-player:focus {
  outline: none;
}

/* Responsive vidéo personnalisée */
@media (max-width: 768px) {
  .custom-video-container {
    height: 300px;
  }

  .custom-play-btn svg {
    width: 60px;
    height: 60px;
  }

  /* Réduire l'espacement entre la section vidéo et la section projets */
  .motion-design-section {
    padding-bottom: 20px !important;
  }

  #projets {
    padding-top: 20px !important;
  }
}

/* Responsive Motion Design */
@media (max-width: 991px) {
  .motion-project-content {
    text-align: center;
    padding: 20px 0;
  }

  .projet-titlev2 {
    font-size: var(--title-project-size-mobile, 2rem);
  }

  .motion-project-actions {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .motion-project-row {
    padding: 30px 0;
  }
}

/* ==================== 3D INTERACTIVE GRID + SIDE PANEL (DESKTOP ONLY) ==================== */
@media (min-width: 992px) {
  .software-interactive-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Panneau d'information à gauche */
  .software-info-panel {
    flex: 0 0 320px;
    max-width: 320px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(38, 38, 123, 0.12) 0%, rgba(38, 38, 123, 0.08) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(38, 38, 123, 0.25);
    border-radius: 20px;
    box-shadow: 
      0 10px 40px rgba(38, 38, 123, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 400px;
    align-self: center;
    order: -1; /* Force le panneau à être en premier (gauche) */
  }

  .software-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
  }

  .info-content {
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .info-title {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    font-weight: var(--font-semibold);
    color: var(--primary);
    margin-bottom: 0.8rem;
    transition: var(--transition-base);
  }

  .info-description {
    font-family: var(--font-family-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
    transition: var(--transition-base);
  }

  /* Grille 3D des cartes */
  .software-grid-3d {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 3000px;
    max-width: 600px;
    flex: 1;
  }

  /* Carte Style Frame - À plat par défaut */
  .style-frame {
    position: relative;
    aspect-ratio: 1;
    text-decoration: none;
    background: rgba(38, 38, 123, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateX(0deg) rotateY(0deg); /* À plat par défaut pour effet Tilt */
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, background 0.3s ease; /* Transition rapide pour Tilt */
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    container-type: inline-size; /* Activation Container Queries */
  }

  .style-frame:hover {
    background: rgba(38, 38, 123, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 30px 70px rgba(38, 38, 123, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 10;
  }

  /* Texte de contenu - centrage forcé */
  .style-frame p {
    text-align: center;
  }

  /* Icône centrale - Parallaxe */
  .frame-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.1s ease-out; /* Transition rapide pour parallaxe */
    transform-style: preserve-3d;
    transform: translateZ(50px); /* Toujours en avant pour parallaxe */
    z-index: 2;
  }

  .style-frame:hover .frame-icon {
    background: rgba(255, 255, 255, 0.15);
  }

  .frame-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  }

  /* Texte d'arrière-plan - Visible, centré, adaptatif avec Container Queries */
  .frame-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-20px);
    font-family: var(--font-family-heading);
    font-size: 18cqw;
    font-weight: var(--font-bold);
    font-style: italic;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: -2px;
    pointer-events: none;
    white-space: nowrap;
    transform-style: preserve-3d;
    transition: all 0.1s ease-out;
  }

  .style-frame:hover .frame-bg-text {
    color: rgba(255, 255, 255, 0.35);
  }

  /* Ajustements ciblés pour les noms longs */
  .style-frame[data-title="Photoshop"] .frame-bg-text {
    font-size: 13cqw; /* Plus petit pour Photoshop */
  }

  .style-frame[data-title="After Effects"] .frame-bg-text {
    font-size: 10cqw; /* Encore plus petit pour After Effects (très long) */
  }

  .style-frame[data-title="Premiere Pro"] .frame-bg-text {
    font-size: 11cqw; /* Ajusté pour Premiere Pro */
  }

  /* Masquer les filtres sur desktop */
  .software-filters {
    display: none;
  }
}

/* ==================== SEAMLESS PAGE TRANSITIONS (FLIP Animation) ==================== */

/**
 * État pendant l'animation : fade-out du contenu et blocage du scroll
 */
body.page-transition-animating {
  overflow: hidden; /* Empêche le scroll pendant la transition */
}

/* Fade-out progressif de tout le contenu SAUF le clone */
body.page-transition-animating > *:not(.page-transition-clone) {
  animation: contentFadeOut 0.6s ease-out forwards;
  animation-delay: 0.2s; /* Démarre légèrement après le début de l'animation */
}

@keyframes contentFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/**
 * Overlay subtil pendant la transition (optionnel)
 * Crée un léger voile pour adoucir la transition
 */
body.page-transition-animating::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(237, 233, 222, 0.4) 0%,
    rgba(241, 235, 253, 0.4) 100%
  );
  z-index: 99998; /* Juste en dessous du clone (99999) */
  pointer-events: none;
  animation: overlayFadeIn 0.5s ease-out forwards;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/**
 * Optimisations GPU pour les éléments en transition
 * Garantit 60fps constant
 */
.card-img-wrapper,
.card-img-wrapper img,
model-viewer {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); /* Force GPU rendering */
}

/**
 * Animation d'entrée de la nouvelle page (Page Entrante)
 * Appliquée automatiquement au body au chargement
 */
@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: pageEnter 0.5s ease-out;
}

/**
 * Effet de morphing sur les cartes au hover (préparation visuelle)
 * Donne un indice visuel que la carte est interactive
 */
.card-clickable {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-clickable:hover {
  transform: translateY(-4px) scale(1.02);
}

.card-clickable:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 0.1s;
}

/* ==================== SECTION INSPIRATIONS ==================== */

.inspirations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.inspiration-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.inspiration-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(38, 38, 123, 0.25);
  border-color: rgba(38, 38, 123, 0.3);
}

.inspiration-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Ratio 5:3 */
  overflow: hidden;
}

.inspiration-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inspiration-card:hover .inspiration-image {
  transform: scale(1.1);
}

.inspiration-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inspiration-card:hover .inspiration-overlay {
  opacity: 1;
}

.inspiration-overlay svg {
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.inspiration-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.inspiration-title {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin: 0;
  transition: var(--transition-base);
}

.inspiration-card:hover .inspiration-title {
  color: #4a4aa8;
}

.inspiration-description {
  font-family: var(--font-family-secondary);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(38, 38, 123, 0.7);
  margin: 0;
  flex: 1;
}

.inspiration-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(38, 38, 123, 0.1);
  color: var(--color-primary);
  font-family: var(--font-family-secondary);
  font-size: 11px;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  margin-right: var(--space-xs);
  transition: var(--transition-base);
}

.inspiration-card:hover .inspiration-tag {
  background: rgba(38, 38, 123, 0.2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .inspirations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .inspiration-card {
    border-radius: 20px;
  }

  .inspiration-content {
    padding: 20px;
  }
}

/* ==================== PAGE LOADER ==================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1ebfd 0%, #e8e0f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.dark-theme .page-loader {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  animation: fadeInLoader 0.6s ease-out;
}

.loader-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  animation: pulseLoader 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(38, 38, 123, 0.3));
  border-radius: 50%;
}

body.dark-theme .loader-logo {
  filter: drop-shadow(0 8px 20px rgba(123, 123, 212, 0.4));
}

.loader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 4px solid rgba(38, 38, 123, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
}

body.dark-theme .loader-spinner {
  border-color: rgba(123, 123, 212, 0.2);
  border-top-color: var(--primary);
}

.loader-text {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: fadeLoader 2s ease-in-out infinite;
}

@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLoader {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes fadeLoader {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes fadeInLoader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === HERO - Photo carrée et réseaux sociaux externes === */
.photo-image-card {
  background: transparent;
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.hero-badge-top {
  display: none;
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  position: relative;
  z-index: 2;
}

/* Logo JR dans la carte photo */
.hero-logo-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.hero-logo {
  width: 55px;
  height: 55px;
  object-fit: cover;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

/* Réseaux sociaux en dehors de la carte photo */
.hero-socials-external {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.hero-socials-external .hero-social-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-socials-external .hero-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.hero-socials-external .hero-social-beacons {
  border-radius: 50%;
  overflow: hidden;
}

.hero-socials-external .hero-social-beacons img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-socials-external .hero-social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(38, 38, 123, 0.15);
}

/* Palette de couleurs style Pantone */
.hero-color-palette-pantone {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.pantone-color {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.pantone-color:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.pantone-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.pantone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pantone-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pantone-hex {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
  .photo-image-card {
    max-width: 320px;
    padding: 16px;
  }

  /* Logo JR plus grand sur mobile */
  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero-socials-external {
    gap: 12px;
    margin-top: 16px;
  }

  .hero-socials-external .hero-social-icon {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .hero-socials-external .hero-social-icon img {
    width: 100%;
    height: 100%;
  }

  .hero-color-palette-pantone {
    gap: 12px;
    margin-top: 20px;
  }

  .pantone-color {
    min-width: 150px;
    padding: 10px 12px;
    gap: 10px;
  }

  .pantone-swatch {
    width: 36px;
    height: 36px;
  }

  .pantone-name {
    font-size: 0.7rem;
  }

  .pantone-hex {
    font-size: 0.8rem;
  }
}

/* ==================== CV PREVIEW - Style inspiré du CV ==================== */
.cv-preview {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid rgba(38, 38, 123, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.cv-preview-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cv-preview-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-primary);
  font-size: 0.75rem;
  font-weight: var(--font-semibold);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.cv-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cv-preview-column {
  display: flex;
  flex-direction: column;
}

.cv-preview-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cv-preview-label {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: var(--font-normal);
  font-style: italic;
  color: var(--text-color);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(38, 38, 123, 0.1);
  margin-bottom: 0.3rem;
}

.cv-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.3rem 0;
}

.cv-preview-title {
  font-family: var(--font-family-primary);
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: var(--font-normal);
}

.cv-preview-date {
  font-family: var(--font-family-primary);
  font-size: 0.75rem;
  color: #fff;
  background: var(--color-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
}

.cv-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-tool-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: var(--text-color);
  font-family: var(--font-family-primary);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(38, 38, 123, 0.08);
  transition: all 0.2s ease;
}

.cv-tool-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Dark theme pour CV preview */
body.dark-theme .cv-preview {
  background: rgba(35, 35, 58, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

body.dark-theme .cv-preview-label {
  color: var(--text-light);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .cv-preview-title {
  color: var(--text-light);
}

body.dark-theme .cv-preview-badge {
  background: var(--color-primary-light);
  color: #1a1a2e;
}

body.dark-theme .cv-preview-date {
  background: var(--color-primary-light);
  color: #1a1a2e;
}

body.dark-theme .cv-tool-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .cv-tool-tag:hover {
  background: var(--color-primary-light);
  color: #1a1a2e;
  border-color: var(--color-primary-light);
}

/* Responsive */
@media (max-width: 768px) {
  .cv-preview {
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 16px;
  }
  
  .cv-preview-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cv-preview-label {
    font-size: 1rem;
  }
  
  .cv-preview-title {
    font-size: 0.85rem;
  }
  
  .cv-preview-date {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .cv-tool-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
}

/* Animation slide down pour l'aperçu CV */
.cv-preview {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-preview.show {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  display: block !important;
}

/* ==================== PROJECTS SHOWCASE BANNER (hero) ==================== */
.projects-showcase-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 760px;
  margin: 2.5rem auto 0 auto;
  padding: 24px 28px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.projects-showcase-banner::before {
  content: none;
}

.projects-showcase-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  border-color: var(--color-primary);
  color: inherit;
  text-decoration: none;
}

/* Images empilées */
.psb-images {
  position: relative;
  width: 180px;
  height: 132px;
  flex-shrink: 0;
}

.psb-img {
  position: absolute;
  width: 138px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.psb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psb-img-1 {
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-4deg);
}

.psb-img-2 {
  top: 10px;
  left: 28px;
  z-index: 2;
  transform: rotate(2deg);
}

.psb-img-3 {
  top: 22px;
  left: 52px;
  z-index: 1;
  transform: rotate(6deg);
}

.projects-showcase-banner:hover .psb-img-1 {
  transform: rotate(-6deg) translateX(-12px) translateY(-4px) scale(1.04);
}

.projects-showcase-banner:hover .psb-img-2 {
  transform: rotate(0deg) translateY(-6px) scale(1.04);
}

.projects-showcase-banner:hover .psb-img-3 {
  transform: rotate(8deg) translateX(12px) translateY(-2px) scale(1.04);
}

/* Contenu texte */
.psb-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.psb-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.psb-title {
  font-family: var(--font-family-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
}

/* ==================== CALENDRIER ALTERNANT LINK ==================== */
.calendar-alternant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(38, 38, 123, 0.65);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(38, 38, 123, 0.12);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease;
}

.calendar-alternant-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(38, 38, 123, 0.9);
  box-shadow: 0 16px 45px rgba(38, 38, 123, 0.18);
  color: #111;
  text-decoration: none;
}

.calendar-alternant-link:focus-visible {
  outline: 3px solid rgba(38, 38, 123, 0.25);
  outline-offset: 3px;
}

.psb-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.psb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s ease;
}

.psb-cta svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projects-showcase-banner:hover .psb-cta {
  gap: 14px;
}

.projects-showcase-banner:hover .psb-cta svg {
  transform: translateX(4px);
}

/* Apparition : volontairement simple */
.projects-showcase-banner {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Float idle des images */
.psb-img-1 { animation: psbFloat1 4s ease-in-out infinite 0.6s; }
.psb-img-2 { animation: psbFloat2 4.5s ease-in-out infinite 0.8s; }
.psb-img-3 { animation: psbFloat3 5s ease-in-out infinite 1s; }

@keyframes psbFloat1 {
  0%, 100% { translate: 0 0; }
  50% { translate: -3px -5px; }
}
@keyframes psbFloat2 {
  0%, 100% { translate: 0 0; }
  50% { translate: 2px -6px; }
}
@keyframes psbFloat3 {
  0%, 100% { translate: 0 0; }
  50% { translate: 4px -4px; }
}

/* CV-only button row */
.hero-btn-row--cv-only {
  margin-top: 1.5rem;
}

/* Light theme overrides for banner inside hero */
body:not(.dark-theme) .projects-showcase-banner {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-theme) .psb-title {
  color: var(--text-dark);
}

body:not(.dark-theme) .psb-desc {
  color: var(--text-muted);
}

body.dark-theme .calendar-alternant-link {
  color: #fff;
}

body.dark-theme .calendar-alternant-link:hover,
body.dark-theme .calendar-alternant-link:focus-visible {
  color: #fff;
}

/* ==================== RESPONSIVE BANNER ==================== */
@media (max-width: 768px) {
  .projects-showcase-banner {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
    text-align: center;
  }

  .psb-images {
    width: 220px;
    height: 120px;
    margin: 0 auto;
  }

  .psb-img {
    width: 120px;
    height: 80px;
  }

  .psb-img-2 {
    left: 50px;
  }

  .psb-img-3 {
    left: 90px;
  }

  .psb-title {
    font-size: 1.3rem;
  }

  .psb-desc {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .psb-cta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .projects-showcase-banner {
    padding: 22px 18px;
    gap: 20px;
  }

  .psb-images {
    width: 190px;
    height: 105px;
  }

  .psb-img {
    width: 100px;
    height: 68px;
    border-radius: 8px;
  }

  .psb-img-2 {
    left: 44px;
  }

  .psb-img-3 {
    left: 82px;
  }

  .psb-title {
    font-size: 1.15rem;
  }
}
