/* ============================================
   DEVA - SHARED CSS
   Violet: #7B2CBF
   Noir: #000000
   Blanc: #ffffff
   ============================================ */

:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #7B2CBF;
  --hover-color: #7B2CBF;
  --border-color: #333;
  --card-border: #333;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Language switch */
.lang-switch {
  border: 1px solid #555;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 10px;
  font-size: 0.8rem;
}

.lang-switch a {
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.lang-active {
  color: var(--accent-color) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  animation: slideInCenter 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  animation: slideInUp 0.8s ease-out 0.2s backwards;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 12px 30px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transition: left 0.3s ease;
  z-index: -1;
}

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

.btn:hover::before {
  left: 0;
}

.btn-violet {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-color);
}

.btn-violet:hover {
  background-color: #6A1FA6;
  border-color: #6A1FA6;
}

/* ============================================
   CONTAINER & GRID
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ============================================
   CARDS & ANIMATIONS
   ============================================ */

.card {
  position: relative;
  height: 300px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.card.from-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.card.from-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.card:hover .card-overlay {
  background: rgba(123, 44, 191, 0.3);
}

.card h2 {
  font-size: 2rem;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
  transition: all 0.3s ease;
  color: var(--text-color);
  position: relative;
  z-index: 2;
}

.card:hover h2 {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  text-shadow: 0 0 10px rgba(123, 44, 191, 0.5);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 60px 0;
}

section h2 {
  margin-bottom: 40px;
  margin-top: 40px;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideInUp 0.6s ease-out;
}

section h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  animation: slideInUp 0.6s ease-out;
}

section p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: #000;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-links span {
  color: #555;
}

footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
}

/* ============================================
   ANIMATIONS KEYFRAMES
   ============================================ */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInCenter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 1024px) {
  .nav-links {
    gap: 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 8px;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 10px;
    font-size: 0.8rem;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .hero {
    margin-top: 120px;
  }
  
  .hero h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card {
    height: 250px;
  }
  
  .card h2 {
    font-size: 1.5rem;
  }
  
  section h2,
  section h3 {
    font-size: 2rem;
  }
  
  .footer-links {
    font-size: 0.9rem;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 0;
  }
  
  .hero {
    margin-top: 100px;
    height: 80vh;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .card {
    height: 200px;
  }
  
  .card h2 {
    font-size: 1.2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.section-light {
  background-color: #0a0a0a;
}

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

.text-center {
  text-align: center;
}

.margin-top {
  margin-top: 40px;
}

.padding-bottom {
  padding-bottom: 40px;
}

/* Animation observer for cards */
.card.visible {
  opacity: 1;
  animation: slideInLeft 0.8s ease-out;
}
