/*
 * Nuqta Third Place 4.9.31 — rouge + noir.
 * This file loads AFTER youth/priorities, and affects only the Third Place
 * namespace. The three corner tokens are deliberately never overridden.
 * --tp-purple is the historical setting key for the now-red MAIN accent.
 */
.tp {
  --tp-dark:#151515;
  --tp-ink:#171717;
  --tp-purple-dark:#111111;
  --tp-paper:#fff;
  --tp-soft:#f7f7f7;
  --tp-mute:#616161;
  color:var(--tp-ink);
}
.tp :is(a,button,input,select,textarea):focus-visible,
.tp details summary:focus-visible { outline-color:var(--tp-purple,#B90000); }
.tp .tp-progress { background:linear-gradient(90deg,#111 0 68%,var(--tp-purple,#B90000) 68% 100%); }
.tp .tp-kicker { color:#8f1717; }
.tp .tp-kicker::before { background:var(--tp-purple,#B90000); }
.tp .tp-h2 em { color:var(--tp-purple,#B90000); }
.tp .tp-button--dark,
.tp .tp-button--submit { background:var(--tp-purple,#B90000);border-color:var(--tp-purple,#B90000);color:#fff; }
.tp .tp-button--dark:hover,
.tp .tp-button--submit:hover { background:#880000;border-color:#880000;color:#fff; }

/* Principal: dark editorial hero, unmistakably red brand detail. */
.tp .tp-hero { background:linear-gradient(117deg,#101010 0%,#231111 47%,#750000 96%,#B90000 160%); }
.tp .tp-hero__glow { border-color:#ffffff24;box-shadow:0 0 0 100px #b9000012,0 0 0 200px #b9000009; }
.tp .tp-eyebrow { color:#f3e4e4; }
.tp .tp-eyebrow__dot { background:#ef5555; }
.tp .tp-eyebrow__rule { background:#f07171; }
.tp .tp-hero__title-spark,
.tp .tp-hero__micro-star { color:#ff7272; }
.tp .tp-hero__mantra { background:var(--tp-purple,#B90000);color:#fff;box-shadow:5px 5px 0 #0000005a; }
.tp .tp-hero__intro { color:#f1e7e7; }
.tp .tp-hero__micro { color:#e9cccc; }
.tp .tp-button--light { color:#171717; }
.tp .tp-button--light:hover { background:#fff1f1;color:#111; }
.tp .tp-button--outline-light { border-color:#ffffff9e;color:#fff; }
.tp .tp-button--outline-light:hover { background:#ffffff20;color:#fff; }
.tp .tp-hero__visual { border-color:#ffffff5e;box-shadow:0 18px 42px #00000072; }
.tp .tp-hero__visual-label { border-color:#ffffff99;background:#141414cb; }
@media (max-width:600px) {
  .tp .tp-hero__actions .tp-button--light .tp-hero__arrow-mobile { color:#8e0000;background:#ffecec;border-color:#f4c7c7; }
  .tp .tp-hero__actions .tp-button--outline-light .tp-hero__arrow-mobile { color:#fff;background:var(--tp-purple,#B90000);border-color:#ffffff52; }
}

/* Why / room: restrained monochrome grounds, red emphasis. */
.tp .tp-why { background:#fff; }
.tp .tp-number__halo { background:#fbe8e8; }
.tp .tp-number__digit,
.tp .tp-number strong { color:var(--tp-purple,#B90000); }
.tp .tp-number__star { color:#161616; }
.tp .tp-why__copy p,
.tp .tp-benefit p { color:#595959; }
.tp .tp-why__copy p strong,
.tp .tp-benefit strong { color:#171717; }
.tp .tp-benefit__check { background:#fce8e8;color:#a20000;border-radius:0; }
.tp .tp-morph { background:#f6f6f6; }
.tp .tp-morph__copy>p:not(.tp-morph__mode-text) { color:#555; }
.tp .tp-morph__tab { border-color:#cecece;color:#292929; }
.tp .tp-morph__tab.is-active,
.tp .tp-morph__tab:hover { color:#fff;background:var(--tp-purple,#B90000);border-color:var(--tp-purple,#B90000); }
/* The talk/make modes intentionally borrow their own corner identities. */
.tp .tp-morph__tab[data-room-mode="talk"].is-active { background:var(--tp-talk);border-color:var(--tp-talk);color:#062d2b; }
.tp .tp-morph__tab[data-room-mode="make"].is-active { background:var(--tp-skill);border-color:var(--tp-skill);color:#241500; }
.tp .tp-morph__mode-text { border-color:var(--tp-purple,#B90000);color:#303030; }
.tp .tp-room { border-color:#e4e4e4;box-shadow:0 12px 30px #11111112; }
.tp .tp-room__outline { border-color:#e5e5e5;background-color:#fff; }
.tp .tp-room__stage { border-color:#4c4c4c;background:linear-gradient(135deg,#363636,#111);box-shadow:0 5px 0 #ddd; }
.tp .tp-room[data-mode="watch"] .tp-room__chair::before { background:#e76d6d;border-color:#9a1111; }
.tp .tp-room[data-mode="watch"] .tp-room__chair::after { background:#be2020;border-color:#9a1111; }
/* No override of talk/make chair colors or the corner cards' gradients. */

/* The corner trio is deliberately COLORFUL against a neutral backdrop. */
.tp .tp-corners { background:#fff; }
.tp .tp-corner { border-color:#e7e7e7;box-shadow:0 12px 23px #11111113; }
.tp .tp-corner:hover { box-shadow:0 18px 30px #11111123; }
.tp .tp-corner__more { color:#111; }

/* Announcements: generic controls are red; corner-coded badges stay coded. */
.tp .tp-featured { background:#fafafa; }
.tp .tp-featured__heading>.tp-kicker { color:#8f1717; }
.tp .tp-featured__card { border-color:#e2e2e2;border-inline-start-color:var(--tp-feature-color);box-shadow:0 12px 32px #11111112; }
.tp .tp-featured__visual { background:linear-gradient(130deg,#141414,#690000); }
.tp .tp-featured__placeholder { background:linear-gradient(130deg,#121212,#650000); }
.tp .tp-featured__placeholder>span { color:#ffcccc; }
.tp .tp-featured__content h2 { color:#181818; }
.tp .tp-featured__corner { color:#262626; }
.tp .tp-featured__intro,
.tp .tp-featured__facts { color:#626262; }
.tp .tp-featured__cta { background:var(--tp-purple,#B90000);color:#fff; }
.tp .tp-featured__cta:focus-visible { outline-color:#171717; }

/* Catalogue cards and filters: monochrome + red; each card top stays its corner. */
.tp .tp-activities,
.tp .tp-all-activities__listing { background:#f8f8f8; }
.tp .tp-filter { color:#303030;border-color:#d2d2d2;background:#fff; }
.tp .tp-filter:hover { background:#fff1f1;border-color:#c95454;color:#8a0000; }
.tp .tp-filter.is-active { background:var(--tp-purple,#B90000);border-color:var(--tp-purple,#B90000);color:#fff; }
.tp .tp-activities__more { background:#fff;color:var(--tp-purple,#B90000);border-color:var(--tp-purple,#B90000); }
.tp .tp-activities__more:hover { background:var(--tp-purple,#B90000);color:#fff; }
.tp .tp-activity { color:#171717;border-color:#e6e6e6;border-top-color:var(--tp-card-accent,var(--tp-purple,#B90000));box-shadow:0 6px 17px #1111110d; }
.tp .tp-activity:hover { border-color:var(--tp-card-accent,var(--tp-purple,#B90000));box-shadow:0 12px 26px #1111111b; }
.tp .tp-activity__photo { background:#eeeeee; }
.tp .tp-activity__body>.tp-activity__title,
.tp .tp-activity__body>strong { color:#191919; }
.tp .tp-activity__body>.tp-activity__topic { color:#444; }
.tp .tp-activity__body>.tp-activity__teaser,
.tp .tp-activity__body .tp-activity__fact { color:#666; }
.tp .tp-activity__open { background:#fafafa;border-top-color:#e9e9e9;color:#292929; }
.tp .tp-activity:hover .tp-activity__open { background:#f3f3f3; }
.tp .tp-activity__price { background:#f3f3f3;color:#2c2c2c; }
/* Corner-coded activity price, border and fact icons remain unchanged. */
.tp .tp-activity__state--soon { background:#fff1f1;color:#8e2222;border-color:#f5d8d8; }
.tp .tp-advanced-filters label { color:#333; }
.tp .tp-advanced-filters select { border-color:#d6d6d6;color:#292929; }
.tp .tp-filter-result { color:#626262; }
.tp .tp-filter-empty { background:#fff5f5;color:#6b3333;border-color:#eedada; }

/* Other editorial sections, FAQ, recaps and the final opt-in form. */
.tp .tp-upcoming { background:#fff; }
.tp .tp-upcoming__item { border-color:#e5e5e5; }
.tp .tp-upcoming__date { background:#ffecec; }
.tp .tp-upcoming__date strong { color:#9c0909; }
.tp .tp-upcoming__category,
.tp .tp-upcoming__action { color:#9c0909; }
.tp .tp-gallery { background:#f7f7f7; }
.tp .tp-gallery__empty { border-color:#dedede; }
.tp .tp-gallery__empty-illustration { background:linear-gradient(130deg,#191919,#890000);color:#fff; }
.tp .tp-gallery__empty-illustration span:nth-child(2) { color:#ef6666; }
.tp .tp-gallery__empty-illustration span:nth-child(3) { color:#fff; }
.tp .tp-gallery__post,
.tp .tp-gallery__concept { border-color:#e5e5e5; }
.tp .tp-gallery__visit,
.tp .tp-gallery__concept>div>span,
.tp .tp-gallery__tag { color:#920000; }
.tp .tp-gallery__concept h4 { color:#1b1b1b; }
.tp .tp-faq { border-top-color:#e8e8e8;background:#fff; }
.tp .tp-faq__heading h2 { color:#191919; }
.tp .tp-faq__item { border-color:#e0e0e0;background:#fafafa; }
.tp .tp-faq__item summary span { color:var(--tp-purple,#B90000); }
.tp .tp-faq__item p { color:#595959; }
.tp .tp-all-activities__summary a,
.tp .tp-archive-preview a,
.tp .tp-archive-preview__card span,
.tp .tp-speaker__role { color:#980000!important; }
.tp .tp-archive-preview__card,
.tp .tp-speaker { border-color:#e1e1e1; }
.tp .tp-speaker__role { color:#980000; }
.tp .tp-join { background:linear-gradient(116deg,#101010 0%,#241111 64%,#790000 175%); }
.tp .tp-join .tp-kicker--light { color:#f3d2d2; }
.tp .tp-join__copy .tp-h2 em { color:#ff8686; }
.tp .tp-join__copy>p { color:#eee1e1; }
.tp .tp-join__punch,
.tp .tp-join__stars { color:#ff8c8c; }
.tp .tp-join__form-box { border-color:#e7dcdc;color:#1d1d1d; }
.tp .tp-join__form-box h3 { color:#171717; }
.tp .tp-form__row>label,
.tp .tp-form__interests legend { color:#282828; }
.tp .tp-form__row input,
.tp .tp-form__select-label :is(select,textarea) { border-color:#d3d3d3;background:#fff;color:#1a1a1a; }
.tp .tp-form__chips input:checked+span { background:var(--tp-purple,#B90000);border-color:var(--tp-purple,#B90000);color:#fff; }
.tp .tp-form__row input:focus,
.tp .tp-form__select-label :is(select,textarea):focus,
.tp .tp-candidate__section :is(input,textarea,select):focus { border-color:var(--tp-purple,#B90000);box-shadow:0 0 0 3px #b9000023; }
.tp .tp-form__consent input { accent-color:var(--tp-purple,#B90000); }
.tp .tp-join__secondary a { color:#940000;border-bottom-color:#d7abab; }
.tp .tp-endnote { color:#646464; }

/* Other pages under Third Place use the same parent brand, NOT violet. */
.tp.tp-catalog,
.tp.tp-reg { background:#f8f8f8; }
.tp .tp-catalog__masthead,
.tp .tp-all-activities__hero { background:linear-gradient(115deg,#111 0%,#351010 68%,#b90000 160%); }
.tp .tp-all-activities__hero .tp-kicker { color:#ffe0e0; }
.tp .tp-all-activities__hero .tp-kicker::before { background:#ff6666; }
.tp .tp-all-activities__hero p { color:#f4e5e5; }
.tp .tp-reg__top { border-color:#e2e2e2; }
.tp .tp-reg__back,
.tp .tp-reg__eyebrow,
.tp .tp-reg__panel-kicker,
.tp .tp-catalog__card-body small,
.tp .tp-catalog__card-body b,
.tp .tp-catalog__session>b,
.tp .tp-program__steps li::before,
.tp .tp-program__panel .tp-event__facts dd a,
.tp .tp-event__more,
.tp .tp-candidate__section legend { color:#9b0000!important; }
.tp .tp-reg__fact-icon { color:#9b0000;background:#ffeded; }
.tp .tp-catalog__exemples { background:#fff1f1;border-color:var(--tp-purple,#B90000); }
.tp .tp-catalog__list-section { background:#f8f8f8; }
.tp .tp-catalog__card,
.tp .tp-catalog__session,
.tp .tp-reg__facts>div,
.tp .tp-reg__panel { border-color:#e2e2e2; }
.tp .tp-catalog__card:hover,
.tp .tp-catalog__session:hover { border-color:#d98282; }
.tp .tp-event__overview,
.tp .tp-event__editorial { border-inline-start-color:var(--tp-purple,#B90000); }
.tp .tp-event__overview h2,
.tp .tp-event__editorial h2 { color:#191919; }
.tp .tp-application-page .tp-application__step { background:#fff1f1;border-color:#efd0d0;color:#6b3636; }
.tp .tp-application-page .tp-application__step b { color:#a40000; }
.tp .tp-status-page__card { border-color:#e0e0e0;color:#252525; }
.tp .tp-status-page__card strong,
.tp .tp-application__tracking a { color:#980000; }
.tp .tp-application__tracking a { border-color:#b90000;background:#fff5f5; }

/* Critical: three corners keep their individual palettes on their OWN pages.
 * Their existing red-coral / turquoise / yellow mastheads remain higher
 * specificity than the generic masthead above. No --tp-cine/talk/skill changes.
 */
.tp.tp-corner-page--cine { --tp-local-ink:#aa3149;--tp-local-soft:#fff1f3; }
.tp.tp-corner-page--speech { --tp-local-ink:#08766e;--tp-local-soft:#ecfaf8; }
.tp.tp-corner-page--skill { --tp-local-ink:#875a08;--tp-local-soft:#fff7e5; }
.tp.tp-corner-page .tp-kicker:not(.tp-kicker--light),
.tp.tp-corner-page .tp-reg__back { color:var(--tp-local-ink)!important; }
.tp.tp-corner-page .tp-kicker::before { background:var(--tp-local-ink); }
.tp.tp-corner-page .tp-catalog__masthead .tp-kicker { color:#fff!important; }
.tp.tp-corner-page .tp-catalog__eyebrow { color:#fff; }
.tp.tp-corner-page .tp-catalog__section-title .tp-h2 em,
.tp.tp-corner-page .tp-catalog__section-title .tp-kicker,
.tp.tp-corner-page .tp-catalog__card-body small,
.tp.tp-corner-page .tp-catalog__card-body b,
.tp.tp-corner-page .tp-catalog__session>b { color:var(--tp-local-ink)!important; }
.tp.tp-corner-page .tp-catalog__card:hover,
.tp.tp-corner-page .tp-catalog__session:hover { border-color:var(--tp-local-ink); }
.tp.tp-corner-page .tp-catalog__exemples { background:var(--tp-local-soft); }
.tp.tp-corner-page--cine .tp-catalog__exemples { border-color:var(--tp-cine); }
.tp.tp-corner-page--speech .tp-catalog__exemples { border-color:var(--tp-talk); }
.tp.tp-corner-page--skill .tp-catalog__exemples { border-color:var(--tp-skill); }

/* 4.9.32 — Mobile refinement of the Third Place landing hero.
 * The two actions belong in the SAME ROW on phones. Preserve their full,
 * editable French labels, linked anchors, and the existing red/black palette.
 * The asymmetric columns give the longer "Manifester mon intérêt" more room.
 */
@media (max-width:600px) {
  .tp .tp-hero__actions {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.34fr);
    align-items:stretch;
    gap:8px;
    margin-top:18px;
  }
  .tp .tp-hero__actions > .tp-button {
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:49px;
    padding:9px clamp(7px,1.9vw,12px);
    font-size:clamp(12px,3.3vw,14px);
    line-height:1.3;
    letter-spacing:-.012em;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    white-space:normal;
    overflow-wrap:break-word;
    text-align:center;
    border-radius:9px;
  }
  /* The CTA still fills the row if the registration form is disabled. */
  .tp .tp-hero__actions > .tp-button:only-child { grid-column:1 / -1; }
  .tp .tp-hero__actions .tp-hero__arrow-mobile {
    width:23px;
    height:23px;
    flex:0 0 23px;
  }
  .tp .tp-hero__actions .tp-hero__arrow-mobile svg {
    width:15px;
    height:15px;
  }
  .tp .tp-hero__micro { line-height:1.55; }
  .tp .tp-hero__visual-caption { line-height:1.4;letter-spacing:.045em; }
}
@media (max-width:380px) {
  .tp .tp-hero__actions { grid-template-columns:minmax(0,.96fr) minmax(0,1.38fr);gap:6px; }
  .tp .tp-hero__actions > .tp-button {
    padding:9px 5px;
    gap:4px;
    min-height:50px;
  }
  .tp .tp-hero__actions .tp-hero__arrow-mobile { width:19px;height:19px;flex-basis:19px; }
  .tp .tp-hero__actions .tp-hero__arrow-mobile svg { width:13px;height:13px; }
}
@media (max-width:340px) {
  /* At 320px, readable unabridged labels take precedence over decoration. */
  .tp .tp-hero__actions .tp-hero__arrow-mobile { display:none; }
  .tp .tp-hero__actions > .tp-button { padding-inline:5px; }
}


/* 4.9.33 — Mobile activity layout, three compact filters, and consistent arrows.
 * The red/black base and the three corner accent variables are preserved.
 */
.tp .tp-arrow {
  display:inline-block;
  flex:0 0 auto;
  font-family:Arial,Helvetica,sans-serif;
  font-variant-emoji:text;
  font-size:1.16em;
  font-weight:750;
  font-style:normal;
  line-height:1;
  white-space:nowrap;
  vertical-align:-.05em;
  color:var(--tp-purple,#B90000);
  text-decoration:none;
  transition:transform .18s ease,color .18s ease;
}
.tp .tp-button .tp-arrow {font-size:19px;}
.tp :is(a,button):hover .tp-arrow {transform:translate(2px,-2px);}
/* Color by button contrast; corner activity arrows retain their own colors. */
.tp :is(.tp-button--dark,.tp-button--submit,.tp-featured__cta,.tp-event__mobile-cta) .tp-arrow {color:#fff;}
.tp .tp-button--light .tp-arrow {color:var(--tp-purple,#B90000);}
.tp .tp-button--outline-light .tp-arrow {color:#ffc6c6;}
.tp .tp-activities__more .tp-arrow {color:var(--tp-purple,#B90000);}
.tp .tp-activities__more:hover .tp-arrow {color:#fff;}
.tp .tp-activity__open .tp-arrow {color:var(--tp-card-accent,var(--tp-purple,#B90000));font-size:18px;}
.tp .tp-corner__more .tp-arrow {color:var(--tp-purple,#B90000);}
.tp.tp-corner-page .tp-catalog__masthead .tp-button--light .tp-arrow {color:var(--tp-local-ink,var(--tp-purple,#B90000));}
.tp .tp-catalog__session .tp-arrow {color:var(--tp-local-ink,var(--tp-purple,#B90000));}
.tp .tp-gallery__post .tp-arrow,
.tp .tp-archive-preview__card .tp-arrow {color:var(--tp-purple,#B90000);}
.tp .tp-featured__cta .tp-arrow {color:#fff;}
/* The original desktop activity link stays in the heading. */
.tp .tp-activities__mobile-more {display:none;}

@media (max-width:600px) {
  /* Exactly two columns even on narrow 320px phones, including the archive
   * and the dedicated Corner pages. */
  .tp .tp-activities__grid,
  .tp.tp-corner-page .tp-catalog__cards {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    align-items:stretch;
  }
  .tp .tp-activity__photo {aspect-ratio:1.12;}
  .tp .tp-activity__format {
    left:6px;bottom:6px;max-width:calc(100% - 12px);
    padding:4px 6px;font-size:9px;line-height:1.2;
  }
  .tp .tp-activity__state {
    top:6px;right:6px;max-width:calc(100% - 12px);
    padding:4px 5px;font-size:9px;
  }
  .tp .tp-activity__body,
  .tp.tp-corner-page .tp-activity__body {
    min-height:0!important;padding:10px 9px 0;gap:6px;
  }
  .tp .tp-activity__body>.tp-activity__title,
  .tp.tp-corner-page .tp-activity__body>.tp-activity__title {
    font-size:clamp(12.5px,3.5vw,15px);line-height:1.34;
  }
  .tp .tp-activity__body>.tp-activity__topic {font-size:10.5px;}
  .tp .tp-activity__body>.tp-activity__teaser {font-size:10px;}
  .tp .tp-activity__topline {gap:4px;flex-wrap:wrap;}
  .tp .tp-activity__corner,.tp .tp-activity__price {font-size:9px;}
  .tp .tp-activity__facts {gap:4px;min-height:0;padding-bottom:10px;}
  .tp .tp-activity__body .tp-activity__fact {font-size:10px;}
  .tp .tp-activity__open,
  .tp.tp-corner-page .tp-activity__open {
    width:calc(100% + 18px);margin-left:-9px;margin-right:0;
    padding:10px 9px;font-size:10px;gap:4px;
  }
  .tp .tp-activity__open .tp-arrow {font-size:16px;}
  .tp .tp-activity[lang="ar"] .tp-activity__open {
    width:calc(100% + 18px);margin-left:0;margin-right:-9px;
  }
  /* Three full filter controls in a single line instead of 2+1. */
  .tp .tp-advanced-filters {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:end;
    gap:6px;
    margin:11px 0 13px;
  }
  .tp .tp-advanced-filters label {
    display:flex;flex-direction:column;gap:5px;
    min-width:0;max-width:none;width:100%;
    font-size:10px;line-height:1.35;
  }
  .tp .tp-advanced-filters select {
    display:block;min-width:0;max-width:100%;width:100%;
    height:42px;min-height:42px;
    padding:8px 5px;
    font-size:clamp(10px,2.7vw,12px);line-height:1.25;
    text-overflow:ellipsis;
  }
  /* 'Voir toutes les activites' follows the three displayed rows on mobile. */
  #troisieme-lieu .tp-activities__heading-side #tp-activities-more {display:none;}
  #troisieme-lieu .tp-activities__mobile-more {display:flex;justify-content:center;margin-top:18px;}
  #troisieme-lieu .tp-activities__mobile-more .tp-activities__more {
    display:inline-flex;width:100%;min-height:44px;justify-content:center;
    gap:10px;font-size:12px;padding:11px 14px;white-space:normal;
  }
  /* Simple northeast-arrow glyph on the hero too: no boxed SVG on phones. */
  .tp .tp-hero__actions .tp-button .tp-arrow {font-size:16px;}
}
@media(max-width:340px){
  .tp .tp-hero__actions .tp-button .tp-arrow {font-size:15px;}
  .tp .tp-activities__grid,
  .tp.tp-corner-page .tp-catalog__cards {gap:8px;}
}
@media(prefers-reduced-motion:reduce){.tp .tp-arrow{transition:none;}}
