/* ==========================================================
   Ulia.Radio — Page Contact (/contact)

   Phrase à compléter (motif), pièces jointes, bloc coordonnées/réseaux,
   FAQ dépliable. Composants propres à la page (préfixe .ctc-).
   ========================================================== */

.ctc {
  /* Header fixe (hors flux) : la marge haute part de sa hauteur. */
  padding: calc(var(--u-header-h) + clamp(16px, 4vw, 40px)) 0 100px;
  font-family: var(--font-body);
  color: var(--u-ink);
  background:
    radial-gradient(900px 420px at 88% -80px, color-mix(in srgb, var(--u-blue-lite) 16%, transparent), transparent 70%),
    radial-gradient(700px 360px at -10% 20%, color-mix(in srgb, var(--u-blue) 8%, transparent), transparent 70%);
}

.ctc-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--u-gutter);
}

/* ---- En-tête ---- */

.ctc-hero { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }

.ctc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 13px 6px 10px;
  border-radius: var(--u-radius-pill);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 39, 107, .06), 0 6px 18px rgba(16, 39, 107, .06);
  color: var(--u-blue);
  font-weight: 700;
  font-size: 13px;
}
.ctc-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--u-blue);
  box-shadow: 0 0 0 0 rgba(7, 91, 230, .45);
  animation: ctc-pulse 1.8s ease-out infinite;
}
@keyframes ctc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(7, 91, 230, .45); }
  100% { box-shadow: 0 0 0 9px rgba(7, 91, 230, 0); }
}

.ctc-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--u-blue);
}

.ctc-lead {
  margin: 0;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--u-ink-soft);
}

/* ---- Grille ---- */

.ctc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.ctc-card {
  background: #fff;
  border-radius: 22px;
  padding: clamp(22px, 3.4vw, 36px);
  box-shadow: 0 1px 2px rgba(16, 39, 107, .05), 0 14px 38px rgba(16, 39, 107, .07);
}

.ctc-card__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* ---- Erreurs ---- */

.ctc-errors {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fdecec;
  color: #8a1a12;
  font-size: 14px;
  line-height: 1.5;
}
.ctc-errors i { margin-top: 2px; }
.ctc-errors ul { margin: 0; padding: 0; list-style: none; }

/* ---- Formulaire ---- */

.ctc-form { display: grid; gap: 18px; }
.ctc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.ctc-field { position: relative; display: flex; flex-direction: column; gap: 7px; }
.ctc-field > span { font-weight: 700; font-size: 13px; }
.ctc-field > span em { font-style: normal; font-weight: 500; color: var(--u-ink-soft); margin-left: 4px; }

.ctc-field input,
.ctc-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--u-ink);
  padding: 13px 15px;
  border: 1px solid rgba(16, 39, 107, .13);
  border-radius: 14px;
  background: #fbfcfe;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.ctc-field input::placeholder,
.ctc-field textarea::placeholder { color: color-mix(in srgb, var(--u-ink-soft) 70%, #fff); }
.ctc-field textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.ctc-field input:focus,
.ctc-field textarea:focus {
  outline: none;
  border-color: var(--u-blue);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-blue) 12%, transparent);
}

.ctc-counter {
  align-self: flex-end;
  font-size: 12px;
  color: var(--u-ink-soft);
  font-variant-numeric: tabular-nums;
}
.ctc-counter.is-near { color: #c2410c; font-weight: 700; }

.ctc-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Motif : phrase à compléter ----
   Un <select> natif (accessible, sélecteur natif sur mobile) habillé en
   texte : même police que la phrase, souligné bleu, largeur ajustée en JS
   au libellé choisi. */

.ctc-intent {
  padding-bottom: 22px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--u-line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.ctc-intent__lead { color: var(--u-ink); margin-right: .25em; }

.ctc-intent__pick {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}
.ctc-intent__pick select {
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
  margin: 0;
  padding: 0 1.1em 2px 0;
  border: 0;
  border-bottom: 3px solid var(--u-blue);
  border-radius: 0;
  background: transparent;
  color: var(--u-blue);
  font: inherit;
  letter-spacing: inherit;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, width .25s ease;
}
.ctc-intent__pick select:hover { color: var(--u-blue-deep); }
.ctc-intent__pick select:focus-visible {
  outline: none;
  border-bottom-color: var(--u-blue-lite);
  box-shadow: 0 6px 0 -3px color-mix(in srgb, var(--u-blue) 22%, transparent);
}
.ctc-intent__pick select option { font-family: var(--font-body); font-size: 15px; color: var(--u-ink); }
.ctc-intent__pick i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-58%);
  font-size: .5em;
  color: var(--u-blue);
  pointer-events: none;
}

.ctc-intent__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--u-ink-soft);
}
.ctc-intent__hint i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--u-blue) 9%, #fff);
  color: var(--u-blue);
  font-size: 13px;
}
.ctc-intent__hint.is-changing { animation: ctc-hint-in .32s ease both; }
@keyframes ctc-hint-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.ctc-sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Pièces jointes ---- */

.ctc-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 18px;
  border: 1.5px dashed color-mix(in srgb, var(--u-blue) 30%, #fff);
  border-radius: 16px;
  background: color-mix(in srgb, var(--u-blue) 3%, #fff);
  text-align: center;
  transition: border-color .16s ease, background-color .16s ease;
}
.ctc-drop:hover, .ctc-drop.is-over {
  border-color: var(--u-blue);
  background: color-mix(in srgb, var(--u-blue) 8%, #fff);
}
.ctc-drop:focus-within { border-color: var(--u-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-blue) 12%, transparent); }
/* L'input couvre toute la zone : clic et glisser-déposer natifs. */
.ctc-drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ctc-drop > i { font-size: 24px; color: var(--u-blue); margin-bottom: 4px; }
.ctc-drop p { margin: 0; font-size: 14.5px; }
.ctc-drop__browse { color: var(--u-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ctc-drop small { font-size: 12.5px; color: var(--u-ink-soft); }

.ctc-files { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ctc-files:empty { display: none; }

.ctc-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(16, 39, 107, .1);
  border-radius: 14px;
  background: #fff;
}
.ctc-file__icon { font-size: 20px; color: var(--u-blue); flex: 0 0 auto; }
.ctc-file__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ctc-file__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctc-file__status { font-size: 12.5px; color: var(--u-ink-soft); font-variant-numeric: tabular-nums; }
.ctc-file__bar { height: 4px; border-radius: 4px; background: var(--u-page); overflow: hidden; }
.ctc-file__bar span { display: block; height: 100%; width: 0; background: var(--u-blue); border-radius: inherit; transition: width .2s ease; }
.ctc-file.is-done .ctc-file__bar, .ctc-file.is-error .ctc-file__bar { display: none; }
.ctc-file.is-done .ctc-file__icon { color: #18a058; }
.ctc-file.is-error { border-color: #f3c2bd; background: #fff8f7; }
.ctc-file.is-error .ctc-file__icon, .ctc-file.is-error .ctc-file__status { color: #b42318; }
.ctc-file__rm {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--u-ink-soft);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ctc-file__rm:hover { background: var(--u-page); color: var(--u-ink); }

.ctc-att__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--u-ink-soft);
}
.ctc-att__formats strong { color: var(--u-ink); font-weight: 700; margin-right: 2px; }

/* Analyse antivirus en cours : barre indéterminée. */
.ctc-file.is-scanning .ctc-file__bar span {
  width: 35% !important;
  animation: ctc-scan 1.1s ease-in-out infinite alternate;
}
.ctc-file.is-scanning .ctc-file__icon { color: var(--u-blue-lite); }
@keyframes ctc-scan {
  from { transform: translateX(-10%); }
  to { transform: translateX(200%); }
}

/* ---- Envoi ---- */

.ctc-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.ctc-legal { margin: 0; font-size: 12.5px; color: var(--u-ink-soft); max-width: 340px; }
.ctc-legal a { color: inherit; }

.ctc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--u-radius-pill);
  background: var(--u-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}
.ctc-btn:hover { background: var(--u-blue-deep); transform: translateY(-1px); }
.ctc-btn--submit { padding-left: 28px; padding-right: 30px; }
.ctc-btn--submit:hover i { transform: translate(2px, -2px); }
.ctc-btn--submit i { transition: transform .18s ease; }
.ctc-btn.is-sending { opacity: .7; cursor: progress; transform: none; }
.ctc-btn--ghost { background: transparent; color: var(--u-blue); box-shadow: inset 0 0 0 1px var(--u-line); }
.ctc-btn--ghost:hover { background: color-mix(in srgb, var(--u-blue) 7%, #fff); }

/* ---- Confirmation ---- */

.ctc-done { text-align: center; padding: clamp(16px, 4vw, 40px) 0; }
.ctc-done__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e9f9ef;
  color: #18794e;
  font-size: 30px;
  animation: ctc-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes ctc-pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.ctc-done h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 32px);
}
.ctc-done p { max-width: 460px; margin: 0 auto 26px; font-size: 15px; line-height: 1.6; color: var(--u-ink-soft); }
.ctc-done p strong { color: var(--u-ink); }
.ctc-done__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---- Colonne latérale ---- */

.ctc-side { display: grid; gap: 20px; position: sticky; top: calc(var(--u-header-h) + 16px); }

.ctc-card--brand {
  background: linear-gradient(150deg, var(--u-blue-deep) 0%, var(--u-blue) 55%, var(--u-blue-lite) 100%);
  color: #fff;
}
.ctc-card--brand .ctc-card__title { font-size: 20px; margin-bottom: 18px; }

.ctc-channels { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ctc-channels a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  word-break: break-word;
  transition: background-color .16s ease;
}
.ctc-channels a:hover { background: rgba(255, 255, 255, .12); }
.ctc-channels small { display: block; font-weight: 500; font-size: 12px; opacity: .72; }
.ctc-channels__icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  font-size: 15px;
}

.ctc-social__label { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.ctc-social { display: flex; gap: 8px; flex-wrap: wrap; }
.ctc-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.ctc-social a:hover { background: #fff; color: var(--u-blue); transform: translateY(-2px); }

.ctc-card--listen { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.ctc-card--listen > i {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--u-blue) 9%, #fff);
  color: var(--u-blue);
  font-size: 17px;
}
.ctc-card--listen strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.ctc-card--listen p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--u-ink-soft); }
.ctc-card--listen a { color: var(--u-blue); font-weight: 600; }

/* ---- FAQ ---- */

.ctc-faq { margin-top: clamp(48px, 6vw, 80px); }
.ctc-faq__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.015em;
}
.ctc-faq__list { display: grid; gap: 10px; }

.ctc-faq__item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 39, 107, .05), 0 8px 24px rgba(16, 39, 107, .05);
}
.ctc-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}
.ctc-faq__item summary::-webkit-details-marker { display: none; }
.ctc-faq__item summary i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--u-blue) 9%, #fff);
  color: var(--u-blue);
  font-size: 12px;
  transition: transform .2s ease;
}
.ctc-faq__item[open] summary i { transform: rotate(45deg); }
.ctc-faq__item summary:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; border-radius: 18px; }
.ctc-faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--u-ink-soft);
}
.ctc-faq__item p a { color: var(--u-blue); font-weight: 600; }

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .ctc-grid { grid-template-columns: 1fr; }
  .ctc-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ctc-row { grid-template-columns: 1fr; }
  .ctc-side { grid-template-columns: 1fr; }
  .ctc-submit-row { flex-direction: column-reverse; align-items: stretch; }
  .ctc-btn--submit { width: 100%; }
  .ctc-legal { max-width: none; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ctc-kicker__dot, .ctc-done__icon, .ctc-intent__hint.is-changing, .ctc-file.is-scanning .ctc-file__bar span { animation: none; }
  .ctc-btn, .ctc-intent__pick select, .ctc-file__bar span, .ctc-faq__item summary i { transition: none; }
}
