@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("./style/buttons.css");
@import url("./style/articles.css");
@import url("./style/filter.css");
@import url("./style/view.css");
@import url("./style/compte.css");
@import url("./style/ecrire_article.css");
@import url("./style/form.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

:root {
  --background: rgb(255, 254, 252);
  --dark: #020202;
  --text-color: #020202;
  --light: rgb(255, 251, 241);
  --light-dark: #3f3f3f;
  --light-grey: #ececec;
  --nav-height: 4rem;
}
a {
  color: inherit;
  text-decoration: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  min-height: 100svh;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--background);
  z-index: 100;
  border-bottom: 1px solid var(--light-grey);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-btn {
  background: var(--dark);
  color: var(--light) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
@media screen and (max-width:500px) {
  .logo{
    font-size: 1.3REM;
  } 
  .nav-container{
    padding: 0rem 1rem;
  }
}
.notification {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--background);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.212);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notification.visible {
  opacity: 1;
}

.home {
  width: 100svw;
  height: calc(100svh - var(--nav-height));
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-top: var(--nav-height);
}

.right {
  background-image: url("./images/home_hand.jpg");
  width: 50%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: right;
  background-size: 70%;
  max-width: 800px;
}

.left {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 50%;
  padding: 2rem;
  height: 100%;
  align-content: center;
}
#slogan_home {
  font-family: "Merriweather", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.subheading {
  font-size: 1.1rem;
  color: var(--light-dark);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
  font-weight: 300;
}
.btn_container {
  display: flex;
  gap: 1rem;
}

#last_flex {
  margin-left: 0;
}
.explore-container {
  padding-top: calc(var(--nav-height) + 1rem);
  max-width: 1200px;
  margin: calc(var(--nav-height) auto 0);
  min-height: calc(100svh - var(--nav-height));
  margin-left: auto;
  margin-right: auto;
}

.explore-header h2 {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
@media (max-width: 768px) {
  .explore-container {
    padding: 1.5rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.nav-btn) {
    display: none;
  }

  .home {
    flex-direction: column;
    height: auto;
    min-height: calc(100svh - var(--nav-height));
  }

  .left,
  .right {
    width: 100%;
    height: 50%;
  }

  .left {
    padding: 4rem 2rem;
    justify-content: flex-start;
  }

  .right {
    background-position: center;
  }
}
