/* ========================================
   PORTFOLIO PAGE - MODERN STYLES
   ======================================== */

/* Hero Section Modernization */
.portfolio-hero {
  background: linear-gradient(135deg, #00156f 0%, #0033a0 50%, #0056b3 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

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

.portfolio-hero h1 {
  color: white;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.portfolio-hero .hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.portfolio-hero .breadcrumbs {
  color: rgba(255,255,255,0.9);
}

.portfolio-hero .breadcrumbs a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.portfolio-hero .breadcrumbs a:hover {
  color: white;
}

/* Main Content Section */
.portfolio-main-content {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  align-items: stretch;
}

/* Portfolio Card */
.portfolio-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Portfolio Image Container */
.portfolio-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image-container img {
  transform: scale(1.05);
}

/* Portfolio Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,21,111,0.8), rgba(0,51,160,0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.portfolio-overlay .view-btn {
  background: white;
  color: #00156f;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.portfolio-card:hover .portfolio-overlay .view-btn {
  transform: translateY(0);
}

/* Portfolio Content */
.portfolio-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.portfolio-badge {
  background: linear-gradient(135deg, #00156f, #0033a0);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.portfolio-badge.secondary {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.portfolio-title {
  color: #2d465e;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.portfolio-subtitle {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.portfolio-description {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: justify;
  flex-grow: 1;
}

.portfolio-description.secondary {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

/* Portfolio Actions - Supprimé */

/* Portfolio Modal */
.portfolio-modal .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-modal .modal-header {
  background: linear-gradient(135deg, #00156f, #0033a0);
  color: white;
  border-radius: 20px 20px 0 0;
  border: none;
  padding: 25px 30px;
}

.portfolio-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.portfolio-modal .btn-close {
  filter: invert(1);
}

.portfolio-modal .modal-body {
  padding: 30px;
}

.portfolio-modal .modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
}

.portfolio-modal .modal-description {
  color: #495057;
  line-height: 1.6;
  text-align: justify;
}

/* Portfolio Gallery */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.portfolio-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-gallery img:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-hero h1 {
    font-size: 2.5rem;
  }
  
  .portfolio-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-content {
    padding: 20px;
  }
  
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .portfolio-content {
    padding: 15px;
  }
  
  .portfolio-image-container {
    height: 200px;
  }
  
  .portfolio-title {
    font-size: 1.3rem;
  }
  
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
