/* ============================================================
   IZIMAC — styles-additions.css
   À coller à la fin de styles.css, OU inclure séparément
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   Feedback formulaires (succès / erreur)
   ────────────────────────────────────────────────────────── */
.form-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    animation: feedbackIn 0.3s ease;
}

.form-feedback svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-feedback--success {
    background: #edfaf1;
    color: #1a7f3c;
    border: 1px solid #a8e6bc;
}

.form-feedback--error {
    background: #fff1f0;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

@keyframes feedbackIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────
   Champs en erreur
   ────────────────────────────────────────────────────────── */
.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

/* ──────────────────────────────────────────────────────────
   Spinner bouton (pendant l'envoi)
   ────────────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

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

/* ──────────────────────────────────────────────────────────
   Reveal au scroll (IntersectionObserver)
   ────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délai en cascade pour les grilles */
.services-grid .reveal:nth-child(1),
.testimonials-grid .reveal:nth-child(1),
.pricing-grid .reveal:nth-child(1) { transition-delay: 0s; }

.services-grid .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.services-grid .reveal:nth-child(3),
.testimonials-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ──────────────────────────────────────────────────────────
   Bouton désactivé pendant l'envoi
   ────────────────────────────────────────────────────────── */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}
