/* ============================================
   BLAFA — contact.css
   Page /contact — formulaire éditorial
   ============================================ */

/* ========== HERO ========== */
.ct-hero {
  padding-top: calc(var(--space-10) + 48px);
  padding-bottom: var(--space-6);
}

.ct-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--stone-light);
}

.ct-hero__meta-right {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.ct-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 140px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.ct-hero__title em {
  font-style: italic;
  color: var(--seal);
}

.ct-hero__sub {
  max-width: 56ch;
  font-size: var(--fs-body-l);
  line-height: 1.6;
}

/* ========== CONTACT — markup actuel ========== */
.ct-contact {
  padding-block: var(--space-7) var(--space-10);
}

.ct-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: var(--space-8);
  align-items: start;
}

.ct-contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--nav-h) + var(--space-5));
}

.ct-contact__block {
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone-light);
}

.ct-contact__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.ct-contact__value {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out-quart);
}

a.ct-contact__value:hover {
  color: var(--seal);
}

.ct-contact__hint {
  margin-top: var(--space-2);
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
}

.ct-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ct-form__field + .ct-form__field {
  margin-top: var(--space-5);
}

.ct-form__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.ct-form__input,
.ct-form__textarea {
  width: 100%;
  padding: 0 0 var(--space-3);
  border: none;
  border-bottom: 1px solid var(--stone-light);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color var(--dur-base) var(--ease-out-quart),
    background var(--dur-base) var(--ease-out-quart);
}

.ct-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.ct-form__input:focus,
.ct-form__textarea:focus {
  border-bottom-color: var(--ink);
}

.ct-form__input.is-error,
.ct-form__textarea.is-error {
  border-bottom-color: var(--correction);
}

.ct-form__input::placeholder,
.ct-form__textarea::placeholder {
  color: color-mix(in srgb, var(--stone) 70%, transparent);
}

.ct-form__error {
  display: none;
  font-size: 12px;
  line-height: 1.4;
  color: var(--correction);
}

.ct-form__error.is-visible {
  display: block;
}

.ct-form__success-inline {
  padding: var(--space-6);
  border: 1px solid var(--seal);
  background: color-mix(in srgb, var(--seal) 8%, var(--paper));
}

.ct-form__success-inline h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  font-weight: 500;
  color: var(--ink);
}

.ct-form__success-inline p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--stone);
}

@media (max-width: 900px) {
  .ct-hero {
    padding-top: calc(var(--nav-h) + var(--space-7));
    padding-bottom: var(--space-5);
  }

  .ct-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ct-contact__info {
    position: static;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .ct-form {
    padding: var(--space-5);
  }
}

/* ========== MAIN LAYOUT — split ========== */
.ct-body {
  padding-block: var(--space-8) var(--space-10);
}

.ct-body__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-9);
  align-items: start;
}

/* ===== LEFT — Infos directes ===== */
.ct-info {
  position: sticky;
  top: 100px;
}

.ct-info__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.ct-info__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.ct-info__channel {
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone-light);
}

.ct-info__channel-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
  display: block;
}

.ct-info__channel-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--dur-fast) var(--ease-out-quart);
}

.ct-info__channel-value:hover {
  color: var(--seal);
}

.ct-info__channel-arrow {
  display: inline-block;
  width: 12px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out-quart);
}

.ct-info__channel-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 5px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.ct-info__channel-value:hover .ct-info__channel-arrow {
  transform: translateX(6px);
}

.ct-info__address {
  padding-top: var(--space-5);
  border-top: 1px solid var(--stone-light);
}

.ct-info__address-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-2);
  display: block;
}

.ct-info__address-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.ct-info__hours {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone-light);
}

.ct-info__hours-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-2);
  display: block;
}

.ct-info__hours-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone);
}

/* ===== RIGHT — Form ===== */
.ct-form {
  background: var(--paper-soft);
  padding: var(--space-7);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.ct-form__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.ct-form__desc {
  font-size: 14px;
  color: var(--stone);
  margin-bottom: var(--space-6);
}

.ct-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Field with animated label */
.ct-field {
  position: relative;
}

.ct-field__input,
.ct-field__textarea {
  width: 100%;
  padding: var(--space-4) 0 var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone-light);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out-quart);
}

.ct-field__input:focus,
.ct-field__textarea:focus {
  border-bottom-color: var(--ink);
}

.ct-field__input.is-error,
.ct-field__textarea.is-error {
  border-bottom-color: var(--correction);
}

.ct-field__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.ct-field__label {
  position: absolute;
  top: var(--space-4);
  left: 0;
  font-size: 15px;
  color: var(--stone);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--dur-base) var(--ease-out-quart),
              color var(--dur-base) var(--ease-out-quart),
              font-size var(--dur-base) var(--ease-out-quart);
}

.ct-field__input:focus ~ .ct-field__label,
.ct-field__input:not(:placeholder-shown) ~ .ct-field__label,
.ct-field__textarea:focus ~ .ct-field__label,
.ct-field__textarea:not(:placeholder-shown) ~ .ct-field__label {
  transform: translateY(-20px);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--seal);
}

.ct-field__error {
  font-size: 12px;
  color: var(--correction);
  margin-top: 4px;
  display: none;
}

.ct-field__input.is-error ~ .ct-field__error,
.ct-field__textarea.is-error ~ .ct-field__error {
  display: block;
}

/* Select styled */
.ct-field__select {
  width: 100%;
  padding: var(--space-4) 0 var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone-light);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out-quart);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8578' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

.ct-field__select:focus {
  border-bottom-color: var(--ink);
}

.ct-field__select-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-bottom: 6px;
}

/* Submit */
.ct-form__submit {
  margin-top: var(--space-4);
}

.ct-form__submit .btn {
  width: 100%;
  justify-content: center;
}

/* Success state */
.ct-form__success {
  display: none;
  text-align: center;
  padding: var(--space-7) var(--space-5);
}

.ct-form__success.is-visible {
  display: block;
}

.ct-form__success-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--seal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.ct-form__success-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--seal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-form__success-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.ct-form__success-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
}

@media (max-width: 1024px) {
  .ct-body__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ct-info {
    position: static;
  }

  .ct-form__row {
    grid-template-columns: 1fr;
  }
}

.ct-form > .btn {
  margin-top: var(--space-5);
}

.ct-form__success-inline {
  border-radius: var(--radius-xl);
}

@media (max-width: 900px) {
  .ct-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ct-contact__info {
    position: static;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .ct-form {
    padding: var(--space-5);
  }
}
