/* Page /contact.php (s'appuie sur articles-page.css et home.css) */
.ct-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.ct-hero h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin: 6px 0 0; }
.ct-hero h1 em { font-style: italic; font-weight: 400; color: var(--orange); }
.ct-hero .ap-lede { max-width: 620px; }

.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; margin-top: 44px; align-items: start; }

/* Colonne d'informations */
.ct-side { position: sticky; top: 24px; padding: 32px; background: var(--dark); color: #d9dce6; border-radius: 22px; }
.ct-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ct-points li { display: flex; gap: 14px; align-items: flex-start; }
.ct-points i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: #ffa94d; background: rgba(255, 255, 255, .08); border-radius: 10px; }
.ct-points strong { display: block; color: #fff; font-weight: 600; }
.ct-points span { font-size: 14px; line-height: 1.5; }
.ct-links { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; }
.ct-links p { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ffa94d; }
.ct .ct-links a { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: transform .15s; }
.ct .ct-links a:hover { transform: translateX(4px); }
.ct-links a i { width: 16px; text-align: center; color: #c3fae8; }

/* Formulaire */
.ct-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 40px -28px rgba(29, 34, 48, .35); scroll-margin-top: 20px; }
.ct-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 22px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.ct-field label, .ct-field legend { display: block; width: auto; margin: 0 0 7px; padding: 0; border: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.ct-opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.ct-field input[type=text], .ct-field input[type=email], .ct-field textarea {
  display: block; width: 100%; margin: 0; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.ct-field textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(80, 89, 156, .15); }
.ct-field [aria-invalid=true] { border-color: #e03131; background: #fff5f5; }
.ct-err { margin: 6px 0 0; font-size: 13px; color: #c92a2a; }
.ct-under { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ct-under .ct-err { margin: 6px 0 0; }
.ct-count { margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct .ct-chip { margin: 0; font-weight: 500; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span { display: inline-block; padding: 8px 14px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; transition: all .15s; }
.ct-chip:hover span { border-color: var(--accent); }
.ct-chip input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); }
.ct-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.ct-send { margin-top: 4px; padding: 13px 24px; font-size: 16px; }
.ct-alert { display: flex; gap: 10px; align-items: baseline; margin-bottom: 20px; padding: 12px 16px; color: #c92a2a; background: #fff5f5; border: 1px solid #ffc9c9; border-radius: 10px; }

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

/* Confirmation */
.ct-done { text-align: center; padding: 24px 0 8px; }
.ct-done-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; font-size: 28px; color: #fff; background: #2f9e44; border-radius: 50%; animation: ct-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.ct-done h2 { margin: 18px 0 8px; }
.ct-done p { color: var(--muted); font-size: 16px; }
.ct-done .home-actions { justify-content: center; }
@keyframes ct-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .ct-side { position: static; order: 2; }
}
@media (max-width: 560px) {
  .ct-hero { padding: 40px 0 28px; }
  .ct-card, .ct-side { padding: 22px; border-radius: 16px; }
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-send { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ct-done-icon { animation: none; } }
