/* NUQTA 4.9.37 - editorial layout and one-line category / advanced-filter toolbar. */
.tp .tp-activities__emphasis {display:inline-block;white-space:nowrap;letter-spacing:-.035em;}
.tp .tp-section-heading--activities {align-items:flex-start;}
.tp .tp-activities__mobile-more {display:flex;justify-content:flex-end;margin-top:24px;}
.tp .tp-activities__mobile-more .tp-activities__more {
  display:inline-flex;align-items:center;justify-content:center;min-height:47px;
  gap:11px;max-width:100%;font-size:13px;padding:12px 18px;
  width:auto;white-space:normal;border-radius:10px;
}
.tp .tp-filter-drawer {width:100%;margin:10px 0 16px;}
.tp .tp-filter-drawer__toggle {
  margin-left:auto;display:flex;align-items:center;gap:9px;justify-content:center;
  width:fit-content;min-width:198px;padding:12px 16px;min-height:44px;
  color:#292929;background:#fff;border:1px solid #dedede;border-radius:11px;
  font-size:12px;font-weight:800;line-height:1.3;list-style:none;cursor:pointer;
  transition:border-color .18s ease,background .18s ease;
}
.tp .tp-filter-drawer__toggle::-webkit-details-marker {display:none;}
.tp .tp-filter-drawer__toggle::marker {content:'';}
.tp .tp-filter-drawer__toggle svg {flex:0 0 18px;color:var(--tp-purple,#B90000);}
.tp .tp-filter-drawer__toggle:hover,
.tp .tp-filter-drawer[open] .tp-filter-drawer__toggle {border-color:var(--tp-purple,#B90000);background:#fff8f8;}
.tp .tp-filter-drawer__chevron {height:8px;width:8px;border:solid #555;border-width:0 2px 2px 0;transform:rotate(45deg);margin-left:6px;transition:transform .2s ease;}
.tp .tp-filter-drawer[open] .tp-filter-drawer__chevron {transform:rotate(225deg);}
.tp .tp-filter-drawer:not([open]) .tp-advanced-filters {display:none!important;}
.tp .tp-filter-drawer .tp-advanced-filters {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;
  align-items:end;margin:13px 0 0;padding:18px;border:1px solid #e5e5e5;
  border-radius:13px;background:#fafafa;box-shadow:0 8px 25px #17171708;
}
.tp .tp-filter-drawer .tp-advanced-filters label {
  width:100%;max-width:none;min-width:0;display:flex;flex-direction:column;
  gap:7px;color:#242424;font-size:12px;font-weight:750;
}
.tp .tp-filter-drawer .tp-advanced-filters select {
  width:100%;max-width:none;min-height:44px;border:1px solid #d8d8d8;
  color:#272727;border-radius:9px;padding:9px 11px;background:#fff;
  font:inherit;font-size:13px;line-height:1.35;
}
.tp .tp-form__row--occupation {display:grid;grid-template-columns:minmax(0,1fr);width:100%;}
.tp .tp-form__row--occupation > label {display:block;max-width:none;width:100%;min-width:0;}
.tp .tp-form__row--occupation #tp-occupation {display:block;width:100%;min-width:0;}
.tp .tp-origins {padding:76px 0 80px;background:#f6f6f6;border-top:1px solid #ebebeb;}
.tp .tp-origins__layout {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.9fr);align-items:center;gap:70px;}
.tp .tp-origins__main .tp-h2 {margin:10px 0 20px;color:#171717;line-height:1.16;}
.tp .tp-origins__main > p {max-width:705px;font-size:15px;line-height:1.9;color:#545454;margin:0 0 13px;}
.tp .tp-origins__main > .tp-origins__conclusion {border-left:3px solid var(--tp-purple,#B90000);padding-left:16px;color:#242424;font-weight:650;margin-top:21px;}
.tp .tp-origins__map {display:grid;grid-template-columns:1fr;gap:10px;}
.tp .tp-origins__map > div {border:1px solid #e4e4e4;background:#fff;padding:17px 22px;border-radius:12px;display:grid;grid-template-columns:42px 1fr;gap:0 9px;align-items:center;}
.tp .tp-origins__map span {color:#888;font-size:12px;font-weight:800;grid-row:span 2;}
.tp .tp-origins__map strong {color:#1b1b1b;font-size:16px;line-height:1.35;}
.tp .tp-origins__map small {color:#777;font-size:12px;line-height:1.45;}
.tp .tp-origins__map > .tp-origins__third {background:#171717;border-color:#171717;}
.tp .tp-origins__map > .tp-origins__third span {color:#ff8181;}
.tp .tp-origins__map > .tp-origins__third strong {color:#fff;}
.tp .tp-origins__map > .tp-origins__third small {color:#ddd;}
@media (max-width:950px){
 .tp .tp-origins__layout {grid-template-columns:1fr;gap:25px;}
 .tp .tp-activities__emphasis {font-size:clamp(26px,3.5vw,40px);}
}
@media (max-width:600px){
 .tp .tp-activities__mobile-more {display:flex!important;justify-content:center;margin:18px 0 0;}
 .tp .tp-activities__mobile-more .tp-activities__more {width:100%;min-height:46px;}
 .tp .tp-section-heading--activities .tp-h2 {font-size:clamp(26px,7.3vw,36px);}
 .tp .tp-section-heading--activities .tp-activities__emphasis {display:block;white-space:nowrap;font-size:clamp(20px,6vw,27px);line-height:1.35;letter-spacing:-.04em;}
 .tp .tp-filter-drawer__toggle {width:100%;justify-content:space-between;min-width:0;}
 .tp .tp-filter-drawer .tp-advanced-filters {grid-template-columns:minmax(0,1fr);gap:12px;padding:14px;}
 .tp .tp-filter-drawer .tp-advanced-filters label {gap:6px;font-size:12px;}
 .tp .tp-filter-drawer .tp-advanced-filters select {min-height:45px;font-size:14px;}
 .tp .tp-origins {padding:53px 0 56px;}
 .tp .tp-origins__main > p {font-size:13px;line-height:1.85;}
 .tp .tp-origins__map {gap:8px;}
 .tp .tp-origins__map > div {padding:14px 16px;}
 /* CSS vector arrow replaces blue system emoji glyph on muted gray buttons. */
 .tp .tp-arrow {
   display:inline-block!important;width:19px!important;height:19px!important;min-width:19px;
   font-size:0!important;line-height:0!important;vertical-align:middle!important;
   color:var(--tp-purple,#B90000);
   background-color:currentColor!important;
   -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 16L16 4M7 4h9v9' stroke='%23000' fill='none' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
   mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 16L16 4M7 4h9v9' stroke='%23000' fill='none' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
 }
 .tp :is(.tp-button--dark,.tp-button--submit,.tp-featured__cta,.tp-event__mobile-cta) .tp-arrow {color:#fff;}
 .tp .tp-button--outline-light .tp-arrow {color:#fff;}
 .tp .tp-button--light .tp-arrow,
 .tp .tp-activity__open .tp-arrow {color:var(--tp-card-accent,var(--tp-purple,#B90000));}
 .tp.tp-corner-page--cine .tp-catalog__masthead .tp-arrow {color:#ac3049;}
 .tp.tp-corner-page--skill .tp-catalog__masthead .tp-arrow {color:#815110;}
 .tp.tp-corner-page--speech .tp-catalog__masthead .tp-arrow {color:#0b756d;}
 .tp :is(.tp-learning-nav__last,.tp-learning-outro__button,.tp-speech-outro__button) .tp-arrow {color:inherit;}
}
@media(max-width:340px){.tp .tp-section-heading--activities .tp-activities__emphasis{font-size:19px;}}
@media(prefers-reduced-motion:reduce){.tp .tp-filter-drawer__chevron{transition:none;}}

/* 4.9.37: Keep Affiner les activités LEVEL with the category tabs.
   On narrow screens the categories scroll horizontally, but the refinement control
   stays visible at the right. The native <details> panel remains accessible. */
.tp .tp-activity-toolbar {
  position:relative;z-index:2;display:flex;align-items:center;
  min-width:0;gap:12px;margin:0 0 18px;
}
.tp .tp-activity-toolbar .tp-filters {
  display:flex;flex:1 1 auto;min-width:0;flex-wrap:nowrap;align-items:center;
  overflow-x:auto;overflow-y:hidden;gap:8px;margin:0;padding:3px 0 6px;
  white-space:nowrap;scrollbar-width:thin;scrollbar-color:#c7c7c7 transparent;
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
.tp .tp-activity-toolbar .tp-filters::-webkit-scrollbar {height:4px;}
.tp .tp-activity-toolbar .tp-filters::-webkit-scrollbar-thumb {background:#c7c7c7;border-radius:8px;}
.tp .tp-activity-toolbar .tp-filter {
  flex:0 0 auto;white-space:nowrap;min-height:44px;
  padding:10px 14px;border-radius:9px;
}
.tp .tp-activity-toolbar .tp-filter-drawer {flex:0 0 auto;width:auto;margin:0;}
.tp .tp-activity-toolbar .tp-filter-drawer__toggle {
  margin:0;width:auto;min-width:0;min-height:44px;
  border-radius:9px;padding:10px 13px;white-space:nowrap;
}
.tp .tp-activity-toolbar .tp-filter-drawer[open] .tp-advanced-filters {
  position:absolute;z-index:30;right:0;top:calc(100% + 7px);
  box-sizing:border-box;width:min(650px,100%);margin:0;
  background:#fff;box-shadow:0 18px 42px #17171721;
}
.tp .tp-activity-toolbar .tp-filter:focus-visible,
.tp .tp-activity-toolbar .tp-filter-drawer__toggle:focus-visible {
  outline:2px solid var(--tp-purple,#B90000);outline-offset:2px;
}
@media(max-width:740px) {
  .tp .tp-activity-toolbar {gap:8px;}
  .tp .tp-activity-toolbar .tp-filter {font-size:11px;padding:9px 11px;min-height:42px;}
  .tp .tp-activity-toolbar .tp-filter-drawer__toggle {
    font-size:11px;min-height:42px;gap:7px;padding:9px 10px;
  }
  .tp .tp-activity-toolbar .tp-filter-drawer__toggle svg {width:15px;height:15px;flex-basis:15px;}
  .tp .tp-activity-toolbar .tp-filter-drawer__chevron {width:7px;height:7px;margin-left:1px;}
}
@media(max-width:600px) {
  .tp .tp-activity-toolbar {gap:7px;margin-bottom:14px;}
  .tp .tp-activity-toolbar .tp-filters {gap:6px;padding:2px 0 5px;}
  .tp .tp-activity-toolbar .tp-filter {font-size:11px;padding:8px 10px;}
  .tp .tp-activity-toolbar .tp-filter-drawer__toggle {
    width:auto;justify-content:center;gap:5px;font-size:10px;line-height:1.25;
    padding:8px 9px;
  }
  .tp .tp-activity-toolbar .tp-filter-drawer__chevron {display:none;}
  .tp .tp-activity-toolbar .tp-filter-drawer[open] .tp-advanced-filters {
    width:100%;grid-template-columns:minmax(0,1fr);gap:12px;
    padding:14px;
  }
}
