/* Formulaire de contact (fenêtre) — s'appuie sur les jetons de site.css */
html.ct-ouvert{ overflow:hidden; }
.ct{
  width:min(620px, calc(100vw - 24px)); max-height:calc(100dvh - 24px);
  padding:0; border:1px solid var(--line-strong); border-radius:var(--radius);
  background:var(--ground-2); color:var(--ink); box-shadow:var(--shadow);
  overflow:auto;
}
.ct::backdrop{ background:rgba(3,8,22,.62); backdrop-filter:blur(4px); }
:root[data-theme="light"] .ct::backdrop{ background:rgba(10,26,63,.35); }
.ct[open]{ animation:ctIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes ctIn{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .ct[open]{ animation:none; } }

.ct-form{ padding:clamp(20px,4vw,32px); display:flex; flex-direction:column; gap:20px; }
.ct-tete{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.ct-tete h2{ font-size:clamp(1.5rem,4vw,2rem); margin:.4em 0 0; }
.ct-x{ flex:none; }
.ct-corps{ display:flex; flex-direction:column; gap:14px; }
.ct-corps[hidden], .ct-merci[hidden]{ display:none; }
.ct-ligne{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:520px){ .ct-ligne{ grid-template-columns:1fr; } }
.ct-champ{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.ct-champ > span{ font-size:.85rem; font-weight:600; color:var(--muted); }
.ct-champ i{ font-style:normal; color:var(--cyan); }
.ct-champ input, .ct-champ textarea{
  font:inherit; font-size:1rem; color:var(--ink); background:var(--card);
  border:1px solid var(--line-strong); border-radius:12px; padding:11px 14px; width:100%;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.ct-champ textarea{ resize:vertical; min-height:130px; line-height:1.55; }
.ct-champ input:focus, .ct-champ textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.ct-champ.ko input, .ct-champ.ko textarea{ border-color:#FF6B6B; }
.ct-accord.ko span{ color:#FF8A8A; }
:root[data-theme="light"] .ct-champ.ko input, :root[data-theme="light"] .ct-champ.ko textarea{ border-color:#C73636; }
:root[data-theme="light"] .ct-accord.ko span{ color:#C73636; }
.ct-piege{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.ct-accord{ display:flex; gap:10px; align-items:flex-start; font-size:.88rem; color:var(--muted); line-height:1.5; cursor:pointer; }
.ct-accord input{ margin-top:3px; width:17px; height:17px; flex:none; accent-color:var(--accent); }
.ct-accord a{ color:var(--accent); }
.ct-erreur{ margin:0; min-height:1.2em; color:#FF8A8A; font-weight:600; font-size:.92rem; }
:root[data-theme="light"] .ct-erreur{ color:#C73636; }
.ct-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ct-actions .btn{ cursor:pointer; }
.ct-actions .btn.envoi{ opacity:.7; pointer-events:none; }
.ct-alt{ font-size:.85rem; color:var(--faint); }
.ct-alt a{ color:var(--muted); }
.ct-merci{ text-align:center; padding:10px 0 6px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.ct-merci h3{ font-size:1.6rem; margin:.4em 0 0; }
.ct-merci p{ color:var(--muted); margin:0 0 1em; }
.ct-ok{ width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:var(--btn); box-shadow:0 12px 30px -10px var(--glow); }
.ct-ok svg{ width:30px; height:30px; fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.ct .icon-btn svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
