/* ===== Page : contact — « C'est David qui décroche »
   Mécaniques signature : hero face à face, 3 canaux, formulaire
   conversationnel (intent), carte habitée en oculus, carte de visite.
   (au-dessus du design system styles.css — ne redéfinit aucune primitive) ===== */

/* ------------------------------------------------------------------
   1) HERO — FACE À FACE (photo David à gauche, invitation à droite)
   ------------------------------------------------------------------ */
.ctc-hero {
  position: relative;
  padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2.6rem, 6vw, 4.4rem);
  background:
    radial-gradient(120% 95% at 88% 4%, var(--cream-3) 0%, transparent 52%),
    var(--cream);
  overflow: hidden;
}
.ctc-hero::before {
  /* filigrane arche de marque, discret */
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 360px;
  height: 360px;
  background: url("../img/logo-mark-noir.png") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}
.ctc-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.8rem, 4.5vw, 3.6rem);
  align-items: center;
}

/* portrait encadré, regard accueillant */
.ctc-portrait {
  position: relative;
  margin: 0;
  border-radius: var(--arch-segmental) var(--arch-segmental) var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--cream-3);
  box-shadow: 0 0 0 1px var(--line-gold), 0 1.5px 0 1.5px rgba(255, 255, 255, 0.55), var(--sh-lg);
}
.ctc-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%) contrast(1.02);
}
.ctc-portrait-tag {
  position: absolute;
  left: clamp(0.8rem, 2vw, 1.2rem);
  bottom: clamp(0.8rem, 2vw, 1.2rem);
  right: clamp(0.8rem, 2vw, 1.2rem);
  padding: 0.85rem 1.1rem;
  background: rgba(14, 34, 51, 0.78);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 160, 99, 0.4);
}
.ctc-portrait-tag .script {
  display: block;
  font-family: var(--script);
  font-weight: 700;
  color: var(--gold-2);
  font-size: 1.85rem;
  line-height: 1;
}
.ctc-portrait-tag small {
  display: block;
  margin-top: 2px;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.78);
}

.ctc-hero-copy h1 {
  color: var(--navy-900);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.02;
  margin-top: 0.5rem;
}
.ctc-hero-copy h1 .script {
  display: block;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--gold-deep);
  margin-top: 0.4rem;
  line-height: 1.04;
}
.ctc-hero-copy .lead {
  max-width: 52ch;
  margin-top: 1.1rem;
}

/* --- 3 voies de contact (gros boutons larges) --- */
.ctc-channels {
  display: grid;
  gap: 0.7rem;
  margin: 1.8rem 0 1.6rem;
}
.ctc-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-expo), border-color 0.3s ease;
}
.ctc-channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--line-gold);
}
.ctc-channel .cc-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-3);
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
}
.ctc-channel .cc-ic svg { width: 21px; height: 21px; }
.ctc-channel .cc-body { display: flex; flex-direction: column; line-height: 1.2; }
.ctc-channel .cc-body b { font-size: 1.06rem; color: var(--navy-900); font-weight: 700; }
.ctc-channel .cc-body small { color: var(--ink-mute); font-size: 0.86rem; margin-top: 1px; }
.ctc-channel .cc-go {
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.45s var(--ease-expo);
}
.ctc-channel:hover .cc-go { transform: translateX(5px); }
/* le canal "appeler" est l'aplat doré committed du hero */
.ctc-channel--call {
  background: linear-gradient(120deg, var(--gold-bright) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  border-color: transparent;
  box-shadow: var(--sh-gold);
}
.ctc-channel--call .cc-ic { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.ctc-channel--call .cc-body b { color: #fff; }
.ctc-channel--call .cc-body small { color: rgba(255, 255, 255, 0.9); }
.ctc-channel--call .cc-go { color: #fff; }
.ctc-channel--wa .cc-ic { background: rgba(31, 157, 87, 0.12); border-color: rgba(31, 157, 87, 0.4); color: #1f9d57; }

/* ------------------------------------------------------------------
   2) FORMULAIRE CONVERSATIONNEL (section navy committed, id=contact)
   ------------------------------------------------------------------ */
.ctc-form-sec .section-head { margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.ctc-form-sec h2 { color: #fff; }
.ctc-form-sec h2 .script { display: block; color: var(--gold-2); font-size: 0.72em; margin-top: 0.3rem; }
.ctc-form-sec .lead { color: rgba(255, 255, 255, 0.74); }

.ctc-form {
  max-width: 880px;
  margin: 0 auto;
}
.ctc-step-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold-2);
  margin-bottom: 1rem;
}
.ctc-step-label span {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 160, 99, 0.16);
  border: 1px solid rgba(201, 160, 99, 0.5);
  color: var(--gold-2);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 0.82rem;
}
.ctc-step-label--inline { color: var(--ink-mute); margin-bottom: 1rem; }
.ctc-step-label--inline span { background: var(--cream-3); border-color: var(--line-gold); color: var(--gold-deep); }

/* fieldset reset */
.ctc-intent-grid {
  border: 0;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.ctc-intent-grid legend { float: left; width: 100%; padding: 0; }

/* les 4 choix-cartes cliquables */
.ctc-intent {
  appearance: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.4s var(--ease-expo), background 0.3s ease, border-color 0.3s ease, box-shadow 0.4s var(--ease-expo);
}
.ctc-intent .ci-emoji {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 160, 99, 0.34);
  color: var(--gold-2);
}
.ctc-intent .ci-emoji svg { width: 21px; height: 21px; }
.ctc-intent b { font-size: 1rem; color: #fff; font-weight: 700; line-height: 1.15; }
.ctc-intent small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }
.ctc-intent:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(201, 160, 99, 0.5);
}
.ctc-intent:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}
/* état sélectionné (.is-active posé par main.js) */
.ctc-intent.is-active {
  background: linear-gradient(150deg, var(--gold-2), var(--gold-deep));
  border-color: var(--gold-soft);
  box-shadow: var(--sh-gold);
  transform: translateY(-3px);
}
.ctc-intent.is-active .ci-emoji {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.ctc-intent.is-active b,
.ctc-intent.is-active small { color: #fff; }
.ctc-intent.is-active small { color: rgba(255, 255, 255, 0.92); }

/* champs sur carte ivoire posée sur le navy */
.ctc-fields {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--sh-md);
}
.ctc-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ctc-fields-grid .ctc-full { grid-column: 1 / -1; }
.ctc-fields .consent { margin-top: 1.1rem; }
.ctc-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.ctc-submit { flex: 1; min-width: 220px; }
.ctc-wa { align-self: stretch; }
.ctc-proof { margin-top: 1.2rem; }
.ctc-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--gold-deep);
  min-height: 0;
}

/* ------------------------------------------------------------------
   3) CARTE HABITÉE — oculus circulaire + comité de personnages
   ------------------------------------------------------------------ */
.ctc-map-sec { overflow: hidden; }
.ctc-map-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ctc-map-copy h2 { color: var(--navy-900); }
.ctc-map-copy h2 .script { display: block; color: var(--gold-deep); font-size: 0.72em; margin-top: 0.3rem; }
.ctc-map-copy .lead { max-width: 46ch; }
.ctc-map-facts {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.8rem;
  display: grid;
  gap: 1rem;
}
.ctc-map-facts li { display: flex; align-items: center; gap: 0.9rem; }
.ctc-map-facts .cm-ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-3);
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
}
.ctc-map-facts .cm-ic svg { width: 20px; height: 20px; }
.ctc-map-facts b { display: block; color: var(--navy-900); font-weight: 700; }
.ctc-map-facts small { color: var(--ink-mute); font-size: 0.88rem; }
.ctc-map-link { margin-top: 0.2rem; }

/* la scène : oculus rond + sol + acteurs */
.ctc-map-stage {
  position: relative;
  padding-bottom: clamp(64px, 9vw, 92px); /* place pour les personnages au sol */
}
.ctc-map-stage::after {
  /* ligne de sol dorée sous l'oculus */
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: clamp(60px, 8.5vw, 86px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 18%, var(--gold) 50%, var(--gold-soft) 82%, transparent);
  opacity: 0.8;
}
.ctc-oculus {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-3);
  box-shadow: 0 0 0 1px var(--line-gold), 0 0 0 9px var(--cream), 0 0 0 10px var(--line-gold), var(--sh-lg);
  z-index: 2;
}
.ctc-oculus iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.02);
}
.ctc-oculus-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  filter: drop-shadow(0 6px 10px rgba(14, 34, 51, 0.3));
  z-index: 3;
}
.ctc-oculus-pin svg { width: 38px; height: 38px; }

/* comité de personnages "devant l'agence" (alignés au sol) */
.ctc-actor {
  bottom: clamp(2px, 1vw, 8px);
  height: clamp(94px, 13vw, 132px);
  z-index: 4;
}
.ctc-actor img { height: 100%; width: auto; filter: drop-shadow(0 8px 10px rgba(14, 34, 51, 0.18)); }
.ctc-actor--family { left: 2%; }
.ctc-actor--couple { left: 50%; transform: translateX(-50%); height: clamp(100px, 14vw, 142px); }
.ctc-actor--elderly { right: 4%; height: clamp(88px, 12vw, 120px); }

/* ------------------------------------------------------------------
   4) CARTE DE VISITE + raccourcis services
   ------------------------------------------------------------------ */
.ctc-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.4rem, 3.5vw, 2.4rem);
  align-items: start;
}
.ctc-card { gap: 1.2rem; }
.ctc-card .sign-david img { width: 70px; height: 70px; }
.ctc-card .sd-name { font-size: 2.1rem; }
.ctc-card-lead {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 56ch;
}
.ctc-card-lead a { color: var(--gold-deep); font-weight: 600; }
.ctc-card-meta {
  list-style: none;
  padding: 1.2rem 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.4rem;
  width: 100%;
}
.ctc-card-meta li { display: flex; flex-direction: column; gap: 2px; }
.ctc-card-meta span {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: var(--ink-mute);
}
.ctc-card-meta b { color: var(--navy-900); font-weight: 700; font-size: 0.96rem; }
.ctc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.ctc-rating { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.ctc-rating .g-badge { display: inline-grid; place-items: center; }
.ctc-rating .g-logo { width: 24px; height: 24px; }
.ctc-rating b { font-size: 1.18rem; color: var(--navy-900); font-weight: 800; }
.ctc-rating .stars { color: var(--gold); letter-spacing: 1px; }
.ctc-rating small { color: var(--ink-mute); font-size: 0.82rem; }
.ctc-card-cta { white-space: nowrap; }

/* raccourcis services (liens directs) */
.ctc-shortcuts {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.ctc-shortcuts-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  margin: 0 0 0.3rem;
}
.ctc-shortcut {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo), border-color 0.3s ease;
}
.ctc-shortcut:hover {
  transform: translateX(4px);
  box-shadow: var(--sh-md);
  border-color: var(--line-gold);
}
.ctc-shortcut .cs-ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--cream-3);
  border: 1px solid var(--line-gold);
  color: var(--gold-deep);
}
.ctc-shortcut .cs-ic svg { width: 20px; height: 20px; }
.ctc-shortcut .cs-body { display: flex; flex-direction: column; line-height: 1.2; }
.ctc-shortcut .cs-body b { color: var(--navy-900); font-weight: 700; font-size: 1rem; }
.ctc-shortcut .cs-body small { color: var(--ink-mute); font-size: 0.84rem; }
.ctc-shortcut .cs-go { margin-left: auto; color: var(--gold); font-size: 1.2rem; transition: transform 0.4s var(--ease-expo); }
.ctc-shortcut:hover .cs-go { transform: translateX(4px); }

/* ------------------------------------------------------------------
   5) TRUST BAR (clôture)
   ------------------------------------------------------------------ */
.ctc-trust { border-bottom: 2px solid var(--gold); }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 980px) {
  .ctc-hero-grid { grid-template-columns: 1fr; gap: clamp(1.4rem, 4vw, 2.2rem); }
  .ctc-portrait { max-width: 460px; }
  .ctc-intent-grid { grid-template-columns: 1fr 1fr; }
  .ctc-map-grid { grid-template-columns: 1fr; }
  .ctc-map-stage { max-width: 520px; margin: 0 auto; }
  .ctc-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ctc-hero { padding-top: 1.6rem; }
  .ctc-hero-copy h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .ctc-channel { padding: 0.85rem 0.9rem; gap: 0.8rem; }
  .ctc-channel .cc-ic { width: 42px; height: 42px; }
  .ctc-channel .cc-body b { font-size: 1rem; }

  .ctc-intent-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  /* en colonne, les cartes deviennent compactes (icône à gauche,
     le titre + sous-titre forment une colonne via une grille) */
  .ctc-intent {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: center;
    padding: 0.8rem 0.95rem;
  }
  .ctc-intent .ci-emoji { margin-bottom: 0; grid-row: 1 / 3; align-self: center; }
  .ctc-intent b { align-self: end; }
  .ctc-intent small { align-self: start; }
  .ctc-fields-grid { grid-template-columns: 1fr; }
  .ctc-fields-grid .ctc-full { grid-column: auto; }
  .ctc-actions { flex-direction: column; }
  .ctc-submit, .ctc-wa { min-width: 0; width: 100%; }

  .ctc-card-meta { grid-template-columns: 1fr; }
  .ctc-card-foot { flex-direction: column; align-items: flex-start; }
  .ctc-card-cta { width: 100%; text-align: center; }

  /* sur très petit écran, on garde la carte lisible : on réduit le comité */
  .ctc-actor--elderly { display: none; }
  .ctc-actor--family { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ctc-channel, .ctc-channel .cc-go,
  .ctc-intent, .ctc-shortcut, .ctc-shortcut .cs-go { transition: none; }
}
