.tnf-standalone-header {
  position: relative;
  z-index: 20;
  border-block-end: 1px solid var(--m-line, #30363c);
  background: var(--m-surface, #15191c);
}

.tnf-standalone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(calc(100% - 32px), 1240px);
  min-height: 70px;
  margin-inline: auto;
}

.tnf-standalone-brand,
.tnf-standalone-actions,
.tnf-standalone-back,
.tnf-standalone-theme {
  display: inline-flex;
  align-items: center;
}

.tnf-standalone-brand { gap: 9px; flex: none; }
.tnf-standalone-brand > .m-mascot { width: 37px; height: 37px; }
.tnf-standalone-brand .m-wordmark {
  color: var(--m-coral, #f43f45);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: 1;
}
.tnf-standalone-brand .m-wordmark > small { display: none; }
.tnf-standalone-brand .m-wordmark > span { color: inherit; }

.tnf-standalone-actions { gap: 10px; }
.tnf-standalone-back,
.tnf-standalone-actions .tnf-standalone-theme {
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--m-line, #30363c);
  border-radius: 9px;
  background: transparent;
  color: var(--m-text, #f3f4f6);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.tnf-standalone-actions .tnf-standalone-theme { width: 40px; padding: 0; cursor: pointer; }
.tnf-standalone-back:hover,
.tnf-standalone-actions .tnf-standalone-theme:hover { background: var(--m-surface2, #262c31); }
.tnf-standalone-actions :is(a, button):focus-visible,
.tnf-standalone-brand:focus-visible { outline: 2px solid var(--m-coral, #f43f45); outline-offset: 3px; }
.tnf-standalone-actions .m-icon { flex: none; width: 16px; height: 16px; }
.tnf-standalone-back .m-icon { transform: rotate(180deg); }
.tnf-standalone-actions .tnf-langues-menu { width: min(274px, calc(100vw - 78px)); }
html[dir="rtl"] .tnf-standalone-actions .tnf-langues-menu { right: auto; left: 0; }

.tnf-standalone-main { min-height: 50vh; }

.tnf-contact {
  --contact-accent: #ff858e;
  --contact-focus: #ff858e;
  --contact-action: #c32b3a;
  --contact-action-hover: #a82130;
  --contact-muted: #aab2bc;
  --contact-surface: #171b1e;
  --contact-input: #101416;
  --contact-line: #30363c;
  --contact-tint: #f455631c;
  --contact-success: #a4ebc6;
  --contact-error: #ffb2b7;
  --contact-promotion: #f4c783;
  --contact-collaboration: #7bd9cb;
  --contact-partnership: #c6aafd;
  container: tnf-contact / inline-size;
  width: min(calc(100% - 32px), 1040px);
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 52px) clamp(42px, 6vw, 80px);
  color: var(--m-text, #f3f4f6);
  overflow-wrap: anywhere;
}

[data-theme="light"] .tnf-contact {
  --contact-accent: #a32633;
  --contact-focus: #a32633;
  --contact-muted: #535e6a;
  --contact-surface: #fff;
  --contact-input: #fff;
  --contact-line: #dce1e6;
  --contact-tint: #df333d0c;
  --contact-success: #146440;
  --contact-error: #9e2430;
  --contact-promotion: #805010;
  --contact-collaboration: #1b7067;
  --contact-partnership: #7046ad;
}

.tnf-contact-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block-end: 18px;
  padding: clamp(24px, 4.2vw, 46px);
  border: 1px solid var(--contact-line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 94% 88%, var(--contact-tint), transparent 64%),
    var(--contact-surface);
}

.tnf-contact-intro::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--contact-tint) 1px, transparent 1px),
    linear-gradient(90deg, var(--contact-tint) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(110deg, transparent 52%, #000 100%);
  pointer-events: none;
  content: "";
}

.tnf-contact-intro::after {
  position: absolute;
  z-index: -1;
  inset-block-start: -103px;
  inset-inline-end: -45px;
  width: 258px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--contact-accent) 20%, transparent);
  border-radius: 57px;
  box-shadow:
    0 0 0 25px var(--contact-tint),
    0 0 0 50px color-mix(in srgb, var(--contact-accent) 6%, transparent);
  transform: rotate(32deg);
  pointer-events: none;
  content: "";
}

.tnf-contact-hero-icon {
  position: absolute;
  inset-block-start: 39px;
  inset-inline-end: clamp(28px, 8vw, 118px);
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--contact-accent) 24%, transparent);
  border-radius: 24px;
  background: var(--contact-surface);
  box-shadow: 0 8px 34px var(--contact-tint);
  color: var(--contact-accent);
  pointer-events: none;
}

.tnf-contact-hero-icon svg { width: 32px; height: 32px; }

.tnf-contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--contact-accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.tnf-contact-kicker::before {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.tnf-contact-intro h1 {
  max-width: 19ch;
  margin: 12px 0;
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.04;
  text-wrap: balance;
}

.tnf-contact-intro p {
  max-width: 54ch;
  margin: 0;
  color: var(--contact-muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.62;
}

.tnf-contact-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.tnf-contact-intro .tnf-contact-choices { margin: 21px 0 0; }

.tnf-contact-choices > a {
  --topic-accent: var(--contact-accent);
  --topic-tint: color-mix(in srgb, var(--topic-accent) 11%, transparent);
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 122px;
  padding: 15px 16px;
  border: 1px solid var(--contact-line);
  border-radius: 15px;
  background: var(--contact-surface);
  color: var(--m-text, #f3f4f6);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.tnf-contact-choices > a[href*="motif=promotion"] { --topic-accent: var(--contact-promotion); }
.tnf-contact-choices > a[href*="motif=collaboration"] { --topic-accent: var(--contact-collaboration); }
.tnf-contact-choices > a[href*="motif=partenariat"] { --topic-accent: var(--contact-partnership); }

.tnf-contact-choices > a:is(:hover, .is-active, [aria-current]:not([aria-current="false"])) {
  border-color: color-mix(in srgb, var(--topic-accent) 70%, var(--contact-line));
  background: linear-gradient(var(--topic-tint), var(--topic-tint)), var(--contact-surface);
  color: var(--m-text, #f3f4f6);
}

.tnf-contact-choices > a[aria-current]:not([aria-current="false"]) {
  box-shadow: inset 0 2px var(--topic-accent);
}

.tnf-contact-choices > a:hover { transform: translateY(-2px); }
.tnf-contact-choices strong { line-height: 1.25; }
.tnf-contact-choices small {
  color: var(--contact-muted);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.42;
}

.tnf-contact-choice-icon {
  display: grid;
  width: 35px;
  aspect-ratio: 1;
  place-items: center;
  margin-block-end: 2px;
  border-radius: 10px;
  background: var(--topic-tint);
  color: var(--topic-accent);
}

.tnf-contact-choice-icon svg { width: 18px; height: 18px; }
svg.tnf-contact-choice-icon { width: 35px; height: 35px; padding: 8px; }

.tnf-contact-main {
  min-width: 0;
  container: tnf-contact-form / inline-size;
}

.tnf-contact-panel,
.tnf-contact-card {
  padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid var(--contact-line);
  border-radius: 21px;
  background: var(--contact-surface);
}

.tnf-contact-panel[id] { scroll-margin-block-start: 16px; }

.tnf-contact-panel h2,
.tnf-contact-card :is(h2, h3) {
  margin: 0 0 8px;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.26;
  letter-spacing: -.025em;
}

.tnf-contact-panel > p,
.tnf-contact-panel > header > p,
.tnf-contact-card :is(p, li, dd) {
  margin: 0;
  color: var(--contact-muted);
  font-size: 14px;
  line-height: 1.62;
}

.tnf-contact-card :is(ul, ol) {
  margin-block: 13px 0;
  padding-inline-start: 20px;
}

.tnf-contact-card li + li { margin-block-start: 8px; }
.tnf-contact-card li::marker { color: var(--contact-accent); }
.tnf-contact-card a { color: var(--contact-accent); text-underline-offset: 3px; }
.tnf-contact-card a:hover { text-decoration: underline; }

.tnf-contact-panel .tnf-contact-context {
  margin: 12px 0 0;
  padding: 11px 15px;
  border-inline-start: 2px solid var(--contact-accent);
  border-radius: 7px;
  background: var(--contact-tint);
}

.tnf-contact-context p {
  margin: 0;
  color: var(--contact-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tnf-contact-form {
  display: grid;
  gap: 20px;
  margin-block-start: 24px;
}

.tnf-contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tnf-contact-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
  font-weight: 630;
}

.tnf-contact-form label small {
  color: var(--contact-muted);
  font-size: 12px;
  font-weight: 400;
}

.tnf-contact-form :is(input, select, textarea) {
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--contact-line);
  border-radius: 10px;
  background: var(--contact-input);
  color: var(--m-text, #f3f4f6);
  color-scheme: dark;
  font: inherit;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
}

[data-theme="light"] .tnf-contact-form :is(input, select, textarea) { color-scheme: light; }
.tnf-contact-form textarea { min-height: 154px; resize: vertical; }
.tnf-contact-form :is(input, textarea)::placeholder { color: var(--contact-muted); opacity: 1; }
.tnf-contact-form [aria-invalid="true"] { border-color: var(--contact-error); }
.tnf-contact-form .tnf-contact-honeypot { display: none; }

.tnf-contact-form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-block-start: 2px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--contact-line);
}

.tnf-contact-form-foot :is(p, small) {
  margin: 0;
  color: var(--contact-muted);
  font-size: 12px;
  line-height: 1.52;
}

.tnf-contact-form-foot a { color: var(--contact-accent); text-decoration: underline; }

.tnf-contact-submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--contact-action);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .16s ease;
}

.tnf-contact-submit:hover { background: var(--contact-action-hover); }
.tnf-contact-submit:disabled { cursor: wait; opacity: .68; }
.tnf-contact-submit svg { width: 16px; height: 16px; }

.tnf-contact :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--contact-focus);
  outline-offset: 3px;
}

.tnf-contact-notice {
  margin-block: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--contact-line);
  border-inline-start-width: 3px;
  border-radius: 9px;
  background: var(--contact-input);
  font-size: 14px;
  line-height: 1.55;
}

.tnf-contact .tnf-contact-notice.is-success { border-inline-start-color: var(--contact-success); color: var(--contact-success); }
.tnf-contact .tnf-contact-notice.is-error { border-inline-start-color: var(--contact-error); color: var(--contact-error); }
.tnf-contact-panel > .tnf-contact-notice { margin-block: 16px 0; }
.tnf-contact-notice p { margin: 0; }
.tnf-contact-notice ul { margin-block: 6px 0; padding-inline-start: 20px; }

.tnf-privacy { max-width: 900px; }
.tnf-privacy .tnf-contact-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tnf-privacy .tnf-contact-choices > a {
  align-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.tnf-privacy .tnf-contact-panel > section { scroll-margin-block-start: 20px; }
.tnf-privacy .tnf-contact-panel > section + section {
  margin-block-start: 28px;
  padding-block-start: 25px;
  border-block-start: 1px solid var(--contact-line);
}
.tnf-privacy .tnf-contact-panel > section > h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
}
.tnf-privacy .tnf-contact-panel > section p {
  margin: 0 0 12px;
  color: var(--contact-muted);
  line-height: 1.72;
}
.tnf-privacy .tnf-contact-panel > section p:last-child { margin-block-end: 0; }

@container tnf-contact (max-width: 760px) {
  .tnf-contact-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tnf-contact-hero-icon { display: none; }
  .tnf-contact-intro::after { opacity: .48; }
}

@container tnf-contact-form (max-width: 530px) {
  .tnf-contact-form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .tnf-standalone-bar { gap: 7px; width: calc(100% - 24px); min-height: 61px; }
  .tnf-standalone-brand { gap: 5px; }
  .tnf-standalone-brand > .m-mascot { width: 30px; height: 30px; }
  .tnf-standalone-brand .m-wordmark { font-size: 23px; }
  .tnf-standalone-actions { gap: 6px; }
  .tnf-standalone-back { width: 36px; min-height: 36px; padding: 0; gap: 0; font-size: 0; }
  .tnf-standalone-actions .tnf-standalone-theme { width: 36px; min-height: 36px; }
  .tnf-contact-choices { gap: 8px; }
  .tnf-contact-choices > a { min-height: 104px; padding: 12px; }
  .tnf-contact-form-row { grid-template-columns: minmax(0, 1fr); }
  .tnf-contact-form-foot { align-items: stretch; flex-direction: column; }
  .tnf-contact-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tnf-contact-choices a,
  .tnf-contact-submit { transition: none; }
  .tnf-contact-choices > a:hover { transform: none; }
}
