/* ============================================
   BENTO FULLSCREEN — BASTIEN AULNEY
   ============================================ */

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

:root {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --surface-3: #202028;
  --border: rgba(255, 255, 255, 0.06);
  --border-h: rgba(255, 255, 255, 0.13);
  --accent: #c4956d;
  --accent-dim: rgba(196, 149, 109, 0.12);
  --accent-glow: rgba(196, 149, 109, 0.25);
  --text: #ffffff;
  --text-muted: #d3d3d3;
  --text-faint: #b7b7b7;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 11px;
  --gap: 10px;
  --header-h: 54px;
  --header-bg: rgba(12, 12, 14, 0.85);
  --footer-bg: transparent;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  cursor: auto;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.cursor-custom,
body.cursor-custom a,
body.cursor-custom button,
body.cursor-custom .carte-cliquable,
body.cursor-custom .lien-social,
body.cursor-custom .bouton-contact,
body.cursor-custom .badge-tech {
  cursor: none;
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      120% 90% at 50% 18%,
      rgba(196, 149, 109, 0.16) 0%,
      rgba(12, 12, 14, 0) 58%
    ),
    linear-gradient(155deg, #070709 0%, #0d0d11 55%, #060608 100%);
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.68rem;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
}

.intro.is-playing .intro-content {
  animation: intro-content-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.05s
    forwards;
}

.intro-etiquette {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro-nom {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.4rem, 10vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-align: center;
  text-transform: uppercase;
  color: #f2f2f3;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

.intro-metier {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234, 234, 236, 0.55);
}

.intro.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

@keyframes intro-content-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.site-preload .entete,
.site-preload .bento-conteneur {
  opacity: 0;
  transform: translateY(12px);
}

.entete,
.bento-conteneur {
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease;
}

body.site-ready .entete,
body.site-ready .bento-conteneur {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CURSEUR
   ============================================ */
.curseur-point {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    width 0.2s ease,
    height 0.2s ease;
}

.curseur-contour {
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(196, 149, 109, 0.55);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.curseur-contour.large {
  width: 52px;
  height: 52px;
  border-color: rgba(196, 149, 109, 0.9);
}

.curseur-contour.texte {
  width: 70px;
  height: 70px;
  border-color: rgba(196, 149, 109, 0.4);
  background: rgba(196, 149, 109, 0.05);
}

/* ============================================
   HEADER
   ============================================ */
.entete {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.entete-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entete-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.entete-logo .dot {
  color: var(--accent);
  font-size: 0.55rem;
  margin-left: 2px;
  vertical-align: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   BENTO GRILLE
   ============================================ */
.bento-conteneur {
  position: fixed;
  top: calc(var(--header-h) + var(--gap));
  left: 4px;
  right: 4px;
  height: calc(100vh - var(--header-h) - (var(--gap) * 2));
  max-width: 1650px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1.52fr 1.34fr 1.34fr;
  grid-template-rows: 0.94fr 1.12fr 0.86fr 0.82fr;
  grid-template-areas:
    "profil  apropos     statut"
    "profil  proj1       langues"
    "stack   formation   competences"
    "contact contact     contact";
}

/* ============================================
   CARTE — BASE
   ============================================ */
.carte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.02rem;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.carte::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px circle at var(--mx, -99999px) var(--my, -99999px),
    rgba(196, 149, 109, 0.09) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.carte:hover {
  border-color: var(--border-h);
}
.carte:hover::before {
  opacity: 1;
}
.carte > * {
  position: relative;
  z-index: 1;
}
.carte a,
.pied a {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.carte-cliquable {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.carte-action-hint {
  margin-top: 0.65rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.carte-modal-trigger:hover .carte-action-hint {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   MODALES
   ============================================ */
.modal-fenetre {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-fenetre.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.62);
  backdrop-filter: blur(6px);
}

.modal-contenu {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.modal-fermer {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
}

.modal-titre {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.modal-description {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.projets-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.4rem;
}

.carousel-viewport {
  min-width: 0;
}

.carousel-slide {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.carousel-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.carousel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-index {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.3rem 0.52rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.carousel-contenu {
  display: grid;
  gap: 0.45rem;
}

.carousel-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.carousel-titre-projet {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
}

.carousel-desc-projet {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.carousel-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.carousel-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.carousel-nav:hover {
  transform: scale(1.05);
  border-color: var(--border-h);
  background: var(--surface-3);
}

.carousel-nav:active {
  transform: scale(0.98);
}

.carousel-nav:focus-visible,
.carousel-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.modal-passion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.modal-passion-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
}

.modal-passion-item h3 {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.modal-passion-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-passion-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-bottom: 0.45rem;
}

.modal-competence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.modal-competence-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
}

.modal-competence-item h3 {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.modal-competence-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
       CARTE LANGUES
       ============================================ */
.carte-langues {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.langues-liste {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.langue-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 0.68rem 0.75rem;
}

.langue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.langue-flag-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.langue-drapeau {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.langue-texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.langue-nom {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.langue-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.12rem;
}

.langue-niveau-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.langue-natif {
  background: rgba(196, 149, 109, 0.1);
  border: 1px solid rgba(196, 149, 109, 0.22);
  color: var(--accent);
}

.langue-b2 {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
}

.langue-debutant {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.carte-langues .carte-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.carte-langues img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}

/* ============================================
   PLACEMENT GRILLE
   ============================================ */
.carte-profil {
  grid-area: profil;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.carte-apropos {
  grid-area: apropos;
}
.carte-passions {
  grid-area: statut;
}
.carte-formation {
  grid-area: formation;
  display: flex;
  flex-direction: column;
}
.carte-langues {
  grid-area: langues;
  display: flex;
  flex-direction: column;
}
.carte-stack {
  grid-area: stack;
  display: flex;
  flex-direction: column;
}
.carte-competences {
  grid-area: competences;
  display: flex;
  flex-direction: column;
}
.carte-projet {
  grid-area: proj1;
}
.carte-contact {
  grid-area: contact;
}

/* ============================================
   CARTE STATUT-STATS
   ============================================ */
.carte-passions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.55rem;
}

.statut-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
}

.profil-nom {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}

.profil-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profil-lieu {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.profil-socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lien-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.lien-social svg {
  flex-shrink: 0;
}

.lien-social:hover {
  background: var(--surface-3);
  border-color: var(--border-h);
  transform: translateY(-3px) scale(1.05);
}

.lien-social-accent {
  background: var(--accent-dim);
  border-color: rgba(196, 149, 109, 0.25);
  color: var(--accent);
}

.lien-social-accent:hover {
  background: rgba(196, 149, 109, 0.22);
  border-color: rgba(196, 149, 109, 0.5);
}

/* ============================================
   CARTE À PROPOS
   ============================================ */
.carte-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.carte-apropos {
  display: flex;
  flex-direction: column;
}

.carte-desc {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.carte-desc strong {
  color: var(--text);
  font-weight: 600;
}

.apropos-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag:hover {
  border-color: var(--border-h);
  color: var(--text);
  transform: scale(1.08);
}

.tag img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.statut-texte {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.statut-titre {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   CARTE STACK
   ============================================ */
.carte-stack {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.carte-stack .pile-categories {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 149, 109, 0.28) transparent;
}

.carte-stack .pile-categories::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.carte-stack .pile-categories::-webkit-scrollbar-track {
  background: transparent;
}

.carte-stack .pile-categories::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), rgba(212, 165, 120, 0.85));
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.18) inset;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.carte-stack .pile-categories:hover::-webkit-scrollbar {
  width: 8px;
}

.carte-stack .pile-categories:hover::-webkit-scrollbar-thumb {
  filter: brightness(1.05);
}

.carte-stack .pile-categories:hover {
  scrollbar-color: rgba(212, 165, 120, 0.95) transparent;
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.badge-tech:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
  transform: translateY(-4px) scale(1.06);
}

.badge-tech img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ============================================
   CARTE COMPETENCES
   ============================================ */
.carte-competences {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.competences-highlight {
  margin-bottom: 0.25rem;
}

.carte-competences .carte-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.carte-langues {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.carte-langues .carte-desc {
  font-size: 0.74rem;
  line-height: 1.55;
}

/* ============================================
   CARTE PASSIONS
   ============================================ */
.carte-passions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.carte-passions .liste-passions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.carte-passions .item-passion {
  min-width: 0;
  flex: initial;
  padding: 0.38rem 0.52rem;
  font-size: 0.66rem;
}

.liste-passions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.item-passion {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: calc(50% - 0.2rem);
  flex: 1 1 calc(50% - 0.2rem);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item-passion:hover {
  border-color: var(--border-h);
  color: var(--text);
  background: var(--surface-3);
  transform: scale(1.04);
}

.item-passion img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ============================================
   CARTE PROJET
   ============================================ */
.carte-projet {
  display: flex;
  flex-direction: column;
}

.projet-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 122px;
  flex-shrink: 0;
  background: var(--surface-2);
  margin-bottom: 0.7rem;
  position: relative;
}

.projet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carte-cliquable:hover .projet-img img {
  transform: scale(1.07);
}

.projet-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.7) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carte-cliquable:hover .projet-img::after {
  opacity: 1;
}

.projet-contenu {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.projet-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.projet-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.projet-lien {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-content: center;
}

.projet-lien svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carte-cliquable:hover .projet-lien svg {
  transform: translateX(3px);
}

/* ============================================
   CARTE CONTACT
   ============================================ */
.carte-contact {
  display: flex;
  flex-direction: column;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 30% 80%,
    rgba(196, 149, 109, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.contact-contenu {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.28rem;
}

.contact-titre {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.contact-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

.bouton-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 0.44rem 0.9rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.2s;
  cursor: pointer;
  align-self: flex-start;
}

.bouton-contact:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 36px rgba(196, 149, 109, 0.35);
  background: #d4a578;
}

.contact-socials {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contact-social-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-social-lien:hover {
  color: var(--text);
  border-color: var(--border-h);
  background: var(--surface-3);
  transform: translateY(-2px);
}
/* ============================================
   PROFIL
   ============================================ */
.profil-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 85% 15%,
    rgba(196, 149, 109, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.profil-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profil-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}
.profil-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.1);
}
.pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.4);
  animation: pulse-annel 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-annel {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}
.profil-badge-dispo {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--green);
  padding: 0.34rem 0.78rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.profil-nom {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.profil-role {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}
.profil-role-sep {
  color: var(--accent);
  margin: 0 0.15rem;
}
.profil-lieu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.profil-lieu svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.6;
}
.profil-bio {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
  flex: 1;
}
.profil-divider {
  height: 1px;
  background: var(--border);
}

/* ============================================
   STATUT
   ============================================ */
.statut-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
}
.statut-dot-anime {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.statut-titre {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

/* ============================================
   STACK — catégories
   ============================================ */
.pile-categories {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.pile-titre {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.55rem;
}
.pile-groupe {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ============================================
   CARTE FORMATION
   ============================================ */
.formation-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--border);
  margin-left: 0.4rem;
  flex: 1;
  justify-content: space-around;
}
.formation-item {
  display: flex;
  gap: 0.8rem;
}
.formation-marqueur {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.28rem;
  margin-left: -1.1rem;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.formation-marqueur-sm {
  width: 8px;
  height: 8px;
  background: var(--surface-3);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.32rem;
  margin-left: -1rem;
  border: 2px solid var(--border-h);
}
.formation-contenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.formation-periode {
  font-size: 0.61rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.formation-titre {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.formation-lieu {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.formation-lieu a{
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.carte:nth-child(3) {
  animation-delay: 0.14s;
}
.carte:nth-child(4) {
  animation-delay: 0.19s;
}
.carte:nth-child(5) {
  animation-delay: 0.23s;
}
.carte:nth-child(6) {
  animation-delay: 0.28s;
}
.carte:nth-child(7) {
  animation-delay: 0.32s;
}
.carte:nth-child(8) {
  animation-delay: 0.37s;
}
.carte:nth-child(9) {
  animation-delay: 0.41s;
}
.carte:nth-child(10) {
  animation-delay: 0.45s;
}
.carte:nth-child(11) {
  animation-delay: 0.49s;
}
.carte:nth-child(12) {
  animation-delay: 0.53s;
}
.carte:nth-child(13) {
  animation-delay: 0.57s;
}

/* ============================================
   RESPONSIVE — TABLETTE (≤1100px)
   ============================================ */
@media (max-width: 1100px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .bento-conteneur {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    padding: calc(var(--header-h) + var(--gap)) 0 var(--gap);
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "profil      apropos"
      "profil      statut"
      "proj1       langues"
      "formation   competences"
      "stack       stack"
      "contact     contact";
  }

  .carte-contact {
    min-height: 0;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤720px)
   ============================================ */
@media (max-width: 720px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }
  body {
    cursor: auto;
  }
  .curseur-point,
  .curseur-contour {
    display: none;
  }

  .bento-conteneur {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    padding: calc(var(--header-h) + var(--gap)) 0 var(--gap);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "profil      profil"
      "apropos     statut"
      "formation   langues"
      "competences competences"
      "stack       stack"
      "proj1       proj1"
      "contact     contact";
  }

  .profil-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .profil-socials {
    justify-content: flex-start;
  }
  .profil-nom {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .item-passion {
    min-width: 100%;
    flex-basis: 100%;
  }

  .carte-passions .liste-passions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-contenu {
    width: 100%;
    padding: 1rem 0.9rem;
  }

  .modal-passion-grid {
    grid-template-columns: 1fr;
  }

  .modal-competence-grid {
    grid-template-columns: 1fr;
  }

  .langue-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .langue-niveau-tag {
    align-self: flex-start;
  }
}

@media (max-width: 420px) {
  .bento-conteneur {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profil" "apropos" "statut"
      "formation" "langues" "competences"
      "stack" "proj1"
      "contact";
  }

  .carte-passions .liste-passions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .intro-etiquette {
    letter-spacing: 0.24em;
    font-size: 0.58rem;
  }
  .intro-metier {
    letter-spacing: 0.1em;
    font-size: 0.72rem;
  }
}

@media (max-height: 820px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .bento-conteneur {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    padding: calc(var(--header-h) + var(--gap)) 0 var(--gap);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .carte {
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
  body {
    cursor: auto;
  }
  .curseur-point,
  .curseur-contour {
    display: none;
  }
  .intro {
    display: none;
  }
}
