@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --text: #d4cece;
  --text-muted: #7a7575;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --border: #2a2a2a;
  --border-hover: #444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── LANG SYSTEM ── */
html[data-lang="en"] .lang-fr { display: none !important; }
html[data-lang="fr"] .lang-en { display: none !important; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0) 100%);
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo span {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-lang {
  display: flex;
  align-items: center;
  margin-left: 28px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.lang-sw-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 11px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.lang-sw-btn:first-child {
  border-right: 1px solid var(--border);
}

.lang-sw-btn.active {
  background: var(--text);
  color: var(--bg);
}

.lang-sw-btn:hover:not(.active) {
  color: var(--text);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.4) 0%, rgba(13,13,13,0.7) 60%, rgba(13,13,13,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-logo {
  width: 160px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 30px rgba(192,57,43,0.3));
}

.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 20px;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 24px auto;
}

/* ── SECTION ── */
section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 60px;
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.project-card-image {
  position: relative;
  height: 220px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.6);
}

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

.project-card-icon {
  position: absolute;
  bottom: -28px;
  left: 28px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--bg-card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.project-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.project-card-body {
  padding: 44px 28px 28px;
}

.project-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: 'Cinzel', serif;
}

.project-card-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-card-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card-cta::after {
  content: '→';
  transition: transform 0.2s;
}

.project-card:hover .project-card-cta::after {
  transform: translateX(4px);
}

/* ── PROJECT PAGE HERO ── */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.project-hero .hero-bg {
  filter: brightness(0.25);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.project-hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.project-hero-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── APP INFO ── */
.app-info {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-details h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-details .app-category {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  margin-bottom: 16px;
}

.app-details p {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 24px;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badges img {
  height: 44px;
  width: auto;
  transition: opacity 0.2s, transform 0.2s;
}

.store-badges img:hover {
  opacity: 0.8;
  transform: scale(1.03);
}

/* ── FEATURES ── */
.features {
  padding: 60px 60px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-item h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SLIDER ── */
.screenshots {
  padding: 60px 60px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.splide__slide img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── DIVIDER ── */
.hr {
  height: 1px;
  background: var(--border);
  margin: 0 60px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

footer a:hover { color: var(--text); }

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ── ABOUT ── */
.about {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  max-width: 700px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  .nav-logo span {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }

  section,
  .app-info,
  .features,
  .screenshots,
  .about {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hr {
    margin: 0 24px;
  }

  .app-info {
    flex-direction: column;
  }

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

  .project-hero-content {
    padding: 0 24px;
  }
}
