/* Formulaire de contact — front-office (classes .ct-*, surchargeables) */

.ct-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
/* display:flex écraserait l'attribut hidden — on le rétablit */
.ct-form[hidden], .ct-success[hidden] { display: none !important; }

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; } }

/* Libellés accessibles mais invisibles : le placeholder fait le travail */
.ct-field { display: flex; flex-direction: column; }
.ct-label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ct-field input, .ct-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e7e3de;
    border-radius: 12px;
    background: #faf8f5;
    font: inherit;
    color: #1b2340;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #a7a5b0; }
.ct-field input:focus, .ct-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #6d5bd0;
    box-shadow: 0 0 0 3px rgba(109, 91, 208, .15);
}
.ct-field textarea { resize: vertical; }

.ct-rgpd { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #555; }
.ct-rgpd input { margin-top: 2px; }

/* Honeypot : caché des humains, visible des bots */
.ct-hp {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ct-status { font-size: 14px; min-height: 1.2em; }
.ct-ok  { color: #1c7c3a; }
.ct-err { color: #c03434; }

.ct-submit {
    align-self: flex-start;
    padding: 13px 30px;
    border: 0;
    border-radius: 999px;
    background: #1b2340;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ct-submit:hover:not(:disabled) {
    background: #6d5bd0;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(109, 91, 208, .35);
}
.ct-submit:disabled { opacity: .6; cursor: default; }

/* ---------- Carte de confirmation ---------- */
.ct-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 26px 10px;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    transition: opacity .45s ease, transform .45s ease;
}
.ct-success.ct-show { opacity: 1; transform: none; }

.ct-check {
    width: 68px; height: 68px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #6d5bd0;
    box-shadow: 0 10px 26px rgba(109, 91, 208, .4);
}
.ct-check svg {
    width: 32px; height: 32px;
    stroke: #fff; fill: none;
    stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.ct-show .ct-check svg path {
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: ct-draw .5s .15s ease forwards;
}
@keyframes ct-draw { to { stroke-dashoffset: 0; } }

.ct-success-title { font-size: 21px; color: #1b2340; }
.ct-success-text  { margin: 0; font-size: 14.5px; color: #6a6f85; max-width: 380px; }
.grecaptcha-badge { display: none !important; }