/* Quanta — page Contact */

.page-contact #site-header {
  background: transparent;
  transition: background 0.35s ease;
}

.page-contact #site-header.nav-fixed,
.page-contact #site-header.hero-scrolled {
  background: rgba(12, 27, 42, 0.92);
  backdrop-filter: blur(10px);
}

.page-contact .navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.page-contact .navbar .navbar-brand img {
  max-height: 52px;
  width: auto;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Hero */
.c-hero {
  position: relative;
  min-height: clamp(380px, 62vh, 560px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}

.c-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.c-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transform: scale(1.08);
  animation: c-ken 18s ease-in-out infinite alternate;
}

@keyframes c-ken {
  from { transform: scale(1.05); }
  to { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}

.c-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.55) 55%, rgba(30, 106, 138, 0.3) 100%),
    linear-gradient(to top, rgba(8, 16, 28, 0.8) 0%, transparent 50%);
}

.c-hero__content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.5rem 3.5rem;
  color: #fff;
}

.c-hero__brand,
.c-hero__title,
.c-hero__lead {
  color: #fff !important;
}

.c-hero__brand {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
  margin: 0 0 0.75rem;
  opacity: 0;
  transform: translateY(24px);
  animation: c-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.c-hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: c-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.c-hero__lead {
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.45;
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: c-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

@keyframes c-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenu */
.c-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.c-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.c-flashes {
  margin-bottom: 1.75rem;
}

.c-flash {
  margin: 0 0 0.65rem;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
}

.c-flash--success {
  background: #e7f6ee;
  color: #146c43;
  border-left: 3px solid #146c43;
}

.c-flash--error {
  background: #fdebec;
  color: #b02a37;
  border-left: 3px solid #b02a37;
}

.c-grid {
  display: grid;
  gap: 2.75rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.c-grid.is-inview {
  opacity: 1;
  transform: none;
}

@media (min-width: 920px) {
  .c-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.c-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--q-accent);
}

.c-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--q-ink) !important;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.c-text {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--q-steel);
  max-width: 40ch;
  margin: 0 0 2rem;
}

.c-details {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(26, 51, 72, 0.12);
}

.c-details li {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(26, 51, 72, 0.12);
}

.c-details__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--q-accent);
}

.c-details span,
.c-details a {
  font-size: 1.12rem;
  color: var(--q-ink) !important;
  text-decoration: none;
}

.c-details a:hover {
  color: var(--q-accent) !important;
}

/* Formulaire */
.c-form-wrap {
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(26, 51, 72, 0.08);
  border-radius: 18px;
}

.c-form__row {
  margin-bottom: 1.15rem;
}

.c-form__row--2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .c-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.c-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--q-ink);
}

.c-optional {
  font-weight: 400;
  color: var(--q-steel);
  letter-spacing: 0;
}

.c-form input,
.c-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(26, 51, 72, 0.2);
  border-radius: 12px;
  background: var(--q-mist);
  color: var(--q-ink);
  font-size: 1.05rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.c-form input:focus,
.c-form textarea:focus {
  outline: none;
  border-color: var(--q-accent);
  background: #fff;
}

.c-form textarea {
  resize: vertical;
  min-height: 140px;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 12px;
  background: var(--q-ink);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

@media (max-width: 575.98px) {
  .c-btn {
    width: 100%;
  }

  .c-form-wrap {
    padding: 1.25rem;
  }
}

.c-btn:hover {
  background: var(--q-accent);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .c-hero__media img,
  .c-hero__brand,
  .c-hero__title,
  .c-hero__lead,
  .c-grid {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
