/* ============================================
   Custom CSS — Portfolio Adelin Rohan
   Styles extraits des blocs inline pour CSP
   ============================================ */

/* --- Hero Slideshow --- */
#hero {
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-overlay {
  display: none;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h2,
#hero p {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#hero .social-links a {
  color: rgba(255, 255, 255, 0.8);
}

#hero .social-links a:hover {
  color: var(--accent-color);
}

/* --- Skills Cards Grid --- */
.skills-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.skills-custom-card {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 5px;
  position: relative;
}

.skills-custom-card:hover {
  box-shadow: 0px 5px 35px 0px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.skills-custom-card i {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
  transition: 0.3s;
}

.skills-custom-card:hover i {
  transform: scale(1.1);
}

.skills-custom-card h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 0 10px 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.skills-custom-card p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.skills-custom-badge {
  display: inline-block;
  padding: 5px 15px;
  margin-top: 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.skills-badge-maitrise {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
}

.skills-badge-intermediaire {
  background-color: color-mix(in srgb, #fd7e14, transparent 85%);
  color: #fd7e14;
}

@media (max-width: 768px) {
  .skills-custom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Flame Particles --- */
#flame-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #00f0ff, #0078ff, transparent 70%);
  opacity: 0.6;
  filter: blur(6px);
  pointer-events: none;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(0.3);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════
   Parcours Certifications — UI/UX Pro Max v2
   Style: Exaggerated Minimalism + Trust & Authority
   No gradients · WCAG AA · Reduced-motion safe
   ══════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color), transparent 50%); }
  70%  { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section intro accent ── */
.pc-page .section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ── Timeline ── */
.pc-timeline {
  position: relative;
  padding: 20px 0;
}

.pc-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: color-mix(in srgb, var(--accent-color), transparent 75%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.pc-step {
  position: relative;
  margin-bottom: 64px;
}

.pc-step:last-child {
  margin-bottom: 0;
}

.pc-step-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-color), transparent 55%);
  animation: pulse-ring 2.8s ease-out infinite;
}

.pc-step-dot:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.pc-step-content {
  width: 44%;
  background: #fff;
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: default;
}

.pc-step-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.pc-step:nth-child(odd) .pc-step-content {
  margin-left: 0;
}

.pc-step:nth-child(even) .pc-step-content {
  margin-left: auto;
}

.pc-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.pc-step-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.pc-step-content .pc-step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #fff;
  background: var(--accent-color);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pc-step-content p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

.pc-step-content .pc-step-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  object-fit: cover;
  max-height: 180px;
}

@media (max-width: 768px) {
  .pc-timeline::before {
    left: 22px;
  }

  .pc-step-dot {
    left: 22px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .pc-step-content {
    width: calc(100% - 64px);
    margin-left: 64px !important;
    border-right: none !important;
    border-left: none !important;
  }
}

@media (max-width: 375px) {
  .pc-step-content {
    padding: 22px 18px;
  }
}

/* ── Certification Cards ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.cert-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid #eee;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cert-card:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.cert-card .cert-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: var(--accent-color);
  transition: transform 0.2s ease-out;
}

.cert-card:hover .cert-icon {
  transform: scale(1.08);
}

.cert-card .cert-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.cert-card .cert-body .cert-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
}

.cert-status.pending {
  color: #64748b;
  background: #f1f5f9;
}

.cert-status.obtained {
  color: #15803d;
  background: #f0fdf4;
}

.cert-status.in-progress {
  color: #b45309;
  background: #fffbeb;
}

.cert-card .cert-body p {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

.cert-img {
  width: 100%;
  border-radius: 8px;
  margin: 12px 0 8px;
  object-fit: contain;
  max-height: 220px;
}

.cert-provider {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-provider i {
  font-size: 12px;
}

@media (max-width: 576px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Projet professionnel ── */
.projet-pro-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease-out;
}

.projet-pro-box:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.projet-pro-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 6px;
}


.projet-pro-box .pp-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 18px;
}

.projet-pro-box p {
  color: #555;
  line-height: 1.75;
}

.projet-pro-box .pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.projet-pro-box .pp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  background: #f8f9fa;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.projet-pro-box .pp-meta span:hover {
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.projet-pro-box .pp-meta span i {
  color: var(--accent-color);
  font-size: 14px;
}


/* ── Parcours certifications — Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .pc-step-dot { animation: none; }
  .pc-step-content,
  .cert-card,
  .cert-card .cert-icon,
  .projet-pro-box,
  .projet-pro-box .pp-meta span {
    transition: none;
  }
  .pc-step-content:hover,
  .cert-card:hover {
    transform: none;
  }
}

.cert-card:focus-visible,
.pc-step-content:focus-visible,
.projet-pro-box:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* --- BTS SIO Internal Navigation --- */
.bts-internal-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0;
  margin-bottom: 10px;
}

.bts-internal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bts-internal-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.bts-internal-nav ul li a:hover {
  color: var(--heading-color);
  border-bottom-color: #dee2e6;
}

.bts-internal-nav ul li a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  font-weight: 600;
}

.bts-internal-nav ul li a i {
  font-size: 16px;
}

@media (max-width: 768px) {
  .bts-internal-nav ul li a {
    padding: 12px 16px;
    font-size: 0.82rem;
  }
}
