/* === TAILLE DU TUXZ ===*/
.tux{
width: 55px;
height: 55px;
}


/* ===== Veille Technologique ===== */
.veille-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.veille-card {
  border: 2px solid var(--neon);
  border-radius: 12px;
  background: var(--panel-bg);
  backdrop-filter: blur(6px);
  padding: 24px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.veille-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 253, 198, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.veille-card:hover::before {
  left: 100%;
}

.veille-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 253, 198, 0.3), 0 0 40px var(--neon), inset 0 0 20px rgba(0, 253, 198, 0.05);
}

.veille-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.veille-tag {
  background: rgba(0, 253, 198, 0.15);
  color: var(--neon);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  border: 1px solid var(--neon);
}

.veille-date {
  color: var(--text);
  font-size: 0.8em;
  font-weight: 600;
}

.veille-card__title {
  color: var(--white);
  font-size: 1.1em;
  margin: 0 0 12px 0;
  font-weight: 700;
  line-height: 1.4;
}

.veille-card__description {
  color: var(--text);
  font-size: 0.9em;
  margin: 0 0 16px 0;
  line-height: 1.5;
  flex: 1;
}

.veille-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 253, 198, 0.2);
}

.veille-source {
  color: var(--neon);
  font-size: 0.8em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}/* ===== Thème ===== */
:root {
  --neon: #00fdc6;
  --bg: #0b0b0b;
  --panel-bg: rgba(0, 255, 200, 0.06);
  --text: #c0ffef;
  --white: #ffffff;
  --shadow-strong: 0 0 40px var(--neon);
  --shadow: 0 0 25px var(--neon);
}

/* ===== Global ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Source Code Pro', monospace;
  background-color: var(--bg);
  color: var(--neon);
  margin: 0;
  padding: 0;
  text-align: center;
  transition: opacity 0.5s ease;
}

body.fade-out { opacity: 0; }

/* ===== Grille 3D animée ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(#00fdc622 1px, transparent 1px),
    linear-gradient(90deg, #00fdc622 1px, transparent 1px);
  background-size: 55px 55px;
  transform: perspective(600px) rotateX(60deg);
  animation: gridMove 10s linear infinite;
  opacity: 0.25;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 55px; }
}

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(11,11,11,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.nav {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(0,253,198,0.2);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon);
  text-decoration: none;
  font-weight: 700;
}

.nav__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.nav__links a {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
  transition: color 200ms ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), rgba(0,253,198,0.6));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0,253,198,0.45);
  transition: width 260ms cubic-bezier(.2,.9,.2,1);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  width: 100%;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--white);
}

.nav__actions {
  display: flex;
  gap: 10px;
}

/* Social buttons */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin: 0 4px;
  border-radius: 0;
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  transition: transform 180ms ease;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 22px;
  color: var(--neon);
}

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes softGlow {
  0% { box-shadow: 0 0 0 rgba(0,253,198,0); }
  50% { box-shadow: 0 10px 30px rgba(0,253,198,0.10); }
  100% { box-shadow: 0 0 0 rgba(0,253,198,0); }
}

.social-icon.animated {
  animation: floatIcon 3.8s ease-in-out infinite, softGlow 4.8s ease-in-out infinite;
  will-change: transform;
}

.hero {
  padding: 60px 20px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 24px;
  animation: fadeSlide 1s ease forwards;
}

.hero__text {
  position: relative;
}

.hero__name {
  font-size: 3em;
  text-shadow: 0 0 15px var(--neon), 0 0 30px var(--neon);
  margin: 0;
}

.hero__name span {
  color: var(--white);
}

.hero__subtitle {
  margin-top: 8px;
  font-size: 1.2em;
  opacity: 0.9;
  color: var(--text);
  margin-bottom: 0;
}

.hero__stats-box {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  border: 1px solid rgba(0, 255, 200, 0.3);
  border-radius: 8px;
  background: rgba(0, 255, 200, 0.03);
  padding: 16px 24px;
  width: fit-content;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero__stats-box:hover {
  border-color: var(--neon);
  background: rgba(0, 255, 200, 0.08);
  box-shadow: 0 0 20px rgba(0, 253, 198, 0.15);
}

.stat-item {
  text-align: center;
  animation: statPulse 2s ease-in-out infinite;
}

.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes statPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.stat-number {
  color: var(--neon);
  font-size: 1.4em;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 253, 198, 0.4);
  line-height: 1;
}

.stat-label {
  color: var(--text);
  font-size: 0.8em;
  margin-top: 6px;
  font-weight: 600;
}

.hero__figure {
  justify-self: end;
  width: 200px;
  height: 200px;
}

.placeholder-image {
  width: 210px;
  height: 210px;
  background: linear-gradient(135deg, var(--neon), rgba(0,253,198,0.3));
  border-radius: 10px;
  border: 2px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9em;
}

/* ===== Title panel ===== */
.panel {
  border: 2px solid var(--neon);
  width: 50%;
  margin: 30px auto;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--neon);
  background: var(--panel-bg);
}

.panel__header h2 {
  color: var(--white);
  text-shadow: 0 0 10px var(--neon);
  margin: 0;
}

/* ===== Sections ===== */
.section {
  padding: 30px 20px;
}

.section__header {
  margin-bottom: 16px;
}

.section__title {
  color: var(--white);
  font-size: 2.5em;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  letter-spacing: 0.05em;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), rgba(0,253,198,0.6));
  border-radius: 2px;
  box-shadow: 0 0 15px var(--neon);
  animation: slideInWidth 0.8s ease forwards;
}

@keyframes slideInWidth {
  to { width: 100%; }
}

/* ===== Compétences ===== */
.competences-container {
  max-width: 900px;
  margin: 0 auto;
}

.competences-header {
  margin-bottom: 24px;
}

.competences-title {
  font-size: 2.5em;
  color: var(--white);
  margin: 0 0 30px 0;
  letter-spacing: 0.05em;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.competences-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), rgba(0,253,198,0.6));
  border-radius: 2px;
  box-shadow: 0 0 15px var(--neon);
  animation: slideInWidth 0.8s ease forwards;
}

@keyframes slideInWidth {
  to { width: 100%; }
}

.competences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.competence-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.competence-wrapper {
  flex: 1;
}

.competences-category-title {
  color: var(--white);
  font-size: 1.4em;
  margin-bottom: 5px;
  text-align: center;
}

.competences-separator {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), rgba(0,253,198,0.6));
  margin: 0 auto 25px;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon);
}

.competences-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--neon) rgba(0,253,198,0.1);
}

.competences-list::-webkit-scrollbar {
  width: 6px;
}

.competences-list::-webkit-scrollbar-track {
  background: rgba(0,253,198,0.1);
  border-radius: 3px;
}

.competences-list::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0,253,198,0.5);
}

.competences-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0,253,198,0.8);
}

.competence-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(0,253,198,0.3);
  border-radius: 8px;
  background: rgba(0,253,198,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.competence-item:hover {
  background: rgba(0,253,198,0.15);
  border-color: var(--neon);
  transform: translateX(5px);
  box-shadow: 0 0 15px rgba(0,253,198,0.3);
}

.competence-item i {
  color: var(--neon);
  font-size: 1.2em;
}

.competence-item span {
  color: var(--text);
  font-size: 0.95em;
}

.orbit-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0,253,198,0.3);
  z-index: 1;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 120px;
  height: 120px;
}

.orbit-2 {
  width: 200px;
  height: 200px;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), rgba(0,253,198,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  z-index: 10;
  box-shadow: 0 0 25px var(--neon);
  color: var(--white);
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

.skill-item {
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0,253,198,0.1);
  border: 2px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  z-index: 5;
  box-shadow: 0 0 12px rgba(0,253,198,0.5);
  color: var(--neon);
  animation: float 3s ease-in-out infinite;
}

.skill-1 {
  top: 0%;
  left: 50%;
  transform: translate(-50%, 0%);
  animation-delay: 0s;
}

.skill-2 {
  top: 20%;
  right: 8%;
  animation-delay: 0.2s;
}

.skill-3 {
  top: 50%;
  right: 0%;
  animation-delay: 0.4s;
}

.skill-4 {
  bottom: 20%;
  right: 8%;
  animation-delay: 0.6s;
}

.skill-5 {
  bottom: 0%;
  left: 50%;
  transform: translate(-50%, 0%);
  animation-delay: 0.8s;
}

.skill-6 {
  bottom: 20%;
  left: 8%;
  animation-delay: 1s;
}

.skill-7 {
  top: 50%;
  left: 0%;
  animation-delay: 1.2s;
}

/* Legend Sidebar */
.legend-sidebar {
  flex: 0 0 180px;
}

.legend-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.95em;
}

.sidebar-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px;
  border-left: 2px solid var(--neon);
  padding-left: 12px;
  transition: all 0.2s ease;
}

.sidebar-legend-item:hover {
  padding-left: 16px;
  box-shadow: -3px 0 15px rgba(0, 253, 198, 0.2);
}

.sidebar-legend-item__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 253, 198, 0.2);
  border: 1.5px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  flex-shrink: 0;
  color: var(--neon);
}

.sidebar-legend-item__text {
  color: var(--text);
  font-size: 0.85em;
  flex: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .competence-section {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .legend-sidebar {
    flex: 1;
    max-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .legend-title {
    grid-column: 1 / -1;
  }

  .sidebar-legend-item {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .competences-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .competence-section {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .orbit-container {
    width: 250px;
    height: 250px;
  }

  .legend-sidebar {
    flex: 1;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .legend-title {
    grid-column: 1 / -1;
  }

  .sidebar-legend-item {
    margin-bottom: 0;
    padding: 6px;
    padding-left: 10px;
    font-size: 0.85em;
  }

  .sidebar-legend-item__icon {
    width: 20px;
    height: 20px;
    font-size: 0.8em;
  }

  .sidebar-legend-item__text {
    font-size: 0.75em;
  }
}

/* ===== Projets - Layout Horizontal ===== */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: flex;
  gap: 30px;
  border: 2px solid var(--neon);
  border-radius: 16px;
  background: var(--panel-bg);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 253, 198, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 253, 198, 0.3), 0 0 40px var(--neon), inset 0 0 20px rgba(0, 253, 198, 0.05);
}

.project-card__left {
  flex: 0 0 350px;
  min-height: 300px;
}

.project-card__right {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card__header {
  margin-bottom: 16px;
}

.project-card__title {
  color: var(--white);
  font-size: 1.8em;
  margin: 0 0 8px 0;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 253, 198, 0.3);
}

.project-card__subtitle {
  color: var(--neon);
  font-size: 1.1em;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.project-card__description {
  color: var(--text);
  font-size: 1em;
  line-height: 1.6;
  margin: 16px 0;
}

.project-link {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.project-link:hover {
  border-bottom-color: var(--neon);
  text-shadow: 0 0 8px var(--neon);
}

.project-card__features {
  margin: 20px 0;
}

.project-card__features-title {
  color: var(--white);
  font-size: 1.1em;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.project-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-card__list li {
  color: var(--text);
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.95em;
  line-height: 1.5;
}

.project-card__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon);
  font-weight: bold;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tech-tag {
  background: rgba(0, 253, 198, 0.15);
  color: var(--neon);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid var(--neon);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: rgba(0, 253, 198, 0.25);
  box-shadow: 0 0 10px rgba(0, 253, 198, 0.4);
}

.project-card__btn {
  align-self: flex-start;
  margin-top: 16px;
  font-size: 1em;
  padding: 10px 24px;
}

/* Project slider adjustments for horizontal layout */
.project-card__left {
  flex: 0 0 350px;
  min-height: 300px;
}

.project-image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.project-image {
  width: 375px;
  height: 655px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.project-image-link:hover .project-image {
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .project-card {
    flex-direction: column;
  }

  .project-card__left {
    flex: 1;
    min-height: 250px;
  }

  .project-card__right {
    padding: 24px;
  }

  .project-card__title {
    font-size: 1.5em;
  }

  .project-card__left .project-slider {
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .projects-container {
    gap: 30px;
  }

  .project-card {
    flex-direction: column;
  }

  .project-card__left {
    flex: 1;
    min-height: 200px;
  }

  .project-card__right {
    padding: 20px;
  }

  .project-card__title {
    font-size: 1.3em;
  }

  .project-card__description {
    font-size: 0.95em;
  }

  .project-card__left .project-slider {
    border-radius: 12px;
  }
}

/* Project slider - Neon Border Style */
.project-slider {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #00fdc6, #0b0b0b);
  border-radius: 8px;
  border: 2px solid var(--neon);
  margin-bottom: 12px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #00fdc6, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.9em;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,253,198,0.7);
  border: none;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: 0.2s;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.slide-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: var(--neon);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}

/* ===== Certifications - Mosaic Layout ===== */
.certifications-wrapper {
  max-width: 1150px;
  margin: 0 auto;
}

.certifications-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  grid-auto-rows: 280px;  /* AJOUTE: Rendre toutes les cartes carrées */
}

.cert-card-mosaic {
  border: 2px solid var(--neon);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 255, 200, 0.05);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: stretch;
}

/* SUPPRIME: .cert-card-mosaic:nth-child(1) { grid-column: span 1; grid-row: span 2; } */

.cert-card-mosaic:hover {
  box-shadow: 0 0 40px var(--neon), inset 0 0 20px rgba(0, 253, 198, 0.05);
  transform: scale(1.02);
}

.cert-card-mosaic__image {
  width: 100%;
  height: 100%;
  min-height: 280px;  /* MODIFIE: Moins de min-height */
  background: linear-gradient(135deg, #00d9b0, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95em;
  position: relative;
  overflow: hidden;
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* MODIFIE: cover pour bien remplir */
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.cert-card-mosaic:hover .cert-image {
  transform: scale(1.05);
}

.cert-card-mosaic__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;  /* RÉDUIT: De 12px à 8px */
  padding: 16px;  /* RÉDUIT: De 24px à 16px */
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  overflow-y: auto;  /* AJOUTE: Pour scroll si besoin */
}

.cert-card-mosaic:hover .cert-card-mosaic__overlay {
  opacity: 1;
}

.cert-card-mosaic__overlay-badge {
  color: var(--neon);
  font-size: 2em;  /* RÉDUIT: De 2.5em à 2em */
  animation: floatBadge 2s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cert-card-mosaic__overlay-name {
  color: var(--white);
  font-size: 1.1em;  /* RÉDUIT: De 1.3em à 1.1em */
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.cert-card-mosaic__overlay-issuer {
  color: var(--neon);
  font-size: 0.9em;  /* RÉDUIT: De 1em à 0.9em */
  font-weight: 600;
  margin: 0;
}

.cert-card-mosaic__overlay-desc {
  color: var(--text);
  font-size: 0.75em;  /* RÉDUIT: De 0.85em à 0.75em */
  margin: 4px 0;  /* RÉDUIT: De 8px à 4px */
  line-height: 1.3;
  display: none;  /* CACHE la description pour économiser l'espace */
}

.cert-card-mosaic__overlay-skills {
  display: flex;
  gap: 4px;  /* RÉDUIT: De 6px à 4px */
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0;  /* RÉDUIT: De 8px à 4px */
}

.cert-skill {
  background: rgba(0, 253, 198, 0.2);
  color: var(--neon);
  padding: 2px 8px;  /* RÉDUIT: De 4px 10px */
  border-radius: 12px;
  font-size: 0.65em;  /* RÉDUIT: De 0.75em à 0.65em */
  border: 1px solid var(--neon);
  font-weight: 600;
  white-space: nowrap;
}

.cert-overlay-link {
  color: var(--neon);
  text-decoration: none;
  font-size: 0.8em;  /* RÉDUIT: De 0.85em à 0.8em */
  font-weight: 600;
  margin-top: 4px;  /* RÉDUIT: De 8px à 4px */
  padding: 4px 12px;  /* RÉDUIT: De 6px 16px */
  border: 1px solid var(--neon);
  border-radius: 20px;
  transition: all 0.2s ease;
  display: inline-block;
}

.cert-overlay-link:hover {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 20px var(--neon);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .certifications-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;  /* Plus petit sur mobile */
  }

  .cert-card-mosaic__image {
    min-height: 200px;
  }

  .cert-card-mosaic__overlay-name {
    font-size: 0.95em;
  }

  .cert-card-mosaic__overlay-desc {
    font-size: 0.7em;
  }
}

/* ===== Timeline ===== */
.timeline-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon), transparent);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.timeline-content {
  flex: 1;
}

.timeline-content-left {
  text-align: right;
}

.timeline-content-right {
  text-align: left;
}

.timeline-title {
  color: var(--white);
  margin: 0 0 6px 0;
  font-size: 1.2em;
}

.timeline-subtitle {
  color: var(--neon);
  margin: 0 0 4px 0;
  font-size: 0.95em;
}

.timeline-date {
  color: var(--text);
  margin: 0;
  font-size: 0.9em;
}

.timeline-link {
  color: var(--neon);
  text-decoration: none;
  font-size: 0.85em;
  margin-top: 8px;
  display: inline-block;
}

.timeline-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--neon);
  border: 3px solid var(--bg);
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  animation: pulseGlow 2s ease-in-out infinite;
}

.timeline-empty {
  flex: 1;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px var(--neon);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 25px var(--neon);
    opacity: 0.7;
  }
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid var(--neon);
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--neon);
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--neon);
  color: #000;
  box-shadow: var(--shadow);
}

.btn--primary {
  box-shadow: 0 0 20px rgba(0,253,198,0.4);
}

.btn--ghost {
  background: transparent;
}

/* ===== Footer ===== */
.site-footer {
  padding: 30px 10px;
}

.footer__text {
  color: var(--text);
}

/* ===== Modal Contact ===== */
.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.contact-modal-content {
  background: var(--bg);
  border: 2px solid var(--neon);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--neon);
  font-size: 24px;
  cursor: pointer;
}

.modal-title {
  color: var(--white);
  text-shadow: 0 0 10px var(--neon);
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-text {
  color: var(--white);
}

.form-input,
.form-textarea {
  padding: 10px;
  border: 1px solid var(--neon);
  border-radius: 8px;
  background-color: #1a1a1a;
  color: var(--neon);
}

.form-textarea {
  resize: none;
}

.form-submit {
  padding: 10px 20px;
  border: 2px solid var(--neon);
  border-radius: 20px;
  background: transparent;
  color: var(--neon);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.form-submit:hover {
  background-color: var(--neon);
  color: #000;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
  }

  .placeholder-image {
    width: 160px;
    height: 160px;
  }

  .hero__name {
    font-size: 2.4em;
  }

  .panel {
    width: 80%;
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== TABS CONTAINER ===== */
.tabs-wrapper {
  background: rgba(0, 253, 198, 0.08);
  border: 2px solid var(--neon);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 253, 198, 0.2);
}

.tabs-wrapper h3 {
  color: var(--white);
  font-size: 1.5em;
  text-align: center;
  margin: 0 0 30px 0;
}

.tabs-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(0, 253, 198, 0.3);
  padding-bottom: 15px;
  overflow-x: auto;
  justify-content: center;
}

.tabs-buttons::-webkit-scrollbar {
  height: 6px;
}

.tabs-buttons::-webkit-scrollbar-track {
  background: rgba(0, 253, 198, 0.1);
  border-radius: 3px;
}

.tabs-buttons::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 3px;
}

.tab-btn {
  padding: 10px 20px;
  border: 2px solid var(--neon);
  background: transparent;
  color: var(--neon);
  cursor: pointer;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.95em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn i {
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover {
  background: rgba(0, 253, 198, 0.15);
  box-shadow: 0 0 15px rgba(0, 253, 198, 0.3);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 25px rgba(0, 253, 198, 0.6);
}

.tab-btn.active i {
  color: #000;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== EXPAND CARDS ===== */
.expand-card {
  padding: 22px;
  border: 2px solid var(--neon);
  border-radius: 12px;
  background: rgba(0, 253, 198, 0.08);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  max-height: 110px;
}

.expand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
  pointer-events: none;
}

.expand-card:hover::before {
  left: 100%;
}

.expand-card.active {
  max-height: 350px;
  box-shadow: 0 0 40px rgba(0, 253, 198, 0.4), inset 0 0 20px rgba(0, 253, 198, 0.1);
  background: rgba(0, 253, 198, 0.15);
}

.expand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  transition: margin-bottom 0.4s;
}

.expand-card.active .expand-header {
  margin-bottom: 14px;
}

.expand-icon {
  font-size: 1.8em;
  color: var(--neon);
  flex-shrink: 0;
  min-width: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expand-title {
  color: var(--white);
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
  text-align: left;
}

.expand-desc {
  color: var(--text);
  font-size: 0.85em;
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s;
  text-align: left;
}

.expand-card.active .expand-desc {
  max-height: 200px;
  opacity: 1;
}

.expand-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 253, 198, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  transition: all 0.3s;
  font-size: 1em;
  font-weight: bold;
  pointer-events: none;
}

.expand-card.active .expand-toggle {
  background: var(--neon);
  color: #000;
  transform: rotate(180deg);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .competences-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .competence-section {
    flex-direction: column;
    gap: 20px;
  }

  .legend-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .competences-grid {
    gap: 30px;
  }

  .tabs-buttons {
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.85em;
  }

  .tab-content.active {
    grid-template-columns: 1fr;
  }

  .expand-card {
    max-height: 100px;
  }

  .expand-card.active {
    max-height: 350px;
  }

  .legend-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
/* ===== BRIGHT SHINE BUTTON - OPTION 3 BOLD ===== */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 253, 198, 0.7), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-shine:hover::before {
  left: 100%;
}

.btn-shine:hover {
  box-shadow: 0 0 40px rgba(0, 253, 198, 0.9) !important;
}
/* ===== VEILLE TECHNOLOGIQUE (à ajouter) ===== */
.veille-card-b {
  border-left: 3px solid var(--neon);
  padding: 24px;
  padding-left: 20px;
  background: transparent;
  transition: all 0.3s ease;
  max-width: 550px;
  margin: 0 auto;
}

.veille-card-b:hover {
  border-left-color: var(--white);
  padding-left: 24px;
  box-shadow: 0 0 20px rgba(0, 253, 198, 0.25);
}

.veille-card-b h3 {
  color: var(--white);
  margin: 0 0 12px 0;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.4;
}

.veille-card-b p {
  color: var(--text);
  font-size: 0.9em;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.veille-question {
  color: var(--neon);
  font-size: 0.85em;
  font-style: italic;
  margin: 12px 0 16px 0;
}

.veille-link {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.veille-link:hover {
  color: var(--white);
}

/* ===== PROCÉDURES (à ajouter) ===== */
.procedures-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.procedure-card {
  border: 2px solid var(--neon);
  border-radius: 12px;
  background: var(--panel-bg);
  backdrop-filter: blur(6px);
  padding: 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.procedure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 253, 198, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.procedure-card:hover::before {
  left: 100%;
}

.procedure-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 253, 198, 0.3), 0 0 40px var(--neon), inset 0 0 20px rgba(0, 253, 198, 0.05);
}

.procedure-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.procedure-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 253, 198, 0.2);
  border: 2px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: var(--neon);
  flex-shrink: 0;
}

.procedure-card__title {
  color: var(--white);
  font-size: 1.2em;
  margin: 0;
  font-weight: 700;
}

.procedure-card__description {
  color: var(--text);
  font-size: 0.9em;
  margin: 16px 0;
  line-height: 1.5;
  flex: 1;
}

.procedure-card__steps {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.step-badge {
  background: rgba(0, 253, 198, 0.15);
  color: var(--neon);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8em;
  font-weight: 600;
  border: 1px solid var(--neon);
}

.procedure-card__link {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 12px;
}

.procedure-card__link:hover {
  color: var(--white);
  text-shadow: 0 0 8px var(--neon);
}

/* ===== RESPONSIVE (à ajouter) ===== */
@media (max-width: 768px) {
  .procedures-container {
    grid-template-columns: 1fr;
  }

  .procedure-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .veille-card-b {
    padding: 16px;
    padding-left: 16px;
  }

  .veille-card-b:hover {
    padding-left: 20px;
  }
}
/* ===== TIMELINE LINKS - HOVER EFFECT ===== */
.timeline-link {
  color: var(--neon);
  text-decoration: none;
  font-size: 0.85em;
  margin-top: 8px;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}

.timeline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), rgba(0, 253, 198, 0.6));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 253, 198, 0.45);
  transition: width 260ms cubic-bezier(.2,.9,.2,1);
}

.timeline-link:hover::after,
.timeline-link:focus-visible::after {
  width: 100%;
}

.timeline-link:hover,
.timeline-link:focus-visible {
  color: var(--white);
}
/* ===== AJUSTEMENT CSS LOGO ROOT-ME ===== */
.social-icon img {
  width: 22px;
  height: 22px;
  display: block;
}
