/* ==========================================================================
   1. VARIABLES GLOBALES, THÈME & REFRESH DES BALISES
   ========================================================================== */
:root {
  --bg: #E8E6E0;         /* Fond beige d'origine */
  --panel: #F1EAD7;      /* Éléments de cartes secondaires */
  --paper: #1825A9;      
  --text: #1825A9;       /* Bleu Royal principal */
  --muted: #1825A9;      
  --line: rgba(24, 37, 169, 0.15); 
  --accent: #1825A9;     
  --radius: 12px;        
  --max: 1280px;
}

/* Reset de base pour l'unification des navigateurs */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

/* Accessibilité globale au clavier */
a:focus-visible, 
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}


/* ==========================================================================
   2. STRUCTURES COMMUNES & EFFETS DE SCROLL (REVEAL)
   ========================================================================= */
.section { 
  width: min(100% - 96px, var(--max)); 
  margin: 0 auto; 
  padding: 120px 0; 
  border-bottom: 1px solid var(--line); 
}

.section-number { 
  font-size: 0.75rem; 
  font-weight: 700; 
  color: var(--accent); 
  letter-spacing: 0.1em; 
  margin-bottom: 24px; 
  text-transform: uppercase;
}

.section h2, 
.section-head h2 { 
  font-size: clamp(2.4rem, 5vw, 4.8rem); 
  color: var(--text); 
  margin-bottom: 48px; 
  font-family: 'Bebas Neue', sans-serif; 
  letter-spacing: 0.02em; 
  text-transform: uppercase; 
}

.split { 
  display: flex; 
  align-items: end; 
  justify-content: space-between; 
  gap: 20px; 
}

.text-link { 
  font-weight: 700; 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  color: var(--accent); 
  padding-bottom: 8px; 
}

/* Animation d'apparition au défilement */
.reveal { 
  opacity: 0; 
  transform: translateY(16px); 
  transition: opacity 0.6s ease, transform 0.6s ease; 
}

.reveal.in { 
  opacity: 1; 
  transform: none; 
}

/* Texture grainée en arrière-plan */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Curseur circulaire qui suit la souris (Desktop uniquement) */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  z-index: 95;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.cursor.is-visible {
  transform: translate(-50%, -50%) scale(1);
}


/* ==========================================================================
   3. LOADER D'ENTRÉE DU PORTFOLIO
   ========================================================================== */
.loader-container { 
  position: fixed; 
  inset: 0; 
  background-color: var(--bg); 
  z-index: 10000; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s; 
}

.loader-container.fade-out { 
  opacity: 0; 
  visibility: hidden; 
  pointer-events: none; 
}

.loader-content { 
  text-align: center; 
  width: 100%; 
  max-width: 500px; 
  padding: 0 24px; 
}

.loader-title { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: clamp(3rem, 8vw, 5rem); 
  color: var(--accent); 
  letter-spacing: 0.02em; 
  line-height: 1; 
  margin-bottom: 12px; 
}

.loader-bar-container { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  margin-bottom: 16px; 
}

.loader-percentage { 
  font-family: 'Be Vietnam Pro', sans-serif; 
  font-size: 0.85rem; 
  font-weight: 700; 
  color: var(--accent); 
  min-width: 35px; 
  text-align: left; 
}

.loader-line-bg { 
  flex: 1; 
  height: 2px; 
  background-color: rgba(24, 37, 169, 0.1); 
  position: relative; 
  border-radius: 2px; 
}

.loader-line { 
  height: 100%; 
  width: 0%; 
  background-color: var(--accent); 
  transform-origin: left; 
}

.loader-author { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: clamp(1.2rem, 3vw, 1.8rem); 
  color: var(--accent); 
  letter-spacing: 0.05em; 
}


/* ==========================================================================
   4. NAVIGATION (BARRE HORIZONTALE SUR ORDINATEUR)
   ========================================================================== */
.topbar { 
  position: fixed; 
  top: 24px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: min(calc(100% - 48px), var(--max)); 
  z-index: 999; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 12px 24px; 
  border-bottom: 1px solid var(--line); 
  background: rgba(232, 230, 224, 0.8); 
  backdrop-filter: blur(16px); 
}

.topbar a.brand,
.topbar .brand { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 1.4rem; 
  letter-spacing: 0.05em; 
  color: var(--accent); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  z-index: 1002; 
}

.topbar .brand span { 
  width: 6px; 
  height: 6px; 
  background: var(--accent); 
  border-radius: 50%; 
}

/* --- Affichage par défaut : Table de liens en ligne (Ordinateur) --- */
.nav-overlay {
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  opacity: 1;
  visibility: visible;
  z-index: auto;
  box-shadow: none;
  display: block;
  pointer-events: auto;
  transition: none;
}

.nav-blur-dismiss {
  display: none;
}

.nav-right-panel {
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
  transform: none;
  transition: none;
  box-shadow: none;
  display: flex;
  align-items: center;
}

.nav-premium-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
}

.nav-item-premium {
  padding: 8px 16px; 
  font-size: 0.8rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  color: var(--accent); 
  border-radius: 999px; 
  border-bottom: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s, text-decoration 0.2s; 
}

.nav-item-premium:hover,
.nav-item-premium:focus-visible {
  background: rgba(24, 37, 169, 0.06); 
  text-decoration: underline;
  text-underline-offset: 6px;
  border-bottom-color: transparent;
}

/* Cache les éléments mobiles natifs sur la version bureau */
.nav-item-num,
.nav-item-arrow,
.nav-panel-socials {
  display: none;
}

/* Transformation du dernier lien (Contact) en bouton pilule bleu */
.nav-premium-links .nav-item-premium:last-child {
  background: var(--accent); 
  color: #ffffff; 
  border: 2px solid transparent; 
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-premium-links .nav-item-premium:last-child:hover {
  background: #ffffff; 
  color: var(--accent); 
  border-color: var(--accent); 
  text-decoration: none;
}

/* Masquage global du burger sur écran de bureau */
.menu-btn { 
  display: none; 
}
/* ==========================================================================
   5. ACUEIL : HERO SECTION (CALIBRAGE FIGMA STRICT)
   ========================================================================== */
.hero-section { 
  width: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  overflow: hidden; 
  padding-top: 170px; 
}

.hero-container-scaled { 
  width: 100%; 
  max-width: 1440px; 
  padding: 0 5px; 
  display: flex; 
  justify-content: center; 
}

.hero-canvas { 
  width: 1440px; 
  height: 740px; 
  position: relative; 
  flex-shrink: 0; 
}

.hero-badge { 
  position: absolute; 
  left: 84px; 
  top: 60px; 
  width: 656px; 
  height: 57px; 
  border: 3px solid var(--accent); 
  border-radius: 24px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--accent); 
  font-size: 18px; 
  letter-spacing: 2.16px; 
  font-weight: 400; 
}

.hero-firstname { 
  position: absolute; 
  left: 113px; 
  top: 155px; 
  color: var(--accent); 
  font-size: 270px; 
  font-family: 'Bebas Neue', sans-serif; 
  font-weight: 400; 
  line-height: 0.85; 
  text-transform: uppercase; 
}

.hero-stamps { 
  position: absolute; 
  left: 845px; 
  top: 20px; 
  width: 433px; 
  height: 353px; 
}

.hero-stamps img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

.hero-lastname { 
  position: absolute; 
  left: 113px; 
  top: 385px; 
  width: 1195px; 
  display: flex; 
  justify-content: space-between; 
  color: var(--accent); 
  font-size: 128px; 
  font-family: 'Bebas Neue', sans-serif; 
  font-weight: 400; 
  line-height: 1; 
  text-transform: uppercase; 
}

.hero-meta { 
  position: absolute; 
  left: 113px; 
  top: 550px; 
  color: var(--accent); 
  font-size: 20px; 
  letter-spacing: 2.40px; 
  line-height: 1.6; 
}

.hero-meta a { 
  text-decoration: underline; 
  font-weight: 700; 
}

/* Machine à écrire */
.hero-typewriter { 
  position: absolute; 
  left: 994px; 
  top: 550px; 
  display: flex; 
  flex-direction: column; 
}

.tw-label { 
  color: var(--accent); 
  font-size: 20px; 
  letter-spacing: 2.40px; 
  margin-bottom: 4px; 
}

.tw-text-container { 
  height: 44px; 
  display: flex; 
  align-items: center; 
}

#typewriter { 
  color: var(--accent); 
  font-size: 36px; 
  font-family: 'Bebas Neue', sans-serif; 
  font-weight: 400; 
  letter-spacing: 1.44px; 
  text-transform: uppercase; 
}

.tw-cursor { 
  font-size: 36px; 
  color: var(--accent); 
  animation: blink-cursor 0.8s infinite; 
  margin-left: 2px; 
}

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

.hero-scroll-arrow { 
  position: absolute; 
  bottom: 20px; 
  left: 50%; 
  transform: translateX(-50%); 
}


/* ==========================================================================
   6. ACCUEIL : SECTION À PROPOS (CONCEPTION CAPSULE OVALE BLANCHE)
   ========================================================================== */
.about-section {
  width: 100%; 
  max-width: 100%; 
  background: #ffffff; 
  padding: 120px 48px; 
  margin: 0;
  border-radius: 100vw 100vw 100vw 100vw / 12vh 12vh 12vh 12vh;
  box-shadow: 0 40px 120px rgba(24, 37, 169, 0.02); 
  position: relative; 
  z-index: 10;
}

.about-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 80px; 
  align-items: center; 
  width: min(100% - 96px, var(--max)); 
  margin: 0 auto; 
}

.about-text-side { 
  display: flex; 
  flex-direction: column; 
  gap: 28px; 
}

/* Texte interactif au scroll */
.about-scroll-reveal { 
  font-family: 'Be Vietnam Pro', system-ui, sans-serif; 
  font-size: 1.15rem; 
  line-height: 1.8; 
  font-weight: 500; 
  text-align: left; 
}

.about-scroll-reveal p { 
  margin-bottom: 24px; 
}

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

.about-scroll-reveal span { 
  color: rgba(24, 37, 169, 0.12); 
  transition: color 0.2s linear; 
}

.about-scroll-reveal span.active-word { 
  color: var(--accent); 
}

.about-image-side { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.image-wrapper-relative { 
  position: relative; 
  width: 100%; 
  max-width: 440px; 
}

.about-profile-img-container { 
  width: 100%; 
  aspect-ratio: 4 / 5; 
  border-radius: 24px; 
  overflow: hidden; 
}

.about-profile-img-container img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: grayscale(100%); 
  transition: filter 0.5s ease; 
}

.image-wrapper-relative:hover .about-profile-img-container img { 
  filter: grayscale(0%); 
}

/* Badge circulaire tournant */
.rotating-badge-container { 
  position: absolute; 
  top: -60px; 
  left: -60px; 
  width: 160px; 
  height: 160px; 
  z-index: 5; 
  pointer-events: none; 
}

.rotating-svg { 
  width: 100%; 
  height: 100%; 
  animation: spinBadge 14s linear infinite; 
}

.rotating-svg text { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 13.5px; 
  fill: var(--accent); 
  letter-spacing: 2.2px; 
}

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

/* Boutons d'actions */
.about-action-row { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-top: 12px; 
}

.btn-primary { 
  background: var(--accent); 
  color: #ffffff; 
  padding: 14px 28px; 
  font-weight: 700; 
  font-size: 0.85rem; 
  text-transform: uppercase; 
  border-radius: 999px; 
  letter-spacing: 0.05em; 
  border: 2px solid transparent; 
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s; 
}

.btn-primary:hover, 
.btn-primary:focus-visible { 
  transform: translateY(-2px); 
  background: #ffffff; 
  color: var(--accent); 
  border-color: var(--accent); 
}

.btn-secondary { 
  border: 2px solid var(--accent); 
  color: var(--accent); 
  padding: 12px 28px; 
  font-weight: 700; 
  font-size: 0.85rem; 
  text-transform: uppercase; 
  border-radius: 999px; 
  letter-spacing: 0.05em; 
  display: flex; 
  align-items: center; 
  transition: background 0.2s, color 0.2s, transform 0.2s; 
}

.btn-secondary:hover, 
.btn-secondary:focus-visible { 
  background: var(--accent); 
  color: #ffffff; 
  transform: translateY(-2px); 
}


/* ==========================================================================
   7. ACCUEIL : LIGNES DE PROJETS EN VEDETTE
   ========================================================================== */
.projects-section { 
  background: var(--bg); 
  border-bottom: none; 
}

.project-lines { 
  margin-top: 24px; 
  border-top: 1px solid var(--line); 
}

.project-line { 
  position: relative; 
  display: grid; 
  grid-template-columns: 80px 1fr 220px 40px; 
  gap: 20px; 
  align-items: center; 
  padding: 30px 0; 
  border-bottom: 1px solid var(--line); 
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease; 
}

.project-line:hover { 
  padding-left: 24px; 
  background: rgba(24, 37, 169, 0.02); 
}

.project-line h3 { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: clamp(1.8rem, 4vw, 3.8rem); 
  line-height: 1; 
  letter-spacing: 0.02em; 
}

.project-line .cat { 
  color: var(--accent); 
  opacity: 0.7; 
  font-weight: 700; 
  text-transform: uppercase; 
  font-size: 0.7rem; 
  letter-spacing: .05em; 
}

.project-line .arrow { 
  font-size: 1.5rem; 
  color: var(--accent); 
  justify-self: end; 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.project-line:hover .arrow { 
  transform: rotate(-45deg); 
}

/* Bloc d'image/vidéo volant qui suit le curseur sur l'accueil */
.preview { 
  position: fixed; 
  width: 330px; 
  height: 230px; 
  border-radius: 8px; 
  overflow: hidden; 
  z-index: 70; 
  pointer-events: none; 
  opacity: 0; 
  transform: translate(-50%, -50%) scale(.92); 
  transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1); 
  box-shadow: 0 20px 45px rgba(24, 37, 169, 0.15); 
  border: 1px solid var(--line); 
}

.preview.show { 
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1); 
}

.preview img, 
.preview video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}

.preview.show img { 
  transform: scale(1.06); 
}


/* ==========================================================================
   8. ACCUEIL : SECTION COMPÉTENCES & CARDS EMPILEDES
   ========================================================================== */
.skills-capsule-container {
  width: 100%;
  max-width: 100%;
  background: #ffffff; 
  padding: 120px 48px;
  margin: 0;
  border-radius: 100vw 100vw 100vw 100vw / 12vh 12vh 12vh 12vh;
  box-shadow: 0 40px 120px rgba(24, 37, 169, 0.02);
  position: relative;
  z-index: 10;
}

.skills-inner-content {
  width: min(100% - 96px, var(--max));
  margin: 0 auto;
}

.skills-sticky-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
  position: relative;
}

.skills-left-sticky {
  position: sticky;
  top: 160px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-left-sticky h2 {
  margin-bottom: 20px;
  line-height: 0.95;
}

.skills-sticky-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.8;
}

.skills-stacked-cards {
  display: flex;
  flex-direction: column;
  gap: 40px; 
  padding-bottom: 40px;
}

/* Effet d'empilement au scroll (Stacking Effect) */
.skill-stack-card {
  position: sticky;
  background-color: var(--bg); 
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(24, 37, 169, 0.04);
  transition: transform 0.3s ease;
}

.skills-stacked-cards .skill-stack-card:nth-child(1) { top: 140px; }
.skills-stacked-cards .skill-stack-card:nth-child(2) { top: 170px; }
.skills-stacked-cards .skill-stack-card:nth-child(3) { top: 200px; }
.skills-stacked-cards .skill-stack-card:nth-child(4) { top: 230px; }

.card-stack-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-stack-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
}

.skill-stack-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  color: var(--text);
  text-transform: uppercase;
}

.skill-stack-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}

.card-stack-level {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background-color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
}

/* --- CARROUSEL DES LOGOS LOGICIELS (MARQUEE SLIDER) --- */
.tool-cloud { 
  display: flex; 
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 100px; 
  padding: 40px 0; 
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 60px; 
  align-items: center;
  width: max-content;
  animation: scrollMarquee 22s linear infinite;
}

.logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 65px;  
  height: 65px; 
}

.logo-item img { 
  width: 65px;
  height: 65px; 
  max-width: none; 
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-item:hover img {
  transform: translateY(-8px);
}

/* Tooltips pour l'affichage textuel au survol des logos */
.logo-item::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -28px; 
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.logo-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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



/* ==========================================================================
   8B. ACCUEIL : SECTION SAVOIR-ÊTRE (HUB INTERACTIF)
   ========================================================================== */
.soft-skills-section {
  background: var(--bg); 
  padding-bottom: 120px;
  border-bottom: none; 
}

.soft-interactive-hub {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  width: 100%;
  align-items: center;
}

.soft-hub-navigation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-trigger {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hub-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
}

.hub-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  transition: transform 0.3s ease;
}

.hub-trigger:hover, 
.hub-trigger.active {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 12px 35px rgba(24, 37, 169, 0.05);
}

.hub-trigger:hover .hub-text, 
.hub-trigger.active .hub-text {
  color: var(--accent);
  transform: translateX(6px);
}

.hub-trigger.active .hub-num {
  opacity: 1;
}

/* Panneau de droite */
.soft-hub-display {
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: stretch;
}

.display-inner-panel {
  background-color: #ffffff; 
  border: 1px solid var(--accent);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  align-items: center;
  position: relative;
  box-shadow: inset 0 0 40px rgba(24, 37, 169, 0.01);
}

#soft-dynamic-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
  animation: softFadeIn 0.4s ease forwards;
}

@keyframes softFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}


/* ==========================================================================
   9. ACCUEIL : RECOMMANDATIONS (AVIS DE STAGE & CAMARADES)
   ========================================================================== */
.reviews-capsule-section {
  margin-top: 0; 
}

.reviews-modern-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.review-card {
  background-color: var(--bg); 
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

/* Focus sur l'avis du Maître de stage */
.card-master-stage {
  background-color: #ffffff; 
  border: 2px solid var(--accent); 
  box-shadow: 0 15px 40px rgba(24, 37, 169, 0.03);
}

.card-master-stage .review-text-main {
  font-size: 1.15rem; 
  line-height: 1.7;
  font-weight: 500;
}

.card-review-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background-color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: -4px;
}

/* Grille secondaire à deux colonnes */
.review-sub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(24, 37, 169, 0.08);
  padding-top: 16px;
}

.author-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.author-role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.6;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(24, 37, 169, 0.06);
}

.review-sub-cards-grid .review-card:hover {
  background-color: #ffffff; 
}


/* ==========================================================================
   10. SECTION CONTACT, LIGNES DE FORMULAIRE & FOOTER DE PIED
   ========================================================================== */
.contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 48px 80px;
  background: var(--accent); 
  color: #ffffff;
  position: relative;
  z-index: 15;
  margin-top: -2px;
}

/* Jonction de transition par vague fluide */
.contact-wave-top {
  position: absolute;
  top: -119px;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
  z-index: 14;
  pointer-events: none;
}

.contact-wave-top svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.contact-container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  text-align: left;
}

.contact-head-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}

.contact-head-title .section-number {
  color: #ffffff;
  opacity: 0.6;
  margin-bottom: 8px;
}

.contact-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  color: #ffffff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.contact-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center; 
}

/* Éléments de saisie */
.contact-form-element {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group label {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input, 
.input-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 0;
  color: #ffffff;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #ffffff;
  opacity: 0.4;
}

/* Animation fluide de soulignement de saisie */
.input-line-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input:focus ~ .input-line-effect,
.input-group textarea:focus ~ .input-line-effect {
  transform: scaleX(1);
}

.form-submit-btn {
  align-self: flex-start;
  background-color: #ffffff; 
  color: var(--accent);
  border: 1px solid #ffffff;
  padding: 14px 44px;
  border-radius: 999px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-submit-btn:hover {
  transform: translateY(-3px);
  background-color: transparent;
  color: #ffffff;
}

/* Hub de liens réseaux et documents */
.contact-action-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-hub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.btn-left-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-hub-num {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.5;
}

.btn-hub-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-hub-arrow {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-hub-btn:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--accent); 
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.contact-hub-btn:hover .btn-hub-arrow {
  transform: translateX(6px) scale(1.1);
}

.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 40px 48px;
  color: #1825A9;
  opacity: 0.6;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #ffffff;
}


/* ==========================================================================
   11. PAGE ARCHIVE (LISTE EN SPLIT IMMERSIVE & APPARITIONS CINÉMATIQUES)
   ========================================================================== */
.archive-split-body {
  overflow-x: hidden;
  overflow-y: auto; /* Autorise le défilement général pour atteindre le footer */
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
}

.split-archive-container {
  display: flex;
  width: 100vw;
  height: calc(100vh - 110px); /* Prend toute la hauteur moins la topbar */
  min-height: 680px; /* Sécurité sur les petits écrans */
  padding-top: 110px;
  flex: 1; /* Pousse naturellement le footer vers le bas si besoin */
}

.split-left-scroller {
  width: 55%;
  height: 100%;
  overflow-y: auto; /* La liste défile de manière indépendante à gauche */
  padding: 40px 64px 60px 96px;
  scrollbar-width: none;
}

.split-left-scroller::-webkit-scrollbar {
  display: none;
}

.archive-split-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--text);
  text-transform: uppercase;
  line-height: 0.95;
  margin-top: 8px;
  margin-bottom: 32px;
}

.split-left-scroller .filters-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover, 
.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.split-text-list {
  display: flex;
  flex-direction: column;
}

.split-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: rowCascadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.split-item-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.split-item-num {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.title-overflow-mask {
  overflow: hidden;
  position: relative;
}

.split-list-item h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.split-item-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  overflow: hidden;
}

.split-item-cat span {
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-list-item:hover {
  border-bottom-color: var(--accent);
}

.split-list-item:hover h3 {
  color: var(--accent);
  transform: translate3d(14px, 0, 0); 
}

.split-list-item:hover .split-item-num {
  opacity: 1;
  color: var(--accent);
}

.split-list-item:hover .split-item-cat span {
  transform: translate3d(-6px, 0, 0); 
  opacity: 1;
}

.split-text-list:hover .split-list-item:not(:hover) {
  opacity: 0.2;
}

/* Cadre de droite reste fixe par rapport à son parent */
.split-right-preview {
  width: 45%;
  height: 100%;
  padding: 40px 96px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
}

.split-preview-window {
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: var(--panel);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(24, 37, 169, 0.08);
  position: relative;
}

.preview-img-holder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: filter 0.3s ease;
}

.preview-img-holder img,
.preview-img-holder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-img-holder.glitch-flash {
  animation: shutterEffect 0.35s ease-out;
}

@keyframes shutterEffect {
  0% { filter: brightness(1) contrast(1); }
  40% { filter: brightness(1.15) contrast(1.05); }
  100% { filter: brightness(1) contrast(1); }
}

.fade-in-preview {
  opacity: 0;
  transform: scale(1.04);
  animation: imageOrganicZoom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes imageOrganicZoom {
  to { opacity: 1; transform: scale(1); }
}

.preview-placeholder-text {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.3;
  letter-spacing: 0.05em;
}

.no-project {
  font-size: 1rem;
  opacity: 0.5;
  padding: 24px 0;
}
/* ==========================================================================
   12. PAGE DÉTAIL PROJET (SPLIT-SCREEN CONFIGURÉ AUX DOSSIERS LOCAL D'IMAGES)
   ========================================================================== */
.project-page {
  padding-top: 110px;
}

.luxury-split-detail {
  display: flex;
  width: min(100% - 96px, var(--max));
  margin: 0 auto;
  gap: 64px;
  padding-top: 60px;
}

.detail-info-side {
  width: 42%;
  position: sticky;
  top: 150px;
  height: cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-num-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.detail-main-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  color: var(--text);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 6px 0;
}

.detail-main-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
  margin-bottom: 24px;
}

.detail-badges-hub {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.mini-pill-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: var(--panel);
}

.detail-pure-desc p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.85;
}

.detail-software-section {
  margin-top: 36px;
}

.detail-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  margin-bottom: 12px;
}

.detail-software-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Formatage des vignettes logicielles graphiques */
.tech-mini-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

.tech-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-mini-text {
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.tech-mini-logo:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(24, 37, 169, 0.1);
  border-color: var(--accent);
}

.detail-software-grid:hover .tech-mini-logo:not(:hover) {
  opacity: 0.4;
}

.tech-mini-logo::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-mini-logo:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.detail-minimal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.detail-minimal-link:hover {
  opacity: 0.7;
}

.detail-visuals-side {
  width: 58%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-main-media-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.detail-main-media-frame img,
.detail-main-media-frame video,
.detail-main-media-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-micro-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.micro-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  opacity: 0;
  transform: translateY(15px);
  animation: galleryRevealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.micro-img img,
.micro-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* Rail de navigation d'un projet à l'autre */
.project-infinite-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 80px auto 40px;
  width: min(100% - 96px, var(--max));
}

.nav-prev-box, 
.nav-next-box {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  color: var(--text);
}

.nav-next-box { 
  text-align: right; 
}

.nav-direction {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  margin-bottom: 4px;
}

.nav-project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.2s ease;
}

.nav-prev-box:hover .nav-project-title,
.nav-next-box:hover .nav-project-title {
  color: var(--accent);
}

.nav-center-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  height: 100%;
  color: var(--text);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.nav-center-all:hover { 
  opacity: 1; 
}


/* ==========================================================================
   13. SYSTÈME LIGHTBOX (ZOOM PLEIN ÉCRAN FLUIDE SANS COMPOSANTS LOURDS)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(14, 20, 78, 0.92); 
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content-container {
  transform: scale(1);
}

.lightbox-content-container img,
.lightbox-content-container video {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 3rem;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.lightbox-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}


/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES (RE-CALIBRAGE MOBILE ET FINITIONS SANS OVERLAP)
   ========================================================================== */
@media(max-width: 1024px) {
  .soft-skill-cards-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(max-width: 980px) {
  /* --- ADAPTATION STRUCTURELLE GENERALE --- */
  .section { 
    width: calc(100% - 48px); 
    margin: 0 auto;
    padding: 60px 0; 
  }
  
  .topbar { 
    background: rgba(232, 230, 224, 0.95); 
    width: calc(100% - 32px);
    top: 16px;
  }
  
  /* Activation et design des deux barres du burger mobile */
  .menu-btn { 
    display: flex; 
    width: 44px; 
    height: 44px; 
    border: 0; 
    background: transparent; 
    cursor: pointer; 
    z-index: 1002; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-end;
    gap: 7px; 
    padding: 8px; 
  }

  .burger-line { 
    display: block; 
    height: 2px; 
    background: var(--accent); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s ease, background-color 0.4s; 
  }

  .burger-line:nth-child(1) { width: 28px; }
  .burger-line:nth-child(2) { width: 18px; }

  .topbar.menu-open .burger-line { background-color: #ffffff; }
  .topbar.menu-open .burger-line:nth-child(1) { transform: translateY(4.5px) rotate(45deg); width: 26px; }
  .topbar.menu-open .burger-line:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); width: 26px; }

  /* Rideau coulissant adaptatif mobile */
  .topbar .nav-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
  }

  .topbar .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .topbar .nav-blur-dismiss {
    display: block;
    position: absolute;
    inset: 0;
    background-color: rgba(24, 37, 169, 0.08);
    backdrop-filter: blur(8px);
    width: 100%;
    height: 100%;
  }

  /* Panneau de rideau bleu mobile */
  .topbar .nav-right-panel {
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 32px 60px;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
  }

  .topbar .nav-overlay.active .nav-right-panel {
    transform: translate3d(0, 0, 0);
  }

  .topbar .nav-premium-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .topbar .nav-item-premium {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 0;
    background: transparent;
  }

  .topbar .nav-premium-links .nav-item-premium:last-child {
    background: transparent;
    color: #ffffff;
    border: none;
  }

  .topbar .nav-item-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.4;
    min-width: 40px;
    color: #ffffff;
  }

  .topbar .nav-item-text {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    text-transform: uppercase;
    line-height: 1;
    color: #ffffff;
  }

  .topbar .nav-item-arrow {
    display: block;
    font-size: 1.8rem;
    margin-left: auto;
    opacity: 0.5;
    color: #ffffff;
  }
  
  /* Affichage et alignement des cercles de contact en bas du burger mobile */
  .topbar .nav-panel-socials {
    display: flex;
    margin-top: auto;
    padding-top: 30px;
    gap: 16px;
  }
  
  .topbar .social-circle-btn {
    display: flex;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
  }

  /* --- RE-CALIBRAGE DES SECTIONS DE L'ACCUEIL --- */
  .hero-section { 
    padding: 120px 16px 20px; 
    height: auto; 
    min-height: auto; 
    display: block;
  }
  
  .hero-container-scaled { 
    padding: 0; 
    display: block;
    width: 100%;
  }
  
  .hero-section .hero-canvas { 
    width: 100%; 
    height: auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center;     
    text-align: center;
    gap: 16px; 
    position: relative;
    transform: none; 
  }
  
  .hero-section .hero-badge, 
  .hero-section .hero-firstname, 
  .hero-section .hero-stamps, 
  .hero-section .hero-lastname, 
  .hero-section .hero-meta, 
  .hero-section .hero-typewriter { 
    position: relative; 
    top: 0; left: 0;
    width: 100%; 
    max-width: 100%; 
    height: auto; 
    transform: none; 
    letter-spacing: normal; 
  }
  
  .hero-section .hero-badge { 
    padding: 12px 16px; 
    border-radius: 12px; 
    font-size: 0.85rem; 
    line-height: 1.4;
    display: inline-flex;
    justify-content: center;
    width: auto;             
    max-width: 100%;
  }
  
  .hero-section .hero-firstname { 
    font-size: clamp(3.5rem, 16vw, 6.5rem); 
    line-height: 0.85; 
    margin-bottom: -5px;
  }
  
  .hero-section .hero-lastname { 
    font-size: clamp(3.5rem, 16vw, 6.5rem); 
    line-height: 0.85; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 0px;
    margin-top: -10px;
  }
  
  .hero-section .hero-stamps { 
    max-width: 150px;        
    margin: 8px auto; 
  }
  
  .hero-section .hero-meta {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .hero-section .hero-typewriter {
    margin-top: 4px;
    align-items: center;
  }
  
  .hero-section #typewriter { 
    font-size: 1.6rem; 
  }
  
  .hero-section .tw-text-container {
    height: 28px;
  }
  
  .hero-scroll-arrow { 
    display: none; 
  }

  /* --- CADRAGE DE LA SECTION À PROPOS --- */
  body .about-section { 
    padding: 50px 24px; 
    border-radius: 24px; 
    width: calc(100% - 32px);
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .about-grid { 
    grid-template-columns: 1fr; 
    gap: 32px; 
    width: 100%;
  }
  
  .about-scroll-reveal {
    font-size: 0.95rem;      
    line-height: 1.65;
    text-align: justify;     
  }
  
  .about-scroll-reveal p {
    margin-bottom: 16px;     
  }

  .about-section .rotating-badge-container {
    display: none;
  }

  .about-image-side {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-image-side .image-wrapper-relative {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transform: none;
  }
  
  .about-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .about-action-row .btn-primary,
  .about-action-row .btn-secondary {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .project-line { 
    grid-template-columns: 35px 1fr 30px; 
    padding: 24px 0; 
  }
  
  .project-line .cat, 
  .preview, 
  .cursor { 
    display: none; 
  }
  
  /* --- FIX RESPONSIVE SECTION COMPÉTENCES --- */
body .skills-capsule-container { 
  padding: 60px 18px 50px; 
  border-radius: 24px; 
  width: calc(100% - 24px);
  margin: 0 auto;
  overflow: hidden;
}

body .skills-inner-content {
  width: 100%;
}

body .skills-sticky-layout { 
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: relative;
}

body .skills-left-sticky { 
  position: relative;
  top: auto;
  text-align: center;
  width: 100%;
  margin-bottom: 28px;
}

body .skills-stacked-cards { 
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-bottom: 0;
}

body .skill-stack-card { 
  position: relative !important;
  top: auto !important;
  width: 100%;
  padding: 28px 20px;
  border-radius: 20px;
}

body .card-stack-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body .skill-stack-card h3 {
  font-size: 2rem;
  line-height: 0.95;
}

body .skill-stack-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Logos : on les remet dans le flux normal */
body .tool-cloud {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  margin-top: 32px;
  padding: 18px 0 6px;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

body .marquee-track {
  gap: 28px;
}

body .logo-item {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

body .logo-item img {
  width: 48px;
  height: 48px;
}
  /* Section savoir-être un peu poussée pour respirer après les logos défilants */
  .soft-skills-section {
    padding-top: 100px;
  }

  .soft-interactive-hub {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }
  
  .hub-trigger {
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .display-inner-panel {
    padding: 24px;
    border-radius: 16px;
  }
  
  /* Section Avis et Recommandations */
  .review-sub-cards-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
    width: 100%;
  }
  
  .review-card { 
    padding: 24px 20px; 
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.6); 
  }
  
  .card-master-stage .review-text-main { 
    font-size: 1rem; 
    line-height: 1.6;
  }
  
  .review-card p {
    font-size: 0.92rem;
    line-height: 1.6;
  }
  
  /* Formulaire de contact */
  .contact-grid-layout { 
    grid-template-columns: 1fr; 
    gap: 40px; 
  }
  
  .contact-wave-top { 
    height: 40px; 
    top: -39px; 
  }
  
  .contact-section { 
    padding: 80px 16px 40px; 
  }
  
  .contact-hub-btn {
    padding: 16px 20px;
    border-radius: 12px;
  }

  /* Ajustements structurels des pages secondaires */
  .archive-split-body { overflow: auto; height: auto; width: 100%; }
  .split-archive-container { flex-direction: column-reverse; height: auto; padding-top: 100px; }
  .split-left-scroller { width: 100%; height: auto; padding: 32px 24px 80px; overflow: visible; }
  .split-right-preview { width: 100%; height: auto; padding: 24px 24px 0; }
  .split-list-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 0; }
  .split-list-item:hover h3 { transform: none; }
  .split-item-cat { text-align: left; }
  .split-text-list:hover .split-list-item:not(:hover) { opacity: 1; }
  .split-preview-window { aspect-ratio: 16 / 10; }
  .luxury-split-detail { flex-direction: column; gap: 40px; width: min(100% - 48px, var(--max)); }
  .detail-info-side, .detail-visuals-side { width: 100%; }
  .detail-info-side { position: relative; top: 0; height: auto; }
  .project-infinite-nav { grid-template-columns: 1fr 1fr; width: min(100% - 48px, var(--max)); }
  .nav-center-all { display: none; }
}

@media(max-width: 768px) {
  .lightbox-overlay { padding: 16px; }
  .lightbox-close-btn { top: 16px; right: 24px; font-size: 2.5rem; }
}

@media(max-width: 640px) {
  .soft-skill-cards-grid { grid-template-columns: 1fr; gap: 16px; }
}