/* ============================================
   APPSM - PAGE GOUVERNANCE
   Fichier: css/gouvernance.css
============================================ */

/* ============================================
   1. SECTION INTRODUCTION
============================================ */
.gouv-intro {
  padding: 70px 0 40px;
  background: var(--white);
}

.gouv-intro-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.gouv-intro-header .section-desc strong {
  color: var(--purple);
  font-weight: 700;
}

/* ============================================
   2. SECTION MEMBRE (Photo + Infos)
============================================ */
.gouv-member-section {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.gouv-bg-gray {
  background: linear-gradient(135deg, #ede7f2 0%, #e4daee 100%);
}

.gouv-bg-white {
  background: var(--white);
}

/* Décorations d'arrière-plan */
.gouv-member-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.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.gouv-bg-white::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Grille membre */
.gouv-member {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.gouv-member-reverse {
  grid-template-columns: 1fr 380px;
}

/* ============================================
   3. PHOTO
============================================ */
.gouv-member-photo {
  position: relative;
}

/* Cadre décoratif derrière la photo */
.gouv-photo-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  z-index: -1;
  transition: var(--transition);
  opacity: 0.6;
}

.gouv-member-photo:hover .gouv-photo-frame {
  top: 15px;
  left: 15px;
  opacity: 1;
  border-color: var(--purple);
}

.gouv-photo-wrapper {
  width: 100%;
  height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(74, 30, 92, 0.3);
  border: 6px solid var(--white);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--purple) 0%, #4a1e5c 100%);
}

.gouv-photo-wrapper:hover {
  box-shadow: 0 30px 70px rgba(232, 103, 42, 0.4);
  transform: translateY(-8px);
}

.gouv-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gouv-photo-wrapper:hover img {
  transform: scale(1.05);
}

/* Placeholder Premium (si photo manquante) */
.gouv-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    #4a1e5c 50%,
    var(--purple-dark) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Effet décoratif dans le placeholder */
.gouv-photo-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.2) 0%,
    transparent 70%
  );
  animation: rotatePlaceholder 20s linear infinite;
}

.gouv-photo-placeholder::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 184, 77, 0.15) 0%,
    transparent 70%
  );
  animation: rotatePlaceholder 15s linear infinite reverse;
}

@keyframes rotatePlaceholder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gouv-photo-placeholder span {
  color: #ffb84d;
  font-family: "Poppins", sans-serif;
  font-size: 85px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  line-height: 1;
}

.gouv-photo-placeholder small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 15px;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

/* Badge étoile */
.gouv-photo-badge {
  position: absolute;
  bottom: -20px;
  right: 30px;
  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: 22px;
  box-shadow: 0 10px 25px rgba(232, 103, 42, 0.6);
  z-index: 3;
  animation: badgePulse 3s ease-in-out infinite;
  border: 4px solid var(--white);
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 10px 25px rgba(232, 103, 42, 0.6),
      0 0 0 0 rgba(232, 103, 42, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow:
      0 10px 25px rgba(232, 103, 42, 0.6),
      0 0 0 15px rgba(232, 103, 42, 0);
  }
}

/* Photo à droite : badge à gauche */
.gouv-member-reverse .gouv-photo-badge {
  left: 30px;
  right: auto;
}

.gouv-member-reverse .gouv-photo-frame {
  left: auto;
  right: 20px;
}

/* ============================================
   4. INFOS MEMBRE
============================================ */
.gouv-member-info {
  padding-top: 20px;
}

/* Badge de rôle */
.gouv-member-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.gouv-member-role-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.gouv-member-role-badge i {
  font-size: 13px;
}

.gouv-role-president {
  background: linear-gradient(135deg, var(--purple) 0%, #4a1e5c 100%);
}

.gouv-role-directrice {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
}

/* Nom */
.gouv-member-name {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.gouv-member-name span {
  color: var(--purple);
  position: relative;
  display: inline-block;
}

.gouv-member-name span::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(232, 103, 42, 0.25);
  z-index: -1;
  border-radius: 4px;
}

/* Séparateur */
.gouv-member-separator {
  width: 70px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  border-radius: 3px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(232, 103, 42, 0.4);
}

/* Description courte (Président) */
.gouv-member-desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-600);
  margin: 0 0 30px 0;
}

.gouv-member-desc strong {
  color: var(--purple);
  font-weight: 700;
}

/* Citation stylée (Président) */
.gouv-member-quote {
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.05) 0%,
    rgba(232, 103, 42, 0.05) 100%
  );
  padding: 25px 30px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 5px 20px rgba(74, 30, 92, 0.08);
}

.gouv-member-quote i {
  color: var(--orange);
  font-size: 32px;
  opacity: 0.4;
  margin-bottom: 10px;
}

.gouv-member-quote p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy);
  margin: 0;
  font-style: italic;
  font-weight: 500;
}

/* CV complet (Directrice) */
.gouv-member-cv {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 25px;
}

.gouv-member-cv p {
  margin: 0 0 20px 0;
  text-align: justify;
}

.gouv-member-cv p:last-child {
  margin-bottom: 0;
}

.gouv-member-cv strong {
  color: var(--purple);
  font-weight: 700;
}

/* ============================================
   5. COMPÉTENCES (Skills tags)
============================================ */
.gouv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px dashed rgba(91, 45, 142, 0.2);
}

.gouv-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  color: var(--purple);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid rgba(91, 45, 142, 0.15);
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
  box-shadow: 0 3px 10px rgba(74, 30, 92, 0.05);
  cursor: default;
}

.gouv-skill-tag i {
  color: var(--orange);
  font-size: 11px;
}

.gouv-skill-tag:hover {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(91, 45, 142, 0.3);
}

.gouv-skill-tag:hover i {
  color: #ffb84d;
}

/* ============================================
   6. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .gouv-member,
  .gouv-member-reverse {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }

  .gouv-photo-wrapper {
    height: 400px;
  }

  .gouv-member-name {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .gouv-intro {
    padding: 50px 0 30px;
  }

  .gouv-member-section {
    padding: 50px 0;
  }

  .gouv-member,
  .gouv-member-reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Photo toujours en premier sur mobile */
  .gouv-member-reverse .gouv-member-photo {
    order: -1;
  }

  .gouv-photo-wrapper {
    height: 380px;
  }

  .gouv-member-info {
    padding-top: 10px;
    text-align: center;
  }

  .gouv-member-separator {
    margin-left: auto;
    margin-right: auto;
  }

  .gouv-member-name {
    font-size: 24px;
  }

  .gouv-member-cv p,
  .gouv-member-desc {
    text-align: left;
  }

  .gouv-skills {
    justify-content: center;
  }

  .gouv-photo-frame {
    display: none;
  }
}

@media (max-width: 480px) {
  .gouv-photo-wrapper {
    height: 320px;
  }

  .gouv-member-name {
    font-size: 22px;
  }

  .gouv-member-cv {
    font-size: 14px;
  }

  .gouv-photo-placeholder span {
    font-size: 60px;
  }

  .gouv-photo-badge {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: -15px;
  }
}
