/* =========================================================
   CONTACT PAGE  (scoped via ct- prefix)
   Reuses tokens from style.css. Display type is Fraunces
   to match the fenetres / atelier feel.
   ========================================================= */

.ct-main {
  padding-top: 52px;
  background: var(--bg-light);
}
@media (min-width: 768px) { .ct-main { padding-top: 64px; } }

.ct-main h1,
.ct-main h2,
.ct-card__h,
.ct-form__sec-h,
.ct-steps__h,
.ct-zone__h {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 360;
  letter-spacing: -0.015em;
}

/* ---------- 1. PAGE HEAD (dark) ---------- */
.ct-head {
  background: var(--black);
  color: #F8F4EB;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.ct-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(190, 142, 72, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 70% at 5% 100%, rgba(190, 142, 72, 0.06), transparent 60%);
  pointer-events: none;
}
.ct-head > .container { position: relative; z-index: 1; }

.ct-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 244, 235, 0.55);
  margin-bottom: 28px;
}
.ct-crumb a { color: rgba(248, 244, 235, 0.55); transition: color 0.2s ease; }
@media (hover: hover) {
.ct-crumb a:hover { color: var(--gold); }
}
.ct-crumb .sep { color: rgba(248, 244, 235, 0.3); }

.ct-h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.04;
  margin: 0;
  color: #FBF7EE;
  max-width: 18ch;
}
.ct-h1 em { font-style: italic; font-weight: 400; color: #E8B779; }

.ct-lede {
  margin: 22px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.6;
  color: rgba(248, 244, 235, 0.78);
  max-width: 62ch;
}

.ct-trust {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 244, 235, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
}
.ct-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 244, 235, 0.72);
}
.ct-trust__item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- 2. FORM SECTION (light) ---------- */
.ct-form-section {
  background: var(--bg-light);
  padding: 24px 0 56px;
}
@media (min-width: 1024px) {
  .ct-form-section { padding: 28px 0 72px; }
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

/* ----- Left: trust / contact info card ----- */
.ct-aside {
  position: relative;
}
@media (min-width: 980px) {
  .ct-aside { position: sticky; top: 100px; }
}
.ct-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.ct-card__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0 0 12px;
}
.ct-card__h {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--text-dark);
}
.ct-card__sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 0 24px;
}

.ct-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ct-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-dark);
}
.ct-info__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(190, 142, 72, 0.10);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ct-info__icon svg { width: 14px; height: 14px; }
.ct-info__k {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 2px;
}
.ct-info__v {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
}
.ct-info__v a {
  color: var(--text-dark);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
.ct-info__v a:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
}

.ct-card__rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 24px 0;
}

.ct-promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  color: var(--text-dark);
}
.ct-promises li svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ----- Right: form card ----- */
.ct-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .ct-form-wrap { padding: 36px 44px; }
}

.ct-form__head { margin-bottom: 22px; }
.ct-form__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0 0 10px;
}
.ct-form__title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  margin: 0;
  color: var(--text-dark);
}
.ct-form__title em { font-style: italic; color: var(--gold-dark); font-weight: 400; }

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ct-form__sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ct-form__sec-h {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  text-wrap: balance;
}
.ct-form__sec-hint {
  font-size: 15px;
  color: var(--text-mid);
  margin: -4px 0 4px;
  font-style: italic;
}

/* ----- Chip selector (multi or single) ----- */
.ct-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .ct-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 560px) {
  .ct-chips--4 { grid-template-columns: repeat(4, 1fr); }
}

.ct-chip {
  position: relative;
  cursor: pointer;
  /* Lets the chip shrink below its content's intrinsic width inside the
     grid track. Without this, a long label like "Portes d'entrée" forces
     the column wider than the viewport on narrow phones, which makes the
     whole form card overflow to the right. */
  min-width: 0;
}
.ct-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.ct-chip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s var(--easing);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-dark);
  height: 100%;
  position: relative;
}
/* The text span needs `display: block` for the existing overflow:hidden +
   text-overflow:ellipsis to take effect — an inline <span> won't clip.
   Letting it shrink and soft-wrap keeps long labels like "Portes d'entrée"
   inside the column on narrow phones instead of pushing the form card
   wider than the viewport. */
.ct-chip__inner > span:not(.ct-chip__icon):not(.ct-chip__check) {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.ct-chip__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-light);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--easing);
  flex-shrink: 0;
}
.ct-chip__icon svg { width: 14px; height: 14px; }

.ct-chip__check { display: none; }

@media (hover: hover) {
.ct-chip:hover .ct-chip__inner {
  border-color: var(--gold);
  transform: translateY(-1px);
}
}

.ct-chip input:focus-visible + .ct-chip__inner {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ct-chip input:checked + .ct-chip__inner {
  border-color: var(--gold);
  background: rgba(190, 142, 72, 0.06);
  box-shadow: 0 0 0 1.5px var(--gold);
}
.ct-chip input:checked + .ct-chip__inner .ct-chip__icon {
  background: var(--gold);
  color: var(--white);
}
.ct-chip input:checked + .ct-chip__inner .ct-chip__check {
  background: var(--gold);
  border-color: var(--gold);
}
.ct-chip input:checked + .ct-chip__inner .ct-chip__check::after { opacity: 1; }

/* Compact chip variant (timeline) — no icon, smaller */
.ct-chip--compact .ct-chip__inner {
  padding: 10px 14px;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}
.ct-chip--compact .ct-chip__check { display: none; }

/* ----- Text fields ----- */
.ct-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .ct-row--2 { grid-template-columns: 1fr 1fr; }
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.ct-field__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.ct-field__label .req { color: var(--color-gold-text); margin-left: 2px; }

.ct-field input,
.ct-field textarea {
  font: inherit;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 10px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
@media (hover: hover) {
.ct-field input:hover,
.ct-field textarea:hover {
  border-color: #d6cfc1;
}
}
.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190, 142, 72, 0.14);
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: #b3aa9b;
}
.ct-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* ----- Submit + footer ----- */
.ct-form__foot {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ct-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 14.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.25s var(--easing);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (hover: hover) {
.ct-submit:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
}
.ct-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.ct-submit svg {
  width: 14px;
  height: 14px;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (hover: hover) {
.ct-submit:hover svg { transform: translateX(3px); }
}

.ct-form__fineprint {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}
.ct-form__fineprint a {
  color: var(--gold-dark);
  border-bottom: 1px solid rgba(190, 142, 72, 0.4);
  font-weight: 500;
}

.ct-form__error {
  background: rgba(220, 80, 80, 0.06);
  border: 1px solid rgba(220, 80, 80, 0.25);
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 15.5px;
  color: #a03434;
  text-align: center;
}
.ct-form__error a {
  color: #a03434;
  font-weight: 600;
  text-decoration: underline;
}

/* ----- Success state ----- */
.ct-success {
  text-align: center;
  padding: 24px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: ctFadeIn 0.4s ease both;
}
.ct-success__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(190, 142, 72, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: ctCheckPop 0.5s var(--easing) both;
}
.ct-success__icon svg { width: 36px; height: 36px; }
.ct-success__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 360;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-dark);
}
.ct-success__text {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 44ch;
  margin: 0;
}
.ct-success__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  margin-top: 4px;
}
.ct-success__meta svg { width: 14px; height: 14px; color: var(--gold); }

/* ---------- 3. WHAT HAPPENS NEXT ---------- */
.ct-steps {
  background: var(--white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.ct-steps::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--border);
}
@media (min-width: 1024px) { .ct-steps { padding: 120px 0 128px; } }

.ct-steps__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.ct-steps__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0 0 14px;
}
.ct-steps__h {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  margin: 0;
  color: var(--text-dark);
}
.ct-steps__h em {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 400;
}

.ct-steps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .ct-steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
}
@media (min-width: 1080px) {
  .ct-steps__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ct-step {
  position: relative;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: start;
}
@media (min-width: 720px) {
  .ct-step {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 36px 28px;
  }
  .ct-step + .ct-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 36px;
    bottom: 36px;
    width: 1px;
    background: var(--border);
  }
}

.ct-step__num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--color-gold-text);
  letter-spacing: -0.04em;
  display: inline-block;
  transition: color 0.3s var(--easing), transform 0.4s var(--easing);
  transform-origin: left center;
}
@media (min-width: 720px) {
  .ct-step__num { font-size: 64px; }
}
@media (hover: hover) {
.ct-step:hover .ct-step__num {
  color: var(--gold-dark);
  transform: scale(1.06);
}
}

.ct-step__body-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ct-step__h {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}
.ct-step__body {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text-mid);
  margin: 0;
}

/* ---------- 4. ZONE / FALLBACK BAND ---------- */
.ct-zone {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.ct-zone__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .ct-zone__inner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

.ct-zone__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  margin: 0 0 16px;
}
.ct-zone__h {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--text-dark);
}
.ct-zone__h em { color: var(--gold-dark); font-style: italic; font-weight: 400; }
.ct-zone__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0;
}

.ct-zone__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 560px) {
  .ct-zone__cta { flex-direction: row; flex-wrap: wrap; }
}
.ct-zone__call,
.ct-zone__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all 0.2s var(--easing);
  flex: 0 1 auto;
  font: inherit;
  text-align: left;
  position: relative;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.ct-zone__call { cursor: default; }
@media (hover: hover) {
.ct-zone__call:hover,
.ct-zone__mail:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(190, 142, 72, 0.12);
}
}
.ct-zone__call svg,
.ct-zone__mail > svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.ct-zone__mail-body {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
}
.ct-zone__call-k,
.ct-zone__mail-k {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 3px;
}
.ct-zone__call-v,
.ct-zone__mail-v {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- ANIMATIONS ---------- */
@keyframes ctFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes ctCheckPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-success,
  .ct-success__icon { animation: none; }
  @media (hover: hover) {
.ct-submit:hover,
.ct-submit:hover svg,
.ct-chip:hover .ct-chip__inner,
.ct-zone__call:hover,
.ct-zone__mail:hover { transform: none; }
}
}
