/* ================================================================= BODY, HTML, ALL ================================================================= */

* {
  box-sizing: border-box;
}

body,
html {
  font-size: 16px;
  font-family: sans-serif;
  line-height: 1.5;
  margin: 0;
  background: rgb(2, 0, 0);
  color: white;
}

.form-control {
  resize: none !important;
}

main:not(.index, .politique, .admin) {
  background: no-repeat center / cover url("./img/main.webp");
}

textarea {
  resize: none;
}

a {
  text-decoration: none;
}

form {
  color: black;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

input[type="submit"]:not(.delete, .addUser, .accept, .deny) {
  background-color: #53af57;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.form-check-input {
  position: relative;
  margin: 0;
}

input[type="submit"]:not(.delete, .addUser):hover {
  background-color: white;
  color: #53af57;
  outline: 1px solid #53af57;
}

/* ================================================================= NAVBAR ================================================================= */

.navbar {
  padding: 10px;
}

.navbar-brand:hover {
  color: red !important;
}

#navbarNav {
  justify-content: space-between;
}

.navbar-nav li {
  background: linear-gradient(to left, white 50%, hsl(0, 100%, 50%) 50%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  background-position: right bottom;
  transition: all 0.8s ease;
  width: fit-content;
}

.navbar-nav li:hover {
  background-position: left bottom;
}

.navbar-nav li a {
  text-decoration: none;
  color: transparent;
  font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: transparent;
  font-size: 0.8rem;
}

.nav-link h1 {
  color: transparent;
  font-size: 0.8rem !important;
  margin-bottom: 0 !important;
}

/* ================================================================= BANNIERE ================================================================= */

.title {
  position: absolute;
  top: 50;
  left: 0;
}

.banniere {
  height: 500px;
}

.banniere video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.banniere p {
  position: absolute;
  top: 540px;
  left: 10px;
}

/* ================================================================= INDEX ================================================================= */

.body {
  border-top: 2px solid red;
  background-color: hsl(0, 0%, 12%);
  display: flex;
}

.main {
  position: relative;
  border-right: 1px solid red;
  width: 70%;
  z-index: 2;
  padding: 0 20px;
}

.container-main {
  margin: 0 auto;
  max-width: 940px;
}

.article1 {
  position: relative;
  margin: 50px 0;
  margin-bottom: 40px;
  padding-left: 333px;
  min-height: 203px;
}

.article1-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  margin-right: 25px;
}

.article1-img img {
  width: 100%;
  max-height: 200px;
  transition: transform 0.3s;
}

.article1-img img:hover {
  transform: scale(1.1);
}

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

.article1 a:hover {
  text-decoration: underline;
}

.article1-date {
  font-weight: 300px;
  color: hsl(60, 100%, 50%);
  margin-bottom: 5px;
}

.article1-title {
  font-size: 2.25rem;
  color: hsl(200, 100%, 50%);
  line-height: 1;
  margin: 0;
}

.article1 p {
  font-weight: bold;
}

.sidebar {
  position: relative;
  width: 30%;
  padding: 40px;
  z-index: 1;
}

.sidebar-title {
  font-size: 30px;
  color: white;
  margin: 35px 0;
}

.sidebar-title:first-child {
  margin-top: 0;
}

.sidebar-title:last-child {
  padding-bottom: 0;
}

.lastArticle {
  text-align: center;
}

.lastArticle img {
  max-width: 200px;
}

/* ================================================================= LISTARTICLE ================================================================= */

.container {
  padding: 20px;
  margin: 0px auto;
  min-height: 100vh;
}

.add-button {
  display: inline-block;
  background-color: #4caf50;
  border: none;
  color: white;
  width: 60px;
  height: 60px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.1s;
}

.add-button:before {
  content: "+";
  display: inline-block;
}

.add-button:hover {
  transform: scale(1.1);
}

.listeGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.imageArticle {
  text-align: center;
  padding: 20px;
}

.imageArticle img {
  max-width: 240px;
  border-radius: 4px;
}

.buttonsList {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

form[action="updateArticle.php"]:not(.modArtAcc, .delArtAcc),
form[action="delArticle.php"]:not(.modArtAcc, .delArtAcc) {
  padding: 10px;
  width: 100%;
  border: none;
  box-shadow: none;
  margin-top: 0;
}

form[action="updateArticle.php"] button,
form[action="delArticle.php"] button {
  width: 100%;
  padding: 12px 20px;
}

form:not(
    .modArtAcc,
    .delArtAcc,
    .modListArt,
    .delListArt,
    .articleForm,
    .userForm,
    .modMailAcc,
    .cookie
  ) {
  margin: 30px auto;
  width: fit-content;
  max-width: 100%;
  color: black;
  text-align: center;
  padding: 30px;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

/* ================================================================= ADD ARTICLE ================================================================= */

.errorAdd {
  color: red;
}

.mustLogin {
  margin-top: 40px;
  text-align: center;
  font-size: 2em;
}

/* ================================================================= ADD ARTICLE ================================================================= */

.updateImg img {
  max-width: 180px;
  margin: 20px 0;
}

/* ================================================================= ADMIN ================================================================= */

.admin {
  background-color: #22201e;
}

.modifyArt,
.modifyUsers {
  justify-items: center;
  /* align-items: center; */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 80px;
}

.modifyUsers {
  align-items: center;
}

.articleForm {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.userForm {
  max-width: 80%;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #333;
  margin: 20px;
}

.articleForm,
.userForm {
  margin: 20px;
  width: fit-content;
  max-width: 100%;
  color: black;
  text-align: center;
  padding: 30px;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.articleForm label,
.userForm label {
  font-weight: bold;
  font-size: 14px;
}

.articleForm img {
  max-width: 240px;
  margin: 10px auto;
  margin-bottom: 20px;
}

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

.copyright {
  bottom: 0;
  left: 0;
  right: 0;
  background: #333333;
  color: #ffffff;
  text-align: center;
  padding: 5px;
}

/* ================================================================= MON COMPTE ================================================================= */

.compte {
  text-align: center;
}

.tab {
  height: max-content;
  max-height: 100%;
  border: 1px dashed #f7f7f7;
  padding: 20px;
  color: black;
}

#infosCompte {
  text-align: center;
}

.modArtAcc,
.delArtAcc {
  margin-top: 20px;
  padding: 10px;
}

/* ================================================================= FORMULAIRES ================================================================= */

.reinitForm {
  margin-top: 30px;
}

.forgotForm {
  margin-top: 30px;
}

.reinitForm,
.forgotForm {
  max-width: 80%;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #333;
}

.reinitForm h4,
.forgotForm h4 {
  margin-bottom: 2em;
}

.reinitform label,
.forgotForm label {
  display: block;
  font-weight: bold;
}

.articleForm input[type="text"],
.articleForm textarea,
.articleForm input[type="file"],
.userForm input[type="text"],
.userForm textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 12px;
  resize: none;
}

.articleForm input[type="submit"]:not(.delete, .addUser),
.reinitForm input[type="submit"]:not(.delete, .addUser),
.forgotForm input[type="submit"]:not(.delete, .addUser) {
  width: 100%;
  background-color: #4caf50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.articleForm input[type="submit"]:not(.delete, .addUser):hover,
.reinitForm input[type="submit"]:not(.delete, .addUser):hover,
.forgotForm input[type="submit"]:not(.delete, .addUser):hover {
  background-color: white;
  color: #53af57;
  outline: 1px solid #53af57;
}

.delete {
  width: 100%;
  background-color: #dc3545;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.delete:hover {
  color: #dc3545;
  background-color: white;
  outline: 1px solid #dc3545;
}

/* ================================================================= MEDIA QUERRIES ================================================================= */

@media (max-width: 1285px) {
  .modifyArt,
  .modifyUsers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1135px) {
  .topbar nav {
    font-size: 12px;
  }

  .topbar nav a {
    padding: 0 25px;
  }

  .topbar .log {
    font-size: 16px;
  }

  .banniere {
    height: 300px;
  }

  .banniere p {
    top: 340px;
  }

  .creditsBanner {
    line-height: 33em;
  }

  .neon span {
    font-size: 18px;
  }

  .article1 {
    padding-left: 260px;
    margin-bottom: 20px;
  }

  .article1-date {
    font-size: 0.825em;
  }

  .article1-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .article1 p {
    font-size: 0.825em;
  }

  .article1 img {
    height: 140px;
    width: 240px;
  }

  .sidebar-title {
    font-size: 22px;
  }

  .lastArticle h3 {
    font-size: 1.25em;
  }

  .sidebar {
    padding: 20px;
  }
}

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

  #profilUser p {
    font-size: 12px;
  }

  #profilUser .text {
    display: none;
  }

  #profilUser .icon {
    display: block !important;
  }

  #modify_pass,
  #modify_mail {
    padding: 0.1rem 0.3rem !important;
  }
}

@media (max-width: 823px) {
  .sidebar-title {
    font-size: 16px;
  }

  .lastArticle h3 {
    font-size: 0.825em;
  }

  .lastArticle img {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .modifyArt,
  .modifyUsers {
    grid-template-columns: 1fr;
  }

  .title h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 739px) {
  .topbar nav {
    font-size: 10px;
  }

  .topbar nav a {
    padding: 0 15px;
  }

  .topbar .log {
    font-size: 12px;
    padding-left: 0;
  }

  .banniere {
    height: 200px;
  }

  .banniere p {
    top: 240px;
  }

  .creditsBanner {
    line-height: 28em;
    font-size: 12px;
  }

  .neon span {
    font-size: 14px;
  }

  .article1 {
    padding: 20px;
  }

  .article1-date {
    font-size: 0.75rem;
  }

  .article1-title {
    font-size: 1.5em;
  }

  .article1 p {
    font-size: 0.75rem;
  }

  .article1 img {
    display: none;
  }
}

@media (max-width: 640px) {
  .sidebar-title {
    font-size: 12px;
  }

  .lastArticle h3 {
    font-size: 0.625em;
  }
}

@media (max-width: 576px) {
  .listeGrid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 550px) {
  .lastArticle img {
    width: 60px;
  }
  video p {
    font-size: 0.75rem;
  }
}
