@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
  --bg-dark:    #1F1F1F;
  --bg-light:   #F5F5F5;
  --bg-project: #EAEAEA;
  --text-dark:  #1F1F1F;
  --text-light: #F5F5F5;
  --text-mid:   #878787;

  --font-title: 'Satoshi', sans-serif;
  --font-body:  'Inter', sans-serif;

  --tx-xl:  clamp(32px, 5vw, 48px);
  --tx-l:   clamp(28px, 4vw, 36px);
  --tx-m:   clamp(18px, 2.5vw, 24px);
  --tx-s:   18px;

  --letter-tight: -0.02em;

  --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --ease-slide:      cubic-bezier(0.22, 1, 0.36, 1);

  --nav-height: 68px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-card: 14px;
  --radius-btn:  8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  background-color: var(--bg-dark) !important; 
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark) !important;
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

/* =============================================
   NAVBAR
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center; 
  padding: 0 32px;
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s var(--ease-out);
  animation: navSlideDown 0.6s var(--ease-out) 0.1s both;
}
.nav.scrolled { backdrop-filter: blur(24px); }

@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-inner {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; 
}

.nav-pill-group {
  display: flex; gap: 2px; background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 4px; height: auto; align-items: center;
}
.nav-pill-item {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 12px 12px; 
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: transparent; color: var(--text-mid); transition: background 0.2s ease, color 0.2s ease;
  line-height: 1; display: flex; align-items: center; justify-content: center;
}
.nav-pill-item.active, .nav-pill-item:hover { background: rgba(255,255,255,0.12); color: var(--text-light); }
.nav-pill-item.active { background: rgba(255,255,255,0.16); }

.nav-links-left  { display: flex; justify-content: flex-start; }
.nav-links-right { display: flex; justify-content: flex-end; }

.nav-burger, .nav-mobile-menu {
  display: none !important;
}

.nav-logo-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.4s ease;
  pointer-events: none; cursor: default; margin: 0;
}
.nav-logo-center.visible {
  opacity: 1;
  transform: translateY(0); 
  pointer-events: auto;
}
.nav-logo-center .logo-name { font-family: var(--font-title); font-weight: 700; font-size: 13px; color: var(--text-light); line-height: 1.2; display: block; text-align: center; }
.nav-logo-center .logo-sub { font-family: var(--font-body); font-size: 10px; color: var(--text-mid); line-height: 1.2; display: block; text-align: center; }

body.project-open .nav-pill-item        { color: #888; }
body.project-open .nav-pill-item.active, body.project-open .nav-pill-item:hover  { color: var(--text-dark); background: rgba(0,0,0,0.08); }
body.project-open .nav-pill-group       { background: rgba(0,0,0,0.06); }
body.project-open .nav-logo-center .logo-name { color: var(--text-dark); }
body.project-open .nav-logo-center .logo-sub  { color: var(--text-mid); }


/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 0 24px; position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,245,245,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,245,245,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
}

.hero-avatar {
  width: 140px; height: auto; aspect-ratio: 1 / 1; border-radius: var(--radius-md);
  border: 1px solid #F5F5F5; overflow: hidden; margin-bottom: 24px; background: #333;
  animation: avatarPop 0.7s var(--ease-bounce) 0.4s both; position: relative; z-index: 1;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-logo { margin-bottom: 16px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo .logo-name { font-family: var(--font-title); font-weight: 700; font-size: var(--tx-xl); color: var(--text-light); line-height: 0.9; display: block; animation: fadeUp 0.65s var(--ease-out) 0.55s both; }
.hero-logo .logo-subtitle { font-family: var(--font-title); font-weight: 700; font-size: var(--tx-l); color: var(--text-mid); line-height: 1; display: block; margin-top: -2px; animation: fadeUp 0.65s var(--ease-out) 0.7s both; }

.hero-description {
  font-size: 15px; 
  line-height: 1.65; 
  color: var(--text-mid); 
  max-width: 600px; /* <-- C'est cette valeur qui a été agrandie */
  margin-bottom: 32px; 
  animation: fadeUp 0.65s var(--ease-out) 0.85s both; 
  position: relative; 
  z-index: 1;
}

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

.btn-primary, .btn-case { overflow: hidden; position: relative; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--text-light); color: var(--text-dark); font-size: 13px; font-weight: 500; padding: 11px 20px; border-radius: var(--radius-btn); border: none; cursor: pointer; animation: fadeUp 0.65s var(--ease-out) 1s both; }
.btn-primary:hover  { background: #e8e8e8; }
.btn-case { 
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-light); border: 1px solid rgba(255,255,255,0.14); padding: 8px 14px; border-radius: var(--radius-btn); cursor: pointer; 
  margin-top: auto;
}
.btn-case:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.28); }

.btn-arrow-wrap { display: inline-flex; overflow: hidden; width: 1em; height: 1em; align-items: center; justify-content: center; position: relative; }
.btn-arr, .btn-arr-ghost { position: absolute; transition: transform 0.32s var(--ease-bounce), opacity 0.22s ease; }
.btn-primary .btn-arr { transform: translateY(0); }
.btn-primary .btn-arr-ghost { transform: translateY(-140%); opacity: 0; }
.btn-primary:hover .btn-arr { transform: translateY(140%); opacity: 0; }
.btn-primary:hover .btn-arr-ghost { transform: translateY(0); opacity: 1; }
.btn-case .btn-arr { transform: translateX(0); }
.btn-case .btn-arr-ghost { transform: translateX(-140%); opacity: 0; }
.btn-case:hover .btn-arr { transform: translateX(140%); opacity: 0; }
.btn-case:hover .btn-arr-ghost { transform: translateX(0); opacity: 1; }

/* =============================================
   PROJECTS GRID
   ============================================= */
.projects-section { padding: 80px 32px 120px; max-width: 1200px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.project-card {
  background: #242424; border-radius: var(--radius-card); overflow: hidden; cursor: pointer;
  opacity: 0; transform: translateY(28px); border: none;
  display: flex; flex-direction: column; height: 100%;
}
.project-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }

.card-thumbnail {
  width: 100%; aspect-ratio: 16 / 10; border-bottom: 1px solid rgba(255,255,255,0.05);
  background: repeating-conic-gradient(#2e2e2e 0% 25%, #242424 0% 50%) 0 0 / 20px 20px; overflow: hidden;
}
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.card-body { 
  padding: 20px 22px 24px; 
  display: flex; flex-direction: column; flex-grow: 1; align-items: flex-start;
}
.card-title { font-family: var(--font-title); font-weight: 700; font-size: 16px; color: var(--text-light); margin-bottom: 6px; }
.card-desc { font-size: 13px; line-height: 1.55; color: var(--text-mid); margin-bottom: 14px; }
/* =============================================
   FOOTER
   ============================================= */
.footer-outer {
  display: flex; justify-content: center;
  padding-bottom: 0; margin-bottom: 0;
}
.footer {
  display: inline-flex; gap: 48px; align-items: flex-start; background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 32px 48px 40px;
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.footer.revealed { opacity: 1; }

.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); }
.footer-link { font-size: 14px; color: var(--text-light); display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.2s ease; }
.footer-link:hover { opacity: 0.65; }

.btn-copy-full { background: none; border: none; cursor: pointer; padding: 0; color: var(--text-light); text-align: left; }
.btn-copy-icon { color: var(--text-mid); display: inline-flex; align-items: center; transition: color 0.2s ease, transform 0.3s var(--ease-bounce); }
.btn-copy-full:hover .btn-copy-icon { color: var(--text-light); transform: scale(1.15); }
.btn-copy-full.copied { color: #6ee7a0; }
.btn-copy-full.copied .btn-copy-icon { color: #6ee7a0; }

/* =============================================
   PROJECT OVERLAY
   ============================================= */
.project-overlay { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }

.project-panel {
  position: absolute; inset: 0; background: var(--bg-light); color: var(--text-dark);
  overflow-y: auto; overflow-x: hidden; transform: translateY(100%); transition: transform 0.6s var(--ease-slide); pointer-events: none;
  overscroll-behavior: none;
}
.project-panel.open { transform: translateY(0); pointer-events: all; }

.project-nav {
  position: sticky; top: 0; z-index: 10; display: flex; 
  justify-content: center;
  align-items: center; padding: 0 48px; height: var(--nav-height); 
  background: var(--bg-light); border-bottom: 1px solid rgba(0,0,0,0.06);
}
.project-nav-logo { 
  display: flex; flex-direction: column; gap: 1px; 
  align-items: center; text-align: center; 
}
.project-nav-name { font-family: var(--font-title); font-weight: 700; font-size: 13px; color: var(--text-dark); }
.project-nav-sub { font-size: 10px; color: var(--text-mid); }

.btn-close { 
  position: absolute; right: 48px; 
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; 
  color: var(--text-mid); background: none; border: none; cursor: pointer; padding: 8px 0; transition: color 0.2s ease; 
}
.btn-close:hover { color: var(--text-dark); }
.btn-close svg { transition: transform 0.35s var(--ease-bounce); }
.btn-close:hover svg { transform: rotate(90deg); }

.project-hero-band { width: 100%; background: var(--bg-light); position: relative; overflow: hidden; padding: 64px 48px 0; text-align: center; }

.project-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,31,31,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(31,31,31,0.08) 1px, transparent 1px);
  background-size: 48px 48px; 
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}

.project-hero-img-wrap {
  position: relative; 
  z-index: 1; 
  width: 100%; 
  max-width: 680px; 
  margin: 0 auto 32px; 
  border-radius: var(--radius-lg);
  overflow: hidden; 
  background: transparent;
}

.project-hero-img-wrap img { 
  width: 100%; 
  height: auto; 
  display: block;
}

.project-title-block { position: relative; z-index: 1; margin-bottom: 40px; }
.project-title-block h1 { font-family: var(--font-title); font-weight: 700; font-size: var(--tx-l); color: var(--text-dark); margin-bottom: 4px; }
.project-title-block .intro-label { font-size: 12px; color: var(--text-mid); margin-bottom: 10px; }
.project-title-block .intro-text { font-size: 15px; line-height: 1.65; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

.project-meta-band { position: relative; z-index: 1; max-width: 1004px; margin: 0 auto; padding-bottom: 48px; }
.project-meta { background: var(--bg-project); border-radius: var(--radius-md); padding: 22px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.meta-label { font-family: var(--font-title); font-weight: 700; font-size: 13px; color: var(--text-dark); margin-bottom: 4px; }
.meta-value { font-size: 12px; line-height: 1.55; color: var(--text-mid); }

.project-sidebar-inner { position: sticky; top: calc(var(--nav-height) + 24px); display: flex; flex-direction: column; gap: 2px; }
.sidebar-item { font-size: 14px; font-weight: 500; color: var(--text-mid); padding: 6px 0; cursor: pointer; opacity: 0.4; transition: opacity 0.25s ease, color 0.25s ease; line-height: 1.4; }
.sidebar-item.active { color: var(--text-dark); opacity: 1; }

.project-content { display: grid; grid-template-columns: 200px 1fr; max-width: 1100px; margin: 0 auto; padding: 48px 48px 120px; gap: 60px; }
.project-section { margin-bottom: 60px; }
.section-title { font-family: var(--font-title); font-weight: 700; font-size: var(--tx-m); color: var(--text-dark); margin-bottom: 4px; }
.section-subtitle { font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--text-mid); margin-bottom: 14px; }
.section-body { font-size: 15px; line-height: 1.72; color: #3a3a3a; }
.section-img { width: 100%; margin-top: 24px; border-radius: var(--radius-md); border: none; overflow: hidden; background: repeating-conic-gradient(#ccc 0% 25%, #ddd 0% 50%) 0 0 / 20px 20px; aspect-ratio: 16 / 8; }
.section-img img { width: 100%; height: 100%; object-fit: cover; }

.mobile-section-slider { display: none; }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  
  .project-content { 
    grid-template-columns: 160px 1fr; 
    padding: 32px 32px 60px; 
    gap: 32px; 
  }
  
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-hero-band { padding: 48px 32px 0; }
  .project-meta-band { padding-bottom: 32px; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links-right { display: none !important; }
  
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 0; align-items: center; } 

  .nav-links-left { 
    grid-column: 1; align-items: center; 
    transition: opacity 0.35s ease, transform 0.4s ease;
  }
  
  .nav-burger {
    display: flex !important;
    grid-column: 3; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; 
    background: #2D2D2D; 
    border-radius: var(--radius-md); 
    border: none; cursor: pointer; padding: 0; 
    align-items: center; flex-shrink: 0; margin-left: auto;
    position: relative; z-index: 101; 
    transition: background 0.3s ease;
  }
  .nav-burger.active { background: transparent; } 
  
  .nav-burger span {
    display: block; width: 20px; height: 1.5px; background: var(--text-light); border-radius: 2px;
    transition: transform 0.4s var(--ease-bounce), opacity 0.3s ease; transform-origin: center;
  }
  body.project-open .nav-burger span { background: var(--text-dark); }
  
  .nav-burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.active span:nth-child(2) { opacity: 0; }
  .nav-burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-mobile-menu {
    display: flex !important;
    position: fixed; 
    top: 12px; right: 16px; 
    background: #2D2D2D; 
    border-radius: var(--radius-md);
    padding: 12px 60px 12px 12px; 
    flex-direction: column;
    transform-origin: top right;
    transform: scale(0.4); 
    opacity: 0; transition: transform 0.45s var(--ease-bounce), opacity 0.3s ease;
    pointer-events: none; z-index: 99;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  }
  .nav-mobile-menu.active { 
    transform: scale(1); opacity: 1; pointer-events: all; 
  }
  
  .nav-pill-group-mobile { display: flex; flex-direction: column; gap: 4px; }
  .nav-pill-group-mobile .nav-pill-item { 
    font-size: 15px; padding: 12px 24px; 
    border-radius: var(--radius-sm); 
    background: transparent; justify-content: center; 
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-pill-group-mobile .nav-pill-item:hover, 
  .nav-pill-group-mobile .nav-pill-item.active { 
    background: rgba(255,255,255,0.08); 
  }

  .nav-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(-10px);
    margin: 0;
    opacity: 0;
  }
  .nav-logo-center.visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) translateY(0) !important;
    pointer-events: auto;
  }
  
  body.menu-open .nav {
    backdrop-filter: blur(0px) !important;
    background: transparent !important;
    pointer-events: none !important;
  }
  body.menu-open .nav-burger {
    pointer-events: auto !important; 
  }
  body.menu-open .nav-logo-center {
    opacity: 0 !important;
    transform: translate(-50%, -50%) translateY(-20px) !important;
  }
  body.menu-open .nav-links-left {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
  }

  .hero-logo .logo-name     { font-size: 36px; }
  .hero-logo .logo-subtitle { font-size: 28px; }

  .projects-section { padding: 56px 16px 80px; }
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }

  .card-thumbnail { aspect-ratio: 4 / 3; }
  .project-hero-img-wrap { aspect-ratio: 4 / 3; max-height: 35vh; }
  .section-img { aspect-ratio: 4 / 3; }

  .footer-outer { padding: 0 8px; }
  .footer { flex-direction: column; gap: 24px; padding: 28px 24px 36px; width: 100%; transform: none; }

  .project-hero-band { padding: 40px 20px 0; }
  .project-meta-band { padding: 0 0 32px; }
  .project-content { grid-template-columns: 1fr; padding: 24px 16px 200px; gap: 0; }
  .project-sidebar { display: none; }
  
  .project-nav { padding: 0 16px; justify-content: center; position: sticky; top: 0; z-index: 10; }
  .btn-close { right: 16px; } 
  .btn-close .close-text { display: none; }
  .btn-close svg { width: 22px; height: 22px; }

  .project-meta { grid-template-columns: 1fr; }

  .mobile-section-slider {
    display: block;
    position: fixed;
    bottom: 24px;
    right: 16px;
    top: auto !important;
    left: auto !important;
    z-index: 300;
    background: var(--bg-light);
    width: max-content;
    max-width: calc(100vw - 32px); 
    height: 110px;
    overflow: hidden;
    transform: translateY(150px);
    opacity: 0;
    transition: transform 0.5s var(--ease-bounce), opacity 0.4s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
  }
  
  .mobile-section-slider.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .slider-viewport {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    
    scroll-behavior: auto !important;
    overscroll-behavior-y: contain; 
    overscroll-behavior-x: none;
    
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .slider-viewport::-webkit-scrollbar { display: none; }
  
  .slider-track {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
  }
  
  .slider-item {
    height: 30px;
    line-height: 30px;
    padding: 0 24px; 
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.3;
    
    scroll-snap-align: center;
    scroll-snap-stop: always;
    
    transition: opacity 0.1s ease, transform 0.1s ease;
    transform: scale(0.9);
    transform-origin: center center; 
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
  }
  .slider-item.active {
    opacity: 1;
    transform: scale(1.05);
  }
  
  .mobile-section-slider::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 35px;
    background: linear-gradient(to bottom, rgba(245,245,245,1), transparent);
    pointer-events: none; z-index: 2; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .mobile-section-slider::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 35px;
    background: linear-gradient(to top, rgba(245,245,245,1), transparent);
    pointer-events: none; z-index: 2; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

.visually-hidden { clip: rect(0,0,0,0); position: absolute; white-space: nowrap; }

/* =============================================
   MODIFICATEURS PROJET (IMAGES HAUTES)
   ============================================= */
.section-img-tall {
  aspect-ratio: auto !important; 
  background: transparent;
}
.section-img-tall img {
  height: auto !important; 
  display: block;
}

/* =============================================
   VIDÉO PROJET
   ============================================= */
.project-video-wrap {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  aspect-ratio: 16 / 9;
}
.project-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =============================================
   LIEN EXTERNE PROJET
   ============================================= */
.project-external-link { 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--text-dark); 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  transition: opacity 0.2s ease; 
}
.project-external-link:hover { 
  opacity: 0.65; 
}

/* =============================================
   UTILITAIRES MOBILE
   ============================================= */
.mobile-only { display: none !important; }

@media (max-width: 768px) {
  .mobile-only { display: block !important; }
  
  .project-video-wrap {
    aspect-ratio: 4 / 5; /* Format plus vertical pour zoomer sur le mobile */
  }
  .project-video-wrap video {
    object-fit: cover; /* Remplit la hauteur, coupe proprement sur les côtés */
  }
}