/* ══════════════════════════════════════════════════════
   HOME.CSS — sections spécifiques page d'accueil
   Variables : --tt-text-color, --tt-bg-color,
               --tt-border-color, --tt-main-color
   ══════════════════════════════════════════════════════ */

/* ── Stats ──────────────────────────────────────────── */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--tt-border-color);
    border-bottom: 1px solid var(--tt-border-color);
}

.home-stat {
    padding: 64px 48px;
    border-right: 1px solid var(--tt-border-color);
    position: relative;
    overflow: hidden;
}

.home-stat:last-child { border-right: none; }

.home-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tt-text-color);
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 0;
}

.home-stat:hover::before { opacity: .03; }

.home-stat-number {
    display: block;
    font-family: 'Cascadia Mono', monospace;
    font-size: clamp(56px, 7vw, 108px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -4px;
    color: var(--tt-text-color);
    position: relative;
    z-index: 1;
}

.home-stat-accent { color: var(--tt-main-color); }

.home-stat-label {
    display: block;
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    opacity: .38;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

/* ── Portfolio carousel: active slide tech opacity ──── */
.swiper-slide-active .tt-pci-tech {
    opacity: .7;
}

/* ── Skills ─────────────────────────────────────────── */
.home-skills-wrap {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 48px 40px;
}

.home-skill-cat {
    border-top: 1px solid var(--tt-border-color);
    padding-top: 20px;
}

.home-skill-cat-label {
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .38;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.home-skill-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px 8px;
    border: 1px solid var(--tt-border-color);
    font-size: 12px;
    font-family: 'Cascadia Mono', monospace;
    letter-spacing: .3px;
    color: var(--tt-text-color);
    transition: border-color .2s ease, background .2s ease;
    overflow: hidden;
    cursor: default;
}

.home-skill-pill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: var(--lvl, 0%);
    background: var(--tt-main-color);
    opacity: .7;
    transition: width .6s ease;
}

.home-skill-pill:hover {
    border-color: var(--tt-text-color);
    background: var(--tt-text-color);
    color: var(--tt-bg-color);
}

.home-skill-pill:hover::after { opacity: 0; }

.home-skill-logo {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

/* ── Blog cards ─────────────────────────────────────── */
.home-blog-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--tt-border-color);
}

.home-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--tt-bg-color);
    border-right: 1px solid var(--tt-border-color);
    transition: background .25s ease;
}

.home-blog-card:last-child { border-right: none; }

.home-blog-card:hover { background: color-mix(in srgb, var(--tt-text-color) 3%, var(--tt-bg-color)); }

.home-blog-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--tt-border-color);
}

.home-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
    filter: grayscale(20%);
}

.home-blog-card:hover .home-blog-card-img img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.home-blog-card-body {
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-blog-card-cat {
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .38;
    display: block;
    margin-bottom: 12px;
}

.home-blog-card-title {
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.35;
    margin: 0 0 14px;
    flex: 1;
}

.home-blog-card-title a {
    color: var(--tt-text-color);
    text-decoration: none;
    transition: opacity .2s;
}

.home-blog-card-title a:hover { opacity: .55; }

.home-blog-card-excerpt {
    font-size: 13px;
    opacity: .5;
    line-height: 1.75;
    margin: 0 0 20px;
}

.home-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--tt-border-color);
    padding-top: 14px;
    margin-top: auto;
}

.home-blog-card-date {
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    opacity: .32;
    letter-spacing: .5px;
}

.home-blog-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--tt-border-color);
    transition: background .2s, border-color .2s;
}

.home-blog-card:hover .home-blog-card-arrow {
    background: var(--tt-text-color);
    border-color: var(--tt-text-color);
}

.home-blog-card-arrow svg {
    width: 10px;
    height: 10px;
    fill: var(--tt-text-color);
    transition: fill .2s;
}

.home-blog-card:hover .home-blog-card-arrow svg { fill: var(--tt-bg-color); }

.home-blog-cta {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

/* ── Section FULLSTACK ──────────────────────────────── */
.fs-word {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
}
.fs-word-letter {
    font-family: 'Cascadia Mono', monospace;
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -3px;
    color: var(--tt-text-color);
    display: inline-block;
}
.fs-word-letter.accent { color: var(--tt-main-color); }

.fs-acc-letter {
    font-family: 'Cascadia Mono', monospace;
    color: var(--tt-main-color);
    font-weight: 700;
    margin-right: 0px;
    font-size: 1.1em;
}
.fs-acc-sub {
    font-family: 'Cascadia Mono', monospace;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: .32;
    margin-left: 14px;
    font-weight: 400;
    vertical-align: middle;
}

.fs-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.fs-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 7px;
    border: 2px solid var(--tt-border-color);
    border-radius: 100px;
    font-family: 'Cascadia Mono', monospace;
    font-size: 11px;
    letter-spacing: .3px;
    color: var(--tt-text-color);
    background: var(--tt-accent-bg-color);
    transition: background .2s, border-color .2s, color .2s;
    cursor: default;
}
.fs-skill-tag:hover {
    background: var(--tt-main-color);
    border-color: var(--tt-main-color);
    color: #fff;
}
.fs-skill-tag img { width: 14px; height: 14px; object-fit: contain; }
.fs-no-skills { font-family: 'Cascadia Mono', monospace; font-size: 9px; opacity: .2; letter-spacing: 2px; text-transform: uppercase; }
.fs-soon { display: inline-flex; align-items: center; gap: 8px; font-family: 'Cascadia Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: .4; }
.fs-soon-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tt-main-color); opacity: .6; }

/* ── Badge disponibilité (hero) ──────────────────────── */
.home-availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Cascadia Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 1px solid var(--tt-border-color);
    border-radius: 100px;
    margin-bottom: 20px;
}
.home-availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    animation: availPulse 2s infinite;
}
@keyframes availPulse {
    0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ── Recruiter proof ─────────────────────────────────── */
.hire-proof {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 64px;
    align-items: start;
}
.hire-proof-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .42;
    margin-bottom: 24px;
}
.hire-proof-kicker::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tt-main-color);
}
.hire-proof-title {
    font-size: clamp(38px, 6vw, 92px);
    line-height: .95;
    letter-spacing: 0;
    margin: 0;
}
.hire-proof-copy {
    margin-top: 26px;
    max-width: 480px;
    opacity: .56;
    line-height: 1.85;
}
.hire-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--tt-border-color);
    background: var(--tt-border-color);
}
.hire-proof-card {
    min-height: 240px;
    padding: clamp(24px, 4vw, 38px);
    background: var(--tt-bg-color);
    transition: background .25s ease, transform .25s ease;
}
.hire-proof-card:hover {
    background: color-mix(in srgb, var(--tt-text-color) 4%, var(--tt-bg-color));
    transform: translateY(-4px);
}
.hire-proof-num {
    display: block;
    font-family: 'Cascadia Mono', monospace;
    font-size: 11px;
    letter-spacing: 2.5px;
    opacity: .32;
    margin-bottom: 28px;
}
.hire-proof-card h3 {
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.12;
    margin: 0 0 18px;
}
.hire-proof-card p {
    margin: 0;
    opacity: .58;
    line-height: 1.75;
}
@media (max-width: 991px) {
    .hire-proof { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
    .hire-proof-grid { grid-template-columns: 1fr; }
    .hire-proof-card { min-height: auto; }
}

/* ── Education / Formation ─────────────────────────── */
.home-edu-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-edu-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 30px;
    border: 1px solid var(--tt-border-color);
    transition: border-color .3s ease, transform .3s ease;
}

.home-edu-card:hover {
    border-color: var(--tt-text-color);
    transform: translateY(-3px);
}

.home-edu-card-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-edu-card-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.home-edu-card-logo i {
    font-size: 16px;
    color: #333;
}

.home-edu-card-body {
    flex: 1;
    min-width: 0;
}

.home-edu-card-period {
    display: block;
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .38;
    margin-bottom: 8px;
}

.home-edu-card-title {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--tt-text-color);
}

.home-edu-card-field {
    font-size: 13px;
    opacity: .55;
    margin: 0 0 8px;
    line-height: 1.4;
}

.home-edu-card-institution {
    font-family: 'Cascadia Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .45;
    margin: 0;
}

.home-edu-card-institution a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s, color .2s;
}

.home-edu-card-institution a:hover {
    opacity: 1;
    color: var(--tt-main-color);
}

/* ── Responsive global ─────────────────────────────── */
@media (max-width: 1024px) {
    .home-blog-grid { grid-template-columns: 1fr 1fr; }
    .home-blog-card:nth-child(2) { border-right: none; }
    .home-blog-card:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid var(--tt-border-color);
        flex-direction: row;
    }
    .home-blog-card:nth-child(3) .home-blog-card-img {
        aspect-ratio: auto;
        width: 40%;
        border-bottom: none;
        border-right: 1px solid var(--tt-border-color);
    }
}

/* ── Hero CV button (mobile only) ──────────────────── */
.home-hero-cv {
    display: none;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .home-hero-cv { display: block; }
}

@media (max-width: 768px) {
    .home-stats { grid-template-columns: 1fr; }
    .home-stat {
        border-right: none;
        border-bottom: 1px solid var(--tt-border-color);
        padding: 40px 28px;
    }
    .home-stat:last-child { border-bottom: none; }
    .home-skills-wrap { grid-template-columns: 1fr; gap: 32px; }
    .home-blog-grid { grid-template-columns: 1fr; }
    .home-blog-card { border-right: none; border-bottom: 1px solid var(--tt-border-color); }
    .home-blog-card:last-child { border-bottom: none; }
    .home-blog-card:nth-child(3) { flex-direction: column; }
    .home-blog-card:nth-child(3) .home-blog-card-img { width: 100%; border-right: none; border-bottom: 1px solid var(--tt-border-color); aspect-ratio: 16/10; }

    .home-edu-grid {
        grid-template-columns: 1fr;
    }
    .home-edu-card {
        padding: 22px 20px;
    }
}
