.floating-croissant {
  position: fixed;
  width: 120px;
  height: auto;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  animation: drift 25s ease-in-out infinite;
}

body.dark .floating-croissant {
  opacity: 1;
}

@keyframes drift {
  0% {
    top: 15%;
    left: 10%;
    transform: rotate(0deg);
  }

  25% {
    top: 40%;
    left: 15%;
    transform: rotate(15deg);
  }

  50% {
    top: 70%;
    left: 8%;
    transform: rotate(-10deg);
  }

  75% {
    top: 45%;
    left: 5%;
    transform: rotate(20deg);
  }

  100% {
    top: 15%;
    left: 10%;
    transform: rotate(0deg);
  }
}

@media (max-width: 768px) {
  .floating-croissant {
    display: none;
  }
}

:root {
  --bg-page: #f7f7f7;
  --bg-card: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
  --border: rgba(0, 0, 0, 0.06);
  --bg-badge: #f7f7f7;
  --text-badge: #111111;
  --accent-color: rgba(0, 119, 235, 1);
}

body.dark {
  --bg-page: #0b0b0c;
  --bg-card: #121214;
  --text-main: #f5f5f5;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.08);
  --bg-badge: #0b0b0c;
  --text-badge: rgba(0, 119, 235, 1);


}

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

body {
  background: var(--bg-page);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 104px 0px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  transition:
    background 0.5s ease-in-out,
    color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 104px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

p {
  line-height: 1.5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 580px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding: 16px !important;
  }
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.project-card p,
.info-card p,
.skill-item p,
.project-card-metal p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.grid {
  display: grid;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cluster {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.flow {
  display: flex;
  flex-direction: column;
}

.flow--8 {
  gap: 8px;
}

.flow--12 {
  gap: 8px;
}

.flow--16 {
  gap: 16px;
}

.flow--24 {
  gap: 24px;
}

.flow--32 {
  gap: 32px;
}

@media (max-width: 768px) {
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}


@media (max-width: 580px) {
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .info-card {
    flex-direction: column !important;
  }

  .grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.flow--space-between {
  justify-content: space-between;
}

.button-primary {
  padding: 0 16px;
  width: fit-content;
  color: white;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--accent-color);
  font-size: 0.9rem;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.button-secondary {
  padding: 0 16px;
  width: fit-content;
  color: var(--accent-color);
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--accent-color);
  border-radius: 16px;
  font-size: 0.9rem;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.button-primary {
  border-color: var(--accent-color);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.button-primary:hover .cta-download,
.button-secondary:hover .cta-download {
  transform: translateY(2px);
}

.button-primary:hover .cta-arrow,
.button-secondary:hover .cta-arrow {
  transform: translate(2px, -2px);
}

.cta-download {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.badge-primary {
  background-color: var(--accent-color);
  color: white;
  width: fit-content;
  border-radius: 12px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  font-size: 0.875rem;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.pill-selector {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 99px;
  display: flex;
  gap: 2px;
}

.pill-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-btn:hover {
  color: var(--text-main);
}

.pill-btn.active {
  background-color: var(--text-main);
  color: var(--bg-card);
}

.mode-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 99px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-btn:hover {
  transform: scale(1.05);
  border-color: var(--text-main);
}

.mode-btn svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s;
}

body.dark .sun-icon {
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
}

body:not(.dark) .moon-icon {
  transform: rotate(-45deg);
  opacity: 0;
  pointer-events: none;
}

.info-card {
  background-color: var(--bg-card);
  display: flex;
  flex-direction: row;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.2s ease;
  padding-top: 32px;

}


.info-card:not(:last-child) {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border)
}

.logo-card {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background-color: var(--bg-page);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.language-card {
  width: 100%;
  height: auto;
  background-color: var(--bg-page);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.language-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture {
  width: 128px;
  height: 128px;
  min-width: 128px;
  background-color: var(--bg-page);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.location-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.location-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.skill-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.project-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  /* Votre vert #00dfa2 */
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-media-wrapper {
  width: 100%;
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-view {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mockup-scrollbox {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s ease;
}

body.dark .mockup-scrollbox {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mockup-navbar {
  background-color: var(--bg-page);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: relative;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots .dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-muted);
  opacity: 0.25;
  border-radius: 50%;
}

.mockup-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  font-family: monospace;
  letter-spacing: -0.01em;
}

.scrollbox-view {
  width: 100%;
  height: 800px;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (max-width: 1280px) {
  .scrollbox-view {
    height: 500px;
  }
}


.scrollbox-view::-webkit-scrollbar {
  display: none;
}

.scrollbox-img {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-dual-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.mockup-scrollbox.is-desktop {
  flex: 2;
}

.mockup-scrollbox.is-mobile {
  flex: 1;
  max-width: 240px;
}

.mockup-scrollbox.is-mobile-multiple {
  flex: 1;
}

.mockup-scrollbox.is-mobile-multiple .scrollbox-view {
  height: 652px;
}

@media (max-width: 1280px) {
  .mockup-scrollbox.is-mobile-multiple .scrollbox-view {
    height: 356px;
  }
}

@media (max-width: 640px) {
  .mockup-dual-container {
    flex-direction: column;
    align-items: center;
  }

  .mockup-scrollbox.is-mobile {
    max-width: 100%;
  }
}

.pop-out {
  align-self: center;
  width: 1280px;
}

.pop-out .ux-dual-scroll-group {
  gap: 24px;
}

@media (max-width: 1280px) {
  .pop-out {
    width: 100%;
  }
}

.btn-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--accent);
}

.zoomable-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoomable-img:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Effet de rebond fluide */
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.project-card-metal {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.card-header-metal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.dark .project-card-metal {
  border-color: rgba(255, 255, 255, 0.05);
  background-color: #121214;
}

.project-card-metal:hover {
  transform: translateY(-2px);
}

.project-card-metal:hover {
  border-color: var(--accent-color);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

body.dark .project-card-metal:hover {
  background-color: #161619;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.4),
    0 12px 40px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.6);
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
}

.cta-arrow {
  width: 11px;
  height: 11px;
  color: var(--accent-color);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.project-card-metal:hover .cta-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-color);
}


.contact-grid-metal {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.badge-contact {
  --project-color: var(--accent-color) !important;
}

.accent-color {
  color: var(--accent-color);
  ;
}