/* ============================================================
   Campagne Compétences – style.css
   Couleurs : #602253 (deep) · #8b3679 (mid) · #c77db8 (light)
   Police   : Plus Jakarta Sans 900, letter-spacing -1px
   ============================================================ */

:root {
  --cc-deep:   #602253;
  --cc-mid:    #8b3679;
  --cc-light:  #c77db8;
  --cc-gold:   #e8c96a;
  --cc-cream:  #fdf5f0;
  --cc-text:   #fce8f5;
  --cc-white:  #ffffff;
}

/* ---- Wrapper ---- */
.cc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -1px;
  font-weight: 900;
  margin: 32px auto;
}

/* ---- Stage ---- */
.cc-stage {
  position: relative;
  overflow: hidden;
  background: var(--cc-deep);
  box-shadow: 0 24px 60px rgba(96,34,83,0.35);
  cursor: pointer;
  /* Mode web */
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

/* Mode reel (9:16 portrait – idéal pour enregistrement OBS) */
.cc-mode-reel .cc-stage {
  width: 540px;
  height: 960px;
  aspect-ratio: unset;
  border-radius: 0;
}

/* ---- Slides ---- */
.cc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.cc-slide.cc-active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- SLIDE INTRO ---- */
.cc-slide-intro {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10% 8%;
  background: radial-gradient(ellipse at 30% 40%, #8b3679 0%, #602253 60%, #3a1030 100%);
}
.cc-intro-eyebrow {
  font-size: clamp(9px, 1.2vw, 12px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cc-gold);
  margin-bottom: 5%;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.3s;
}
.cc-intro-title {
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--cc-text);
  line-height: 0.95;
  margin-bottom: 5%;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease 0.5s;
}
.cc-intro-title span { color: var(--cc-gold); }
.cc-intro-sub {
  font-size: clamp(11px, 1.5vw, 16px);
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--cc-light);
  line-height: 1.6;
  margin-bottom: 7%;
  opacity: 0;
  transition: all 0.6s ease 0.8s;
}
.cc-intro-divider {
  width: 60px;
  height: 2px;
  background: var(--cc-gold);
  margin: 0 auto 6%;
  opacity: 0;
  transition: all 0.5s ease 0.9s;
}
.cc-intro-stats {
  display: flex;
  gap: clamp(16px, 4vw, 48px);
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 1.1s;
}
.cc-stat-num {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: var(--cc-gold);
  line-height: 1;
}
.cc-stat-label {
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(252,232,245,0.6);
  text-transform: uppercase;
  margin-top: 4px;
}

.cc-slide-intro.cc-active .cc-intro-eyebrow,
.cc-slide-intro.cc-active .cc-intro-title,
.cc-slide-intro.cc-active .cc-intro-sub,
.cc-slide-intro.cc-active .cc-intro-divider,
.cc-slide-intro.cc-active .cc-intro-stats {
  opacity: 1;
  transform: none;
}

/* ---- SLIDE COMPÉTENCE ---- */
.cc-slide-comp { flex-direction: row; }

/* Colonne gauche : header compétence */
.cc-comp-left {
  width: 38%;
  background: linear-gradient(160deg, var(--cc-mid) 0%, var(--cc-deep) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8% 6%;
  position: relative;
  overflow: hidden;
}
.cc-comp-left::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232,201,106,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cc-comp-num {
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 4px;
  color: var(--cc-gold);
  margin-bottom: 5%;
  opacity: 0;
  transform: translateX(-16px);
  transition: all 0.5s ease 0.2s;
}
.cc-comp-icon {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 4%;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.5s ease 0.3s;
}
.cc-comp-title {
  font-size: clamp(16px, 2.8vw, 32px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--cc-text);
  line-height: 1.05;
  margin-bottom: 5%;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease 0.4s;
}
.cc-comp-desc {
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 400;
  letter-spacing: 0px;
  color: rgba(199,125,184,0.85);
  font-style: italic;
  line-height: 1.5;
  opacity: 0;
  transition: all 0.5s ease 0.5s;
}

/* Colonne droite : cards personnes */
.cc-comp-right {
  flex: 1;
  background: var(--cc-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5%;
  gap: clamp(6px, 1.2vw, 14px);
  overflow: hidden;
}
.cc-right-label {
  font-size: clamp(8px, 0.9vw, 10px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cc-mid);
  margin-bottom: 2%;
  opacity: 0;
  transition: all 0.4s ease 0.55s;
}
.cc-person-card {
  background: var(--cc-white);
  border-left: 4px solid var(--cc-mid);
  border-radius: 6px;
  padding: clamp(6px, 1vw, 12px) clamp(8px, 1.2vw, 16px);
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  opacity: 0;
  transform: translateX(-20px);
  box-shadow: 0 2px 10px rgba(96,34,83,0.08);
}
.cc-person-photo {
  width: clamp(36px, 5vw, 58px);
  height: clamp(36px, 5vw, 58px);
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--cc-light);
  flex-shrink: 0;
  background: #e8d0e8;
}
.cc-person-info { flex: 1; min-width: 0; }
.cc-person-name {
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--cc-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-person-job {
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 400;
  letter-spacing: 0px;
  color: #777;
  margin-top: 1px;
}
.cc-person-apport {
  font-size: clamp(8px, 0.85vw, 10px);
  font-weight: 600;
  letter-spacing: 0px;
  color: var(--cc-mid);
  font-style: italic;
  margin-top: 2px;
}

.cc-slide-comp.cc-active .cc-comp-num,
.cc-slide-comp.cc-active .cc-comp-icon,
.cc-slide-comp.cc-active .cc-comp-title,
.cc-slide-comp.cc-active .cc-comp-desc,
.cc-slide-comp.cc-active .cc-right-label {
  opacity: 1;
  transform: none;
}

/* ---- SLIDE FIN ---- */
.cc-slide-fin {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10% 8%;
  background: radial-gradient(ellipse at 70% 30%, #8b3679 0%, #602253 55%, #3a1030 100%);
}
.cc-fin-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s ease 0.3s;
}
.cc-slide-fin.cc-active .cc-fin-inner { opacity: 1; transform: none; }
.cc-fin-badge {
  display: inline-block;
  background: var(--cc-gold);
  color: var(--cc-deep);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: clamp(8px,1vw,12px) clamp(18px,2vw,28px);
  border-radius: 4px;
  margin-bottom: 7%;
}
.cc-fin-title {
  font-size: clamp(32px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--cc-text);
  line-height: 0.9;
  margin-bottom: 5%;
}
.cc-fin-title span { color: var(--cc-gold); }
.cc-fin-sub {
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: 400;
  letter-spacing: -0.3px;
  color: var(--cc-light);
  line-height: 1.7;
  margin-bottom: 7%;
}
.cc-fin-line {
  width: 60px;
  height: 2px;
  background: var(--cc-gold);
  margin: 0 auto;
}

/* ---- Progress bar & counter ---- */
.cc-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--cc-gold);
  z-index: 50;
  transition: width linear;
}
.cc-counter {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(252,232,245,0.3);
  z-index: 50;
  font-weight: 600;
}

/* ---- Controls ---- */
.cc-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cc-btn {
  background: var(--cc-deep);
  color: var(--cc-gold);
  border: 2px solid var(--cc-mid);
  border-radius: 6px;
  padding: 8px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cc-btn:hover { background: var(--cc-mid); color: #fff; }
.cc-btn-play { min-width: 52px; }

/* ---- Hint ---- */
.cc-hint {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #aaa;
  text-align: center;
}

/* ---- Mode reel (portrait) ---- */
.cc-mode-reel .cc-stage {
  width: min(540px, 100vw);
  height: min(960px, 177.8vw);
}
.cc-mode-reel .cc-slide-comp {
  flex-direction: column;
}
.cc-mode-reel .cc-comp-left {
  width: 100%;
  padding: 7% 8% 5%;
}
.cc-mode-reel .cc-comp-right {
  flex: 1;
  padding: 4% 6%;
}
.cc-mode-reel .cc-controls,
.cc-mode-reel .cc-hint { display: none; }
