/* ==========================================================================
   ResumeCI — Page d'accueil visiteurs (.intro-v2)
   Thème clair aux couleurs de la Côte d'Ivoire : orange #F77F00, blanc, vert #009E60.
   Animations en transform/opacity uniquement ; prefers-reduced-motion respecté.
   ========================================================================== */
.intro-v2 {
  --ci-orange: #f77f00;
  --ci-orange-d: #d96d00;
  --ci-green: #009e60;
  --ci-green-d: #007a4a;
  --iv-text: #14231c;
  --iv-muted: #45544c;
  --iv-ease: cubic-bezier(.16, 1, .3, 1);
  --iv-spring: cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 24px 56px;
  background: #fffdf9;
  color: var(--iv-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.iv2-bg { position: absolute; inset: 0; pointer-events: none; }
.iv2-orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.iv2-orb.o1 { width: 560px; height: 560px; background: rgba(247, 127, 0, .32); top: -200px; left: -160px; animation: ivOrb1 18s ease-in-out infinite; }
.iv2-orb.o2 { width: 520px; height: 520px; background: rgba(0, 158, 96, .28); bottom: -200px; right: -140px; animation: ivOrb2 22s ease-in-out infinite; }
.iv2-orb.o3 { width: 320px; height: 320px; background: rgba(247, 127, 0, .14); top: 45%; left: 48%; animation: ivOrb3 26s ease-in-out infinite; }
.iv2-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 35, 28, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 28, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: ivGrid 30s linear infinite;
}
/* Bande tricolore animée en haut de page */
.intro-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 2;
  background: linear-gradient(90deg, var(--ci-orange) 0 33.33%, #fff 33.33% 66.66%, var(--ci-green) 66.66% 100%);
  box-shadow: 0 1px 0 rgba(20, 35, 28, .08);
  transform-origin: left;
  animation: ivFlag 1.1s var(--iv-ease) both;
}
@keyframes ivFlag { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ivOrb1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(120px, 80px, 0) scale(1.15); } }
@keyframes ivOrb2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-140px, -60px, 0) scale(1.1); } }
@keyframes ivOrb3 { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(-120px, 60px, 0); } 66% { transform: translate3d(80px, -80px, 0); } }
@keyframes ivGrid { to { background-position: 48px 48px; } }
@keyframes ivUp { from { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ivCard { from { opacity: 0; transform: translate3d(40px, 20px, 0) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ivFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes ivShine { to { background-position: 200% center; } }
@keyframes ivArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes ivSweep { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }

.iv2-wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.iv2-left > * { animation: ivUp .9s var(--iv-ease) both; }
.iv2-left > :nth-child(1) { animation-delay: .05s; }
.iv2-left > :nth-child(2) { animation-delay: .15s; }
.iv2-left > :nth-child(3) { animation-delay: .3s; }
.iv2-left > :nth-child(4) { animation-delay: .42s; }
.iv2-left > :nth-child(5) { animation-delay: .54s; }
.iv2-left > :nth-child(6) { animation-delay: .66s; }

.iv2-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ci-green-d);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 158, 96, .25);
  box-shadow: 0 4px 14px -6px rgba(0, 158, 96, .35);
}
.iv2-title {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--iv-text);
}
.iv2-title span { display: block; }
.iv2-accent {
  background: linear-gradient(90deg, var(--ci-orange), #ff9a2e, var(--ci-green), #ff9a2e, var(--ci-orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ivShine 6s linear infinite;
}
.iv2-lead { font-size: 16.5px; line-height: 1.75; color: var(--iv-muted); max-width: 540px; }
.iv2-stats { display: flex; gap: 36px; margin: 30px 0; }
.iv2-stat strong { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ci-orange); }
.iv2-stat:nth-child(2) strong { color: var(--iv-text); }
.iv2-stat:nth-child(3) strong { color: var(--ci-green); }
.iv2-stat small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--iv-muted); font-weight: 700; }
.iv2-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.iv2-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 14px;
  padding: 17px 28px;
  font-size: 15.5px;
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ci-orange), #ff9a2e);
  box-shadow: 0 14px 30px -10px rgba(247, 127, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .35s var(--iv-spring), box-shadow .35s var(--iv-ease);
}
.iv2-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: ivSweep 3.5s var(--iv-ease) 1.5s infinite;
}
.iv2-cta i { animation: ivArrow 1.6s ease-in-out infinite; }
.iv2-cta:hover { transform: translate3d(0, -3px, 0) scale(1.03); box-shadow: 0 22px 40px -12px rgba(247, 127, 0, .85); }
.iv2-cta:active { transform: scale(.96); transition-duration: .1s; }
.iv2-link { position: relative; color: var(--ci-green-d); font-weight: 800; font-size: 14.5px; text-decoration: none; padding: 4px 0; }
.iv2-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--iv-ease);
}
.iv2-link:hover::after { transform: scaleX(1); transform-origin: left; }
.iv2-note { margin-top: 20px; font-size: 13px; color: var(--iv-muted); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.iv2-note i { color: var(--ci-orange); }

.iv2-right { display: grid; gap: 14px; transition: transform .6s var(--iv-ease); transform-style: preserve-3d; }
.iv2-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(20, 35, 28, .08);
  box-shadow: 0 10px 30px -14px rgba(20, 35, 28, .25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: ivCard .9s var(--iv-ease) both, ivFloat 6s ease-in-out infinite;
  transition: border-color .3s ease, box-shadow .4s var(--iv-ease), transform .45s var(--iv-spring);
}
.iv2-card:hover { border-color: rgba(247, 127, 0, .45); box-shadow: 0 18px 40px -14px rgba(247, 127, 0, .4); transform: translate3d(-6px, 0, 0) scale(1.02); }
.iv2-card.c1 { animation-delay: .35s, 1.2s; margin-left: 24px; }
.iv2-card.c2 { animation-delay: .47s, 1.6s; }
.iv2-card.c3 { animation-delay: .59s, 2s; margin-left: 40px; }
.iv2-card.c4 { animation-delay: .71s, 2.4s; margin-left: 12px; }
.iv2-card.c5 { animation-delay: .83s, 2.8s; margin-left: 32px; }
.iv2-ic {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ci-orange);
  background: rgba(247, 127, 0, .12);
  border: 1px solid rgba(247, 127, 0, .22);
  transition: transform .5s var(--iv-spring);
}
.iv2-card:nth-child(even) .iv2-ic { color: var(--ci-green); background: rgba(0, 158, 96, .1); border-color: rgba(0, 158, 96, .22); }
.iv2-card:hover .iv2-ic { transform: rotate(-10deg) scale(1.12); }
.iv2-card strong { display: block; color: var(--iv-text); font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.iv2-card small { color: var(--iv-muted); font-size: 12.8px; line-height: 1.55; }
.iv2-foot {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--iv-muted);
  z-index: 1;
  animation: ivUp 1s var(--iv-ease) 1s both;
}
.iv2-foot strong { color: var(--ci-orange); }

@media (max-width: 900px) {
  .iv2-wrap { grid-template-columns: 1fr; gap: 36px; }
  .iv2-card.c1, .iv2-card.c2, .iv2-card.c3, .iv2-card.c4, .iv2-card.c5 { margin-left: 0; }
  .iv2-orb { filter: blur(60px); }
}
@media (max-width: 520px) {
  .intro-v2 { padding: 34px 18px 60px; align-items: flex-start; }
  .iv2-stats { gap: 22px; }
  .iv2-stat strong { font-size: 27px; }
  .iv2-lead { font-size: 15px; }
  .iv2-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .iv2-cta { justify-content: center; }
  .iv2-card { padding: 15px 16px; }
  .iv2-orb.o3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-v2 *, .intro-v2 *::before, .intro-v2 *::after, .intro-v2::before {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
