/**
 * About Page — d314.io v5
 * Préfixe ab- → isolation totale WP/Elementor
 */

/* ── IMPORT FONTS ── */

/* ── RESET ELEMENTOR / WP ── */
body.page-template-template-about,
body.page-template-template-about .elementor,
body.page-template-template-about .elementor-section,
body.page-template-template-about main,
body.page-template-template-about #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ── PAGE WRAPPER ── */
.ab-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-md);
    line-height: var(--lh-loose);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* grain global */
.ab-page::before {
    display: none
}

/* ── LAYOUT ── */
.ab-wrap {
    max-width: 1160px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ab-section { padding: 120px 0; position: relative; z-index: 2; }
.ab-alt { background: var(--bg-secondary); }

/* ── TYPOGRAPHY TOKENS ── */
.ab-h2 {
    margin-bottom: 14px;
}

.ab-body {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.ab-gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-phys) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ab-section-label {
    font-family: var(--font-family-mono);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ab-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 72px;
}

.ab-section-sub {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--lh-loose);
    margin-top: 8px;
}

/* ── BADGES ── */
.ab-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: var(--font-family-mono);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
}
.ab-badge-amber {
    color: var(--warning-color);
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.25);
}

/* ── ICON BOXES ── */
.ab-ico-indigo  { color: var(--primary-color); background: rgba(99,102,241,.13); border-color: rgba(99,102,241,.2); }
.ab-ico-cyan    { color: var(--accent-phys); background: rgba(34,211,238,.13); border-color: rgba(34,211,238,.2); }
.ab-ico-emerald { color: var(--success-color); background: rgba(16,185,129,.13); border-color: rgba(16,185,129,.2); }
.ab-ico-amber   { color: var(--warning-color); background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.2); }

/* ── FADE-UP ANIMATION ── */
.ab-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.ab-fade-up.ab-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── HERO ── */
.ab-hero {
    position: relative;
    padding: 160px 0 110px;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.ab-hero-glow {
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(99,102,241,.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.ab-hero-wrap { position: relative; z-index: 2; }

.ab-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 10px;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 20px;
    font-family: var(--font-family-mono);
    font-size: 10.5px;
    font-weight: var(--font-weight-semibold);
    color: #a5b4fc;
    margin-bottom: 28px;
}
.ab-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    animation: ab-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes ab-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 8px var(--primary-color); }
    50%      { opacity: .5; box-shadow: 0 0 14px var(--primary-color); }
}

.ab-hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -.04em;
    line-height: var(--lh-tight);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.ab-hero-sub {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 18px;
}

.ab-hero-desc {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── PROBLEM / SOLUTION ── */
.ab-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ab-stats-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.055);
}

.ab-stat-val {
    font-family: var(--font-family-mono);
    font-size: 28px;
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -1px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.ab-stat-lbl {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text-muted);
    font-weight: var(--font-weight-semibold);
}

/* solution card */
.ab-solution-card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 40px;
}

.ab-sol-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.ab-sol-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.ab-sol-header h3 {
    font-size: var(--text-medium);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    letter-spacing: -.02em;
}

.ab-sol-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ab-sol-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ab-sol-list li:last-child { border-bottom: none; }
.ab-sol-list li svg { flex-shrink: 0; }

/* ── PILLARS ── */
.ab-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.ab-pillar {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color .15s;
}
.ab-pillar:hover { border-color: rgba(255,255,255,.12); }

.ab-pillar-num {
    position: absolute;
    top: 18px; right: 20px;
    font-family: var(--font-family-mono);
    font-size: 36px;
    font-weight: var(--font-weight-extrabold);
    color: rgba(99,102,241,.08);
    line-height: 1;
    pointer-events: none;
}

.ab-pillar-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1px solid;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: transform .15s;
}
.ab-pillar:hover .ab-pillar-icon { transform: scale(1.08); }

.ab-pillar h3 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.ab-pillar p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── TIMELINE ── */
.ab-timeline {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}
.ab-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 38px;
    bottom: 60px;    /* remonte plus haut — augmentez si besoin */
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(99,102,241,.1));
}

.ab-tl-item {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
    position: relative;
}
.ab-tl-item:last-child { margin-bottom: 0; }

.ab-tl-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-card);
    border: 2px solid rgba(99,102,241,.35);
    flex-shrink: 0;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    transition: border-color .15s;
}
.ab-tl-dot--active {
    border-color: var(--primary-color);
    background: rgba(99,102,241,.15);
    box-shadow: 0 0 12px rgba(99,102,241,.3);
}

.ab-tl-card {
    flex: 1;
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,.06);
    border-left: 3px solid rgba(99,102,241,.3);
    border-radius: 12px;
    padding: 22px 26px;
    transition: border-color .15s;
}
.ab-tl-card:hover { border-color: rgba(99,102,241,.5); }
.ab-tl-card--active {
    border-left-color: var(--primary-color);
    background: rgba(99,102,241,.04);
}

.ab-tl-date {
    font-family: var(--font-family-mono);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.ab-tl-date--active { color: var(--primary-color); }

.ab-tl-card h3 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -.02em;
}
.ab-tl-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── FONDATEUR ── */
.ab-founder-card {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 56px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

.ab-founder-left { text-align: center; }

.ab-founder-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-phys));
    margin: 0 auto 28px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-family-mono);
    font-size: 32px;
    font-weight: var(--font-weight-extrabold);
    color: #fff;
    transition: transform .2s;
}
.ab-founder-card:hover .ab-founder-avatar { transform: scale(1.04); }

.ab-founder-creds {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.ab-cred {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--text-secondary);
}
.ab-cred svg { flex-shrink: 0; }

/* ── EARLY ADOPTERS ── */
.ab-early-wrap .ab-section-header { max-width: 720px; }

.ab-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.ab-benefit {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: border-color .15s, transform .15s;
}
.ab-benefit:hover { border-color: rgba(255,255,255,.12); transform: translateY(-3px); }

.ab-benefit-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    border: 1px solid;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    transition: transform .15s;
}
.ab-benefit:hover .ab-benefit-icon { transform: scale(1.1); }

.ab-benefit h4 {
    font-size: 13.5px;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -.015em;
}
.ab-benefit p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: var(--lh-loose);
}

/* ── VALEURS ── */
.ab-values-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.ab-value {
    background: var(--surface-card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 32px;
    transition: border-color .15s;
}
.ab-value:hover { border-color: rgba(255,255,255,.12); }

.ab-value-ico {
    width: 40px; height: 40px;
    border-radius: 9px;
    border: 1px solid;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: transform .15s;
}
.ab-value:hover .ab-value-ico { transform: scale(1.08); }

.ab-value h3 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.ab-value p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── CTA ── */
.ab-cta-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,.055);
    overflow: hidden;
    z-index: 2;
}
.ab-cta-glow {
    position: absolute;
    bottom: -100px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(99,102,241,.12) 0%, transparent 70%);
    pointer-events: none;
}
.ab-cta-wrap {
    max-width: 720px;
    position: relative;
    z-index: 2;
}
.ab-cta-title {
    margin-bottom: 16px;
}
.ab-cta-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 36px;
}
.ab-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BOUTONS ── */
.ab-btn-primary {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-mono);
    font-size: 12.5px;
    font-weight: var(--font-weight-bold);
    color: #fff;
    background: var(--primary-color);
    border: 1px solid rgba(99,102,241,.5);
    padding: 12px 22px;
    border-radius: 9px;
    text-decoration: none;
    transition: background .13s, transform .1s;
}
.ab-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.ab-btn-ghost {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-mono);
    font-size: 12.5px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(255,255,255,.07);
    padding: 12px 22px;
    border-radius: 9px;
    text-decoration: none;
    transition: color .13s, border-color .13s, background .13s;
}
.ab-btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .ab-section { padding: 90px 0; }
    .ab-hero { padding: 130px 0 90px; }
    .ab-benefits-grid { grid-template-columns: repeat(2,1fr); }
    .ab-founder-card { grid-template-columns: 1fr; gap: 40px; }
    .ab-founder-left { display: flex; align-items: center; gap: 28px; text-align: left; }
    .ab-founder-avatar { width: 90px; height: 90px; font-size: var(--text-large); margin: 0; }
}

@media (max-width: 768px) {
    .ab-section { padding: 70px 0; }
    .ab-hero { padding: 100px 0 70px; }
    .ab-section-header { margin-bottom: 48px; }
    .ab-grid-2 { grid-template-columns: 1fr; gap: 44px; }
    .ab-stats-row { grid-template-columns: repeat(3,1fr); }
    .ab-pillars-grid,
    .ab-values-grid { grid-template-columns: 1fr; }
    .ab-benefits-grid { grid-template-columns: 1fr 1fr; }
    .ab-founder-card { padding: 32px 24px; }
    .ab-founder-left { flex-direction: column; text-align: center; }
    .ab-timeline::before { left: 13px; }
}

@media (max-width: 480px) {
    .ab-section { padding: 56px 0; }
    .ab-hero { padding: 80px 0 56px; }
    .ab-wrap { width: 92%; }
    .ab-stats-row { grid-template-columns: 1fr; gap: 14px; }
    .ab-benefits-grid { grid-template-columns: 1fr; }
    .ab-cta-btns { flex-direction: column; align-items: center; }
    .ab-btn-primary,
    .ab-btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
    .ab-pillar, .ab-value { padding: 24px; }
    .ab-tl-card { padding: 18px 20px; }
}