/* =============================================
   Frais-de-Notaire.fr — Custom styles
   Tailwind CDN gère les utilitaires.
   Ce fichier : fonts, animations, tables, FAQ.
   ============================================= */

/* ---- Base fonts ---- */
body    { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4, h5, .font-heading { font-family: 'Poppins', system-ui, sans-serif; }

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---- Counter animation ---- */
@keyframes counterIn {
    from { opacity: 0; transform: scale(0.82) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.counter-animate { animation: counterIn 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- FAQ smooth expand ---- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}
.faq-answer.active { max-height: 1200px; }
.faq-answer-inner  { padding: 1rem 1.25rem 1.25rem; }

/* ---- Data tables ---- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin: 1.25rem 0;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.875rem;
}
.data-table th {
    background: #2F80ED;
    color: white;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #4F5B67;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #F4F6F9; }
.data-table .row-hl td { background: #EFF6FF; font-weight: 600; color: #1C1F23; }

/* ---- Hero dot grid ---- */
.hero-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ---- Nav active ---- */
.nav-active { background-color: #2F80ED !important; color: white !important; }

/* ---- Progress steps ---- */
.progress-line   { transition: background-color 0.4s ease; }
.step-done       { background-color: #27AE60 !important; color: white !important; }
.step-done-line  { background-color: #27AE60 !important; }

/* ---- Result rows slide-in ---- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.result-row { animation: slideUp 0.3s ease both; }
.result-row:nth-child(1) { animation-delay: 0.05s; }
.result-row:nth-child(2) { animation-delay: 0.10s; }
.result-row:nth-child(3) { animation-delay: 0.15s; }
.result-row:nth-child(4) { animation-delay: 0.20s; }
.result-row:nth-child(5) { animation-delay: 0.25s; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .data-table th, .data-table td { padding: 8px 10px; font-size: 0.78rem; }
    .faq-answer-inner { padding: 0.75rem 1rem 1rem; }
}
