/* =========================================
   WOO CONTACT — v1.0.0
========================================= */
:root {
    --wct-primary:   #C0151A;
    --wct-white:     #ffffff;
    --wct-border:    #e2e8f0;
    --wct-text:      #000000;
    --wct-muted:     #718096;
    --wct-danger:    #C0151A;
    --wct-radius:    10px;
    --wct-shadow:    0 4px 24px rgba(0,0,0,0.07);
}

/* =========================================
   CONTENEUR
========================================= */
.wct-container {
    max-width: 90%;
    margin: 0 auto;
    font-family: inherit;
    color: var(--wct-text);
}

/* =========================================
   SECTION
========================================= */
.wct-section {
    background: var(--wct-white);
    border: 1px solid var(--wct-border);
    border-radius: var(--wct-radius);
    box-shadow: var(--wct-shadow);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.wct-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wct-border);
}

.wct-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wct-text);
}

/* =========================================
   GRILLE FORMULAIRE
========================================= */
.wct-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.wct-full-width { grid-column: 1 / -1; }

.wct-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wct-form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wct-text);
}

.wct-form-group label svg {
    width: 15px;
    height: 15px;
    color: black;
    flex-shrink: 0;
}

.wct-form-group input,
.wct-form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--wct-border);
    border-radius: 7px;
    font-size: 0.93rem;
    color: var(--wct-text);
    background: var(--wct-white);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.wct-form-group input::placeholder,
.wct-form-group textarea::placeholder { color: #b0bec5; }

.wct-form-group input:focus,
.wct-form-group textarea:focus {
    border-color: var(--wct-primary);
    box-shadow: 0 0 0 3px rgba(192,21,26,.10);
    outline: none;
}

.wct-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.wct-required { color: var(--wct-danger); font-weight: 700; }

/* =========================================
   FOOTER FORMULAIRE
========================================= */
.wct-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--wct-border);
    flex-wrap: wrap;
    gap: 12px;
}

.wct-required-note {
    font-size: 0.82rem;
    color: var(--wct-muted);
    margin: 0;
}

/* =========================================
   BOUTON ENVOYER
========================================= */
.wct-submit-btn {
    display: inline-flex     !important;
    align-items: center      !important;
    gap: 10px                !important;
    background: var(--wct-primary) !important;
    color: #fff              !important;
    border: none             !important;
    border-radius: 8px       !important;
    padding: 13px 30px       !important;
    font-size: 1rem          !important;
    font-weight: 700         !important;
    cursor: pointer;
    transition: background .2s, transform .1s;
    box-shadow: 0 4px 14px rgba(192,21,26,.25) !important;
}

.wct-submit-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wct-submit-btn:hover:not(:disabled) {
    background: #111111 !important;
    transform: translateY(-1px);
}

.wct-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   SPINNER
========================================= */
.wct-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wct-spin .6s linear infinite;
    vertical-align: middle;
}

@keyframes wct-spin { to { transform: rotate(360deg); } }

/* =========================================
   BANDEAU SUCCÈS
========================================= */
.wct-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-left: 5px solid #48bb78;
    border-radius: 10px;
    padding: 24px 28px;
    font-size: 0.97rem;
    color: #276749;
    box-shadow: 0 4px 18px rgba(72,187,120,.12);
}

.wct-success-icon {
    font-size: 1.8rem;
    line-height: 1;
    color: #48bb78;
    flex-shrink: 0;
    margin-top: 2px;
}

.wct-success-banner strong {
    font-size: 1.05rem;
    display: block;
    margin-bottom: 6px;
}

/* =========================================
   TOAST — notifications flottantes
========================================= */
#wct-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}

.wct-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    font-size: 0.9rem;
    line-height: 1.4;
    pointer-events: all;
    min-width: 240px;
}

.wct-toast-success {
    background: #1a202c;
    color: #fff;
    border-left: 4px solid #48bb78;
}

.wct-toast-error {
    background: #1a202c;
    color: #fff;
    border-left: 4px solid var(--wct-danger);
}

.wct-toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.wct-toast-success .wct-toast-icon { color: #48bb78; }
.wct-toast-error   .wct-toast-icon { color: #fc8181; }

.wct-toast-msg { flex: 1; }

.wct-toast-close {
    background: none    !important;
    border: none        !important;
    color: rgba(255,255,255,.55) !important;
    font-size: 1.1rem   !important;
    cursor: pointer     !important;
    padding: 0 0 0 4px  !important;
    line-height: 1      !important;
    flex-shrink: 0      !important;
    box-shadow: none    !important;
    transition: color .15s;
}

.wct-toast-close:hover { color: #fff !important; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 640px) {
    .wct-container { max-width: 100%; padding: 0 4px; }
    .wct-section   { padding: 16px 14px; }

    .wct-form-grid  { grid-template-columns: 1fr; }
    .wct-full-width { grid-column: 1; }

    .wct-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .wct-submit-btn {
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #wct-toast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: unset;
    }
}
