/* Prog animation */
/* Conteneur global centré */
.schedule-tabs-container,
.type-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding-top: 2rem;
}

/* Le wrapper des boutons (fond blanc pillule optionnel) */
.schedule-tabs,
.type-tabs {

  padding: 5px;
  border-radius: 50px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px; /* Espace entre les boutons */
  box-shadow: var(--shadow-soft);
  position: relative;
}

.schedule-tabs:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: color-mix(in srgb, var(--color-white), transparent 75%);
    box-shadow: 0 0 1rem color-mix(in srgb, var(--color-black), transparent 75%);
    border: 1px solid var(--color-gray-light);
    border-radius: 50px;
}
/* Style des boutons */
.tab-btn,
.type-btn {
  background: transparent;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Inter', sans-serif; /* Ta police */
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-grey);
  transition: all 0.3s ease;
  display: flex;
  gap: 5px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.view-filters {
    display: flex;
    align-items: center;
    justify-content: center;
}
.views-exposed-form {
    display: flex;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    box-shadow: 0 0 0.5rem color-mix(in srgb, var(--color-black), transparent 75%);
    padding: 0.5rem;
    border-radius: 50px;
    max-width: 100%;
    gap: 1rem;
}
.views-exposed-form .form-wrapper {
    margin-bottom: 0;
    
}
.views-exposed-form .form-text {
    border: 0;
    margin-top: 0;
    line-height: 30px;
    padding: 10px;
    width: 100%;
}
.views-exposed-form .form-type-textfield {
    display: flex;
    align-items: center;
}
.views-exposed-form .form-type-textfield:before {
    content: '\e8b6';
    display: inline-block;
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 30px;
    color: var(--color-gray-light);
    font-family: 'Material Symbols Rounded';
}   
.views-exposed-form .form-wrapper button.form-submit {
    box-shadow: none;
    background-color: var(--color-blue);
    color: var(--color-white);
    margin: 0;
}
/* État Hover (au survol) */
.tab-btn:hover {
  background-color: #f3f4f6;
}

/* État Actif (Sélectionné) - Comme sur l'image */
.tab-btn.active {
  background-color: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(84, 91, 232, 0.3);
}

/* Gestion de l'affichage du contenu */
.day-content,
.view-programme .views-row {
  display: none;
  animation: fadeIn 0.5s ease;
}

.day-content.active,
.view-programme .views-row.active {
  display: block; /* Affiché si actif */
}



/* aniamtion */
.view-programme .views-row {
  margin-bottom: 3rem
}
.content-anim {
  border: 1px solid #CCC;
  box-shadow: 2px 2px 0 var(--color-gray-light);
  background-color: var(--color-white);
  width: 100%;
  padding: 1rem 1rem 1rem 2rem;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}
.content-anim:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-blue);
  width: 10px;
  height: 100%;
}
.node--type-animation.node--view-mode-teaser h2 {
  font-size: 1.6rem;
}
.node--type-animation.node--view-mode-teaser h2 a {
  color: var(--color-black);
  text-decoration: none;
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { 
  width: calc(100% - var(--bs-gutter-x) );
}

.field--name-field-animation-salle {
  display: flex;
  align-items: center;
  color: var(--color-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.field--name-field-animation-salle::before {
  content: "\e0c8";
  display: block;
  font-family: "Material Symbols Rounded";
  font-size: 24px;
  font-weight: normal;
  color: var(--color-blue);
}
.node--type-animation.node--view-mode-teaser .field--name-field-animation-horaires {
  text-align: right;
  padding-top: 1rem;
  padding-right: 1rem;
  max-width: 140px;
  width: 100%;
  margin-left: auto;
  margin-bottom: 1rem;
}
.node--type-animation.node--view-mode-teaser .field--name-field-animation-horaires time {
  display: block;
  text-align: right;
}
.node--type-animation.node--view-mode-teaser .field--name-field-animation-horaires time:nth-child(1) {
  font-size: 2rem;
  color: var(--color-blue);
  font-weight: 900;
  font-family: "Unbounded", sans-serif;
}
.node--type-animation.node--view-mode-teaser .field--name-field-animation-horaires time:nth-child(2) {
  color: var(--color-gray);
  font-weight: bold;
  font-size: 1.5rem;
}
.field--name-field-animation-type,
.type-btn  {
  color: var(--color-blue);
  border-radius: 2rem;
  padding: 0.15rem 1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
  display: inline-block;
}
.field--name-field-animation-type:before,
.type-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-blue);
  opacity: 0.4;
}
.type-btn .type-title {
    position: relative;
    z-index: 10;
}
.type-btn.active .type-title {
    color: var(--color-white);
}
.type-btn.active:before {
    opacity: 1;
}
.field--name-field-animation-intervenant {
  border-top: 1px solid var(--color-gray-light);
  padding-top: 1rem;
  margin-top: 1rem;
}
.field--name-field-animation-intervenant .field--name-field-int-fonction {
  font-weight: bold;
  color: var(--color-blue);
  text-transform: uppercase;
  font-size: 0.8rem;
}
.node--type-animation.node--view-mode-teaser .links {
  text-align: right;
}
.node--type-animation.node--view-mode-teaser .links a {
  color: var(--color-blue);
}
/* animation type conf */
.type-btn.active[data-target="all"] {
    color: var(--color-white);
}
.type-btn.active[data-target="all"]:before {
    background-color: var(--color-black);
}
.type-btn[data-target="all"] {
    color: var(--color-black);
}
.type-btn[data-target="all"]:before {
    background-color: var(--color-black);
    color: var(--color-black);
}
/* Type 1 */
.node--type-animation.node--view-mode-teaser[data-type="12"] .field--name-field-animation-horaires time:nth-child(1),
.node--type-animation[data-type="12"] .field--name-field-animation-salle::before,
.node--type-animation[data-type="12"] .field--name-field-animation-type,
.node--type-animation[data-type="12"] .links a,
.node--type-animation[data-type="12"] .field--name-field-animation-intervenant .field--name-field-int-fonction,
.type-btn[data-target="12"],
.node--type-animation[data-type="12"] .btn {
    color: var(--color-green);
}
.node--type-animation[data-type="12"] .field--name-field-animation-type:before,
.node--type-animation[data-type="12"] .content-anim:before,
.type-btn[data-target="12"]:before,
.node--type-animation[data-type="12"] .field--name-field-animation-type:before,
.node--type-animation[data-type="12"] .layout__region_right .date-simple:before,
.node--type-animation[data-type="12"] .layout__region_right .heure:before,
.node--type-animation[data-type="12"] .layout__region_right .field--name-field-animation-salle:before,
.node--type-animation[data-type="12"] .layout__region_right .date-simple:before, 
.node--type-animation[data-type="12"] .layout__region_right .heure:before, 
.node--type-animation[data-type="12"] .layout__region_right .field--name-field-animation-salle:before {
  background-color: var(--color-green);
}
.node--type-animation[data-type="12"]  .layout__region_right,
.node--type-animation[data-type="12"] .btn {
    box-shadow: 5px 5px 0 var(--color-green);
}


/* Type 2 */
.node--type-animation.node--view-mode-teaser[data-type="13"] .field--name-field-animation-horaires time:nth-child(1),
.node--type-animation[data-type="13"] .field--name-field-animation-salle::before,
.node--type-animation[data-type="13"] .field--name-field-animation-type,
.node--type-animation[data-type="13"] .links a,
.node--type-animation[data-type="13"] .field--name-field-animation-intervenant .field--name-field-int-fonction,
.type-btn[data-target="13"],
.node--type-animation[data-type="13"] .btn {
    color: var(--color-orange);
}
.node--type-animation[data-type="13"] .field--name-field-animation-type:before,
.node--type-animation[data-type="13"] .content-anim:before,
.type-btn[data-target="13"]:before,
.node--type-animation[data-type="13"] .layout__region_right .date-simple:before,
.node--type-animation[data-type="13"] .layout__region_right .heure:before,
.node--type-animation[data-type="13"] .layout__region_right .field--name-field-animation-salle:before,
.node--type-animation[data-type="13"] .layout__region_right .date-simple:before, 
.node--type-animation[data-type="13"] .layout__region_right .heure:before, 
.node--type-animation[data-type="13"] .layout__region_right .field--name-field-animation-salle:before {
  background-color: var(--color-orange);
}
.node--type-animation[data-type="13"] .date-anim svg,
.node--type-animation[data-type="13"] .horaire-anim svg {
  fill: var(--color-orange);
}
.node--type-animation.node--view-mode-full[data-type="13"] .layout__region_right {
    box-shadow: 5px 5px 0 var(--color-orange);
}
.node--type-animation[data-type="13"]  .layout__region_right,
.node--type-animation[data-type="13"] .btn {
    box-shadow: 5px 5px 0 var(--color-orange);
}

/* Type 3 */
.node--type-animation.node--view-mode-teaser[data-type="14"] .field--name-field-animation-horaires time:nth-child(1),
.node--type-animation[data-type="14"] .field--name-field-animation-salle::before,
.node--type-animation[data-type="14"] .field--name-field-animation-type,
.node--type-animation[data-type="14"] .links a,
.node--type-animation[data-type="14"] .field--name-field-animation-intervenant .field--name-field-int-fonction,
.type-btn[data-target="14"],
.node--type-animation[data-type="14"] .btn {
    color: var(--color-blue);
}
.node--type-animation[data-type="14"] .field--name-field-animation-type:before,
.node--type-animation[data-type="14"] .content-anim:before,
.type-btn[data-target="14"]:before,
.node--type-animation[data-type="14"] .layout__region_right .date-simple:before,
.node--type-animation[data-type="14"] .layout__region_right .heure:before,
.node--type-animation[data-type="14"] .layout__region_right .field--name-field-animation-salle:before,
.node--type-animation[data-type="14"] .layout__region_right .date-simple:before, 
.node--type-animation[data-type="14"] .layout__region_right .heure:before, 
.node--type-animation[data-type="14"] .layout__region_right .field--name-field-animation-salle:before {
  background-color: var(--color-blue);
}
.node--type-animation[data-type="14"] .date-anim svg,
.node--type-animation[data-type="14"] .horaire-anim svg {
  fill: var(--color-blue);
}
.node--type-animation.node--view-mode-full[data-type="14"] .layout__region_right {
    box-shadow: 5px 5px 0 var(--color-blue);
}
.node--type-animation[data-type="14"]  .layout__region_right,
.node--type-animation[data-type="14"] .btn {
    box-shadow: 5px 5px 0 var(--color-blue);
}

.node--type-animation .layout__region_right .date-simple,
.node--type-animation .layout__region_right .heure,
.node--type-animation .layout__region_right .field--name-field-animation-salle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.node--type-animation .layout__region_right .date-simple:before,
.node--type-animation .layout__region_right .heure:before,
.node--type-animation .layout__region_right .field--name-field-animation-salle:before {
    content: '\e935';
    font-family: 'Material Symbols Rounded';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
}
.node--type-animation.node--view-mode-full .layout__region_right .heure:before {
    content: '\e8b5';
}
.node--type-animation.node--view-mode-full .layout__region_right .field--name-field-animation-salle:before {
    content: '\e0c8';
}
.node--type-animation.node--view-mode-full .heure time,
.node--type-animation.node--view-mode-full .field--name-field-animation-horaires time,
.node--type-animation.node--view-mode-full .field--name-field-animation-salle .field__item {
    font-weight: bold;
    color: var(--color-black);
}

.node--type-animation.node--view-mode-full .field--name-field-animation-horaires .field__label,
.node--type-animation.node--view-mode-full .field--name-field-animation-salle .field__label {
    font-weight: normal;
    color: var(--color-gray);
}
.node--type-animation .layout__region_right {
    border: 1px solid #CCC;
    box-shadow: 5px 5px 0 var(--color-blue);
    border-radius: 2rem;
    padding: 1rem 1rem 0 1rem;
}
.node--type-animation.node--view-mode-full .layout__region_right h3 {
    margin: 1rem 0;
}
.bloc--related-nodes-block {
    display: flex;
    gap: 1rem;
    position: relative;
}
.bloc--related-nodes-block .field--name-field-animation-horaires {
    display: none;
}
.node--type-animation.node--view-mode-full .layout__region_left .field--name-field-animation-intervenant {
    background-color: color-mix(in srgb, var(--color-orange), transparent 75%);
    padding: 1rem;
    border-radius: 1rem;
}
.node--type-animation.node--view-mode-full .layout__region_left .field--name-field-animation-intervenant .field--name-field-int-fonction {
    color: var(--color-black);
}
.node--type-animation.node--view-mode-full .field--name-field-animation-intervenant h3 {
    color: var(--color-orange);
}
.date-anim,
.horaire-anim {
  color: var(--color-gray);
}
.date-anim svg,
.horaire-anim svg,
.horaire-anim svg {
  fill: var(--color-gray);
  font-weight: 600;
}
.view-interventions .views-row {
  margin-bottom: 1rem;
}

@media (min-width: 72em) {
  .node--type-animation.node--view-mode-teaser .field--name-field-animation-horaires {
    max-width: 160px;
  }
  .node--type-animation.node--view-mode-teaser>.node__content {
    display: flex;
  }
  .views-exposed-form {
    max-width: 600px;
  }
  .views-exposed-form .form-type-textfield:before {
    width: 50px;
    height: 50px;
    font-size: 50px;
    line-height: 50px;
  }
}