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

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&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);

  --lessons: rgba(136, 135, 135, 0.2);
}

[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);

  --lessons: rgba(255, 255, 255, 0.2);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  color: var(--text-primary);
  background-attachment: fixed;
  transition:
    --bg-1 0.4s ease,
    --bg-2 0.4s ease,
    --bg-3 0.4s ease,
    color 0.4s ease;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background: radial-gradient(circle,
      var(--bg-1) 0%,
      var(--bg-2) 60%,
      var(--bg-3) 100%);

  filter: blur(80px);
  transform: scale(1.2);

  z-index: -1;
}

/* ==========================================================================
   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;

  flex: 1;
}

.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;
}

/* ==========================================================================
6. BOX
========================================================================== */

.box {
  border: 2px solid var(--card-border);
  border-radius: 16px;

  margin: 0 auto;

  backdrop-filter: blur(10px);
  background: var(--lessons);

  padding: 2rem;

  display: flex;
  flex-direction: column;
}

.first,
.second,
.third {
  border: 2px solid var(--card-border);
  border-radius: 16px;

  padding: 1rem;

  flex: 1;
}

.bulles-column {
  display: flex;
  flex-direction: row;

  gap: 8%;

  margin-top: 1rem;
}

.bulles-titles {
  text-align: center;
  margin-bottom: 1.2%;
  font-size: 200%;
}

.triangle-exemple-un {
  margin-top: 2%;
  padding-top: 1rem;
}

.exemple-un-illustration-redaction {
  margin-top: 3%;

  display: flex;
  flex-direction: row;

  gap: 8%;
}

.exemple-un-tri-rect {
  height: 10rem;
}

.redaction {
  flex: 1;
  max-width: none;
}

.exemple-un-tt {
  margin-top: 3.2%;
  font-weight: 400;
  text-decoration: underline;
}

.carre-attention {
  margin-top: 2%;
  font-size: 0.7rem;
}

/* ==========================================================================
   7. 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;
  }
}

@media (max-width: 768px) {
  .bulles-column {
    flex-direction: column;
    gap: 1rem;
  }
}