@import "../reset.css";
@import "../forms.css";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
:root {
  --font-family-title: "Inter", sans-serif;
  --font-family-text: "Inter", sans-serif;

  --text-color: #011c31;
  --text-light-color: #011c3199;
  --accent-color: #55c4fb;
  --color-border-dark: #002543;
  --color-background-light: #f4f4f4;

  --transition: all 0.05s linear;
  --transition-fast: all 0.1s linear;
}

a.button {
  padding: 5px 5px;
}

input[type="submit"],
button {
  color: white;
  background-color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

input[type="submit"]:hover,
input[type="submit"]:focus,
button:hover,
button:focus {
  background-color: var(--text-color);
  color: white;
}

.acf-actions a.acf-icon[data-name="edit"] {
  display: none !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-text);
  line-height: 1.6;
  word-break: break-word;
  color: var(--text-light-color);
  background: var(--color-background-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-family-title);
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-color);
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.6em;
}

h4 {
  font-size: 1.4em;
}

h5 {
  font-size: 1.2em;
}

h6 {
  font-size: 1em;
}

p {
  margin: 0;
  font-family: var(--font-family-text);
  font-size: 1em;
}

b {
  font-weight: bold;
}

/* STRUCTURE */

svg path {
  transition: fill 0.5s ease;
  display: none;
}

.acf-fields > .acf-tab-wrap {
  background: #f9f9f9 !important;
  width: 100% !important;
}

.acf-fields > .acf-tab-wrap .acf-tab-group {
  border-top: #ccd0d4 solid 0px !important;
  border-bottom: #ddd solid 1px !important;
  margin-bottom: 0px !important;
}

.upgrade .acf-input {
  display: none;
  position: relative; /* This ensures that the pseudo-element is positioned relative to the element it is applied to */
}

.upgrade::after {
  content: "Cette option n'est pas disponible pour votre compte. Veuillez nous contacter pour plus d'informations.";
  display: block !important;
  color: #db8961;
  font-weight: bold;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: white;
  padding: 12px;
  border: 1px solid #db8961;
  box-sizing: border-box;
}

#wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  height: 100vh;
  overflow: hidden;
}

.admin-bar #wrapper {
  height: calc(100vh - 32px) !important;
}

#aside {
  background: var(--text-color);
  width: 140px;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17px 0 40px;
  row-gap: 40px;
}

#aside .aside-top {
  opacity: 0;
  transition: var(--transition);
}

#aside .aside-middle {
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
  flex-grow: 1;
}

#aside .aside-bottom {
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 40px;
}

#aside .aside-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  position: relative;
  height: 70px;
}

.aside-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  row-gap: 5px;
}

.aside-item .tooltiptext {
  font-size: 10px;
  text-transform: uppercase;
  color: #fff;
  transition: var(--transition-fast);
}

#logout-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  color: #ec5555;
}

.aside-item:hover .tooltiptext,
.aside-item.active .tooltiptext {
  color: var(--accent-color);
}

#aside .aside-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 10px;
  display: block;
}

#aside .aside-item .aside-icon {
  fill: white;
  filter: drop-shadow(0px 0px 20px rgba(40, 184, 255, 0));
  transition: var(--transition-fast);
}

#aside .aside-item:hover .aside-icon,
#aside .aside-item.active .aside-icon {
  fill: var(--accent-color);
  filter: drop-shadow(0px 0px 20px rgba(40, 184, 255, 0.52));
  cursor: pointer;
}

#main {
  width: calc(100% - 140px);
  overflow-y: scroll;
}

#header {
  position: sticky;
  top: 0;
  height: 80px;
  background: white;
  border-bottom: 1px solid #e7e7e7;
  padding: 0px 40px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  column-gap: 10px;
}

#header .header-left {
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 15px;
}

#header .header-left h4 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#header .header-left a {
  text-decoration: none;
  background: var(--accent-color);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  transition: var(--transition-fast);
  display: inline-block;
  white-space: nowrap;
}
#header .header-left a:hover {
  background: var(--text-color);
}
#header .header-right {
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  column-gap: 20px;
}

#header .header-right img {
  width: 40px;
  height: 40px;
  padding: 0px;
  box-shadow: 0 0 20px #00000010;
  border-radius: 50%;
}

#content {
  opacity: 0;
  transition: var(--transition);
  padding: 40px;
  max-width: 1140px;
  margin: auto;
}

.dashboard-wrapper {
  display: flex;
  flex-direction: row;
  column-gap: 40px;
  row-gap: 40px;
  flex-wrap: wrap;
}

.dashboard-item {
  background: white;
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  column-gap: 15px;
  width: 100%;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-light-color);
  width: 20%;
  flex-grow: 1;
}

.dashboard-item.blur {
  position: relative;
  pointer-events: none; /* To prevent clicking on the blurred item */
}

.dashboard-item.blur img,
.dashboard-item.blur h1,
.dashboard-item.blur p {
  filter: blur(2px);
  pointer-events: none;
}

.dashboard-item.blur .message {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.31);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  filter: none;
  pointer-events: none;
  z-index: 10;
  text-align: right;
}

.dashboard-item:hover {
  cursor: pointer;
  border: 1px solid var(--accent-color);
}

.dashboard-headline {
  width: 100%;
  margin-bottom: -20px;
}

.dashboard-module {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  width: 100%;
}

.dashboard-module-item {
  background: white;
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  column-gap: 15px;
  row-gap: 20px;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-light-color);
  width: 100%;
  box-sizing: border-box;
}

.dashboard-module-item.blur {
  position: relative;
  pointer-events: none; /* To prevent clicking on the blurred item */
}

.dashboard-module-item.blur img,
.dashboard-module-item.blur h6 {
  filter: blur(2px);
  pointer-events: none;
}

.dashboard-module-item.blur .message {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.31);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  filter: none;
  pointer-events: none;
  z-index: 10;
  text-align: right;
}

.dashboard-module-item:hover {
  cursor: pointer;
  border: 1px solid var(--accent-color);
}

form.acfe-form {
  background: white;
  padding: var(--padding);
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-wrapper,
.articles-wrapper {
  display: flex;
  row-gap: 15px;
  flex-direction: column;
}

.contact-item {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 20px;
  justify-content: space-between;
  column-gap: 10px;
}

.contact-item .left {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  row-gap: 10px;
  column-gap: 10px;
}

.contact-item .right {
  display: flex;
  row-gap: 10px;
  column-gap: 10px;
}

.contact-item h4 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  width: 100%;
}

.contact-item li {
  font-size: small;
}

.contact-button {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--accent-color);
  color: white;
  transition: var(--transition-fast);
  border-radius: 3px;
  padding: 3px;
}

.contact-button.delete {
  background: rgb(208, 38, 38);
}

.contact-button:hover {
  background: var(--text-color);
  color: white;
}

.single-contact-wrapper {
  border-radius: 10px;
  background: white;
  border: 1px solid #ddd;
  overflow: hidden;
}

.single-contact-wrapper h4 {
  background: var(--text-color);
  padding: 20px 20px 10px 20px;
  color: white;
}

.inner-single-contact {
  padding: 20px;
}

.inner-single-contact ul {
  margin-bottom: 20px;
}

#mediacom .acf-flexible-content .values,
#evenements .acf-flexible-content .values,
#conseils .acf-flexible-content .values,
#services .acf-flexible-content .values {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  column-gap: 1.5% !important;
  row-gap: 15px !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
}

#mediacom .acf-flexible-content .values .layout,
#evenements .acf-flexible-content .values .layout,
#conseils .acf-flexible-content .values .layout,
#services .acf-flexible-content .values .layout {
  margin: 0px !important;
  width: 49.25% !important;
  box-sizing: border-box !important;
}
#mediacom .image-wrap img,
#evenements .image-wrap img,
#conseils .image-wrap img,
#services .image-wrap img {
  max-width: 100% !important;
}

.heading-articles {
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.heading-articles a {
  padding: 5px 10px;
  background: var(--accent-color);
  font-size: 14px;
  color: white;
  font-weight: bold;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

@media screen and (max-width: 1200px) {
  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.4em;
  }

  h3 {
    font-size: 1.3em;
  }

  h4 {
    font-size: 1.2em;
  }

  h5 {
    font-size: 1em;
  }

  h6 {
    font-size: 0.9em;
  }

  p {
    font-size: 0.9em;
  }

  #aside {
    width: 100px;
  }
  #main {
    width: calc(100% - 100px);
    overflow-y: scroll;
  }

  #content {
    padding: 20px;
  }

  #header {
    height: 60px;
    padding: 0px 20px;
  }

  #aside .aside-top img {
    width: 35px;
  }

  #aside .aside-middle {
    row-gap: 10px;
  }

  #aside .aside-bottom {
    row-gap: 0px;
  }

  #aside .aside-item {
    width: 110px;
    height: 80px;
    row-gap: 2px;
  }

  #aside .aside-item .aside-icon {
    width: 35px;
  }

  .aside-item .tooltiptext {
    font-size: 9px;
  }

  #logout-button {
    font-size: 9px;
  }

  .dashboard-wrapper {
    column-gap: 20px;
    row-gap: 20px;
  }

  .dashboard-item {
    width: 45%;
    padding: 15px;
  }

  .dashboard-headline {
    width: 100%;
    margin-bottom: -10px;
  }

  .dashboard-module {
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .dashboard-module-item {
    padding: 20px 15px;
    row-gap: 15px;
  }

  .dashboard-module-item img {
    width: 70px;
  }

  .contact-item {
    padding: 15px;
    column-gap: 10px;
  }

  .contact-item .left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    row-gap: 5px;
    column-gap: 5px;
  }

  .contact-item .right {
    display: flex;
    row-gap: 5px;
    column-gap: 5px;
  }

  .contact-item h4 {
    padding-bottom: 5px;
  }

  .contact-item li {
    font-size: small;
  }

  .contact-button {
    width: 30px;
    height: 30px;
  }

  .single-contact-wrapper h4 {
    padding: 15px 15px 10px 15px;
  }

  .inner-single-contact {
    padding: 15px;
  }

  .inner-single-contact ul {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 850px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }

  h3 {
    font-size: 1.2em;
  }

  h4 {
    font-size: 1.1em;
  }

  h5 {
    font-size: 0.9em;
  }

  h6 {
    font-size: 0.85em;
  }

  p {
    font-size: 0.85em;
  }

  #aside {
    width: 60px;
    row-gap: 10px;
  }
  #main {
    width: calc(100% - 60px);
    overflow-y: scroll;
  }

  #content {
    padding: 10px;
  }

  #header {
    height: 60px;
    padding: 0px 10px;
  }

  .header-right p {
    display: none !important;
  }

  #aside .aside-top img {
    width: 30px;
  }

  #aside .aside-middle {
    row-gap: 0px;
  }

  #aside .aside-bottom {
    row-gap: 0px;
  }

  #aside .aside-item {
    row-gap: 0;
    width: 60px;
    height: 60px;
  }
  #aside .aside-item.active::before {
    display: none;
  }

  #aside .aside-item .aside-icon {
    width: 30px;
  }

  .aside-item .tooltiptext {
    font-size: 7px;
  }

  #logout-button {
    font-size: 7px;
  }

  .dashboard-wrapper {
    column-gap: 20px;
    row-gap: 10px;
  }

  .dashboard-item {
    padding: 15px;
    width: 100%;
  }

  .dashboard-headline {
    margin-top: 20px;
    width: 100%;
    margin-bottom: 0px;
  }

  .dashboard-module {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-module-item {
    padding: 20px 10px;
    row-gap: 15px;
  }

  .dashboard-module-item img {
    width: 50px;
  }

  .single-contact-wrapper h4 {
    padding: 10px 10px 10px 10px;
  }

  .inner-single-contact {
    padding: 10px;
  }

  .inner-single-contact ul {
    margin-bottom: 10px;
  }

  #mediacom .acf-flexible-content .values .layout {
    margin: 0px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
