/* =========================================================
   CLIMAX STUDIO — contact.css
   Styles spécifiques à la page Contact.
   ========================================================= */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  padding: var(--s-7) 0 var(--s-9);
}
@media (min-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-9);
  }
}

/* Intro pédagogique au-dessus du formulaire */
.contact-intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: var(--rule-w) dashed var(--rule);
}
.contact-intro strong {
  font-weight: 700;
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

/* ----- Champs ----- */
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
}

.form-row__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
}
.form-row__label .req {
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.form-row__hint {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--paper-soft);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  resize: vertical;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
  font-weight: 300;
}
.form-input:hover,
.form-textarea:hover {
  border-color: var(--ink-soft);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(184, 66, 31, 0.12);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 4px rgba(255, 122, 92, 0.18);
}
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--accent);
  background: rgba(184, 66, 31, 0.06);
}

.form-textarea {
  min-height: 140px;
  line-height: 1.5;
}

/* Honeypot caché */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-error {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-error:not(:empty)::before {
  content: "⚠";
  font-size: 14px;
}

/* Compteur caractères pour le textarea */
.form-counter {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-align: right;
}
.form-counter.is-warning { color: var(--accent); }

.form-submit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--paper);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 18px var(--s-5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  transition: background .2s, transform .2s, box-shadow .2s;
  width: 100%;
  justify-content: center;
  margin-top: var(--s-3);
  box-shadow: 0 4px 0 var(--ink);
}
.form-submit:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent);
}
.form-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-submit__arrow { transition: transform .3s; }
.form-submit:hover .form-submit__arrow { transform: translateX(8px); }

/* État du formulaire — beaucoup plus visible */
.form-status {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  padding: var(--s-4);
  border-radius: 4px;
  display: none;
  align-items: center;
  gap: var(--s-3);
  line-height: 1.4;
}
.form-status::before {
  font-size: 24px;
  flex-shrink: 0;
}
.form-status.is-success {
  display: flex;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
}
.form-status.is-success::before { content: "✓"; color: var(--accent); }
.form-status.is-error {
  display: flex;
  background: rgba(184, 66, 31, 0.1);
  color: var(--accent);
  border: 2px solid var(--accent);
}
[data-theme="dark"] .form-status.is-error {
  background: rgba(255, 122, 92, 0.12);
}
.form-status.is-error::before { content: "⚠"; }

/* Sidebar */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.contact-aside__block {
  border-top: var(--rule-w) solid var(--ink);
  padding-top: var(--s-4);
}
.contact-aside__label {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.contact-aside__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.4;
}

.cv-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 19px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  padding: var(--s-4) var(--s-5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  transition: background .2s, color .2s, transform .2s;
}
.cv-link:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.socials a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: var(--rule-w) solid var(--rule);
  transition: color .2s, border-color .2s, padding-left .2s;
}
.socials a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  padding-left: var(--s-2);
}
