/* ==================================================
   CONTACT — uniquement ce qui est spécifique à la page
   (BaseLayout gère déjà base/layout/components)
================================================== */

strong {
  font-weight: 800;
}

/* ==================================================
   HERO CONTACT
================================================== */
.contact-hero {
  position: relative;
  padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(1.5rem, 4vw, 2.25rem);
  isolation: isolate;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      55% 55% at 50% 20%,
      rgba(138, 107, 255, 0.22),
      rgba(138, 107, 255, 0) 70%
    ),
    linear-gradient(to bottom, rgba(12, 11, 13, 0.15), rgba(12, 11, 13, 0.55));
}

.contact-hero__container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.contact-hero__kicker {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f0ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.contact-hero__title {
  margin-top: 1rem;
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 0%, #e9e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.contact-hero__lead {
  margin: 1.1rem auto 0;
  max-width: 78ch;
  color: #eae7ff;
  line-height: 1.75;
  opacity: 0.98;
}

/* ==================================================
   LAYOUT CONTACT
================================================== */
.contact {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(4rem, 7vw, 6rem);
}

.contact__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 980px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   CARD (form)
================================================== */
.contact-card {
  border-radius: 22px;
  padding: clamp(1.1rem, 2.2vw, 1.35rem);
  backdrop-filter: blur(10px);
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.18) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    linear-gradient(180deg, rgba(24, 20, 33, 0.78), rgba(24, 20, 33, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
}

/* Alert (optionnel) */
.contact-alert {
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(234, 231, 255, 0.95);
  line-height: 1.55;
}
.contact-alert--success {
  box-shadow: 0 0 0 1px rgba(138, 107, 255, 0.25) inset;
}
.contact-alert--error {
  box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.22) inset;
}

.contact-prefill {
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(138, 107, 255, 0.24);
  background: rgba(138, 107, 255, 0.1);
  color: rgba(243, 240, 255, 0.98);
}

.contact-prefill__title {
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.contact-prefill__text {
  color: rgba(234, 231, 255, 0.9);
  line-height: 1.55;
}

.contact-reassurance {
  border-radius: 14px;
  padding: 0.95rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-reassurance__title {
  margin: 0 0 0.35rem;
  font-weight: 900;
  color: #fff;
}

.contact-reassurance__text {
  margin: 0;
  color: rgba(234, 231, 255, 0.92);
  line-height: 1.6;
}

.contact-reassurance__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0.8rem 0 0;
}

.contact-reassurance__list li {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(138, 107, 255, 0.12);
  border: 1px solid rgba(138, 107, 255, 0.2);
  color: rgba(243, 240, 255, 0.95);
  font-size: 0.88rem;
  line-height: 1.2;
}

/* ==================================================
   FORM
================================================== */
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

@media (max-width: 820px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.field {
  min-width: 0;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  font-weight: 900;
  font-size: 0.92rem;
  color: rgba(234, 231, 255, 0.95);
  margin-bottom: 0.45rem;
}

.field__input,
.field__textarea {
  width: 100%;
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  color: #101018;
  background: #fff;
  border: 2px solid rgba(138, 107, 255, 0.65);
  outline: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: rgba(16, 16, 24, 0.55);
}

.field__textarea {
  resize: vertical;
  min-height: 240px;
}

.field__input:focus,
.field__textarea:focus {
  border-color: rgba(138, 107, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(138, 107, 255, 0.22);
}

/* Checkbox */
.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  user-select: none;
  color: rgba(234, 231, 255, 0.9);
  line-height: 1.55;
  font-size: 0.92rem;
}

.check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
  margin-top: 2px;
}

.check__input:focus-visible + .check__box {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

.check__input:checked + .check__box {
  background: rgba(138, 107, 255, 0.95);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(138, 107, 255, 0.28);
}

.check__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.turnstile-field {
  min-height: 65px;
  display: flex;
  align-items: center;
}

.turnstile-field .cf-turnstile {
  max-width: 100%;
}

/* Actions */
.contact-form__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.contact-form__submit {
  justify-self: start;
  padding-inline: 1.9rem; /* = pareil que .btn */
}

.contact-form.is-submitting .contact-form__submit,
.contact-form__submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.contact-form__hint {
  color: rgba(234, 231, 255, 0.8);
  line-height: 1.55;
  font-size: 0.92rem;
}

.contact-link {
  color: #fff;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

/* ==================================================
   SIDE CARD
================================================== */
.contact-side__card {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 1.05rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .contact-side__card {
    position: relative;
    top: auto;
  }
}

.contact-side__media {
  margin: 0 0 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(
      120% 100% at 50% -30%,
      rgba(138, 107, 255, 0.12) 0,
      rgba(20, 18, 27, 0) 55%
    ),
    rgba(17, 14, 24, 0.82);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.contact-side__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.contact-side__title {
  font-weight: 900;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.contact-side__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  color: rgba(234, 231, 255, 0.92);
  flex: 0 0 auto;
}

.contact-side__list li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.contact-side__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  opacity: 0.9;
}

.contact-side__cta {
  margin-top: 0.25rem;
}

.contact-side__cta .btn {
  width: 100%;
}
