
.ct-page [id] { scroll-margin-top: calc(var(--nav-h, 72px) + 24px); }

/* ============================================================
   HERO
============================================================ */
.ct-hero { padding: 80px 0 90px; }
.ct-hero .container { max-width: 900px; }
.ct-hero .sv-eyebrow { margin-top: 1rem; }
.ct-hero h1 {
  margin: 1.1rem 0 1.1rem;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.ct-hero h1 span {
  background: linear-gradient(90deg, var(--accent), #A78BFA);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.ct-hero-facts {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  margin-top: 2.25rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.ct-hero-facts li {
  display: inline-flex; align-items: center; gap: .55rem;
  color: rgba(226,232,255,.8);
  font-size: .9rem;
}
.ct-hero-facts i { color: var(--accent); }

/* ============================================================
   MISE EN PAGE
============================================================ */
.ct-form-section { padding: 70px 0 90px; background: #fff; }
.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
}
.ct-main { min-width: 0; }

/* ============================================================
   ALERTE
============================================================ */
.ct-alert {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: .92rem;
}
.ct-alert > i { margin-top: .15rem; color: #EF4444; font-size: 1.2rem; }
.ct-alert strong { display: block; margin-bottom: .3rem; }
.ct-alert ul { display: grid; gap: .25rem; padding-left: 1.1rem; list-style: disc; }

/* ============================================================
   BLOCS DE FORMULAIRE
============================================================ */
.ct-block {
  margin: 0 0 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(15,23,42,.4);
}
.ct-block legend {
  display: flex; align-items: center; gap: .7rem;
  padding: 0 .6rem;
  margin-left: -.6rem;
  color: var(--text);
  font-size: 1.05rem; font-weight: 700;
}
.ct-block legend span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: .82rem; font-weight: 800;
}
.ct-block > .ct-field, .ct-block > .ct-row, .ct-block > .ct-pills { margin-top: 1.25rem; }

.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

/* ---- Type de demande : pastilles ---- */
.ct-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.ct-pill { position: relative; cursor: pointer; }
.ct-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.ct-pill span {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--text-muted);
  font-size: .9rem; font-weight: 600;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.ct-pill span i { color: var(--text-muted); transition: color .25s; }
.ct-pill:hover span { border-color: var(--blue); color: var(--text); }
.ct-pill input:checked + span {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 10px 22px -12px var(--blue);
}
.ct-pill input:checked + span i { color: #fff; }
.ct-pill input:focus-visible + span { outline: 3px solid rgba(0,102,255,.4); outline-offset: 2px; }

/* Aide contextuelle sous les pastilles */
.ct-type-aide {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: var(--bg);
  border-left: 3px solid var(--blue);
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.55;
}

/* Apparition d'un champ quand on change de type de demande */
[data-champ][hidden] { display: none !important; }
.ct-appear { animation: ct-appear .35s cubic-bezier(.2,.8,.2,1); }
@keyframes ct-appear { from { opacity: 0; transform: translateY(-6px); } }

/* ============================================================
   CHAMPS
============================================================ */
.ct-field label {
  display: block;
  margin-bottom: .45rem;
  color: var(--text);
  font-size: .9rem; font-weight: 600;
}
.ct-field label small { color: var(--text-muted); font-weight: 500; }
.ct-field abbr { color: var(--blue); text-decoration: none; }

.ct-field input[type="text"],
.ct-field input[type="email"],
.ct-field input[type="tel"],
.ct-field textarea,
.ct-select {
  width: 100%;
  padding: .8rem 1.05rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.ct-field textarea { min-height: 200px; line-height: 1.7; resize: vertical; }
.ct-select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}
.ct-field input:focus, .ct-field textarea:focus, .ct-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,102,255,.12);
}

.ct-hint { margin-top: .45rem; color: var(--text-muted); font-size: .8rem; line-height: 1.5; }
.ct-hint--center { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1rem; text-align: center; }
.ct-hint i { color: var(--blue); }

.ct-error { display: none; margin-top: .4rem; color: #DC2626; font-size: .82rem; font-weight: 600; }
.ct-field.has-error .ct-error { display: block; }
.ct-field.has-error input,
.ct-field.has-error textarea,
.ct-field.has-error .ct-select { border-color: #EF4444; }

/* Champ piège anti-robot */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Consentement ---- */
.ct-consent label {
  display: flex; align-items: flex-start; gap: .75rem;
  color: var(--text-muted);
  font-size: .88rem; font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}
.ct-consent input {
  width: 20px; height: 20px; flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--blue);
  cursor: pointer;
}

.ct-submit { width: 100%; justify-content: center; margin-top: 1.5rem; }
.ct-submit.is-loading { opacity: .75; pointer-events: none; }
.ct-submit.is-loading i { animation: ct-spin .8s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }

/* ============================================================
   COLONNE LATÉRALE
============================================================ */
.ct-side-inner {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  display: grid; gap: 1rem;
}
.ct-side-card {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
}
.ct-side-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: .8rem; font-weight: 700;
}
.ct-side-card p { font-size: .88rem; line-height: 1.6; margin-bottom: .75rem; overflow-wrap: anywhere; }

/* ---- Canaux directs ---- */
.ct-side-card--direct { background: linear-gradient(170deg, var(--blue-light), #fff 65%); border-color: color-mix(in srgb, var(--blue) 22%, var(--border)); }
.ct-channels { display: grid; gap: .5rem; }
.ct-channels a {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem .85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ct-channels a:hover {
  color: var(--text);
  border-color: var(--c, var(--blue));
  transform: translateX(3px);
  box-shadow: 0 12px 26px -20px rgba(15,23,42,.5);
}
.ct-channel-ic {
  --c: var(--blue);
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 13%, #fff);
  color: var(--c);
  font-size: .95rem;
}
.ct-channels a > span:nth-child(2) { flex: 1; min-width: 0; }
.ct-channels strong { display: block; font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.ct-channels small  { display: block; color: var(--text-muted); font-size: .78rem; }
.ct-channels a > i:last-child { color: var(--text-muted); opacity: .6; }

.ct-side-adresse {
  display: flex; align-items: flex-start; gap: .55rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: .84rem; line-height: 1.55;
}
.ct-side-adresse i { margin-top: .2rem; color: var(--blue); flex-shrink: 0; }

/* ---- Étapes ---- */
.ct-steps { display: grid; gap: .9rem; }
.ct-steps li { display: flex; align-items: flex-start; gap: .8rem; }
.ct-step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--blue);
  font-size: .76rem; font-weight: 800;
}
.ct-steps strong { display: block; color: var(--text); font-size: .88rem; line-height: 1.35; }
.ct-steps span:not(.ct-step-num) { display: block; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }

/* ---- Réassurance ---- */
.ct-side-card--trust {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg);
}
.ct-side-card--trust > i { font-size: 1.6rem; color: var(--blue); flex-shrink: 0; }
.ct-side-card--trust strong { display: block; color: var(--text); font-size: 1rem; }
.ct-side-card--trust span { display: block; margin: .15rem 0 .5rem; color: var(--text-muted); font-size: .84rem; line-height: 1.5; }
.ct-side-card--jobs { background: var(--bg); }

/* ============================================================
   CONFIRMATION
============================================================ */
.ct-done-section { padding: 80px 0 100px; background: #fff; }
.ct-done {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 40px 80px -50px rgba(0,102,255,.55);
  animation: ct-done-in .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes ct-done-in { from { opacity: 0; transform: translateY(20px); } }
.ct-done-ic { display: block; width: 92px; margin: 0 auto 1.5rem; }
.ct-done-ic svg { width: 100%; height: auto; }
.ct-done-circle {
  fill: none; stroke: #16A34A; stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: ct-draw .7s cubic-bezier(.2,.8,.2,1) .15s forwards;
}
.ct-done-check {
  fill: none; stroke: #16A34A; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: ct-draw .4s ease .75s forwards;
}
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-done h2 { color: var(--text); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .75rem; }
.ct-done > p { font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }
.ct-done strong { color: var(--text); overflow-wrap: anywhere; }

.ct-done-next { display: grid; gap: .75rem; margin-bottom: 2rem; text-align: left; }
.ct-done-next li {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.ct-done-next > li > span {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: .8rem; font-weight: 800;
}
.ct-done-next strong { display: block; color: var(--text); font-size: .95rem; margin-bottom: .15rem; }
.ct-done-next div { color: var(--text-muted); font-size: .88rem; line-height: 1.55; }

.ct-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.ct-done-urgent {
  margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  font-size: .88rem;
}

/* ============================================================
   FAQ
============================================================ */
.ct-faq { padding: 90px 0 100px; background: var(--bg); }
.ct-faq .faq-q { gap: 1rem; }
.ct-faq .faq-q:focus-visible { outline: 3px solid rgba(0,102,255,.4); outline-offset: -3px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .ct-layout { grid-template-columns: 1fr; max-width: 760px; }
  .ct-side-inner { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ct-hero { padding: 60px 0 70px; }
  .ct-hero-facts { flex-direction: column; gap: .6rem; }

  .ct-form-section { padding: 50px 0 70px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-block { padding: 1.35rem 1.15rem; border-radius: 18px; }
  .ct-pills { gap: .45rem; }
  .ct-pill span { padding: .6rem .95rem; font-size: .85rem; }
  .ct-side-inner { grid-template-columns: 1fr; }

  .ct-done { padding: 2.25rem 1.35rem; border-radius: 20px; }
  .ct-done-actions .btn { width: 100%; justify-content: center; }
  .ct-faq { padding: 60px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-page *, .ct-page *::before, .ct-page *::after { animation: none !important; transition: none !important; }
  .ct-done-circle, .ct-done-check { stroke-dashoffset: 0; }
}