/* ============================================
   IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
  --accent: #a855f7;
  --accent-light: #c084fc;
  --accent-dark: #7c3aed;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --accent-soft: rgba(168, 85, 247, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Night mode */
body.night {
  --bg: #0d0d14;
  --bg-secondary: #13131f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(168, 85, 247, 0.4);
  --text: #f0f0ff;
  --text-muted: rgba(240, 240, 255, 0.5);
  --header-bg: rgba(13, 13, 20, 0.85);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Day mode */
body.day {
  --bg: #f5f3ff;
  --bg-secondary: #ede9fe;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(109, 40, 217, 0.15);
  --border-accent: rgba(168, 85, 247, 0.5);
  --text: #1a0533;
  --text-muted: rgba(26, 5, 51, 0.5);
  --header-bg: rgba(245, 243, 255, 0.85);
  --shadow: 0 8px 40px rgba(124, 58, 237, 0.12);
}

/* ============================================
   BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  min-height: 100vh;
}

body::-webkit-scrollbar {
  width: 4px;
}

body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ============================================
   CANVAS FOND
   ============================================ */
canvas#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* ============================================
   BRUIT DE FOND (grain)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), border-color var(--transition);
}

/* ============================================
   PHOTO DE PROFIL
   ============================================ */
.profile-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-light)) border-box;
  transition: transform var(--transition-bounce), box-shadow var(--transition);
  position: relative;
}

.profile-pic:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 7px 16px;
  border-radius: 100px;
  position: relative;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

nav a:hover {
  color: var(--accent-light);
  background: var(--accent-soft);
}

nav a::after {
  display: none;
}

/* ============================================
   CONTRÔLES
   ============================================ */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.lang-toggle {
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-1px);
}

/* ============================================
   MENU BURGER
   ============================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: var(--accent-soft);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--accent);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--accent);
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 1070px) {
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    padding: 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }

  nav.active {
    display: flex;
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .controls {
    margin-right: 0;
  }
}

/* ============================================
   MODAL LOGIN
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  color: var(--text);
  margin: 8% auto;
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  width: 380px;
  max-width: 95vw;
  box-shadow: var(--shadow), 0 0 60px var(--accent-glow);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: left;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content h2::after {
  display: none;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
  margin-top: -8px;
}

.close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-content label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ============================================
   CHAMPS FORMULAIRE
   ============================================ */
.field {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--bg-card);
  color: inherit;
  margin-bottom: 16px;
  height: 46px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field svg {
  margin-right: 10px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.field input {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
}

/* ============================================
   BOUTON LOGIN
   ============================================ */
.login-btn {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.12));
  opacity: 0;
  transition: opacity var(--transition);
}

.login-btn:hover {
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.login-btn:hover::before {
  opacity: 1;
}

.login-btn:active {
  transform: translateY(0);
}

/* ============================================
   ALERTES
   ============================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-top: 12px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ============================================
   TITRES
   ============================================ */
h1,
h2 {
  font-family: 'Syne', sans-serif;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

h1::after,
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.4s var(--transition);
}

h1:hover::after,
h2:hover::after {
  width: 96px;
}

h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--accent-light);
}

/* ============================================
   SECTIONS
   ============================================ */
#content {
  padding-top: 72px;
}

section {
  min-height: 100vh;
  padding: 100px 60px 70px;
  transition: background var(--transition), color var(--transition);
}

/* ============================================
   SECTION PRÉSENTATION - INFOGRAPHIE
   ============================================ */
#presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#presentation .container {
  width: 100%;
  max-width: 1200px;
}

.infographic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Cercle central */
.central-circle {
  grid-column: 1;
  grid-row: 1 / 5;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.central-circle .circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 40px var(--accent-glow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.arcs-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.central-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.central-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.central-job {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
  line-height: 1.5;
}

/* Options */
.option {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  cursor: pointer;
  z-index: 10;
}

.option-circle {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px; /* Évite que le texte ne touche les bords */
  box-sizing: border-box;
}

.option-circle p {
  font-family: 'Space Grotesk', sans-serif; /* Utilise la même police que votre job title */
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0; /* Supprime les marges par défaut du <p> */
  transition: all var(--transition);
}

/* Effet d'accentuation au survol */
.option:hover .option-circle p {
  color: var(--accent-light);
  transform: scale(1.05);
}

.option-circle::before {
  content: '';
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  top: -5px;
  left: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.3;
  transition: all var(--transition);
}

.option:hover .option-circle::before,
.option-circle.active::before {
  opacity: 1;
  box-shadow: 0 0 16px var(--accent-glow);
}

.option:hover .option-circle {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* On regroupe les sélecteurs correctement */
.option-content1 p,
.option-content2 p,
.option-content3 p,
.option-content4 p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  transition: color var(--transition);
  margin: 0; /* Pour éviter des décalages imprévus */
}

/* On change la couleur quand on survole le parent (.option) */
.option:hover .option-content1 p,
.option:hover .option-content2 p,
.option:hover .option-content3 p,
.option:hover .option-content4 p {
  color: var(--text);
}

/* Connecteurs SVG */
#connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.connector-path {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  opacity: 0.2;
  transition: opacity var(--transition);
}

.connector-path.active {
  opacity: 0.7;
}

#loaderSVG1, #loaderSVG2, #loaderSVG3, #loaderSVG4 {
  opacity: 0.25;
}

@keyframes rotateLoader {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 968px) {
  .infographic {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .central-circle {
    grid-column: 1;
    grid-row: 1;
  }

  #connectors {
    display: none;
  }

  .option {
    justify-content: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 48px 60px 24px;
  transition: background var(--transition), color var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-accent);
}

/* Localisation */
.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-location svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

/* Contact */
.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--accent-light);
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

.footer-social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
}

/* Mentions légales */
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-link {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-legal-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-accent);
  flex-shrink: 0;
}

.footer-legal-link:hover {
  color: var(--accent-light);
}

/* Barre de copyright */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive footer */
@media (max-width: 768px) {
  footer {
    padding: 36px 24px 20px;
  }

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

/* ============================================
   TEXT CARDS
   ============================================ */
.text-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin: 24px auto;
  max-width: 900px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.text-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow), 0 0 32px var(--accent-glow);
  transform: translateY(-3px);
}

.text-card p {
  line-height: 1.8;
  color: var(--text);
  font-size: 0.97rem;
}

.text-card strong {
  color: var(--accent-light);
}

.text-card a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  transition: color var(--transition), border-color var(--transition);
}

.text-card a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Projets & expériences */
.project,
.experience {
  position: relative;
}

.project h3,
.experience h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* Section projets - bouton blog */
#projets>a {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#projets>a button {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#projets>a button:hover {
  box-shadow: 0 8px 28px var(--accent-glow);
  transform: translateY(-2px);
}

.text-card p {
  white-space: pre-line !important;
}

/* ============================================
   CARTES COMPÉTENCES
   ============================================ */

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 130px;
  height: 160px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.skill-card:hover,
.skill-check:checked+.skill-card {
  border-color: var(--border-accent);
  box-shadow: var(--shadow), 0 0 28px var(--accent-glow);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

/* Icône box */
.skill-icon-box {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  transition: all var(--transition);
}

.skill-card:hover .skill-icon-box,
.skill-check:checked+.skill-card .skill-icon-box {
  background: rgba(168, 85, 247, 0.22);
  border-color: var(--accent-light);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Barres dans l'icône */
.skill-bar {
  height: 4px;
  background: var(--border-accent);
  border-radius: 4px;
  transition: background var(--transition);
}

.skill-card:hover .skill-bar,
.skill-check:checked+.skill-card .skill-bar {
  background: var(--accent-light);
}

/* Point indicateur */
.skill-dot {
  position: absolute;
  top: 0;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.skill-card:hover .skill-dot,
.skill-check:checked+.skill-card .skill-dot {
  background: var(--accent);
  border-color: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 6px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 14px var(--accent-glow), 0 0 24px var(--accent-glow);
  }
}

/* Nom */
.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.skill-card:hover .skill-name,
.skill-check:checked+.skill-card .skill-name {
  color: var(--accent-light);
}

/* Sous-titre */
.skill-sub {
  font-size: 0.75rem;
  margin-top: 2px;
  color: var(--text-muted);
  opacity: 0.6;
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity var(--transition);
}

.skill-card:hover .skill-sub,
.skill-check:checked+.skill-card .skill-sub {
  opacity: 1;
}

/* Barre du bas */
.skill-underline {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 4px;
  margin: 0 auto;
  transition: width var(--transition);
}

.skill-card:hover .skill-underline,
.skill-check:checked+.skill-card .skill-underline {
  width: 100%;
}

/* ============================================
   CARTES COMPÉTENCES (flip 3D)
   ============================================ */
.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 0 40px;
}

.card {
  overflow: visible;
  flex: 0 0 auto;
  width: 240px;
  height: 300px;
  perspective: 1000px;
}

.content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  position: relative;
}

.card:hover .content {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* FACE ARRIÈRE */
.back {
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.back::before {
  position: absolute;
  content: '';
  display: block;
  width: 120px;
  height: 180%;
  background: linear-gradient(90deg,
      transparent,
      rgba(168, 85, 247, 0.3),
      rgba(192, 132, 252, 0.5),
      rgba(168, 85, 247, 0.3),
      transparent);
  animation: rotation_481 4000ms infinite linear;
}

.back-content {
  position: absolute;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
  border-radius: calc(var(--radius-lg) - 1px);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 20px;
  text-align: center;
}

.back-content strong {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--accent-light);
  font-family: 'Space Grotesk', sans-serif;
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

/* FACE AVANT */
.front {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg));
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

/* Animation barres */
.img {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 80px;
  justify-content: center;
  margin: 20px auto;
}

.bar {
  width: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: bounce 1.4s infinite ease-in-out;
  opacity: 0.7;
}

#bottom {
  background: var(--accent-light);
  width: 12px;
  animation-delay: -800ms;
}

#right {
  background: var(--accent-dark);
  width: 10px;
  animation-delay: -1800ms;
}

.bar:nth-child(1) {
  animation-delay: 0s;
}

.bar:nth-child(2) {
  animation-delay: 0.2s;
}

.bar:nth-child(3) {
  animation-delay: 0.4s;
}

.bar:nth-child(4) {
  animation-delay: 0.6s;
}

.bar:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes bounce {

  0%,
  100% {
    height: 16px;
  }

  50% {
    height: 70px;
  }
}

/* Zone description front */
.description {
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  padding: 12px;
}

.title {
  font-size: 11px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
}

.title p {
  width: 50%;
}

.front-content>span,
.front-content>strong {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.competence-desc {
  font-size: 12px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: none;
}

/* ============================================
   ICÔNES COMPÉTENCES
   ============================================ */
.skill-icon {
  width: auto;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* ============================================
   SECTION CONTACT
   ============================================ */
#contact .text-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

#contact .text-card p:last-child {
  border-bottom: none;
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ============================================
   SÉLECTION DE TEXTE
   ============================================ */
::selection {
  background: var(--accent-glow);
  color: var(--text);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  section {
    padding: 90px 24px 50px;
  }

  .text-card {
    padding: 20px;
  }

  .card {
    width: 200px;
    height: 260px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 12px 18px;
  }

  .controls {
    gap: 6px;
  }

  .theme-toggle,
  .lang-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }
}