/* ==============================================
   SECTIONS — Hero, À propos, Compétences, Timeline, Extras
   Portfolio v2 — Full viewport snap sections
   Apple-quality design
   ============================================== */

/* ================================
   HERO — Premier écran d'impact
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* Glow décoratif hero — suit le curseur subtilement */
.hero {
  --mouse-x: 0px;
  --mouse-y: 0px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.08), transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
  transform: translate(var(--mouse-x), var(--mouse-y));
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Second glow — accent bleu */
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.06), transparent 70%);
  pointer-events: none;
  animation: heroGlow2 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(var(--mouse-x), var(--mouse-y)) scale(1); }
  100% { transform: translate(calc(var(--mouse-x) - 40px), calc(var(--mouse-y) + 30px)) scale(1.15); }
}
@keyframes heroGlow2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}

.hero__content {
  max-width: 640px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: var(--c-accent-bg);
  border: 1px solid var(--c-accent-border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 0;
}
/* Conteneur côte à côte */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero__badge--secondary {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
  color: #a855f7;
}
.hero__badge--secondary .hero__badge-dot {
  background: #a855f7;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hero__name {
  font-size: var(--fs-5xl);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.05;
}
.hero__name span {
  color: var(--c-accent);
  position: relative;
}
.hero__name span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dim));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}
.reveal--visible .hero__name span::after {
  transform: scaleX(1);
}

.hero__role {
  font-size: var(--fs-lg);
  color: var(--c-text-2);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero__desc {
  color: var(--c-text-3);
  font-size: var(--fs-base);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Photo hero */
.hero__visual {
  position: relative;
}
.hero__photo-wrap {
  position: relative;
  display: inline-block;
}
.hero__photo {
  width: 200px;
  height: 280px;
  border-radius: var(--r-xl);
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--c-surface-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--sh-glow);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__photo:hover {
  transform: scale(1.04) translateY(-2px);
}
/* Cadre décoratif derrière la photo */
.hero__photo-frame {
  position: absolute;
  inset: -10px;
  border: 2px dashed var(--c-accent-border);
  border-radius: calc(var(--r-xl) + 10px);
  pointer-events: none;
  animation: framePulse 4s ease-in-out infinite;
}
@keyframes framePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Infos rapides sous le hero */
.hero__quick {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero__quick-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  transition: color 0.3s ease;
}
.hero__quick-item:hover { color: var(--c-text-2); }
.hero__quick-item svg { color: var(--c-accent); flex-shrink: 0; }

/* ================================
   À PROPOS — Bento grid
   ================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-card:hover {
  border-color: var(--c-accent-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}
.about-card:hover::before { opacity: 1; }
.about-card--wide {
  grid-column: span 2;
}
.about-card--full {
  grid-column: 1 / -1;
}
.about-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-accent-bg);
  color: var(--c-accent);
  margin-bottom: 10px;
}
.about-card__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 6px;
}
.about-card__text {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  line-height: 1.5;
}

/* Sous-bloc stages dans la carte gestion de projet */
.about-card__stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
}
.about-card__stage {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  line-height: 1.45;
}
.about-card__stage strong {
  font-size: var(--fs-xs);
  color: var(--c-text);
  font-weight: 600;
}
@media (max-width: 768px) {
  .about-card__stages { grid-template-columns: 1fr; }
}

/* ================================
   COMPÉTENCES — Groupes + chips
   ================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-group {
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-surface-2) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.skill-group:hover {
  border-color: var(--c-accent-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.skill-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.skill-group__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
/* Couleurs par catégorie */
.skill-group--net .skill-group__icon { background: rgba(45,212,191,0.12); color: var(--c-accent); }
.skill-group--sys .skill-group__icon { background: rgba(96,165,250,0.12); color: var(--c-blue); }
.skill-group--dev .skill-group__icon { background: rgba(167,139,250,0.12); color: var(--c-purple); }
.skill-group--soft .skill-group__icon { background: rgba(251,146,60,0.12); color: var(--c-orange); }
.skill-group--cyber .skill-group__icon { background: rgba(244,63,94,0.12); color: #f43f5e; }
.skill-group--monitor .skill-group__icon { background: rgba(34,197,94,0.12); color: #22c55e; }

.skill-group__title {
  font-size: var(--fs-base);
  font-weight: 800;
}
.skill-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-group__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  margin-bottom: 14px;
  font-style: italic;
}

/* ================================
   PARCOURS — Timeline verticale
   ================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-accent-border), var(--c-border-2));
}
.timeline__item {
  position: relative;
  padding-bottom: 28px;
  padding-left: 12px;
  border-radius: var(--r-sm);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.timeline__item:hover {
  background: var(--c-surface-2);
  padding-left: 16px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 0 3px var(--c-accent-bg), 0 0 12px rgba(45, 212, 191, 0.2);
  transition: box-shadow 0.4s ease;
}
.timeline__item:hover::before {
  box-shadow: 0 0 0 4px var(--c-accent-bg), 0 0 20px rgba(45, 212, 191, 0.3);
}
.timeline__date {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  margin-bottom: 2px;
}
.timeline__title {
  font-size: var(--fs-base);
  font-weight: 700;
}
.timeline__org {
  font-size: var(--fs-sm);
  color: var(--c-accent);
  font-weight: 500;
}
.timeline__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  margin-top: 4px;
  line-height: 1.55;
}
.timeline__desc ul {
  padding-left: 16px;
  list-style: disc;
  margin-top: 4px;
}
.timeline__desc li { margin-bottom: 2px; }
.timeline__desc li::marker { color: var(--c-accent); }

/* Deux colonnes : Expériences + Formation */
.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.parcours-col__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.parcours-col__title svg { color: var(--c-accent); }

/* ================================
   LANGUES + INTÉRÊTS — ligne flex
   ================================ */
.passions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.extra-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.extra-card:hover {
  border-color: var(--c-accent-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.extra-card__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-accent);
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}
.lang-item:last-child { border-bottom: none; }
.lang-item__name { font-weight: 600; min-width: 70px; }
.lang-item__level {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-accent);
  background: var(--c-accent-bg);
  padding: 2px 10px;
  border-radius: var(--r-full);
}
.lang-item__detail {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}
.interest-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.interest-item__icon { color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.interest-item__text {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.55;
}
.interest-item__text strong {
  color: var(--c-text);
  display: block;
  margin-bottom: 2px;
}

/* ================================
   RESPONSIVE SECTIONS
   ================================ */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero__content { max-width: 100%; }
  .hero__desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__quick { justify-content: center; }
  .hero__visual { order: -1; margin: 0 auto; }
  .hero__photo { width: 150px; height: 210px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-card--wide { grid-column: span 1; }

  .skills-grid { grid-template-columns: 1fr; }

  .parcours-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero__name { font-size: var(--fs-3xl); }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero__name { font-size: var(--fs-2xl); }
  .hero__photo { width: 120px; height: 168px; }
  .passions-grid { grid-template-columns: 1fr; }
}

/* ================================
   LARGE SCREENS — Scale up
   ================================ */
@media (min-width: 1440px) {
  .hero__photo { width: 240px; height: 336px; }
  .hero-inner { gap: 80px; }
  .hero__content { max-width: 720px; }
  .hero__desc { max-width: 560px; }
  .about-grid { gap: 16px; }
  .about-card { padding: 22px; }
  .skills-grid { gap: 20px; }
  .skill-group { padding: 28px; }
  .parcours-grid { gap: 56px; }
  .passions-grid { gap: 20px; }
  .extra-card { padding: 28px; }
}

@media (min-width: 1920px) {
  .hero__photo { width: 280px; height: 392px; }
  .hero-inner { gap: 96px; }
  .hero__content { max-width: 800px; }
  .hero__desc { max-width: 620px; }
  .about-grid { gap: 18px; }
  .about-card { padding: 26px; }
  .skills-grid { gap: 24px; }
  .skill-group { padding: 32px; }
  .parcours-grid { gap: 64px; }
  .timeline__item { padding-bottom: 36px; }
}
