/* ═══════════════════════════════════════════════════════════
   LA CITÉ — ACCOMPAGNEMENT SPIRITUEL
   Esthétique relevée sur egliselacite.ca : fond #010307,
   surfaces #151515/#1F1F1F, texte blanc, gris-bleu #92A7AA,
   accent #00ACFF, coins 3 px, bordures translucides.
   La police est héritée du thème (niveau-grotesk).
   ═══════════════════════════════════════════════════════════ */

.lacite-as {
    --as-bg: #010307;
    --as-surface: #151515;
    --as-surface-2: #1f1f1f;
    --as-text: #ffffff;
    --as-muted: #92a7aa;
    --as-soft: #dcdcde;
    --as-accent: #00acff;
    --as-accent-2: #61ccff;
    --as-border: rgba(255, 255, 255, 0.17);
    --as-radius: 3px;
    --as-error: #ff5c6c;

    max-width: 680px;
    margin: 0 auto;
    color: var(--as-text);
    font-family: inherit;
    line-height: 1.6;
}

.lacite-as__form {
    background: linear-gradient(180deg, var(--as-surface) 0%, var(--as-bg) 100%);
    border: 1px solid var(--as-border);
    border-radius: calc(var(--as-radius) + 4px);
    padding: clamp(1.6rem, 4vw, 3rem);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Liseré lumineux en tête de carte */
.lacite-as__form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--as-accent), transparent);
}

/* ── En-tête ── */
.lacite-as__head { margin-bottom: 2.2rem; text-align: center; }
.lacite-as__eyebrow {
    display: inline-block;
    color: var(--as-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.lacite-as__title {
    margin: 0 0 0.8rem;
    color: var(--as-text);
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
}
.lacite-as__sub {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--as-muted);
    font-size: 0.95rem;
}

/* ── Groupes ── */
.lacite-as__group {
    border: none;
    margin: 0 0 1.8rem;
    padding: 0;
}
.lacite-as__legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--as-text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--as-border);
    width: 100%;
}
.lacite-as__legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: rgba(0, 172, 255, 0.14);
    border: 1px solid rgba(0, 172, 255, 0.4);
    color: var(--as-accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.lacite-as__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.lacite-as__field--full { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .lacite-as__grid { grid-template-columns: 1fr; }
}

/* ── Champs ── */
.lacite-as__field { margin-bottom: 1.1rem; }
.lacite-as__grid .lacite-as__field { margin-bottom: 0; }
.lacite-as__field label {
    display: block;
    color: var(--as-soft);
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.lacite-as__field label em {
    color: var(--as-accent);
    font-style: normal;
}

.lacite-as input[type="text"],
.lacite-as input[type="email"],
.lacite-as input[type="tel"],
.lacite-as select,
.lacite-as textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    color: var(--as-text);
    font: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.lacite-as textarea { resize: vertical; min-height: 120px; }
.lacite-as ::placeholder { color: rgba(146, 167, 170, 0.65); }

.lacite-as input:focus,
.lacite-as select:focus,
.lacite-as textarea:focus {
    outline: none;
    border-color: var(--as-accent);
    background: rgba(0, 172, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 172, 255, 0.18);
}
.lacite-as .lacite-as--invalid {
    border-color: var(--as-error) !important;
    box-shadow: 0 0 0 3px rgba(255, 92, 108, 0.15);
}

/* Select : flèche personnalisée */
.lacite-as__select-wrap { position: relative; }
.lacite-as__select-wrap::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--as-muted);
    border-bottom: 2px solid var(--as-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.lacite-as select { padding-right: 2.6rem; cursor: pointer; }
.lacite-as select option { background: var(--as-surface-2); color: var(--as-text); }

/* ── Pastilles Oui / Non ── */
.lacite-as__pills { display: flex; gap: 0.6rem; }
.lacite-as__pill { position: relative; cursor: pointer; }
.lacite-as__pill input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: inherit;
}
.lacite-as__pill span {
    display: inline-block;
    padding: 0.55rem 1.6rem;
    border-radius: var(--as-radius);
    border: 1px solid var(--as-border);
    color: var(--as-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.lacite-as__pill input:checked + span {
    background: var(--as-accent);
    border-color: var(--as-accent);
    color: #010307;
}
.lacite-as__pill input:focus-visible + span {
    outline: 2px solid var(--as-accent);
    outline-offset: 2px;
}

/* ── Consentement ── */
.lacite-as__consent {
    background: rgba(0, 172, 255, 0.06);
    border: 1px solid rgba(0, 172, 255, 0.25);
    border-radius: var(--as-radius);
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}
.lacite-as__check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    color: var(--as-soft);
    font-size: 0.86rem;
}
.lacite-as__check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.lacite-as__checkbox {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: var(--as-radius);
    border: 1px solid var(--as-border);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.2s ease;
}
.lacite-as__checkbox::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #010307;
    border-bottom: 2px solid #010307;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}
.lacite-as__check input:checked + .lacite-as__checkbox {
    background: var(--as-accent);
    border-color: var(--as-accent);
}
.lacite-as__check input:checked + .lacite-as__checkbox::after { transform: rotate(45deg) scale(1); }
.lacite-as__check input:focus-visible + .lacite-as__checkbox {
    outline: 2px solid var(--as-accent);
    outline-offset: 2px;
}

/* ── Piège à robots ── */
.lacite-as__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ── Erreur ── */
.lacite-as__error {
    background: rgba(255, 92, 108, 0.1);
    border: 1px solid rgba(255, 92, 108, 0.4);
    border-radius: var(--as-radius);
    color: #ffb3ba;
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
}

/* ── Soumission ── */
.lacite-as__actions { text-align: center; }
.lacite-as__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 240px;
    background: var(--as-accent);
    color: #010307;
    border: none;
    border-radius: var(--as-radius);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.95rem 2.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 172, 255, 0.25);
}
.lacite-as__submit:hover:not(:disabled) {
    background: var(--as-accent-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0, 172, 255, 0.35);
}
.lacite-as__submit:disabled { opacity: 0.7; cursor: wait; }
.lacite-as__privacy {
    margin: 0.9rem 0 0;
    color: var(--as-muted);
    font-size: 0.78rem;
}

.lacite-as__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(1, 3, 7, 0.3);
    border-top-color: #010307;
    border-radius: 50%;
    animation: lacite-as-spin 0.7s linear infinite;
}
@keyframes lacite-as-spin { to { transform: rotate(360deg); } }

/* ── Succès ── */
.lacite-as__success {
    background: linear-gradient(180deg, var(--as-surface) 0%, var(--as-bg) 100%);
    border: 1px solid var(--as-border);
    border-radius: calc(var(--as-radius) + 4px);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    animation: lacite-as-fade 0.4s ease;
}
@keyframes lacite-as-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.lacite-as__success h3 {
    margin: 1.2rem 0 0.6rem;
    color: var(--as-text);
    font-size: 1.4rem;
}
.lacite-as__success p {
    margin: 0 auto;
    max-width: 30rem;
    color: var(--as-muted);
    font-size: 0.95rem;
}
.lacite-as__success-icon svg {
    width: 72px;
    height: 72px;
    stroke: var(--as-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lacite-as__success-icon circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: lacite-as-draw 0.7s ease forwards;
}
.lacite-as__success-icon path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: lacite-as-draw 0.5s ease 0.5s forwards;
}
@keyframes lacite-as-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .lacite-as * { animation: none !important; transition: none !important; }
}
