﻿/* ===== CONTACT PAGE v2 ===== */

/* ===== HERO ===== */
.ct-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw clamp(48px, 7vh, 80px);
  margin-top: 64px;
  overflow: hidden;
}

.ct-hero::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 54px;
  height: 54px;
  background-image: url('../image/overlay/pixel unique.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 10;
}
@media (min-width: 768px) {
  .ct-hero::after { top: 22px; right: 22px; width: clamp(16px, 2.8vw, 32px); height: clamp(16px, 2.8vw, 32px); }
}
@media (max-width: 767px) {
  .ct-hero::after { width: 16px; height: 16px; }
}
.ct-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ct-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.75) contrast(1.1);
}
.ct-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.6) 45%, rgba(8,8,8,0.1) 100%);
}

.ct-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.ct-hero__breadcrumb {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-hero__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.ct-hero__breadcrumb a:hover { color: var(--accent); }
.ct-hero__breadcrumb span { color: rgba(255,255,255,0.2); }

.ct-hero__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.ct-hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}
.ct-hero__title em {
  font-style: normal;
  color: var(--accent);
}
.ct-hero__desc {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 48ch;
}

.ct-hero__scroll {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  right: 6vw;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
}
.ct-hero__scroll span {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}
.ct-hero__scroll svg { width: 12px; height: 20px; }
.ct-hero__scroll-dot { animation: scroll-bounce 1.6s ease-in-out infinite; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.3; }
}

/* ===== CONTACT CARDS ===== */
.ct-cards {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

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

.ct-card {
  position: relative;
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px);
  border-right: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.22s, box-shadow 0.28s ease;
}
.ct-card:last-child { border-right: none; }

.ct-card__icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 6px;
  flex-shrink: 0;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.ct-card__icon svg { width: 18px; height: 18px; }

.ct-card__eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(42,42,42,0.38);
}

.ct-card__title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--black);
}

.ct-card__desc {
  font-size: 13px;
  color: rgba(42,42,42,0.52);
  line-height: 1.6;
  flex: 1;
}

.ct-card__cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 6px;
  transition: letter-spacing 0.2s;
}
a.ct-card:hover .ct-card__cta { letter-spacing: 0.04em; }

/* Hover sur les cartes standard (pas la carte primaire) */
a.ct-card:not(.ct-card--primary):hover,
.ct-card--static:hover {
  background: #fafaf8;
  box-shadow: inset 0 3px 0 var(--accent), 0 4px 20px rgba(0,0,0,0.07);
}
a.ct-card:not(.ct-card--primary):hover .ct-card__icon,
.ct-card--static:hover .ct-card__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

/* Last card (primary CTA) — dark bg */
.ct-card--primary {
  background: var(--black);
  border-right: none;
  box-shadow: inset 0 3px 0 var(--accent);
}
.ct-card--primary .ct-card__icon {
  border-color: rgba(255,255,255,0.15);
  color: var(--accent);
}
.ct-card--primary .ct-card__eyebrow { color: rgba(255,255,255,0.3); }
.ct-card--primary .ct-card__title  { color: var(--white); }
.ct-card--primary .ct-card__desc   { color: rgba(255,255,255,0.45); }
.ct-card--primary .ct-card__cta    { color: var(--accent); }

/* Specificity (0,3,1) > a.ct-card:not(...):hover (0,3,1) — conserve le fond noir */
a.ct-card.ct-card--primary:hover {
  background: var(--black-mid);
  box-shadow: inset 0 3px 0 var(--accent);
}
a.ct-card.ct-card--primary:hover .ct-card__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

/* ===== FORM SECTION ===== */
.ct-form-section {
  background: var(--white);
  padding: clamp(72px, 9vw, 112px) clamp(24px, 6vw, 80px);
  border-top: 1px solid rgba(0,0,0,0.07);
}

.ct-form-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

/* Intro column */
.ct-form-section__intro { }

.ct-form-section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 20px;
  margin-top: 16px;
}
.ct-form-section__title em {
  font-style: normal;
  color: var(--accent);
}

.ct-form-section__desc {
  font-size: 15px;
  color: rgba(42,42,42,0.55);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 40ch;
}

/* Stats */
.ct-fstats {
  display: flex;
  margin-bottom: 40px;
}
.ct-fstat {
  padding: 18px 24px;
  border: 1px solid rgba(0,0,0,0.08);
}
.ct-fstat + .ct-fstat { border-left: none; }

.ct-fstat__val {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 4px;
}
.ct-fstat__lbl {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(42,42,42,0.38);
}

/* Socials */
.ct-form-section__socials-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(42,42,42,0.38);
  margin-bottom: 12px;
}
.ct-form-section__socials-links { display: flex; gap: 10px; }

.ct-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(42,42,42,0.5);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ct-social:hover { color: var(--black); background: var(--accent); border-color: var(--accent); }
.ct-social svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* Form column */
.ct-form-section__right { }

.ct-form { position: relative; }

.ct-form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ct-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ct-form__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(42,42,42,0.55);
}
.ct-form__label span { color: var(--accent); }

.ct-form__input,
.ct-form__select,
.ct-form__textarea {
  width: 100%;
  background: #f7f7f5;
  border: 1.5px solid transparent;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.ct-form__input::placeholder,
.ct-form__textarea::placeholder { color: rgba(42,42,42,0.3); }
.ct-form__input:focus,
.ct-form__select:focus,
.ct-form__textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.ct-form__input.is-error,
.ct-form__select.is-error,
.ct-form__textarea.is-error { border-color: #e53e3e; }

.ct-form__select-wrap { position: relative; }
.ct-form__select { padding-right: 40px; cursor: pointer; }
.ct-form__select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 8px;
  color: rgba(42,42,42,0.4);
  pointer-events: none;
}

.ct-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.ct-form__footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.ct-form__mention {
  font-size: 12px;
  color: rgba(42,42,42,0.4);
  line-height: 1.5;
}
.ct-form__mention span { color: var(--accent); }

.ct-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
  touch-action: manipulation;
}
.ct-form__submit svg { width: 18px; height: 18px; transition: transform 0.25s; }
.ct-form__submit:hover { background: var(--accent); color: var(--black); }
.ct-form__submit:hover svg { transform: translateX(4px); }
.ct-form__submit:active { transform: scale(0.98); }
.ct-form__submit.is-loading { pointer-events: none; opacity: 0.6; }

/* Success state */
.ct-form__success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px;
  background: #f7f7f5;
  border-left: 3px solid var(--accent);
  animation: fadeInUp 0.4s ease;
}
.ct-form__success[aria-hidden="false"] { display: flex; }
.ct-form__success-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ct-form__success-icon svg { width: 24px; height: 24px; color: var(--black); }
.ct-form__success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}
.ct-form__success p { font-size: 15px; color: rgba(42,42,42,0.6); line-height: 1.6; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== FAQ ===== */
.ct-faq {
  border-bottom: 3px solid var(--accent);
  background: #111111;
  padding: clamp(72px, 9vw, 112px) clamp(24px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.ct-faq::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background-image: url('../image/overlay/pixel unique.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 767px) {
  .ct-faq::after { width: 16px; height: 16px; top: 75px; right: 12px; }
}

.ct-faq__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
}

.ct-faq__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.ct-faq__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}
.ct-faq__title em {
  font-style: normal;
  color: var(--accent);
}

.ct-faq__subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.ct-faq__subtitle a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,200,0,0.3);
  transition: border-color 0.2s;
}
.ct-faq__subtitle a:hover { border-color: var(--accent); }

/* Accordion */
.ct-faq__list {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ct-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ct-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.ct-faq__btn:hover { color: var(--accent); }

.ct-faq__btn-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.ct-faq__icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ct-faq__icon svg { width: 16px; height: 16px; }
.ct-faq__btn:hover .ct-faq__icon {
  border-color: rgba(245,200,0,0.35);
  background: rgba(245,200,0,0.08);
  color: var(--accent);
}

.ct-faq__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}
.ct-faq__btn:hover .ct-faq__chevron { color: var(--accent); }
.ct-faq__item.is-open .ct-faq__chevron { transform: rotate(180deg); color: var(--accent); }
.ct-faq__item.is-open .ct-faq__btn { color: var(--accent); }

.ct-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.ct-faq__item.is-open .ct-faq__answer { max-height: 400px; }

.ct-faq__answer p {
  font-size: 15px;
  color: var(--white);
  line-height: 1.75;
  padding-bottom: 24px;
  max-width: 68ch;
}

/* ===== RESPONSIVE ===== */

/* ── MOBILE < 600px : cards en colonne unique ── */
@media (max-width: 599px) {
  /* Hero */
  .ct-hero { height: 60vh; min-height: 360px; padding: 0 20px clamp(32px, 6vh, 56px); }
  .ct-hero__scroll { display: none; }

  /* Cards section */
  .ct-cards { padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 24px); }
  .ct-card {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 28px 20px;
  }
  .ct-card:last-child { border-bottom: none; }
  .ct-card--primary { border-right: none; }

  /* Form section */
  .ct-form__row--half { grid-template-columns: 1fr; }
  .ct-form__submit { width: 100%; justify-content: center; }
  .ct-form__footer { gap: 16px; }

  /* Stats */
  .ct-fstats { flex-direction: column; }
  .ct-fstat + .ct-fstat { border-left: 1px solid rgba(0,0,0,0.08); border-top: none; }

  /* FAQ */
  .ct-faq__btn { font-size: 14px; padding: 18px 0; gap: 12px; }
  .ct-faq__btn-inner { gap: 12px; }
  .ct-faq__icon { width: 34px; height: 34px; }
  .ct-faq__icon svg { width: 14px; height: 14px; }
}

/* ── TABLET 600-899px : cards 2 colonnes ── */
@media (min-width: 600px) {
  .ct-cards__inner {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
  }
  /* séparateur vertical entre col 1 et 2 */
  .ct-card:nth-child(1),
  .ct-card:nth-child(3) { border-right: 1px solid rgba(0,0,0,0.08); }
  .ct-card:nth-child(2) { border-right: none; }
  /* séparateur horizontal entre rang 1 et 2 */
  .ct-card:nth-child(3),
  .ct-card--primary { border-top: 1px solid rgba(0,0,0,0.08); }
  .ct-card--primary { border-right: none; }
}

/* ── DESKTOP ≥ 900px : cards 4 colonnes ── */
@media (min-width: 900px) {
  .ct-cards__inner {
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
  }
  .ct-card:nth-child(1),
  .ct-card:nth-child(2),
  .ct-card:nth-child(3) { border-right: 1px solid rgba(0,0,0,0.08); border-top: none; }
  .ct-card--primary { border-top: none; border-right: none; }

  /* Form section 2 colonnes */
  .ct-form-section__inner {
    grid-template-columns: 4fr 6fr;
    gap: clamp(60px, 7vw, 100px);
  }
  .ct-form-section__intro { position: sticky; top: 88px; }

  /* FAQ 2 colonnes */
  .ct-faq__inner { grid-template-columns: 2fr 5fr; align-items: start; }
  .ct-faq__header { position: sticky; top: 88px; }

  /* Form footer inline */
  .ct-form__footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .ct-form__mention { max-width: 28ch; }
}

@media (min-width: 768px) {
  .ct-hero__overlay {
    background: linear-gradient(65deg, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0) 52%);
  }
}


}
