@media screen and (max-width: 999999px) {
  .page__pallet__top,
  .page__pallet__top.is-fixed {
    height: 48px;
  }
}

/*---------------------------FONT FACES & GLOBAL TYPOGRAPHY ------------------------------------*/
body {
  font-family: "Josefin Sans", sans-serif;
}

/* Police variable : Style normal (poids 100 à 900) */
@font-face {
  font-family: "Josefin Sans";
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 100 900;
  src: url("/backlight/custom/fonts/webfonts/JosefinSans-VariableFont_wght.ttf")
    format("woff2-variations");
  font-display: swap;
}

/* Police variable : Style italique (poids 100 à 900) */
@font-face {
  font-family: "Josefin Sans";
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 100 900;
  src: url("/backlight/custom/fonts/webfonts/JosefinSans-Italic-VariableFont_wght.ttf")
    format("woff2-variations");
  font-display: swap;
}

/*---------------------------------TEXT BLOCKS & COPY--------------------------------------------------*/
.main {
  margin-top: 70px;
}

.the__copy {
  background-color: #4f4f4f;
  font-size: 1rem;
  line-height: 1.25rem;
  max-width: 1440px;
  padding-bottom: 75px;
  margin-top: 70px;
  text-align: center;
  width: 100%;
}

/* Home page text placement */
.pages-template-identifier-home .the__copy > .content {
  background-color: rgb(79, 79, 79);
  border-radius: 0;
  box-shadow: none;
  max-width: 1440px;
  padding-top: 0;
  width: 100%;
}

/* About and Contact pages padding*/
.pages-template-identifier-about .the__copy .content,
.pages-template-identifier-contact .the__copy .content {
  padding-top: 200px;
}

/* Text formating for 'About' slug */
.slug-about .the__copy {
  background-color: #4f4f4f;
  font-size: 1.25em;
  line-height: 1.4rem;
  /*padding: 20px 50px 20px 50px;*/
  text-align: justify;
}

p {
  margin-bottom: 20px;
  /* Ajoute une marge de 20 pixels sous chaque paragraphe */
}

/* Simple margin reset for text within .the__copy */
.the__copy p,
.the__copy address {
  margin: 0;
}

/*---------------------Removing Dotted Outlines Using CSS----------------------------------------------*/
/*a:hover,*/
a:focus {
  outline: 2px solid #9f191e;
  /* Couleur visible */
}

/*--------------------------TOP PALLET (Header/Navigation)-----------------------------*/

.page__pallet__top {
  align-items: center;
  display: flex;
  height: 48px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.page__pallet__top > .content > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.page__pallet__top > .content > ul > li {
  height: 48px;
  list-style: none;
  margin: 0;
}

/* Logo container */
.top-pallet-logo {
  background-image: url("https://pideja.ca/backlight/designer/page/image/6");
  background-repeat: no-repeat;
  background-position: 2% 0%;
  background-size: contain;
  height: 48px;
  width: 48px;
  margin-left: 1px;
}

li.top-pallet-logo a {
  display: block;
  height: 100%;
  width: 100%;
}

/*------------------------------Nameplate-------------------------------------------------------------------*/
.top-pallet-nameplate {
  background-image: url("https://pideja.ca/backlight/designer/page/image/31");
  background-repeat: no-repeat, no-repeat;
  background-position: 50% center;
  height: 48px;
  width: 230px;
}

li.top-pallet-nameplate a {
  display: block;
  /*height: 75%;
	width: 75%;*/
}

/*---------------------------------------- MENU BUTTON --------------------------------------------------*/

/* MENU button position and background (Combined declarations) */
.page__toggle__buttons label {
  display: block;
  background-color: #9f191e;
  margin-right: 50px;
  /*position: absolute;*/
  right: 7%;
  top: 0px;
}

/* MENU label text */
.page__toggle__buttons label p {
  cursor: pointer;
  display: block;
  font-size: 1rem;
  font-weight: 500;
  height: 48px;
  line-height: 2.7em;
  min-width: 48px;
  position: absolute;
  top: 5px;
  left: 1px;
  text-align: center;
}

.page__toggle__buttons label a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  display: block;
  padding: 14px 16px;
}

.page__toggle__buttons label a:hover {
  background-color: #f0f0f0;
  color: #000;
}

.active {
  background-color: #4caf50;
  color: #fff;
}

/* -----------------------------------BREADCRUMBS-------------------------------------------------------*/
ul.breadcrumbs li {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.015em;
  line-height: 1.125rem;
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

.breadcrumbs a {
  font-size: 1rem;
  font-weight: 400;
  color: #fef6d5;
}

.breadcrumbs li a:hover {
  font-size: 1.15rem;
  font-weight: 700;
  color: #9f191e;
}

/*--------------------------------------GALLERY & CREDITS-----------------------------------------------*/

.the__gallery {
  /* Combined margin definitions, taking the last one */
  margin: 50px auto 0;
  padding: 0;
}

/*---------------------------------------------- CREDITS -----------------------------------------------------*/
/* Container for the entire block */
.production-credits {
  font-family: "Josefin Sans", sans-serif;
  color: #fdf4d2;
  margin: 40px auto;
  padding: 20px;
  max-width: 100%;
}

/* The Grid Engine */
.credits-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Column 1: Labels (Right aligned) | Column 2: Colon | Column 3: Names (Left aligned) */
  column-gap: 15px;
  row-gap: 8px;
  margin: 0 auto;
  width: fit-content; /* Critical: keeps the grid from stretching to 100% width */
}

/* Sub-container for each line */
.credit-item {
  display: contents; /* Flattens the div so spans are direct children of the grid */
}

.role {
  grid-column: 1;
  text-align: right;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.separator {
  grid-column: 2;
  text-align: center;
  font-weight: 700;
}

.name {
  grid-column: 3;
  text-align: left;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* The Date Footer */
.date-line {
  text-align: center;
  margin-top: 30px;
}

.date-line p {
  margin: 0;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}
#pallet-credits {
  display: none;
}

/*--------------------------------------------------------------------------------------------------------------*/
.widget {
  color: #fff6d5;
  font-size: 0.8em;
  line-height: 0.3em;
  text-align: center;
}

.page__pallet {
  background-color: #000;
  color: #fff6d5;
  min-width: 1px;
  max-width: 345px;
  width: 345px;
  margin: 0;
}

/*---------------------------------CONTACT FORM|---------------------------------------------------------*/

.contact-form p {
  text-align: center;
}

input[type="submit"] {
  padding-top: 10px;
  margin-top: 20px;
}

.contact-form input {
  max-width: 100%;
  margin: 0 auto;
}

#message {
  margin: 1.5rem auto;
  border: 0;
}

#message.success {
  background-color: #9f181f;
  color: #d8d4c0;
}

#message.error {
  background-color: #9f191e;
  color: #fff6d5;
}

/*---------------------------------------- MISC. & FOOTER-------------------------------------------------*/

.single_icons {
  margin-top: 20px;
}

.albumthumbnail {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page__pallet__bottom > .content ul > li {
  color: #fff6d5;
  display: inline-block;
  min-height: 36px;
  line-height: 36px;
  list-style: none;
  min-width: 36px;
  text-align: center;
  vertical-align: top;
  margin: 6px;
  padding: 0;
}

.fb-search #search {
  background-color: #393939;
  border-radius: 0;
  margin: 0 auto;
  max-width: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.fb-search #search input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 768px;
  background-color: #fff6d5;
  border: #000000 solid 1px;
  border-radius: 0 3px 3px 3px;
  box-shadow: 0 1px 3px rgb(0, 0, 0, 0.15) inset;
  color: #212121;
  display: inline-block;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

form.search-form,
.search-form p,
form.search-handoff {
  margin-left: auto;
  margin-right: auto;
}

/*------------------------------/* Smartphones (portrait and landscape) --------------------------------- */
@media only screen and (max-width: 768px) {
  .pallet-credits {
    display: none;
  }
  .top-pallet-logo {
    background: url("https://pideja.ca/backlight/designer/page/image/6")
      no-repeat 2% 0 / contain;
    height: 48px;
    margin-left: 1px;
  }
  li.top-pallet-logo a {
    display: block;
    height: 100%;
    width: 100%;
  }
  .top-pallet-title {
    background-repeat: no-repeat;
    background-position: center;
    height: 48px;
    width: 100%;
  }
  .page__pallet__top {
    height: 50px;
  }
  .credits-grid {
    display: block; /* Passe en affichage bloc */
    width: 100%;
  }
  .credit-item {
    display: block; /* Chaque item prend toute la largeur */
    margin-bottom: 10px;
    text-align: center; /*   */
  }
  .role {
    display: block; /* Le rôle sur une ligne */
    font-weight: 300;
    text-align: center; /* ajouté pour centrer le role*/
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px; /* Espace entre le rôle et le nom */
  }
  .role::after {
    content: ""; /* Masque les deux-points */
  }
  .name {
    display: block; /* Le nom en dessous du rôle */
    text-align: center; /* Le nom centré*/
    font-weight: 400; /* remplace 700*/
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word; /* Pour gérer les noms longs */
  }
  .date-line {
    margin-top: 15px;
    text-align: center;
  }
}
