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

:root {
  --primary: #e63946;
  --dark: #0d0d0d;
  --light: #f1faee;
  --gray: #6b6b6b;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--light);
}

/* NAV */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a,
.nav__links button {
  color: var(--light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 400;
}

.nav__links a:hover,
.nav__links button:hover {
  color: var(--gray);
}

/* SECTIONS */
.section {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section p, .section a {
  color: var(--gray);
  line-height: 1.8;
}

/* SECTION APPS - pleine largeur */
#apps {
  max-width: 100%;
  padding: 2rem 3rem 5rem 3rem;
}

#apps h2 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 2rem;
  color: var(--primary);
}

/* APPS GRID */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  isolation: isolate;
}

@media (min-width: 600px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-card {
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color 0.3s;
  text-decoration: none;
  display: block;
  z-index: 1;
}

.app-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
  z-index: 0;
}

.app-card:hover .app-card__bg {
  transform: scale(1.07);
}

.app-card:hover {
  border-color: #2a2a2a;
}

.app-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.app-card img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card__text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.25rem;
}

.app-card__text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}

.loading {
  color: var(--gray);
  font-style: italic;
}

/* CONTACT */
#contact {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

#contact p, #contact a {
  color: var(--gray);
  line-height: 1.8;
}

/* FOOTER */
.footer {
  padding: 3rem;
  border-top: 1px solid #2a2a2a;
  margin-top: 3rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__social a img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: opacity 0.3s;
}

.footer__social a:hover img {
  opacity: 0.7;
}

.footer__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.25rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--gray);
}