/* =====================================================
   AIPR Facile — custom.css
   Variables, composants réutilisables, site public
   ===================================================== */

/* ── Variables ─────────────────────────────────────── */
:root {
    --aipr-blue:      #1d4ed8;
    --aipr-blue-dark: #1e3a8a;
    --aipr-yellow:    #f59e0b;
    --aipr-green:     #16a34a;
    --aipr-gradient:  linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
    --radius-card:    12px;
    --shadow-card:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover:   0 8px 24px rgba(0,0,0,0.14);
    --font-body:      'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Global ─────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

/* ── Gradient AIPR ──────────────────────────────────── */
.bg-gradient-aipr {
    background: var(--aipr-gradient);
}

/* ── Hero section ───────────────────────────────────── */
.hero-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-badge {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}
.stat-chip {
    font-size: 0.9rem;
}

/* ── Navbar ─────────────────────────────────────────── */
.site-header {
    z-index: 1030;
}
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.logo-icon {
    font-size: 1.1em;
}

/* ── Cards profils ──────────────────────────────────── */
.profile-card {
    border-radius: var(--radius-card) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover) !important;
}
.profile-icon {
    font-size: 2.5rem;
    line-height: 1;
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover) !important;
}

/* ── Steps "comment ça marche" ──────────────────────── */
.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--aipr-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.how-step {
    border-radius: var(--radius-card);
    transition: background 0.2s;
}
.how-step:hover {
    background: #f1f5f9;
}

/* ── Thème chips ────────────────────────────────────── */
.theme-chip {
    border-radius: 10px !important;
    transition: box-shadow 0.15s, transform 0.15s;
}
.theme-chip:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(2px);
}
.theme-ref {
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* ── Theme cards (categorie.php) ────────────────────── */
.theme-card {
    border-radius: var(--radius-card) !important;
    transition: box-shadow 0.2s;
}
.theme-card:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* ── Accordion FAQ ──────────────────────────────────── */
.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: var(--aipr-blue);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.2);
}
.accordion-item {
    border-radius: 10px !important;
}

/* ── Badges couleurs ────────────────────────────────── */
.bg-primary-subtle   { background-color: #dbeafe !important; }
.bg-success-subtle   { background-color: #dcfce7 !important; }
.bg-warning-subtle   { background-color: #fef9c3 !important; }
.bg-danger-subtle    { background-color: #fee2e2 !important; }
.text-primary        { color: #1d4ed8 !important; }
.text-success        { color: #16a34a !important; }
.text-warning        { color: #d97706 !important; }

/* ── Boutons ────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 8px;
}
.btn-primary {
    background-color: var(--aipr-blue);
    border-color: var(--aipr-blue);
}
.btn-primary:hover {
    background-color: var(--aipr-blue-dark);
    border-color: var(--aipr-blue-dark);
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    font-size: 0.9rem;
}
.footer-heading {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* ── Progress bar gradient ───────────────────────────── */
.progress-bar-gradient {
    background: linear-gradient(90deg, #2563eb, #16a34a);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 576px) {
    .hero-section { padding: 3rem 0; }
    .display-4   { font-size: 2rem; }
    .display-5   { font-size: 1.75rem; }
}
