/* styles/portfolio.css — Design moderne, léger, élégant */

/* Reset et typographie de base */
* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  scroll-behavior: auto !important;
  overflow-x: hidden;
}

body {
  background: #f7f7f2;
  color: #0C2D24;
  margin: 0;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(11, 107, 88, 0.16);
  color: #0C2D24;
}

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

a {
  text-decoration: none;
}

/* Typographie */
h1, h2, h3, h4 {
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 800;
  margin-top: 0;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

p {
  line-height: 1.8;
  color: rgba(12, 45, 36, 0.78);
}

strong {
  font-weight: 700;
  color: #0C2D24;
}

.text-muted {
  color: rgba(12, 45, 36, 0.58);
}

.section-spacing {
  padding-top: 9rem;
  padding-bottom: 9rem;
}

.editorial-width {
  max-width: 1500px;
  margin: 0 auto;
}

/* Cartes et conteneurs */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 45, 36, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(12, 45, 36, 0.04);
}

.hover-card {
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(12, 45, 36, 0.08);
  border-color: rgba(11, 107, 88, 0.16);
}

.rounded-editorial {
  border-radius: 2rem;
}

.soft-border {
  border: 1px solid rgba(12, 45, 36, 0.06);
}

/* Navigation */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: rgba(12, 45, 36, 0.78);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #0C2D24 0%, #0b6b58 100%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #0C2D24;
}

/* Boutons de filtre */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(12, 45, 36, 0.08);
  background: rgba(255,255,255,0.7);
  color: rgba(12,45,36,0.75);
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  background: rgba(11, 107, 88, 0.06);
  border-color: rgba(11, 107, 88, 0.18);
  color: #0b6b58;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #0C2D24 0%, #0b6b58 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(11, 107, 88, 0.18);
}

/* Portfolio items */
.portfolio-item {
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  will-change: transform;
}

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

.portfolio-item.hidden {
  display: none;
}

/* Mobile menu */
.mobile-menu {
  transform: none;
  transition: all 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Animations fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

.fade-in-slow {
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Sections */
section {
  position: relative;
}

#hero,
#expertise,
#parcours {
  min-height: 100vh;
}

#expertise,
#parcours,
#portfolio {
  padding-top: 8px !important;
}

#expertise h2,
#parcours h2,
#portfolio h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#expertise .max-w-7xl,
#parcours .max-w-7xl,
#portfolio .max-w-7xl {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#portfolio {
  min-height: 100vh;
}

/* Footer */
footer {
  background: #f7f7f2;
  border-top: 1px solid rgba(12, 45, 36, 0.06);
  transition: background 0.3s ease;
}

footer a {
  color: rgba(12, 45, 36, 0.58);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0b6b58;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Modal styles */
.hidden {
  display: none !important;
}
/* Link styles */
.no-underline {
  text-decoration: none;
}
/* Responsive */
@media (max-width: 1024px) {
  .section-spacing {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

@media (max-width: 768px) {
  h2 {
    line-height: 1.05;
  }

  .section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hover-card:hover,
  .portfolio-item:hover {
    transform: none;
  }

  .glass-card {
    backdrop-filter: blur(10px);
  }
}

