/* ==========================================
   PORTFOLIO.CSS — Styles page Portfolio
   ========================================== */

/* ==========================================
   HERO
   ========================================== */

.portfolio-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

.hero-left {
  background-color: var(--color-teal);
  padding: 32px 48px 56px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  animation: fadeInLeft 0.6s ease both;
}

.label-line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-or);
  flex-shrink: 0;
  animation: lineGrow 0.6s ease both;
}

.label-text {
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-or);
  letter-spacing: 0.04em;
}

@keyframes lineGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

.hero-nom {
  font-family: var(--font-titre);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
}

.hero-nom--or { color: var(--color-or); }

.hero-titre-pro {
  font-family: var(--font-titre);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.hero-description {
  font-family: var(--font-corps);
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 360px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-tag {
  font-family: var(--font-corps);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 5px 12px;
  transition: var(--transition);
}

.hero-tag:hover {
  border-color: var(--color-or);
  color: var(--color-or);
  background-color: rgba(212, 168, 67, 0.08);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-corps);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-hero--teal {
  background-color: var(--color-or);
  color: #1C1C1C;
  border: 2px solid var(--color-or);
}

.btn-hero--teal:hover {
  background-color: var(--color-or-hover);
  border-color: var(--color-or-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(212, 168, 67, 0.35);
}

.btn-hero--outline {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid var(--color-or);
}

.btn-hero--outline:hover {
  border-color: var(--color-or-hover);
  background-color: rgba(212, 168, 67, 0.08);
  transform: translateY(-3px);
}

.btn-icon { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }

.hero-right {
  background-color: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 40px;
  position: relative;
}

.hero-right::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 74, 71, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-photo-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--color-or);
  padding: 4px;
  background-color: var(--color-bg-primary);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.2);
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-socials { display: flex; gap: 28px; animation: fadeInUp 0.7s 0.35s ease both; }

.hero-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.hero-social-item:hover { color: var(--color-or); transform: translateY(-3px); }

.social-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-or);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-social-item:hover .social-icon-circle { background-color: var(--color-or); color: #1C1C1C; }

.social-icon { width: 18px; height: 18px; stroke: currentColor; }

.social-label { font-family: var(--font-corps); font-size: 0.67rem; letter-spacing: 0.03em; color: var(--color-text-secondary); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border: 1px solid var(--color-separator);
  border-radius: 10px;
  background-color: var(--color-bg-secondary);
  animation: fadeInUp 0.7s 0.5s ease both;
}

.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.stat-chiffre { font-family: var(--font-titre); font-size: 1.6rem; font-weight: 700; color: var(--color-or); line-height: 1; }

.stat-label { font-family: var(--font-corps); font-size: 0.7rem; color: var(--color-text-secondary); text-align: center; line-height: 1.3; }

.hero-stat-sep { width: 1px; height: 36px; background-color: var(--color-separator); flex-shrink: 0; }

body.dark-mode .hero-right         { background-color: var(--color-bg-primary); }
body.dark-mode .hero-stats         { background-color: var(--color-bg-secondary); border-color: var(--color-separator); }
body.dark-mode .hero-photo-wrapper { background-color: var(--color-bg-secondary); }
body.dark-mode .hero-social-item   { color: var(--color-text-secondary); }


/* ==========================================
   À PROPOS
   ========================================== */

.apropos {
  background-color: var(--color-bg-secondary);
  padding: 64px 0;
  animation: fadeInUp 0.6s ease both;
}

.apropos-container { max-width: 1200px; margin: 0 auto; padding: 0 80px; }

.portfolio-section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.portfolio-section-label .label-text { font-size: 1rem; }

.apropos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }

.apropos-left { display: flex; flex-direction: column; gap: 20px; }

.apropos-titre { font-family: var(--font-titre); font-size: 1.4rem; font-weight: 700; color: var(--color-text-primary); margin: 0; text-align: center; }

.apropos-texte { font-family: var(--font-corps); font-size: 0.92rem; line-height: 1.75; color: var(--color-text-secondary); margin: 0; }

.apropos-texte strong { color: var(--color-text-primary); font-weight: 700; }

.apropos-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.apropos-tag { font-family: var(--font-corps); font-size: 0.75rem; font-weight: 500; padding: 5px 10px; border-radius: 4px; border: 1.5px solid transparent; transition: var(--transition); white-space: nowrap; }

.apropos-tag--or   { background-color: var(--color-or); color: #1C1C1C; border-color: var(--color-or); }
.apropos-tag--or:hover { background-color: var(--color-or-hover); border-color: var(--color-or-hover); }
.apropos-tag--teal { background-color: var(--color-teal); color: #FFFFFF; border-color: var(--color-teal); }
.apropos-tag--outline { background-color: transparent; color: var(--color-text-primary); border-color: var(--color-separator); }
.apropos-tag--outline:hover { border-color: var(--color-or); color: var(--color-or); }

.apropos-right { padding-left: 80px; }

.parcours-cle-titre { font-family: var(--font-titre); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-text-primary); text-transform: uppercase; margin: 0 0 28px 0; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 16px; bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-or) 0%, var(--color-separator) 60%, var(--color-separator) 100%);
}

.timeline-item { display: flex; align-items: flex-start; gap: 20px; padding-bottom: 32px; position: relative; }
.timeline-item--last { padding-bottom: 0; }

.timeline-marker { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--color-separator); background-color: var(--color-bg-secondary); flex-shrink: 0; position: relative; z-index: 1; }
.timeline-marker--or { background-color: var(--color-or); border-color: var(--color-or); box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.18); }

.timeline-content { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.timeline-date { font-family: var(--font-corps); font-size: 0.85rem; font-weight: 600; color: var(--color-text-secondary); }
.timeline-date--or { color: var(--color-or); }
.timeline-role { font-family: var(--font-corps); font-size: 0.88rem; color: var(--color-text-secondary); margin: 0; line-height: 1.4; }

body.dark-mode .apropos               { background-color: var(--color-bg-secondary); }
body.dark-mode .timeline-marker       { background-color: var(--color-bg-secondary); }
body.dark-mode .apropos-tag--outline  { border-color: var(--color-separator); color: var(--color-text-primary); }


/* ==========================================
   COMPÉTENCES
   ========================================== */

.competences {
  background-color: var(--color-bg-secondary);
  padding: 80px 40px;
  margin-top: 80px;
  margin-left: 40px;
  margin-right: 40px;
  border: 1px solid rgba(90, 90, 90, 0.05);
}

body.dark-mode .competences {
  background-color: #252218;
  border-color: rgba(61, 58, 46, 0.4);
}

.competences-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.competences-titre { font-family: var(--font-titre); font-size: 1.4rem; font-weight: 700; color: var(--color-text-primary); margin: 0 0 40px 0; }

.competences-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.comp-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.comp-header-icon { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }
.comp-header-titre { font-family: var(--font-corps); font-size: 0.92rem; font-weight: 600; }
.comp-header--or   { color: var(--color-or); }
.comp-header--dark { color: var(--color-text-primary); }

.comp-separator { width: 100%; height: 1px; background-color: var(--color-separator); margin-bottom: 28px; }

.comp-list { display: flex; flex-direction: column; gap: 24px; }
.comp-item { display: flex; flex-direction: column; gap: 8px; }
.comp-item-top { display: flex; justify-content: space-between; align-items: center; }

.comp-label { font-family: var(--font-corps); font-size: 0.88rem; font-weight: 600; color: var(--color-text-primary); }
.comp-pct   { font-family: var(--font-corps); font-size: 0.85rem; font-weight: 700; }
.comp-pct--or   { color: var(--color-or); }
.comp-pct--teal { color: var(--color-teal); }

.comp-bar { width: 100%; height: 8px; background-color: var(--color-separator); border-radius: 99px; overflow: hidden; }
.comp-bar-fill { height: 100%; border-radius: 99px; animation: barGrow 1s ease both; }
.comp-bar-fill--or   { background-color: var(--color-or); }
.comp-bar-fill--teal { background-color: var(--color-teal); }

@keyframes barGrow {
  from { width: 0 !important; }
  to   { }
}

body.dark-mode .comp-header--dark { color: var(--color-text-primary); }


/* ==========================================
   EXPÉRIENCE — NOUVELLE VERSION
   border-top colorée + année en filigrane
   ========================================== */

.experience {
  background-color: var(--color-bg-primary);
  padding: 72px 0 80px;
}

.experience-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.experience-titre {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 52px 0;
}

/* Grid 3 colonnes */
.exp-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
}



/* Card */
.exp-card {
  background-color: var(--color-bg-secondary);
  border-radius: 10px;
  border: none;
  border-top: 3px solid var(--color-separator);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.6s ease both;
  overflow: hidden;
}

.exp-card:nth-child(2) { animation-delay: 0.15s; }
.exp-card:nth-child(3) { animation-delay: 0.3s; }

.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.exp-card--or   { border-top-color: var(--color-or); }
.exp-card--teal { border-top-color: var(--color-teal); }

/* Année en filigrane via data-year */
.exp-card::before {
  content: attr(data-year);
  position: absolute;
  top: -8px;
  right: 16px;
  font-family: var(--font-titre);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-or);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Date */
.exp-date {
  font-family: var(--font-corps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.exp-date--or   { color: var(--color-or); }
.exp-date--teal { color: var(--color-teal); }

/* Titre */
.exp-card-titre {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.exp-card-titre--or   { color: var(--color-or); }
.exp-card-titre--teal { color: var(--color-teal); }
.exp-card-titre--dark { color: var(--color-text-primary); }

/* Description */
.exp-card-desc {
  font-family: var(--font-corps);
  font-size: 0.83rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Dark mode Expérience */
body.dark-mode .exp-card {
  background-color: var(--color-bg-secondary);
}

body.dark-mode .exp-card--or   { border-top-color: var(--color-or); }
body.dark-mode .exp-card--teal { border-top-color: var(--color-teal); }


/* ==========================================
   FORMATIONS
   ========================================== */

.formations {
  background-color: var(--color-bg-primary);
  padding: 64px 0;
}

.formations-container { max-width: 1200px; margin: 0 auto; padding: 0 80px; }

.formations-titre { font-family: var(--font-titre); font-size: 1.4rem; font-weight: 700; color: var(--color-text-primary); margin: 0 0 48px 0; }

.formations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.formation-card {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.6s ease both;
}

.formation-card:nth-child(2) { animation-delay: 0.15s; }
.formation-card:nth-child(3) { animation-delay: 0.3s; }

.formation-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); }

.formation-card--teal  { border: 1px solid var(--color-separator); background-color: var(--color-bg-secondary); }
.formation-card--outline { border: 1px solid var(--color-separator); background-color: var(--color-bg-secondary); }

.formation-card__header { height: 140px; display: flex; align-items: center; justify-content: center; }
.formation-card__header--teal  { background-color: var(--color-teal); }
.formation-card__header--light { background-color: var(--color-bg-secondary); border-bottom: 1px solid var(--color-separator); }

.formation-icon { width: 40px; height: 40px; stroke: var(--color-or); stroke-width: 1.5; transition: transform 0.3s ease; }
.formation-card:hover .formation-icon { transform: scale(1.12) rotate(-5deg); }

.formation-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }

.formation-label { font-family: var(--font-code); font-size: 0.7rem; font-weight: 600; color: var(--color-or); letter-spacing: 0.08em; text-transform: uppercase; }

.formation-titre { font-family: var(--font-titre); font-size: 1rem; font-weight: 700; color: var(--color-text-primary); margin: 0; line-height: 1.3; }

.formation-desc { font-family: var(--font-corps); font-size: 0.82rem; color: var(--color-text-secondary); line-height: 1.6; margin: 0; flex: 1; }

.formation-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.formation-meta { font-family: var(--font-corps); font-size: 0.78rem; color: var(--color-or); font-weight: 500; }

.btn-formation {
  background-color: var(--color-or);
  color: #1C1C1C;
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-formation:hover { background-color: var(--color-or-hover); transform: translateY(-2px); }

body.dark-mode .formations { background-color: var(--color-bg-primary); }
body.dark-mode .formation-card--teal,
body.dark-mode .formation-card--outline { background-color: var(--color-bg-secondary); border-color: var(--color-separator); }
body.dark-mode .formation-card__header--light { background-color: var(--color-bg-primary); border-color: var(--color-separator); }


/* ==========================================
   CONTACT — Me contacter
   ========================================== */

.contact {
  background-color: var(--color-bg-primary);
  padding: 72px 0 80px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

/* Grid 2 colonnes */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

/* --- Colonne gauche : Formulaire --- */
.contact-titre {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

/* Ligne or sous le titre */
.contact-separateur {
  width: 100%;
  height: 2px;
  background-color: var(--color-or);
  margin-bottom: 28px;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 2 champs côte à côte */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-corps);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* Champs input */
.contact-input,
.contact-textarea {
  font-family: var(--font-corps);
  font-size: 0.85rem;
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-separator);
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--color-or);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.12);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Bouton envoyer */
.btn-contact {
  align-self: center;
  background-color: var(--color-or);
  color: #1C1C1C;
  font-family: var(--font-corps);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}

.btn-contact:hover {
  background-color: var(--color-or-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.3);
}

/* --- Colonne droite --- */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 48px;
}

/* Card teal */
.contact-encart {
  background-color: var(--color-teal);
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-encart-titre {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-or);
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.contact-encart-citation {
  font-family: var(--font-corps);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* Icônes sociales — cercles teal fixe (light + dark) */
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-teal);
  transition: var(--transition);
}

.contact-social-item:hover {
  color: var(--color-teal);
  transform: translateY(-3px);
}

.contact-social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-social-item:hover .contact-social-circle {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background-color: rgba(27, 74, 71, 0.1);
}

.contact-social-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.contact-social-label {
  font-family: var(--font-corps);
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

/* Dark mode — cercles restent teal */
body.dark-mode .contact-social-item   { color: var(--color-teal); }
body.dark-mode .contact-social-circle { border-color: var(--color-teal); }

/* Dark mode */
body.dark-mode .contact-input,
body.dark-mode .contact-textarea {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-separator);
  color: var(--color-text-primary);
}

body.dark-mode .contact-input:focus,
body.dark-mode .contact-textarea:focus {
  border-color: var(--color-or);
}


/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ==========================================
   ✨ AMÉLIORATIONS — Animations & Borders
   Ajouts purs — CSS existant inchangé
   ========================================== */

/* ---- Shimmer sur KAMAGATÉ ---- */
.hero-nom--or {
  background: linear-gradient(
    90deg,
    var(--color-or) 0%,
    #FBE580 50%,
    var(--color-or) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ---- Pulse sur le cercle photo ---- */
.hero-photo-wrapper {
  animation: fadeInUp 0.7s 0.2s ease both, pulseOr 4s ease-in-out 1s infinite;
}

@keyframes pulseOr {
  0%, 100% { box-shadow: 0 8px 32px rgba(212, 168, 67, 0.2); }
  50%       { box-shadow: 0 8px 32px rgba(212, 168, 67, 0.45), 0 0 0 8px rgba(212, 168, 67, 0.08); }
}

/* ---- Float sur les cercles déco ---- */
.hero-left::before,
.hero-right::after {
  animation: floatCircle 5s ease-in-out infinite;
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ---- Bordure gauche animée sur la section À propos ---- */
.apropos-left {
  border-left: 3px solid transparent;
  padding-left: 20px;
  transition: border-color 0.4s ease;
}

.apropos-left:hover {
  border-left-color: var(--color-or);
}

/* ---- Glow coloré au hover sur les exp-cards ---- */
.exp-card--or:hover {
  box-shadow: 0 12px 32px rgba(212, 168, 67, 0.15);
}

.exp-card--teal:hover {
  box-shadow: 0 12px 32px rgba(27, 74, 71, 0.2);
}

/* ---- Border accent sur les formation cards au hover ---- */
.formation-card--teal:hover  { border-color: var(--color-teal); }
.formation-card--outline:hover { border-color: var(--color-or); }

/* ---- Bordure or animée sous "Me contacter" au focus formulaire ---- */
.contact-separateur {
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--color-or) 40%,
    var(--color-or) 60%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

/* ---- Entrée décalée des sections ---- */
.apropos      { animation-delay: 0.05s; }
.competences  { animation: fadeInUp 0.7s 0.1s ease both; }
.experience   { animation: fadeInUp 0.7s 0.05s ease both; }
.formations   { animation: fadeInUp 0.7s 0.1s ease both; }
.contact      { animation: fadeInUp 0.7s ease both; }

/* ---- Trait animé sur tous les labels de section ---- */
.portfolio-section-label .label-line {
  animation: lineGrow 0.8s ease both;
}

/* ---- Glow sur le bouton Envoyer au hover ---- */
.btn-contact:hover {
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4), 0 0 0 3px rgba(212, 168, 67, 0.1);
}

/* ---- Bordure subtile entre Hero et À propos ---- */
.apropos {
  border-top: 1px solid var(--color-separator);
}

/* ---- Card formation : border top teal/or au hover ---- */
.formation-card--teal {
  border-top: 2px solid var(--color-teal);
}

.formation-card--outline {
  border-top: 2px solid var(--color-separator);
  transition: border-top-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.formation-card--outline:hover {
  border-top-color: var(--color-or);
}

/* ---- Hover glow encart contact ---- */
.contact-encart {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-encart:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27, 74, 71, 0.3);
}

/* ---- Animation stagger sur les stats du Hero ---- */
.hero-stat:nth-child(1) { animation: fadeInUp 0.6s 0.55s ease both; }
.hero-stat:nth-child(3) { animation: fadeInUp 0.6s 0.65s ease both; }
.hero-stat:nth-child(5) { animation: fadeInUp 0.6s 0.75s ease both; }


/* ==========================================
   ✨ ANIMATIONS — Section Compétences
   ========================================== */

/* Entrée décalée de chaque comp-item */
.comp-item:nth-child(1) { animation: fadeInUp 0.5s 0.1s ease both; }
.comp-item:nth-child(2) { animation: fadeInUp 0.5s 0.2s ease both; }
.comp-item:nth-child(3) { animation: fadeInUp 0.5s 0.3s ease both; }
.comp-item:nth-child(4) { animation: fadeInUp 0.5s 0.4s ease both; }

/* Entrée des colonnes : gauche depuis la gauche, droite depuis la droite */
.competences-grid .competences-col:first-child {
  animation: fadeInLeft 0.6s 0.1s ease both;
}
.competences-grid .competences-col:last-child {
  animation: fadeInRight 0.6s 0.2s ease both;
}

/* Entrée de l'en-tête colonne */
.comp-header {
  animation: fadeInUp 0.5s ease both;
}

/* Barre de progression — animation élastique + délai par item */
.comp-item:nth-child(1) .comp-bar-fill { animation: barGrow 1s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.comp-item:nth-child(2) .comp-bar-fill { animation: barGrow 1s 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.comp-item:nth-child(3) .comp-bar-fill { animation: barGrow 1s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.comp-item:nth-child(4) .comp-bar-fill { animation: barGrow 1s 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Shimmer sur les barres remplies */
.comp-bar-fill--or {
  background: linear-gradient(
    90deg,
    var(--color-or) 0%,
    #FBE580 50%,
    var(--color-or) 100%
  );
  background-size: 200% auto;
  animation: barGrow 1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             shimmerBar 3s 1.5s linear infinite;
}

.comp-bar-fill--teal {
  background: linear-gradient(
    90deg,
    var(--color-teal) 0%,
    #2a6e6b 50%,
    var(--color-teal) 100%
  );
  background-size: 200% auto;
  animation: barGrow 1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             shimmerBar 3s 1.5s linear infinite;
}

@keyframes shimmerBar {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Hover sur la barre — légère élévation */
.comp-item:hover .comp-bar {
  transform: scaleY(1.2);
  transform-origin: bottom;
  transition: transform 0.2s ease;
}

/* Pourcentage — pulse discret au chargement */
.comp-pct {
  animation: pctPop 0.4s ease both;
}

.comp-item:nth-child(1) .comp-pct { animation-delay: 1.1s; }
.comp-item:nth-child(2) .comp-pct { animation-delay: 1.25s; }
.comp-item:nth-child(3) .comp-pct { animation-delay: 1.4s; }
.comp-item:nth-child(4) .comp-pct { animation-delay: 1.55s; }

@keyframes pctPop {
  0%   { opacity: 0; transform: scale(0.6); }
  70%  { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* Label comp-label — underline au hover */
.comp-label {
  position: relative;
  display: inline-block;
}

.comp-label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-or);
  transition: width 0.3s ease;
}

.comp-item:hover .comp-label::after {
  width: 100%;
}

/* Header sans image — couleurs originales conservées */
.formation-card__header {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header AVEC image uniquement */
.formation-card__header--img {
    background: #111;
}
.formation-card__header--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Trait teal sur hover pour la colonne Compétences Transversales */
.competences-grid .competences-col:last-child .comp-label::after {
  background-color: var(--color-teal);
}