/* moisdudoc.be */
:root {
  --mdd-grey-very-dark: rgba(255, 255, 255, 0.1);
  --mdd-grey-dark: rgba(255, 255, 255, 0.2);
  --mdd-orange: rgb(236, 103, 27);
  --mdd-orange-dark: rgb(142, 55, 11);
  --mdd-orange-light: rgb(230, 210, 199);
}


/* =========================================================
   VIEW TRANSITIONS (MPA) – Blog card ↔ Single view
   ========================================================= */

@view-transition { navigation: none; } /* put AUTO to enable or NONE to disable */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ===== BLOG: the card carries both values ===== */
.el-item[data-vt] {
  --vt-img: attr(data-vt type(<custom-ident>));      /* vt-img-3714 */
}
.el-item[id^="vt-title-"] {
  --vt-title: attr(id type(<custom-ident>));         /* vt-title-3714 */
}

/* title box hugs its text (always, so nothing jumps on hover) */
.el-item[id^="vt-title-"] .el-title {
  width: fit-content;
}

/* name ONLY the card being clicked (hover = mouse/touch, focus-within = keyboard) */
.el-item[data-vt]:is(:hover, :focus-within) .uk-inline-clip {
  view-transition-name: var(--vt-img);
  view-transition-class: vt-img;
}
.el-item[id^="vt-title-"]:is(:hover, :focus-within) .el-title {
  view-transition-name: var(--vt-title);
  view-transition-class: vt-title;
}

/* ===== SINGLE: each element carries its own value ===== */
#affiche[data-vt] {
  --vt-img: attr(data-vt type(<custom-ident>));
}
#affiche[data-vt] img {
  view-transition-name: var(--vt-img);
  view-transition-class: vt-img;
}

h1.titre-film[data-vt] {
  width: fit-content;
  margin-inline: auto;                               /* centred below @m */
  view-transition-name: attr(data-vt type(<custom-ident>));
  view-transition-class: vt-title;
}
@media (min-width: 960px) {
  h1.titre-film[data-vt] { margin-inline: 0; }      /* left-aligned from @m */
}

/* ===== Animation ===== */
::view-transition-group(.vt-img),
::view-transition-group(.vt-title) {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}

/* titles: scale each snapshot evenly instead of squashing it */
::view-transition-old(.vt-title),
::view-transition-new(.vt-title) {
  height: 100%;
  width: auto;
}

/* hero colour change waits until the transition is over */
/* duration 1s, delay 1s bc of View Transition */
/*#filmbanner {
  transition: background-color 1s ease 1s;   
}*/
#filmbanner {
  transition: background-color 1s ease;   
}



/* inspired by https://alligator.io/css/css-scrollbars/ and https://css-tricks.com/ */
/* The emerging W3C standard
   that is currently Firefox-only */
   * {
    /*scrollbar-width: thin;*/
    scrollbar-color: linear-gradient(180deg,var(--mdd-orange),var(--mdd-orange-light));
  }
  /* Works on Chrome/Edge/Safari */
  *::-webkit-scrollbar {
    width: 20px;
  }
  *::-webkit-scrollbar-track {
    background: #eee;
  }
  *::-webkit-scrollbar-thumb {
      background: -webkit-gradient(linear,left top,left bottom,from(var(--mdd-orange)),to(var(--mdd-orange-light)));
      background: linear-gradient(180deg,var(--mdd-orange),var(--mdd-orange-light));
    border-radius: 20px;
    border: 3px solid #eee;
    box-shadow: inset 2px 2px 2px hsla(0,0%,100%,.25),inset -2px -2px 2px rgba(0,0,0,.25);
  }
  

.uk-card-title {
  font-size: 22px;
}


/* les 2 carrés sur pointe à gauche de la bannière */
/* NB : le after passe devant l'affiche du film, c'est pour ça que je mets le after à gauche et le before à droite */
/*
#filmbanner {
  position: relative;
  overflow: hidden;
}
@media (min-width: 960px) {
  #filmbanner:before,
  #filmbanner:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--mdd-grey-very-dark);
    border: 1px solid var(--mdd-grey-dark);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  #filmbanner:before {
    top: 16%;
    left: 200px;
  }
  #filmbanner:after {
    top: 16%;
    left: 50px;
  }
}
*/


@media (max-width: 960px) {
  .uk-text-right,
  .uk-text-left {
    text-align: center !important;
  }
}
.tarteaucitronIconBottomLeft {
  bottom: 30px !important;
  left: -10px !important;
}
#tarteaucitronIcon #tarteaucitronManager img {
  width: 30px !important;
  height: 30px !important;
}
/*@media (max-width: 960px) {
    .tarteaucitronIconBottomLeft {
        bottom: -10px !important;
        left: unset !important;
        right: -10px !important;
    }
    #tarteaucitronIcon #tarteaucitronManager img {
        width: 30px !important;
        height: 30px !important;
    }
}*/

/* sharing buttons */
@media (max-width: 960px) {
  #mod-custom112 {
    left: unset !important;
    right: 0 !important;
  }
}
.resp-sharing-button--twitter,
.resp-sharing-button--linkedin {
  display: none;
}

.uk-section-default
  a:not(.uk-button):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) {
  color: var(--mdd-orange-dark);
  font-weight: 500;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--mdd-orange);
  text-decoration-color: var(--mdd-orange);
  text-decoration-thickness: 0.125em;
  text-underline-offset: 0.125em;
}
.uk-section-default
  a:not(.uk-button):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):hover {
  text-decoration-thickness: 0.25em;
  text-underline-offset: 0.125em;
}

.uk-pagination a {
  text-decoration: none !important;
  padding: 10px;
  border: solid 2px lightgrey;
  border-radius: 30px;
  transition: 1s ease;
}
.uk-pagination a:hover {
  border: solid 2px var(--mdd-orange);
}
a.btn.btn-primary {
  /* pour les boutons Joomla natifs en front comme "nouvel article" */
  background: var(--mdd-orange);
  color: white !important;
}

.uk-navbar-nav > li > a {
  color: #2d2e33;
}
.uk-navbar-nav > li.uk-active > a {
  color: var(--mdd-orange-dark);
  text-decoration: underline;
  text-decoration-color: var(--mdd-orange);
  text-decoration-thickness: 0.125em;
  text-underline-offset: 0.5em;
}

/* ACCESSIBILITY */
._access-icon.material-icons {
  width: 30px !important;
  height: 30px !important;
  font-size: 30px !important;
  line-height: 30px !important;
  text-indent: 0 !important;
  background-color: var(--mdd-orange) !important;
  bottom: 0px !important;
  box-shadow: none !important; /*1px 1px 5px rgba(213 54 71 / 50%) !important;*/
}
._access-icon:hover {
  transform: scale(1) !important;
  box-shadow: none !important; /*1px 1px 10px rgba(213 54 71 / 90%) !important;*/
  background-color: var(--mdd-orange-dark) !important;
}

/* Animate the size, outside - https://codepen.io/giana/pen/BZaGyP */
/* j'exclus btn-info pour exclure les Tags */
.uk-button:hover,
.uk-button:focus {
  -webkit-animation: pulse 1s;
  animation: pulse 1s;
  box-shadow: 0 0 0 0.8em rgba(255, 255, 255, 0); /* attention: doit mettre un rgba et pas juste black sinon on a vraiment une ombre noire persistente et pas l'effet pulse */
}

@-webkit-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--mdd-orange);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--mdd-orange);
  }
}

/*h2 {
    background: -webkit-linear-gradient(0deg, var(--mdd-orange-dark), var(--mdd-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: -moz-fit-content;
    width: fit-content;
    margin-bottom: 10px;
}*/

h1:not(.titre-film),
h2 {
  color: var(--mdd-orange-dark) !important;
}
h1 {
  font-weight: 900;
  letter-spacing: 0.2rem;
}

.uk-button {
  border: lightgrey solid 1px;
  /* text-transform: none; */
}

/* pour liste d'articles en front-end sinon centré */
th {
  text-align: left;
}

a.el-slidenav {
  color: white !important;
  background: rgba(0, 0, 0, 0.5);
}

span.jfilters-item__label-text {
  font-size: 0.85rem;
}
.jfilters-filter-header button { /* pointer was there on .jfilters-filter-header but button had another one in the template, overriding it */
  cursor: pointer;
}

/* website carbon calculator - note: transparency would not work */
#wcb.carbonbadge {
  --b1: var(--mdd-orange) !important;
  --b2: var(--mdd-orange-light) !important;
  font-size: 13px !important;
}


hr {
  border-top: 1px solid var(--mdd-orange);
}

/* pour rendre les tabs des Custom Fields colorés en édition front-end */

joomla-tab button[aria-controls*="fields"] {
  background: rgba(236, 103, 27, 1);
  color: white;
}

joomla-tab button[aria-controls*="fields"]:hover {
  background: rgba(236, 103, 27, 0.8);
  color: white;
}

joomla-tab button[aria-controls*="fields-4"] {
  background: rgba(0, 0, 0, 1);
  color: white;
}

joomla-tabbutton[aria-controls*="fields-4"]:hover {
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

joomla-tab button[aria-controls*="fields"]:before {
  font-family: "FontAwesome";
  font-style: normal;
  speak: none;
  content: "\f1b3";
  margin-right: 5px;
}
/* content: "\f1b3"; /* les trois cubes */
/* content: "\f055"; /* le + dans un cercle */