/* ===== STYLES SPÉCIFIQUES PAGE RÉALISATIONS ===== */

.contact-infos {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive spécifique */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .director-message {
    flex-direction: column;
    text-align: center;
  }

  .director-text {
    order: 2;
  }

  .director-photo {
    order: 1;
  }

  .objectives-grid,
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== VARIABLES POUR PAGE RÉALISATIONS ===== */

:root {
  --accent: #ff6600;
  --bg-soft: #f6f7f9;
  --card-bg: #ffffff;
  --muted: #58606b;
  --text: #111217;
  --border: rgba(17, 18, 23, 0.06);
}

/* ===== PAGE HEADER ===== */

.page-header {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 84px 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #ecf0f1;
  font-weight: 400;
  margin-top: 12px;
}

/* ===== RÉALISATIONS SECTION ===== */

.realisations-section {
  background: var(--bg-soft);
  padding: 80px 0;
}

.section-title {
  text-align: center;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 50px;
  font-weight: 800;
}

/* ===== FILTER NAVIGATION ===== */

.filter-nav {
  max-width: 980px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-btn {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===== PROJECTS GRID ===== */

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 0;
  padding: 0 20px;
}

/* ===== PROJECT CARD ===== */

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.project-card.hidden {
  display: none;
}

/* ===== PROJECT IMAGE SLIDER ===== */

.project-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #e5e7eb;
}

.project-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.project-image {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SLIDER BUTTONS ===== */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

/* ===== PROJECT DETAILS ===== */

.project-details {
  padding: 26px 22px;
}

.project-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

/* ===== PROJECT FOOTER ===== */

.project-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-details:hover {
  color: #cc5200;
  gap: 12px;
}

.btn-details i {
  transition: transform 0.3s ease;
}

.btn-details:hover i {
  transform: translateX(4px);
}

/* ===== RESPONSIVE SPÉCIFIQUE PAGE RÉALISATIONS ===== */

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 60px 0;
  }

  .realisations-section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .filter-nav {
    margin-bottom: 40px;
    gap: 8px;
  }

  .filter-btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image-container {
    height: 240px;
  }

  .project-details {
    padding: 22px 18px;
  }

  .project-title {
    font-size: 18px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 50px 0;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .realisations-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .filter-nav {
    flex-direction: column;
    gap: 10px;
  }

  .filter-btn {
    width: 100%;
    padding: 14px;
  }

  .project-image-container {
    height: 220px;
  }

  .project-details {
    padding: 20px 16px;
  }

  .project-title {
    font-size: 17px;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
  }

  .slider-btn i {
    font-size: 14px;
  }
}

/* ===== ACCESSIBILITÉ ===== */

.filter-btn:focus,
.slider-btn:focus,
.btn-details:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== PERFORMANCE ===== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}