* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-family: 'Space Grotesk', 'JetBrains Mono', system-ui, sans-serif;
  color: #f4f5ff;
  background-color: #030711;
  --bg: #030711;
  --card: rgba(6, 8, 18, 0.95);
  --accent: #ff4d6d;
  --accent-soft: #4dd0ff;
  --text-muted: rgba(244, 249, 255, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

body {
  min-height: 100vh;
  /* background: var(--bg); */
  overflow-x: hidden;
  color: #f4f5ff;
}

.background-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blur-sphere {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: drift 28s ease-in-out infinite;
}

.sphere-one {
  background: rgba(255, 77, 109, 0.8);
  top: -80px;
  left: -80px;
}

.sphere-two {
  background: rgba(77, 208, 255, 0.6);
  bottom: -140px;
  right: -120px;
  animation-delay: 6s;
}

.sphere-three {
  background: rgba(157, 107, 255, 0.75);
  top: 35%;
  left: 25%;
  animation-delay: 12s;
}

.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.4;
}

.page {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 3vw, 3rem) 4rem;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  padding: 0.2rem;
  background: rgba(3, 7, 17, 0.85);
  border-radius: 22px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 2vw, 2rem);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.logo-sign {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, rgba(255, 77, 109, 0.4), transparent 65%);
  font-weight: 700;
}

.logo-sign img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.main-nav a {
  color: #f4f5ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.is-active {
  color: var(--accent);
}

.revealable {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.revealable.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: clamp(1.8rem, 3vw, 3rem);
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 77, 109, 0.15), transparent 45%),
    rgba(6, 8, 18, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tag {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--accent-soft);
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin: 0.4rem 0 0.8rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-text p {
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-meta span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.primary-btn,
.secondary-btn {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.primary-btn {
  background: linear-gradient(120deg, var(--accent), #ffd369);
  color: #030711;
  box-shadow: 0 0 35px rgba(255, 77, 109, 0.5);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f4f5ff;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.hero-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-image-wrap {
  display: flex;
  justify-content: center;
}

.profile-image-wrap img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  background: #090c19;
}

.profile-card,
.panel-details {
  padding: 1.6rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(3, 7, 17, 0.9);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.profile-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--accent-soft);
}

.panel-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.panel-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-details ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.section {
  margin-top: 3rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-label {
  color: var(--accent-soft);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.5rem 0;
}

.section p {
  color: var(--text-muted);
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.about-grid h3 {
  margin-bottom: 0.6rem;
}

.about-timeline {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(3, 7, 17, 0.9);
}

.about-timeline div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.about-timeline div:last-child {
  border-bottom: none;
}

.about-timeline span {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-timeline strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-media {
  width: 100%;
  padding-top: 60%;
  background-size: cover;
  background-position: center;
}
.project-bgi .card-media {
  background-image: url('../imgs/labonneGestionImmo.png');
}
.project-sonic .card-media {
  background-image: url('../imgs/sonic.png');
}
.project-nfs .card-media {
  background-image: url('../imgs/nfsAcademy.png');
}
.project-ifd .card-media {
  background-image: url('../imgs/initativeFutureDurable.png');
}

.project-card.project-rappel .card-media {
  background-image: url('/assets/imgs/rappelanniv.png');
}

.project-card.project-nfeat .card-media {
  background-image: url('/assets/imgs/nfeat.png');
}

.project-card.project-memogenie .card-media {
  background-image: url('/assets/imgs/memogenie.png');
}


.experience-card.experience-dgfp .card-media {
  background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=800&q=80');
}

.experience-card.experience-nfschool .card-media {
  background-image: url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=800&q=80');
}

.experience-card.experience-hdm .card-media {
  background-image: url('https://images.unsplash.com/photo-1485217988980-11786ced9454?auto=format&fit=crop&w=800&q=80');
}

.experience-card.experience-vortys .card-media {
  background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=800&q=80');
}

.card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-header h3 {
  margin: 0.3rem 0;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.card-links a {
  text-decoration: none;
  color: var(--accent-soft);
  font-weight: 600;
}

.link-icon,
.card-links svg,
.panel-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.muted {
  color: var(--text-muted);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.experience-card {
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.experience-card h3 {
  margin-bottom: 0.4rem;
}

.experience-meta {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.experience-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.8rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
}

.section.tools .section-heading {
  margin-bottom: 1.4rem;
}

.tools-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 77, 109, 0.18), rgba(6, 12, 30, 0.95));
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.45), 0 25px 70px rgba(0, 0, 0, 0.65);
}

.tool-card {
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(3, 7, 17, 0.85);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 109, 0.65);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.55);
}

.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tool-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
}

.tool-info span {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--accent-soft);
}

.tool-info a {
  color: #0ec8ff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  white-space: normal;
}

.tool-info a:hover {
  color: var(--accent);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 77, 109, 0.05), rgba(77, 208, 255, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.contact-card {
  border-radius: 36px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, rgba(255, 77, 109, 0.4), rgba(6, 8, 18, 0.95));
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-meta {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244, 255, 255, 0.6);
}

.burger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #f4f5ff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(3, 7, 17, 0.95);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: max-content;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .burger {
    display: flex;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -30px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}



 /* --- Styles FAQ Dropdown (Accordéon - Redesign Moderne) --- */

.faq-wrapper {
  max-width: 800px;
  margin: 2rem auto; /* Marge augmentée pour aérer */
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* Espacement accru entre les cartes */
}

.faq-details {
  /* Arrière-plan sombre plus riche pour un meilleur contraste */
  background: rgba(20, 20, 35, 0.6);
  /* Bordure subtile pour la profondeur */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Ombre douce pour faire ressortir la carte */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 16px; /* Coins plus arrondis */
  overflow: hidden;
  /* Transition fluide */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet au survol (Hover) */
.faq-details:hover {
  background: rgba(30, 30, 50, 0.7);
  border-color: rgba(100, 180, 255, 0.3); /* Légère teinte bleue */
  transform: translateY(-2px); /* Légère élévation */
}

/* Lorsque l'élément est ouvert */
.faq-details[open] {
  background: rgba(30, 35, 55, 0.8);
  border-color: rgba(100, 180, 255, 0.5); /* Bordure bleue plus visible */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Styles du résumé (la question) */
.faq-details summary {
  padding: 1.5rem; /* Padding confortable pour le tactile (Mobile) */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Masquer la puce par défaut */
}

/* Texte de la question */
.faq-details summary span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem; /* Police légèrement plus grande */
  color: #ffffff;
  line-height: 1.4;
}

/* Masquer le marqueur par défaut sur Webkit (Chrome/Safari) */
.faq-details summary::-webkit-details-marker {
  display: none;
}

/* Styles de l'icône flèche */
.faq-icon {
  color: rgba(255, 255, 255, 0.6); /* Couleur initiale discrète */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 24px; /* Empêcher le rétrécissement */
}

/* Rotation et coloration de l'icône à l'ouverture */
.faq-details[open] .faq-icon {
  transform: rotate(180deg);
  color: #64b5f6; /* Bleu ciel actif */
}

/* Styles du contenu (la réponse) */
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem; /* Espace de lecture confortable */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Séparateur très subtil */
  margin-top: -0.5rem; /* Réduire l'espace avec le titre */
}

.faq-answer p {
  color: #b0b0c0; /* Gris bleuté clair pour le confort des yeux */
  line-height: 1.7; /* Meilleur interligne */
  font-size: 1rem;
  margin: 0;
  animation: fadeDown 0.4s ease-out forwards;
}

/* Animation d'apparition */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Optimisations pour Mobile --- */
@media (max-width: 768px) {
  .faq-wrapper {
    margin: 1.5rem auto;
    gap: 1rem;
  }

  .faq-details {
    border-radius: 14px;
  }

  .faq-details summary {
    padding: 1.25rem; /* Ajustement pour petits écrans */
  }

  .faq-details summary span {
    font-size: 1.05rem;
  }

  .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .faq-answer p {
    font-size: 0.95rem; /* Texte légèrement plus petit sur mobile */
  }
}
