@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/* ==========================================================================
   1. VARIABLES & THEMING
   ========================================================================== */

@property --bg-1 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgb(217, 217, 217);
}

@property --bg-2 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgb(223, 223, 223);
}

@property --bg-3 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgb(231, 231, 231);
}

:root,
[data-theme="light"] {
  --text-primary: #0d1212;
  --text-secondary: #2e2e2e;
  --text-on-card: #ffffff;
  
  --bg-1: #d9d9d9;
  --bg-2: #dfdfdf;
  --bg-3: #e7e7e7;
  
  --header-border: #303030;
  --footer-bg: #cdcdcd;
  --footer-text: #2e2e2e;
  
  --card-border: #303030;
  --hover-blue: #2252ff;
  --hover-header-bg: rgba(46, 46, 46, 0.64);
}

[data-theme="dark"] {
  --text-primary: #f2eded;
  --text-secondary: #b0b0b0;
  --text-on-card: #ffffff;
  
  --bg-1: #262626;
  --bg-2: #202020;
  --bg-3: #181818;
  
  --header-border: #404040;
  --footer-bg: #161616;
  --footer-text: #b0b0b0;
  
  --card-border: #404040;
  --hover-blue: #5b7fff;
  --hover-header-bg: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto Mono", monospace;
  color: var(--text-primary);
  background: radial-gradient(
    circle,
    var(--bg-1) 0%,
    var(--bg-2) 60%,
    var(--bg-3) 100%
  );
  background-attachment: fixed;
  transition: 
    --bg-1 0.4s ease, 
    --bg-2 0.4s ease, 
    --bg-3 0.4s ease, 
    color 0.4s ease;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 9999;
}

.Header {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  border-bottom: 2px solid var(--header-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(
    90deg,
    rgba(137, 208, 244, 0.7) 0%,
    rgba(70, 135, 255, 0.7) 33%,
    rgba(131, 63, 255, 0.7) 66%,
    rgba(194, 85, 254, 0.7) 100%
  );
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-right {
  gap: 2rem;
  white-space: nowrap;
  font-size: 1rem;
}

.raze-logo-header {
  height: 40px;
  width: auto;
}

.search-cat, 
.favorite-cat, 
.log-in-cat, 
.theme-cat {
  display: flex;
  align-items: center;
}

.search-icon, 
.favorite-icon, 
.log-in-icon {
  margin-right: 0.5rem;
  height: 20px;
  width: auto;
}

.theme-icon {
  color: var(--text-primary);
  transition: transform 0.4s ease, color 0.4s ease;
}

.element-header {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color 0.2s ease-out;
}

.element-header:hover {
  background-color: var(--hover-header-bg);
  cursor: pointer;
}

.element-header:active .theme-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   4. MAIN & HERO SECTION
   ========================================================================== */

main {
  margin-top: 120px;
  padding: 0 2rem;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgb(137, 208, 244) 25%,
    rgb(70, 135, 255) 50%,
    rgb(131, 63, 255) 75%,
    rgb(194, 85, 254) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.homepage-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  text-align: center;
}

.homepage-description {
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  text-align: center;
}

.cours-niepce {
  margin-top: 8rem;
}

.new-cours, .old-cours {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 5.8rem;
}

/* ==========================================================================
   5. COURSES & CARDS
   ========================================================================== */

.cat-new-cours, .cat-old-cours {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.new-cours-lessons, .old-cours-lessons {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.lessons {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  
  border: 2px solid var(--card-border);
  border-radius: 16px;
  background-color: #000;
  background-clip: padding-box;
  overflow: hidden;
  
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-on-card);

  cursor: pointer;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.lessons:hover {
  transform: translateY(-8px);
  border-color: var(--hover-blue);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.lessons:active {
  transform: translateY(-8px) scale(0.98);
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */

footer {
  margin-top: 8rem;
  background-color: var(--footer-bg);
  width: 100%;
  padding-bottom: 3rem;
  transition: background-color 0.4s ease;
}

.border-top {
  border-top: 2px solid var(--header-border);
  width: 100%;
}

.contenu-footer {
  padding: 4rem 10% 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.raze-logo-footer {
  height: 60px;
  width: auto;
}

.onecore-services, 
.legaux, 
.medias {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.1rem;
  gap: 1.2rem;
}

.my-port, .coming-soon, .faq, .politique-confidentialite, .politique-dmca,
.nous-contacter, .discord, .tiktok, .youtube, .x {
  line-height: 1.2;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--footer-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.my-port:hover, .coming-soon:hover, .faq:hover, .politique-confidentialite:hover, 
.politique-dmca:hover, .nous-contacter:hover, .discord:hover, 
.tiktok:hover, .youtube:hover, .x:hover {
  color: var(--hover-blue);
  transform: translateX(3px);
}

.border-mid {
  margin: 3rem auto 0;
  border-top: 1px solid var(--header-border);
  width: 60%;
}

.raze-rights {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--footer-text);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (MOBILE & TABLETTE)
   ========================================================================== */

@media (max-width: 992px) {
  .LV-cat {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .Header {
    padding: 0 1rem;
  }
  
  .navbar-right {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .LV-cat {
    grid-template-columns: 1fr;
  }

  .contenu-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .onecore-services, .legaux, .medias {
    align-items: center;
  }
}