/* =========================================
   GOOGLE FONTS
   (imported via <link> in HTML head)
========================================= */

/* =========================================
   VARIABLES
========================================= */
:root {
  /* Colors */
  --first-color: #5bff6e;
  --first-color-dark: #3ed44f;
  --bg-color: #0d0d0d;
  --bg-card: #141414;
  --bg-card-alt: #1a1a1a;
  --text-color: #ffffff;
  --text-color-muted: #888888;
  --border-color: #2a2a2a;

  /* Font */
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 3.5rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /* Z-index */
  --z-fixed: 100;
  --z-tooltip: 10;
}

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

html {
  scroll-behavior: smooth;
}

/* Le header est fixe (4.5rem) : on décale la cible des ancres pour que
   le titre de section ne passe pas dessous. */
section[id] {
  scroll-margin-top: 5.5rem;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}

/* Accessibility: visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   REUSABLE CLASSES
========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 3rem;
}

/* Variante alignée à gauche (ex. titre "About Me") — remplace l'ancien
   style inline text-align:left dans le HTML. */
.section__title--left {
  text-align: left;
}

.section__title span {
  color: var(--first-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  outline: none;
}

.btn--primary {
  background-color: var(--first-color);
  color: var(--bg-color);
}

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

.btn--outline {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn--outline:hover {
  border-color: var(--first-color);
  color: var(--first-color);
}

/* =========================================
   HEADER & NAV
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scroll-header {
  background: rgba(13, 13, 13, 0.98);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: var(--font-bold);
  color: var(--text-color);
  letter-spacing: 0.02em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 5rem;
}

/* Lien Contact réservé au menu mobile (en desktop, le CTA .btn--nav le remplace) */
.nav__item--mobile {
  display: none;
}

.nav__link {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  font-weight: var(--font-medium);
  transition: color 0.3s;
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--text-color);
}

.nav__link.active-link::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--first-color);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn--nav {
  background-color: var(--first-color);
  color: var(--bg-color);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  transition: background 0.3s, transform 0.3s;
}

.btn--nav:hover {
  background-color: var(--first-color-dark);
  transform: translateY(-2px);
}

/* Bouton CV (contour) — reste visible en desktop ET en mobile,
   contrairement à .btn--nav qui est masqué < 768px. */
.btn--nav-cv {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.btn--nav-cv:hover {
  border-color: var(--first-color);
  color: var(--first-color);
  transform: translateY(-2px);
}

/* Bouton de switch de langue (FR / EN) — visible desktop + mobile */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 50px;
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.nav__lang:hover {
  border-color: var(--first-color);
  color: var(--first-color);
}

.nav__lang i {
  font-size: 1.05rem;
}

.nav__lang-code {
  letter-spacing: 0.03em;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  background: transparent;
  border: none;
}

.nav__close {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* ----- Responsive Nav ----- */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-card);
    padding: 5rem 2rem;
    transition: right 0.4s;
    z-index: var(--z-fixed);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__item--mobile {
    display: block;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }

  .nav__toggle {
    display: block;
  }

  .btn--nav {
    display: none;
  }
}

/* =========================================
   HOME
========================================= */
.home {
  position: relative;
  overflow: hidden;
  padding-top: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Decorative blobs */
.home__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.home__blob--1 {
  width: 350px;
  height: 350px;
  background: var(--first-color);
  top: -100px;
  left: -100px;
}

.home__blob--2 {
  width: 300px;
  height: 300px;
  background: var(--first-color);
  bottom: 10%;
  right: 5%;
}

.home__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.home__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* Nom + prénom mis en avant dans le sous-titre : plus grands et en blanc. */
.home__name {
  font-size: 1.3rem;
  font-weight: var(--font-bold);
  color: var(--text-color);
  letter-spacing: 0;
}

.home__title {
  font-size: 2.8rem;
  font-weight: var(--font-extra-bold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home__typed {
  color: var(--first-color);
}

.home__description {
  font-size: var(--normal-font-size);
  color: var(--text-color-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Image + backdrop card */
.home__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__img-backdrop {
  position: absolute;
  width: 380px;
  height: 440px;
  background: linear-gradient(180deg, var(--first-color), rgba(91, 255, 110, 0.3));
  border-radius: 20px;
  transform: rotate(-6deg);
  z-index: 0;
  top: 0;
  left: 50%;
  margin-left: -190px;
}

.home__img-wrapper {
  position: relative;
  z-index: 1;
  width: 380px;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--first-color);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

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

/* ----- Responsive Home ----- */
@media (max-width: 768px) {
  .home__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .home__description {
    margin: 0 auto 2rem;
  }

  .home__image {
    order: -1;
  }

  .home__img-wrapper {
    width: 280px;
    height: 320px;
  }

  .home__img-backdrop {
    width: 280px;
    height: 320px;
    margin-left: -140px;
  }
}

/* =========================================
   ABOUT
========================================= */
.about__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.about__description {
  color: var(--text-color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about__description strong {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
}

.about__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}

.about__box:hover {
  border-color: var(--first-color);
  transform: translateX(6px);
}

.about__box-icon {
  font-size: 2rem;
  color: var(--first-color);
  min-width: 2rem;
}

.about__box-title {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--text-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about__box-text {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  line-height: 1.4;
}

/* ----- Responsive About ----- */
@media (max-width: 768px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about__box {
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    text-align: center;
  }

  .about__box:hover {
    transform: translateY(-4px);
  }
}

/* =========================================
   WORKS
========================================= */
.works__card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.works__card:hover {
  border-color: var(--first-color);
  box-shadow: 0 0 0 1px var(--first-color);
}

.works__img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-card-alt);
  flex-shrink: 0;
  border-radius: 19px 19px 0 0;
}

.works__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.works__card:hover .works__img {
  transform: scale(1.05);
}

.works__link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  background: var(--first-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--bg-color);
  opacity: 0;
  transition: opacity 0.3s;
}

.works__card:hover .works__link,
.works__card:focus-within .works__link,
.works__link:focus-visible {
  opacity: 1;
}

/* Appareils sans survol (mobile / tablette) : le lien reste toujours visible */
@media (hover: none) {
  .works__link {
    opacity: 1;
  }
}

.works__info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.works__num {
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-bold);
  letter-spacing: 0.1em;
}

.works__title {
  font-size: 1.1rem;
  font-weight: var(--font-semi-bold);
  margin: 0.5rem 0 0.75rem;
  color: var(--text-color);
}

.works__description {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.works__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.works__tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: var(--bg-card-alt);
  color: var(--text-color-muted);
  border: 1px solid var(--border-color);
}

/* Swiper */
/* Anti-flash (FOUC) : le carrousel reste masqué tant que Swiper n'a pas été
   initialisé (classe .is-ready ajoutée par le JS). Évite d'afficher une carte
   pleine largeur pendant une fraction de seconde au chargement. */
.works-swiper {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.works-swiper.is-ready {
  opacity: 1;
}

.works-swiper .swiper-wrapper {
  align-items: stretch;
}

.works-swiper .swiper-slide {
  height: auto;
}

.works-pagination {
  margin-top: 2rem;
  position: relative !important;
  bottom: auto !important;
}

.works-pagination .swiper-pagination-bullet {
  background: var(--text-color-muted);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all 0.3s;
}

.works-pagination .swiper-pagination-bullet-active {
  background: var(--first-color);
  width: 24px;
  border-radius: 4px;
}

/* ----- Responsive Works ----- */
@media (max-width: 768px) {
  .works__img-wrapper {
    height: 200px;
  }
}

/* =========================================
   SERVICES
========================================= */
.services__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services__item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.services__item.active {
  border-color: var(--first-color);
}

.services__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
}

.services__icon-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.services__icon {
  font-size: 1.75rem;
  color: var(--first-color);
}

.services__title {
  font-size: 1.05rem;
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
}

.services__toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.services__item.active .services__toggle {
  background: var(--first-color);
  border-color: var(--first-color);
  color: var(--bg-color);
  transform: rotate(45deg);
}

.services__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.5rem;
}

.services__item.active .services__content {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.services__description {
  color: var(--text-color-muted);
  font-size: var(--small-font-size);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.services__tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  color: var(--text-color-muted);
  background: var(--bg-card-alt);
  transition: all 0.2s;
}

.services__item.active .services__tag {
  border-color: var(--first-color);
  color: var(--first-color);
}

/* =========================================
   APPROACH (alternative to Services — disabled in HTML)
========================================= */
.approach__subtitle {
  text-align: center;
  color: var(--text-color-muted);
  font-size: var(--small-font-size);
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.approach__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach__step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.approach__step:last-child {
  border-bottom: none;
}

.approach__number {
  font-size: 2rem;
  font-weight: var(--font-extra-bold);
  color: var(--first-color);
  min-width: 60px;
  opacity: 0.5;
}

.approach__title {
  font-size: 1.1rem;
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.approach__desc {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  line-height: 1.8;
}

/* ----- Responsive Approach ----- */
@media (max-width: 768px) {
  .approach__step {
    gap: 1rem;
  }

  .approach__number {
    font-size: 1.5rem;
    min-width: 40px;
  }
}

/* =========================================
   SKILLS
========================================= */
.skills__subtitle {
  text-align: center;
  color: var(--text-color-muted);
  font-size: var(--small-font-size);
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.skills__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skills__card {
  background: radial-gradient(circle at 30% 30%, rgba(91, 255, 110, 0.1), var(--bg-card) 70%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.skills__card:hover {
  border-color: var(--first-color);
}

.skills__card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.skills__card-icon {
  font-size: 1.75rem;
  color: var(--first-color);
}

.skills__card-title {
  font-size: 1rem;
  font-weight: var(--font-bold);
  color: var(--text-color);
}

.skills__items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.skills__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-color-muted);
  transition: transform 0.2s, color 0.2s;
}

.skills__item:hover {
  transform: translateY(-3px);
  color: var(--first-color);
}

.skills__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.skills__icon-ri {
  font-size: 2.25rem;
  color: var(--first-color);
}

.skills__card--wide {
  grid-column: 1 / -1;
}

.skills__card--wide .skills__items {
  justify-content: center;
  gap: 3rem;
}

@media (max-width: 900px) {
  .skills__card--wide {
    grid-column: 1 / -1;
  }
}

/* ----- Responsive Skills ----- */
@media (max-width: 900px) {
  .skills__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* =========================================
   EXPERIENCE & EDUCATION
========================================= */
.experience__tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.experience__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color-muted);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.3s;
}

.experience__tab:hover {
  border-color: var(--first-color);
  color: var(--first-color);
}

.experience__tab.active-tab {
  background: var(--first-color);
  border-color: var(--first-color);
  color: var(--bg-color);
  font-weight: var(--font-semi-bold);
}

.experience__content {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}

.experience__content.active-content {
  display: block;
}

.experience__content.active-content .timeline__item {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Timeline */
.timeline {
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline__item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -3rem;
  width: 1px;
  background: var(--border-color);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline__item:last-child::after {
  display: none;
}

.timeline__left {
  text-align: right;
  padding-top: 0.25rem;
}

.timeline__title {
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
  margin-bottom: 0.35rem;
}

.timeline__company {
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
}

/* Période du stage (mois → mois), petite ligne discrète sous l'entreprise */
.timeline__period {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-color-muted);
}

.timeline__date {
  font-size: 1.25rem;
  font-weight: var(--font-extra-bold);
  color: var(--first-color);
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--bg-color);
  padding: 0.25rem 0;
}

.timeline__right {
  padding-top: 0.25rem;
}

.timeline__desc {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  line-height: 1.8;
}

/* ----- Responsive Experience ----- */
@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
  }

  .timeline__item::after {
    display: none;
  }

  .timeline__left {
    text-align: left;
  }

  .timeline__date {
    font-size: 1rem;
    text-align: left;
    background: transparent;
  }
}

/* =========================================
   CONTACT
========================================= */
#contact {
  position: relative;
  padding-bottom: 4rem;
  background: var(--bg-color);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact__input-group {
  margin-bottom: 1.25rem;
}

.contact__input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  outline: none;
  transition: border-color 0.3s;
}

.contact__input:focus {
  border-color: var(--first-color);
}

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

.contact__textarea {
  resize: none;
}

.contact__btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact__status {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--first-color);
  min-height: 1.5rem;
}

/* Info cards */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.contact__info-card:hover {
  border-color: var(--first-color);
  transform: translateX(6px);
}

.contact__info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__info-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.contact__info-label {
  font-size: 0.75rem;
  color: var(--text-color-muted);
  margin-bottom: 0.2rem;
}

.contact__info-value {
  font-size: var(--small-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.contact__info-arrow {
  font-size: 1.1rem;
  color: var(--text-color-muted);
  transition: color 0.3s;
}

.contact__info-card:hover .contact__info-arrow {
  color: var(--first-color);
}

/* ----- Responsive Contact ----- */
@media (max-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   FOOTER
========================================= */
.footer {
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(
    ellipse 50% 100% at 50% 100%,
    rgba(91, 255, 110, 0.185) 0%,
    rgba(91, 255, 110, 0.062) 45%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 1;
  margin-bottom: 6rem;
}

.footer__tagline {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: var(--font-extra-bold);
  color: var(--text-color);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  margin-right: 4rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: var(--small-font-size);
  color: var(--text-color-muted);
  transition: color 0.3s;
}

.footer__links--wide {
  gap: 3rem;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-color-muted);
  transition: all 0.3s;
}

.footer__social:hover {
  border-color: var(--first-color);
  color: var(--first-color);
}

.footer__bottom {
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-color-muted);
}

/* ----- Responsive Footer ----- */
@media (max-width: 900px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__right {
    align-items: flex-start;
    width: 100%;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .footer__tagline {
    font-size: 1.25rem;
  }
}

/* =========================================
   SCROLL UP
========================================= */
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -50%;
  width: 44px;
  height: 44px;
  background: var(--first-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bg-color);
  transition: bottom 0.4s, transform 0.3s;
  z-index: var(--z-tooltip);
}

.scrollup:hover {
  transform: translateY(-4px);
}

.scrollup.show-scroll {
  bottom: 2rem;
}

/* Fix ScrollReveal + Swiper conflict on Works cards */
.swiper-slide .works__card {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

/* =========================================
   HONEYPOT (anti-spam)
   Champ piège pour les bots : hors écran, non focusable, ignoré par les
   lecteurs d'écran. Volontairement PAS en display:none (certains bots
   ignorent les champs display:none).
========================================= */
.contact__hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}