/* =====================================================
   Horus Contact — CSS Front-end
   Palette HORUS : #1a1a1a (noir), #EF9000 (jaune), #fff (blanc)
   ===================================================== */

:root {
    --hc-black:      #1a1a1a;
    --hc-yellow:     #EF9000;
    --hc-yellow-dk:  #d9a800;
    --hc-grey-bg:    #f7f7f7;
    --hc-grey-bd:    #e0e0e0;
    --hc-grey-text:  #777;
    --hc-error:      #e03e3e;
    --hc-success:    #2e9e5a;
    --hc-radius:     4px;
    --hc-font:       'Helvetica Neue', Arial, sans-serif;
}

/* ── Wrapper ── */
.hc-wrapper {
    font-family: var(--hc-font);
    color: var(--hc-black);
    max-width: 680px;
    width: 100%;
}

/* ── Alerte erreur ── */
.hc-alert {
    padding: 14px 18px;
    border-radius: var(--hc-radius);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}
.hc-alert--error {
    background: #fdecea;
    border-left: 4px solid var(--hc-error);
    color: #9c1a1a;
}

/* ── Form ── */
.hc-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Rows ── */
.hc-row {
    display: flex;
    gap: 14px;
}
.hc-row--2col {
    flex-direction: row;
}
.hc-row--rgpd {
    align-items: flex-start;
}
.hc-row--submit {
    margin-top: 6px;
}

/* ── Fields ── */
.hc-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hc-field--full {
    flex: 1 1 100%;
}

.hc-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hc-black);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hc-req {
    color: var(--hc-yellow-dk);
}

/* ── Inputs & Textarea ── */
.hc-form input[type="text"],
.hc-form input[type="email"],
.hc-form input[type="tel"],
.hc-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--hc-grey-bd);
    border-radius: var(--hc-radius);
    background: #fff;
    font-size: 14px;
    color: var(--hc-black);
    font-family: var(--hc-font);
    transition: border-color 0.2s;
    box-sizing: border-box;
    outline: none;
    
    border-radius: 10px;
    background: #E9EBF8;
    
}
.hc-form input:focus,
.hc-form textarea:focus,
.hc-form select:focus {
    border-color: var(--hc-black);
}
.hc-form input.hc-error,
.hc-form textarea.hc-error,
.hc-form select.hc-error {
    border-color: var(--hc-error);
}
.hc-form input::placeholder,
.hc-form textarea::placeholder {
    color: #b0b0b0;
}
.hc-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* ── Selects ── */
.hc-select-wrap {
    position: relative;
}
.hc-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--hc-black);
    pointer-events: none;
}
.hc-form select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 1px solid var(--hc-grey-bd);
    border-radius: var(--hc-radius);
    background: #fff;
    font-size: 14px;
    color: var(--hc-black);
    font-family: var(--hc-font);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
    
    border-radius: 10px;
     background: #E9EBF8;
}
.hc-form select option[value=""][disabled] {
    color: #b0b0b0;
}

/* ── Autocomplete adresse ── */
.hc-ac-wrap {
    position: relative;
}
#hc-addr-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--hc-grey-bd);
    border-radius: var(--hc-radius);
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
}
.hc-ac-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--hc-black);
    cursor: pointer;
    transition: background 0.12s;
}
.hc-ac-item:hover,
.hc-ac-item.hc-ac-active {
    background: #f5f5f5;
}
.hc-ac-item.hc-ac-active {
    background: #fff8e0;
}
.hc-ac-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: .6;
}
.hc-ac-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Checkbox RGPD ── */
.hc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.hc-checkbox-label input[type="checkbox"] {
    display: none;
}
.hc-checkmark {
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--hc-grey-bd);
    border-radius: 3px;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}
.hc-checkbox-label input[type="checkbox"]:checked + .hc-checkmark {
    background: var(--hc-black);
    border-color: var(--hc-black);
}
.hc-checkbox-label input[type="checkbox"]:checked + .hc-checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.hc-checkbox-text a {
    color: var(--hc-black);
    text-decoration: underline;
}

/* ── Bouton submit ── */
.hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hc-yellow);
    color: var(--hc-black);
    border: none;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--hc-radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--hc-font);
}
.hc-btn:hover  { background: var(--hc-yellow-dk); }
.hc-btn:active { transform: scale(0.98); }
.hc-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Loader spinner */
.hc-btn-loader svg {
    animation: hc-spin 0.8s linear infinite;
}
@keyframes hc-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   MODAL DE CONFIRMATION
═══════════════════════════════════════════════════ */
body.hc-modal-open {
    overflow: hidden;
}

#hc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    /* on utilise display:flex via jQuery .fadeIn mais on préserve le layout */
}
#hc-modal.shown,
#hc-modal[style*="display: block"],
#hc-modal[style*="display:block"] {
    display: flex !important;
}

.hc-modal-box {
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: calc(100% - 40px);
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    position: relative;
    animation: hc-modal-in 0.28s cubic-bezier(.34,1.3,.64,1) both;
}
@keyframes hc-modal-in {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hc-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}
.hc-modal-close:hover { color: var(--hc-black); }

.hc-modal-icon {
    width: 64px;
    height: 64px;
    background: #f0faf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.hc-modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--hc-success);
    stroke-width: 2.5;
    fill: none;
}

.hc-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--hc-black);
    margin: 0 0 12px;
    line-height: 1.3;
}

.hc-modal-msg {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
    margin: 0 0 32px;
}

.hc-modal-cta {
    display: inline-block;
    background: var(--hc-yellow);
    color: var(--hc-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 13px 34px;
    border-radius: var(--hc-radius);
    transition: background 0.2s;
}
.hc-modal-cta:hover { background: var(--hc-yellow-dk); color: var(--hc-black); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .hc-row--2col { flex-direction: column; }
    .hc-modal-box { padding: 36px 24px 30px; }
    .hc-modal-title { font-size: 19px; }
}
