/* ===== VARIABLES & THEME ===== */
:root {
  --max-size: 1000px;

  /* COULEUR */

  --background: #111010;

  --color-paper-light: #abb49c;
  --color-paper: #dcd8c2;
  --color-paper-dark: #313b70;

  --color-text-light: #f2f0f0;
  --color-text-dark: #3a478f;

  --color-1: #190102;
  --color-2: #c0a53b;
  --color-3: #bf5512;
  --color-4: #e87c11;
  --color-5: #00e07f;
}

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

/* ===== GLOBAL STYLES ===== */

body {
  background-color: var(--background);
  color: #654321;
  font-family: "Goudy Bookletter 1911", serif;
  min-height: 100vh;
}

.content-wrapper {
  display: flex;
  flex: 1;
}

.main-container-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--max-size);
  min-width: 0px;
  flex-shrink: 1;
}

.page-header {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--color-1);
  align-items: center;
  justify-content: center;
  flex-direction: column-reverse;
  padding-top: 10px;
  position: relative;
}

.sidebar-left {
  position: relative;
  flex: 1;
  background-color: transparent;
  min-width: 10px;
  z-index: 100;
}

.sidebar-right {
  flex: 1;
  background-color: transparent;
  min-width: 80px;
}

footer {
  display: flex;

  position: relative;
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 15px;
  font-size: 12px;
  gap: 10px;
}

/* Le header */

.header-title {
  font-family: "Grenze Gotisch";
  font-size: 3rem;
  color: var(--color-1);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  z-index: 5;
  align-self: center;
  margin-top: 10px;
}

.header-decoration-left,
.header-decoration-right-side {
  width: 180px;
  flex-shrink: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  position: absolute;
  top: -30px;
  pointer-events: none;
}

.header-decoration-left {
  transform: translateX(-100%);
}

.header-decoration-right-side {
  transform: translateX(70%);
}

.decoration-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-decoration-rotated {
  width: 80px;
  height: 100px;
  transform: rotate(30deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 5;
  object-fit: contain;
}

/* Le sizing des pages */

.left-page {
  box-shadow:
    inset -20px 0px 12px -5px rgba(0, 0, 0, 0.3),
    15px 0px 8px 0px rgba(0, 0, 0, 0.3),
    6px 0px 4px 0px rgba(0, 0, 0, 0.5);
}

/* BREAD CRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 5;
  align-self: flex-start;
}

.breadcrumb-back-icon {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.breadcrumb-back-icon:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: scale(1.05);
}

.breadcrumb-path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item {
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb-item:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.breadcrumb-separator {
  color: var(--dark);
}

.breadcrumb-current {
  color: var(--dark);
  padding: 0.3rem 0.5rem;
}

.back-icon {
  width: 24px;
  height: 24px;
}

footer p {
  margin: 0;
}

@media (max-width: 1030px) {
  footer {
    display: flex;
    max-width: 100vw;
  }
}

@media (max-width: 768px) {
  .sidebar-right {
    min-width: 10px;
  }

  .header-title {
    margin-top: 0;
    font-size: 2rem;
  }

  .header-decoration-left {
    transform: translateX(-80%);
    top: -60px;
  }

  .header-decoration-right-side {
    transform: translateX(45%);
    top: -60px;
  }

  .decoration-image {
    width: 85%;
    height: 85%;
  }
}
/* Les effets (agrafes, papier, etc)*/

.paper-texture {
  background-color: var(--color-paper);
  background-image: url("../img/website/asset-background-beige.png");
  background-repeat: repeat;

  background-blend-mode: soft-light;
}

.paper-texture-dark {
  background-color: var(--color-paper-dark);
  background-image: url("../img/website/asset-background-beige.png");
  background-repeat: repeat;

  background-blend-mode: soft-light;
}

.page-round {
  pointer-events: none;
  position: absolute;
  width: 5vw;
  max-width: 100px;
  min-width: 30px;
  height: auto;
}

.top-left {
  left: 0;
  top: 0;
}

.top-right {
  top: 0;
  right: 0;
  left: auto;
}

.bot-left {
  left: auto;
  right: 0;
  bottom: 0;
  top: auto;
}

.bot-right {
  bottom: 0;
  top: auto;
  left: 0;
}

.with-side-staples {
  position: relative;
  z-index: 0;
}

.with-side-staples::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
  background-image: url("../img/website/asset-side-staple.png");
  background-repeat: repeat-y;
  background-size: 12px 350px;
  background-position: center top;
  pointer-events: none;
  z-index: 10;
}

svg[height="0"][aria-hidden="true"] {
  position: fixed;
}

/* LE FILTRE CSS DOIT ETRE PRESENT SUR LA PAGE !*/
.torn-paper {
  background-color: rgb(255, 251, 247);
  filter: url(#tear);
}

@media (max-width: 768px) {
  .with-side-staples::before {
    left: -10px;
    background-size: 6px 175px;
  }
}

/* ===== BUTTON THEME ===== */
.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  font-weight: bold;
  color: var(--text-light);
  background-color: var(--color-2);
  border: 1px solid var(--color-1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-button:hover {
  background-color: var(--color-2);
  filter: brightness(1.2);
}

.nav-button:hover::after {
  background-color: #e2d4bb26;
}

/* ===== COMMON COMPONENTS ===== */

h1,
h2 {
  font-family: "Grenze Gotisch";
  color: var(--text-dark);
}

.blog-placeholder,
.article-placeholder {
  background-color: #f5f5dc;
  border: 2px dashed var(--primary);
  padding: 20px;
  text-align: center;
  color: #654321;
  font-style: italic;
}

.placeholder-box {
  background-color: var(--gold);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary);
  font-weight: bold;
}
