body.loading {
  opacity: 0;
}

::selection {
  background: var(--purple);
  color: white;
}

.container {
  position: relative;
  z-index: 10;
}

.section {
  position: relative;
  z-index: 10;
}

.project-page {
  position: relative;
  z-index: 10;
}

.ssh-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.ssh-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.ssh-window {
  width: 90%;
  max-width: 700px;
  background: var(--gray-dark);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.ssh-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-darker);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

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

.ssh-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray);
}

.ssh-dots span:nth-child(1) {
  background: #ff5f56;
}
.ssh-dots span:nth-child(2) {
  background: #ffbd2e;
}
.ssh-dots span:nth-child(3) {
  background: #27c93f;
}

.ssh-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ssh-body {
  padding: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  min-height: 250px;
  color: var(--text-primary);
}

.ssh-line {
  margin-bottom: 6px;
  opacity: 0;
  animation: sshFadeIn 0.1s ease forwards;
}

.ssh-cursor {
  display: inline-block;
  color: var(--purple);
  animation: blink 1s step-end infinite;
}

@keyframes sshFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.section {
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--text-primary);
}

.hero {
  padding-top: 10rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-title {
  font-size: 8rem;
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 2rem;
}

.hero-title span {
  display: block;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-title span:nth-child(1) {
  animation-delay: 0.4s;
}

.hero-title span:nth-child(2) {
  color: var(--purple);
  animation-delay: 0.6s;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--purple);
  color: white;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--purple);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-layout {
  margin-bottom: 5rem;
}

.about-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.about-intro {
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 3rem;
}

.about-intro p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-intro strong {
  color: var(--purple);
  font-weight: 600;
}

.stats-row {
  display: grid;
  gap: 2rem;
}

.stat-box {
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 6rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-5px);
}

.stat-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-text {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tech-section {
  margin-top: 6rem;
}

.tech-heading {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

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

.skill-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-5px);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon img {
  transform: scale(1.1);
}

.skill-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.skill-bar-wrapper {
  width: 100%;
  height: 6px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple));
  border-radius: 10px;
  transition: width 1s ease;
}

.projects-list {
  display: grid;
  gap: 3rem;
}

.project {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.project:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-5px);
}

.project.featured {
  border-color: rgba(124, 58, 237, 0.3);
}

.project-banner {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 350px;
}

.project-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.project-banner .project-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 350px;
}

.project-logo-wrapper {
  position: relative;
}

.atomez-logo {
  border: none !important;
}

.atomez-logo .project-logo {
  border: none !important;
}

.project-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.gmod-logo {
  width: 120px;
  height: 120px;
  border-radius: 10px;
}

.project-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 4px 12px;
  background: var(--purple);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
}

.project-content {
  flex: 1;
}

.project-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.project-description {
  padding: 6px 10px;
  background: rgba(12, 12, 12, 0.644);
  border-radius: 8px;
  border: 1px solid rgba(167, 167, 167, 0.425);
  backdrop-filter: blur(6px);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  padding: 0.4rem 1rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.project-link {
  padding: 0.75rem 1.8rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  text-decoration: none;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.project-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--purple);
  color: white;
  text-decoration: none;
  border: 1px solid var(--purple);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.project-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.project-more-btn:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
}

.project-more-btn:hover svg {
  transform: translateX(4px);
}

.project-actions-icons {
  display: flex;
  gap: 1rem;
}

.project-icon-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-icon-btn svg {
  width: 24px;
  height: 24px;
}

.project-icon-btn:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  transform: translateY(-3px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--purple);
}

.contact-info {
  text-align: left;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  display: block;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 1200px) {
  .hero-title {
    font-size: 6rem;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

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

  .project-logo-wrapper {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

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

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

  .contact-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .lang-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skill-card {
    padding: 1.2rem;
  }

  .project {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .showcase {
    margin-top: 70px;
    padding: 120px 16px 4rem 16px;
  }

  /* on désactive masonry */
  .showcase-container {
    width: 100%;
    max-width: 100%;
    column-count: unset;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 colonnes */
    gap: 12px;
  }

  .showcase-item {
    margin-bottom: 0;
    border-radius: 8px;
  }

  .showcase-item img {
    width: 100%;
    height: 140px; /* 🔥 réduit taille image */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .showcase-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .showcase-item img {
    height: 120px;
  }
}

.project.inactive {
  position: relative;
  pointer-events: none; /* désactive interactions */
}

.project.inactive .project-banner-bg {
  filter: grayscale(80%) blur(7px); /* grisé + flou léger */
}

.project.inactive .project-banner-overlay {
  background: rgba(0, 0, 0, 0.5); /* overlay sombre */
}

.project.inactive .project-name,
.project.inactive .project-description,
.project.inactive .project-tags {
  color: var(--text-tertiary); /* texte grisé */
}

.project.inactive .project-actions-icons,
.project.inactive .project-more-btn {
  opacity: 0.5;
  cursor: not-allowed;
}

.project.inactive .project-more-btn {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.project-more-btn {
  position: relative;
  z-index: 10;
  margin-top: 10px;
}

/* Barre subtile “Fermé” */
.project.inactive::before {
  content: "Fermé";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 6px 0;
  background: rgba(241, 47, 47, 0.2); /* violet très clair transparent */
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: var(--black);
  color: var(--dark);
  font-size: 0.9rem;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
  }
}

/* ===== SECTION CREATIONS ===== */

.projects-cards-section {
  margin-top: 100px;
  padding-top: 2rem;
}

/* titre */
.projects-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

/* grid */
.projects-cards-grid {
  display: grid;
  margin-top: -20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* card */
.project-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.4);
}

/* image */
.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 🔥 force carré */
  object-fit: cover; /* coupe proprement */
  display: block;
}

/* titre */
.project-card h3 {
  padding: 1rem 1rem 0.3rem;
  font-size: 1rem;
  text-align: center;
  color: var(--text-primary);
}

.creation-date {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

/* ===== CARD SLIDER ===== */
.slider-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slider-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.4);
}

/* ===== SLIDER ===== */
.slider-container {
  width: 100%;
  aspect-ratio: 1 / 1; /* 🔥 carré parfait */
  overflow: hidden;
  position: relative;
}

/* track */
.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

/* images */
.slider img {
  min-width: 100%;
  height: 100%;
  object-fit: cover; /* coupe proprement */
  display: block;
}

/* ===== INFO ===== */
.project-info {
  padding: 12px;
  text-align: center;
}

.project-info h2 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.project-info .date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.back-btn-fixed {
  position: fixed;
  top: 115px; /* sous la navbar */
  left: 30px; /* 👈 maintenant à gauche */
  z-index: 2000;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 5px;

  transition: all 0.3s ease;
  text-decoration: none;
}

.back-btn-fixed svg {
  width: 24px;
  height: 24px;
}

.back-btn-fixed:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-2px);
}

/* =========================
   SHOWCASE (MASONRY)
========================= */

.showcase {
  padding-top: 120px;
  padding-bottom: 4rem;
  display: flex;
  justify-content: center;
}

/* container masonry */
.showcase-container {
  max-width: 1200px;
  width: 100%;
  column-count: 3;
  column-gap: 20px;
}

/* item */
.showcase-item {
  border: 1px solid rgba(124, 58, 237, 0.25);
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--black);
  position: relative;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

/* hover */
.showcase-item:hover {
  transform: translateY(-5px);
}

/* image */
.showcase-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================
   VARIANTES (optionnel JS/CSS)
========================= */

/* image plus importante */
.showcase-item.large {
  column-span: all;
}

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

@media (max-width: 900px) {
  .showcase-container {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .showcase-container {
    column-count: 1;
  }
}

.creations-header {
  text-align: center;
  margin-top: 11rem;
  margin-bottom: 1rem; /* 🔥 rapproche des créations */
}

/* =========================
   TERMS PAGE
========================= */

.terms-page {
  padding-top: 140px;
  padding-bottom: 4rem;
}

.terms-container {
  max-width: 900px;
}

.terms-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.terms-date {
  color: var(--text-tertiary);
  margin-bottom: 2.5rem;
}

.terms-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  color: var(--purple);
}

.terms-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.terms-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.terms-accept {
  margin-top: 2rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.terms-btn {
  margin-top: 1.5rem;
}

/* =========================
   PROJECT SELECT PAGE
========================= */

.projects-choice {
  flex: 1;
  min-height: auto;
  padding-top: 140px;
}

.projects-choice-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

  gap: 3rem;
}

.choice-card {
  background: rgba(26, 26, 26, 0.6);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(124, 58, 237, 0.15);

  border-radius: 10px;

  overflow: hidden;

  text-decoration: none;

  transition: all 0.3s ease;
}

.choice-card:hover {
  transform: translateY(-5px);

  border-color: rgba(124, 58, 237, 0.5);
}

.choice-image {
  height: 300px;

  overflow: hidden;
}

.choice-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.choice-card:hover .choice-image img {
  transform: scale(1.05);
}

.choice-content {
  padding: 2.5rem;
}

.choice-content h3 {
  font-size: 2rem;

  color: var(--text-primary);

  margin-bottom: 1rem;
}

.choice-content p {
  color: var(--text-secondary);

  line-height: 1.7;
}

.choice-content span {
  display: block;

  margin-top: 2rem;

  color: var(--purple);

  font-weight: 600;
}

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

  .choice-image {
    height: 220px;
  }
}


/* REALISATION */
.realisation-section {
  padding-top: 150px;
}


/* GRILLES */
.realisation-films,
.realisation-videos {
  display: grid;
  gap: 25px;
}


.realisation-films {
  grid-template-columns: repeat(auto-fit, 220px);
}


.realisation-videos {
  grid-template-columns: repeat(auto-fit, 300px);
}


.realisation-video-title {
  margin-top: 80px;
}


/* CARDS COMMUNES */
.realisation-film-card,
.realisation-video-card {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(26, 26, 26, 0.6);
  transition: transform .35s ease, box-shadow .35s ease;
  text-decoration: none;
  color: white;
}


.realisation-film-card:hover,
.realisation-video-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-10px) scale(1.0);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}


/* IMAGES */
.realisation-film-card img,
.realisation-video-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}


.realisation-film-card img {
  aspect-ratio: 3 / 4;
}


.realisation-video-card img {
  aspect-ratio: 16 / 9;
}


.realisation-film-card:hover img,
.realisation-video-card:hover img {
  transform: scale(1.05);
}


/* TITRES HOVER */
.film-title,
.video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  padding: 25px 10px 15px;

  background: linear-gradient(
    transparent,
    rgba(0,0,0,.85)
  );

  color: white;
  text-align: center;

  font-size: 1rem;
  font-weight: 700;

  opacity: 0;
  transform: translateY(20px);

  transition: .3s ease;
}


.realisation-film-card:hover .film-title,
.realisation-video-card:hover .video-title {
  opacity: 1;
  transform: translateY(0);
}


/* INDISPONIBLE */
.realisation-film-card.unavailable::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}


.unavailable-text {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;
}


.unavailable-text span {
  font-weight: 700;
  font-size: 1rem;
}


.unavailable-text small {
  margin-top: 8px;
  color: #a1a1aa;
  font-size: .8rem;
}

.youtube-hover {
  position: absolute;
  top: 12px;
  left: 12px;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;

  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);

  border-radius: 8px;

  color: white;
  font-size: 0.75rem;
  font-weight: 600;

  opacity: 0;
  transform: translateY(0px);

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.youtube-hover span {
  color: #ff0000;
  font-size: 0.9rem;
  line-height: 1;
}


.realisation-film-card:hover .youtube-hover,
.realisation-video-card:hover .youtube-hover {
  opacity: 1;
  transform: translateY(0);
}