/* ============================================
   APPSM - PAGE PROJETS & ACTIONS PREMIUM
   Fichier: css/projets.css
============================================ */

/* ============================================
   1. SECTIONS
============================================ */
.proj-section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.proj-section-white {
  background: var(--white);
}

.proj-section-gray {
  background: linear-gradient(135deg, #ede7f2 0%, #e4daee 100%);
}

.proj-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.proj-section-gray::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ============================================
   2. SECTION 1 : INTRODUCTION
============================================ */
.proj-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.proj-intro-text .section-label {
  color: var(--orange);
  justify-content: flex-start;
}

.proj-intro-text .section-label::before {
  display: none;
}

.proj-line {
  width: 80px;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  border-radius: 3px;
  margin: 15px 0 25px;
  box-shadow: 0 3px 10px rgba(232, 103, 42, 0.4);
}

.proj-para {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.proj-para strong {
  color: var(--purple);
  font-weight: 700;
}

/* Stats en bas de l'intro */
.proj-intro-stats {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.proj-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.08) 0%,
    rgba(232, 103, 42, 0.08) 100%
  );
  border-radius: 50px;
  border: 1px solid rgba(91, 45, 142, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.proj-stat:hover {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(91, 45, 142, 0.3);
  border-color: transparent;
}

.proj-stat i {
  color: var(--orange);
  font-size: 15px;
  transition: color 0.3s ease;
}

.proj-stat:hover i {
  color: #ffb84d;
}

/* Image intro */
.proj-intro-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(74, 30, 92, 0.3);
  border: 5px solid var(--white);
  transition: all 0.5s ease;
}

.proj-intro-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.15) 0%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.proj-intro-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(232, 103, 42, 0.4);
}

.proj-intro-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.proj-intro-image:hover img {
  transform: scale(1.08);
}

.proj-image-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(232, 103, 42, 0.5);
  z-index: 3;
  border: 3px solid var(--white);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ============================================
   3. HEADER SECTIONS
============================================ */
.proj-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

/* ============================================
   4. SECTION 2 : TYPES D'ACTIONS (Icônes animées)
============================================ */
.actions-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.action-photo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px 30px 35px;
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(91, 45, 142, 0.08);
  overflow: hidden;
  text-align: center;
}

/* Bande décorative en haut */
.action-photo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.action-photo-card:hover::before {
  transform: scaleX(1);
}

/* Cercle décoratif en arrière-plan */
.action-photo-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.05) 0%,
    transparent 70%
  );
  transition: all 0.5s ease;
}

.action-photo-card:hover::after {
  top: -60px;
  right: -60px;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.15) 0%,
    transparent 70%
  );
  transform: scale(1.3);
}

.action-photo-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(74, 30, 92, 0.2);
  border-color: transparent;
}

/* ===== ICÔNE GÉANTE ANIMÉE ===== */
.action-photo-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Cercle extérieur animé */
.action-photo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.1) 0%,
    rgba(232, 103, 42, 0.1) 100%
  );
  animation: rotateBg 8s linear infinite;
}

.action-photo-card:hover .action-photo-wrapper::before {
  animation-duration: 3s;
  background: linear-gradient(
    135deg,
    rgba(232, 103, 42, 0.2) 0%,
    rgba(91, 45, 142, 0.2) 100%
  );
}

/* Cercle du milieu */
.action-photo-wrapper::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
  border: 2px dashed rgba(91, 45, 142, 0.2);
  transition: all 0.5s ease;
}

.action-photo-card:hover .action-photo-wrapper::after {
  border-color: rgba(232, 103, 42, 0.4);
  border-style: solid;
  transform: rotate(45deg);
}

@keyframes rotateBg {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Icône principale */
.action-photo-icon {
  position: relative;
  z-index: 3;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 36px;
  box-shadow: 0 10px 25px rgba(91, 45, 142, 0.4);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.action-photo-card:hover .action-photo-icon {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  transform: rotate(360deg) scale(1.15);
  box-shadow: 0 15px 35px rgba(232, 103, 42, 0.6);
}

/* Icône avec animation float en continu */
.action-photo-icon i {
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Numéro décoratif */
.action-photo-number {
  position: absolute;
  top: 20px;
  right: 25px;
  font-family: "Poppins", sans-serif;
  font-size: 60px;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.1) 0%,
    rgba(232, 103, 42, 0.15) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  z-index: 1;
  transition: all 0.5s ease;
  pointer-events: none;
}

.action-photo-card:hover .action-photo-number {
  background: linear-gradient(
    135deg,
    rgba(232, 103, 42, 0.2) 0%,
    rgba(232, 103, 42, 0.4) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  transform: scale(1.2) rotate(-5deg);
}

/* Overlay désactivé (plus utile pour les icônes) */
.action-photo-overlay {
  display: none;
}

/* Contenu de la carte */
.action-photo-content {
  padding: 0;
  border-top: none;
  position: relative;
  z-index: 2;
}

.action-photo-content::before {
  display: none;
}

.action-photo-title {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 15px;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.action-photo-card:hover .action-photo-title {
  color: var(--purple);
}

/* Petite ligne décorative sous le titre */
.action-photo-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  margin: 12px auto 0;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.action-photo-card:hover .action-photo-title::after {
  width: 80px;
}

.action-photo-desc {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.action-photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(232, 103, 42, 0.1);
  color: var(--orange);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  border: 1px solid rgba(232, 103, 42, 0.2);
}

.action-photo-tag::before {
  content: "•";
  font-size: 16px;
  line-height: 0;
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.action-photo-card:hover .action-photo-tag {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(232, 103, 42, 0.4);
}

/* ============================================
   5. SECTION 3 : NOTRE APPROCHE
============================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.approach-card {
  background: var(--off-white);
  padding: 35px 30px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 25px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 45, 142, 0.08);
}

.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.approach-card:hover::before {
  transform: scaleX(1);
}

.approach-card:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(74, 30, 92, 0.2);
  border-color: transparent;
}

/* Numéro géant */
.approach-number {
  font-family: "Poppins", sans-serif;
  font-size: 70px;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.4s ease;
  min-width: 90px;
}

.approach-card:hover .approach-number {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.15);
}

/* Icône */
.approach-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: rgba(91, 45, 142, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 20px;
  transition: all 0.4s ease;
}

.approach-card:hover .approach-icon {
  background: var(--orange);
  color: var(--white);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 5px 15px rgba(232, 103, 42, 0.4);
}

/* Contenu */
.approach-content {
  flex: 1;
  padding-right: 50px;
}

.approach-title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  transition: color 0.4s ease;
}

.approach-card:hover .approach-title {
  color: var(--purple);
}

.approach-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   6. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .proj-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .proj-intro-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .proj-intro-text .section-title {
    text-align: center;
    font-size: 30px;
  }

  .proj-intro-text .section-label {
    justify-content: center;
  }

  .proj-line {
    margin-left: auto;
    margin-right: auto;
  }

  .proj-para {
    text-align: center;
  }

  .proj-intro-stats {
    justify-content: center;
  }

  .actions-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .proj-section {
    padding: 60px 0;
  }

  .proj-intro-image img {
    height: 320px;
  }

  .actions-photo-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .action-photo-wrapper {
    width: 110px;
    height: 110px;
  }

  .action-photo-icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

  .action-photo-number {
    font-size: 45px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-number {
    font-size: 55px;
    min-width: 70px;
  }

  .approach-content {
    padding-right: 0;
  }

  .approach-icon {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .approach-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .approach-icon {
    position: static;
    margin-top: 10px;
  }

  .proj-para {
    text-align: left;
  }

  .proj-intro-stats {
    flex-direction: column;
  }

  .proj-stat {
    width: 100%;
    justify-content: center;
  }
}
