/* tfc-contact.css — Styles page Contact (page-contact.php / is_page('me-contacter'))
   Sections : hero-contact · layout formulaire · success state · infos directes
   ============================================================ */

/* ── HERO CONTACT ────────────────────────────────────────── */

.tfc-hero-contact {
  background-color: var(--tfc-navy);
  background-image: radial-gradient(circle, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 64px clamp(20px,5vw,64px) 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--tfc-teal);
}

.tfc-hero-contact__inner {
  max-width: var(--w-narrow);
  position: relative;
}

.tfc-hero-contact h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 12px;
}

.tfc-hero-contact__lead {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin: 0;
}

/* ── LAYOUT CONTACT ──────────────────────────────────────── */

.tfc-contact-section {
  padding: 64px clamp(20px,5vw,64px);
  background: #fff;
}

.tfc-contact-section__inner {
  max-width: var(--w-content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .tfc-contact-section__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Colonne gauche : CTA direct + infos ─────────────────── */

.tfc-contact-direct {
  background: var(--tfc-teal);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-2);
}

.tfc-contact-direct__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
}

.tfc-contact-direct__desc {
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 20px;
}

.tfc-contact-direct .tfc-btn-white {
  width: 100%;
  justify-content: center;
}

.tfc-contact-infos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tfc-contact-info-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tfc-contact-info-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--tfc-teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tfc-teal-deep);
}

.tfc-contact-info-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--tfc-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 2px;
}

.tfc-contact-info-val {
  font-size: 13px;
  color: var(--tfc-ink);
}

/* ── Formulaire contact ──────────────────────────────────── */

.tfc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tfc-contact-form .tfc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .tfc-contact-form .tfc-field-row { grid-template-columns: 1fr; }
}

.tfc-contact-form textarea.tfc-input {
  min-height: 120px;
  resize: vertical;
}

.tfc-contact-form .tfc-btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Hint sous le champ email */
.tfc-field-hint {
  font-size: 11px;
  color: var(--tfc-muted);
  margin-top: 4px;
}

/* ── Success state ───────────────────────────────────────── */

.tfc-contact-success {
  max-width: 440px;
  text-align: center;
  margin: 0 auto;
  padding: 64px 0;
  display: none;
}
.tfc-contact-success.is-visible { display: block; }

.tfc-contact-success__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--tfc-teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--tfc-teal);
}

.tfc-contact-success__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--tfc-ink);
  margin: 0 0 12px;
}

.tfc-contact-success__desc {
  font-size: 15px;
  color: var(--tfc-muted);
  line-height: 1.65;
}

/* ── Hero contact — page-contact.php (fallback classe générique) */

.tfc-hero-v2.is-contact {
  padding-bottom: 48px;
}

/* ── FAQ COMPACTE page contact ───────────────────────────── */

.tfc-faq-compact {
  padding: 48px clamp(20px,5vw,64px) 64px;
  background: var(--tfc-paper);
  border-top: var(--b-default);
}

.tfc-faq-compact__inner {
  max-width: var(--w-content);
  margin-inline: auto;
}

.tfc-faq-compact__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--tfc-ink);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.tfc-faq-compact dl {
  border-top: var(--b-default);
  margin: 0;
  padding: 0;
}

.tfc-faq-compact dt {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--tfc-ink);
  padding: 22px 0 8px;
  margin: 0;
  cursor: default;
}

.tfc-faq-compact dd {
  font-size: 14px;
  color: var(--tfc-muted);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 22px;
  border-bottom: var(--b-default);
}

/* ── HappyForms overrides — charte TFC ──────────────────────── */

.happyforms-part-wrap input[type="text"],
.happyforms-part-wrap input[type="email"],
.happyforms-part-wrap input[type="tel"],
.happyforms-part-wrap textarea,
.happyforms-part-wrap select {
  background: var(--tfc-paper) !important;
  border: 1px solid var(--tfc-line) !important;
  border-radius: var(--r-md) !important;
  padding: 11px 14px !important;
  font-family: var(--ff-body) !important;
  font-size: 15px !important;
  color: var(--tfc-ink) !important;
  min-height: 44px !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s !important;
}

.happyforms-part-wrap input[type="text"]:focus,
.happyforms-part-wrap input[type="email"]:focus,
.happyforms-part-wrap input[type="tel"]:focus,
.happyforms-part-wrap textarea:focus {
  border-color: var(--tfc-teal) !important;
  box-shadow: 0 0 0 3px rgba(19,128,134,.15) !important;
  outline: none !important;
}

.happyforms-part-wrap label {
  font-family: var(--ff-display) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: var(--tfc-ink) !important;
  margin-bottom: 6px !important;
}

.happyforms-form .happyforms-button[type="submit"] {
  background: var(--tfc-teal) !important;
  color: #fff !important;
  font-family: var(--ff-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: var(--r-md) !important;
  border: none !important;
  padding: 13px 22px !important;
  cursor: pointer !important;
  transition: background .2s !important;
  width: 100% !important;
}

.happyforms-form .happyforms-button[type="submit"]:hover {
  background: var(--tfc-teal-deep) !important;
}

/* Checkbox RGPD form contact */
.tfc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tfc-muted);
}
.tfc-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tfc-teal);
  cursor: pointer;
}
.tfc-checkbox-label span { flex: 1; }
.tfc-checkbox-label a { color: var(--tfc-teal); text-decoration: underline; text-underline-offset: 2px; }
.tfc-checkbox-label a:hover { color: var(--tfc-teal-deep); }
