/* Section Humain — styles (origine berioxca/Beriox) */
.humain-section {
    padding: 3rem 1rem;
    background: #0E1020;
}
@media (min-width: 768px) { .humain-section { padding: 4rem 2rem; } }
@media (min-width: 1024px) { .humain-section { padding: 5rem 2rem; } }
.humain-section.animate-on-scroll { opacity: 1; transform: none; }
.humain-inner {
    max-width: none;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .humain-inner { grid-template-columns: 280px 1fr; align-items: stretch; gap: 3rem; }
}
@media (min-width: 1024px) {
    .humain-inner { grid-template-columns: 320px 1fr; gap: 4rem; }
}
@media (min-width: 1440px) {
    .humain-inner { max-width: 90rem; margin-left: auto; margin-right: auto; padding: 0 2rem; gap: 5rem; }
}
.humain-photo-wrap { position: relative; display: flex; align-items: stretch; min-height: 0; }
@media (max-width: 767px) {
    .humain-photo-wrap {
        height: 33.33vh;
        min-height: 0;
        overflow: hidden;
        border-radius: 1rem;
        border: 2px solid rgba(90,95,202,0.3);
        display: block;
    }
    .humain-photo-wrap picture {
        display: block;
        width: 100%;
        height: 100%;
    }
    .humain-photo-wrap .humain-photo-secondary,
    .humain-photo-wrap picture img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
        border: none;
    }
}
.humain-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid rgba(90,95,202,0.3);
}
.humain-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(90,95,202,0.15);
    border: 2px dashed rgba(90,95,202,0.4);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(90,95,202,0.6);
    font-size: 0.85rem;
}
.humain-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.humain-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    background: rgba(90,95,202,0.2);
    color: #B8BCFF;
}
.humain-badge.orange { background: rgba(255,138,0,0.2); color: #FFD4A3; }
.humain-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.humain-section h2 span { color: #FF8A00; }
@media (min-width: 768px) { .humain-section h2 { font-size: 1.85rem; } }
.humain-section p {
    color: #C9CEDA;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.humain-network {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(90,95,202,0.08);
    border: 1px solid rgba(90,95,202,0.2);
    border-radius: 0.75rem;
}
.humain-network strong {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.humain-network p { margin-bottom: 0; font-size: 0.9rem; }
.term-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.term-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: rgba(90,95,202,0.15);
    border: 1px solid rgba(90,95,202,0.25);
    border-radius: 999px;
    color: #C9CEDA;
    white-space: nowrap;
}
.term-pill strong { color: #fff; font-weight: 600; margin-right: 0.25rem; }
.humain-section .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    background: rgba(26,22,50,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    color: #C9CEDA;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}
.humain-section .btn-secondary:hover { border-color: rgba(90,95,202,0.5); color: #fff; background: rgba(26,22,50,1); }

[data-theme="light"] .humain-section { background: var(--bg-section, #f8fafc) !important; }
[data-theme="light"] .humain-section h2,
[data-theme="light"] .humain-section h2 span { color: var(--text-primary, #1e293b); }
[data-theme="light"] .humain-section h2 span { color: #5A5FCA; }
[data-theme="light"] .humain-section p { color: #334155; }
[data-theme="light"] .humain-photo { border-color: rgba(90,95,202,0.4); }
@media (max-width: 767px) {
    [data-theme="light"] .humain-photo-wrap { border-color: rgba(90,95,202,0.4); }
}
[data-theme="light"] .humain-photo-placeholder {
    background: rgba(90,95,202,0.08);
    border-color: rgba(90,95,202,0.35);
    color: rgba(90,95,202,0.7);
}
[data-theme="light"] .humain-badge {
    background: rgba(90,95,202,0.15);
    color: #5A5FCA;
}
[data-theme="light"] .humain-badge.orange {
    background: rgba(255,138,0,0.15);
    color: #E07800;
}
[data-theme="light"] .humain-network {
    background: rgba(90,95,202,0.06);
    border-color: rgba(90,95,202,0.2);
}
[data-theme="light"] .humain-network strong { color: #1e293b; }
[data-theme="light"] .humain-network p { color: #334155; }
[data-theme="light"] .term-pill {
    background: rgba(90,95,202,0.1);
    border-color: rgba(90,95,202,0.25);
    color: var(--text-secondary);
}
[data-theme="light"] .term-pill strong { color: var(--text-primary); }
[data-theme="light"] .humain-section .btn-secondary {
    background: transparent;
    border-color: var(--border, #e2e8f0);
    color: var(--text-primary);
}
[data-theme="light"] .humain-section .btn-secondary:hover {
    background: var(--bg-card, #f1f5f9);
    border-color: rgba(90,95,202,0.5);
    color: #5A5FCA;
}

.humain-photo-wrap {
    overflow: hidden;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
    border-radius: 1rem;
}
.humain-photo-wrap:hover {
    box-shadow: 0 12px 32px rgba(90, 95, 202, 0.25);
}
.humain-photo-wrap:hover .humain-photo-secondary,
.humain-photo-wrap:hover picture img {
    transform: scale(1.03);
    border-color: rgba(90, 95, 202, 0.5);
}
.humain-photo-secondary {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid rgba(90,95,202,0.3);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.humain-photo-wrap picture img {
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.humain-founder { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
[data-theme="light"] .humain-founder { border-top-color: var(--border, #e2e8f0); }
.humain-founder-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .humain-founder-name { font-size: 1.25rem; } }
[data-theme="light"] .humain-founder-name { color: #1e293b; }
.humain-founder-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}
.humain-founder-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #C9CEDA;
}
[data-theme="light"] .humain-founder-list li { color: #334155; }
.humain-founder-bullet {
    flex-shrink: 0;
    display: inline-flex;
    width: 0.75rem;
    height: 0.75rem;
    color: #FF8A00;
}
.humain-founder-bullet svg {
    width: 100%;
    height: 100%;
}
.humain-founder-usps {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (min-width: 640px) { .humain-founder-usps { grid-template-columns: repeat(3, 1fr); } }
.humain-founder-usp {
    padding: 1.25rem;
    background: rgba(90,95,202,0.08);
    border: 1px solid rgba(90,95,202,0.2);
    border-radius: 0.75rem;
    border-top: 3px solid #5A5FCA;
}
[data-theme="light"] .humain-founder-usp {
    background: rgba(90,95,202,0.06);
    border-color: rgba(90,95,202,0.2);
}
.humain-founder-usp strong { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 0.5rem; }
[data-theme="light"] .humain-founder-usp strong { color: #1e293b; }
.humain-founder-usp p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #C9CEDA; }
[data-theme="light"] .humain-founder-usp p { color: #334155; }

.humain-skills-wrap {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .humain-skills-wrap { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1440px) { .humain-skills-wrap { max-width: 90rem; padding-left: 2rem; padding-right: 2rem; } }
.humain-skills-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.humain-skills-tab-btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(90,95,202,0.15);
    border: 1px solid rgba(90,95,202,0.25);
    color: #C9CEDA;
    cursor: pointer;
}
.humain-skills-tab-btn:hover {
    border-color: rgba(90,95,202,0.5);
    color: #fff;
}
.humain-skills-tab-btn.is-active {
    background: rgba(90,95,202,0.3);
    border-color: #5A5FCA;
    color: #fff;
}
.humain-skills-tab-btn[data-tab="progression"].is-active {
    background: rgba(16,185,129,0.25);
    border-color: #10B981;
}
[data-theme="light"] .humain-skills-tab-btn {
    background: rgba(90,95,202,0.08);
    border-color: rgba(90,95,202,0.2);
    color: #334155;
}
[data-theme="light"] .humain-skills-tab-btn:hover { color: #1e293b; }
[data-theme="light"] .humain-skills-tab-btn.is-active {
    background: rgba(90,95,202,0.15);
    border-color: #5A5FCA;
    color: #5A5FCA;
}
[data-theme="light"] .humain-skills-tab-btn[data-tab="progression"].is-active {
    background: rgba(16,185,129,0.15);
    border-color: #10B981;
    color: #059669;
}
.humain-skills-full { width: 100%; }
[data-theme="light"] .humain-skills-full { border-top-color: var(--border); }
.humain-skills-grid {
    display: grid;
    gap: 0.6rem 0;
}
@media (min-width: 640px) { .humain-skills-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem 2rem; } }
@media (min-width: 1024px) { .humain-skills-grid { grid-template-columns: repeat(3, 1fr); gap: 0.65rem 2.5rem; } }
.humain-skill-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.humain-skill-label {
    font-size: 0.82rem;
    color: #C9CEDA;
    flex-shrink: 0;
    min-width: 0;
}
@media (min-width: 640px) { .humain-skill-label { max-width: 200px; } }
[data-theme="light"] .humain-skill-label { color: #334155; }
.humain-skill-bar {
    display: flex;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.humain-skill-seg {
    flex: 1;
    min-width: 6px;
    height: 16px;
    border-radius: 3px;
    background: rgba(90,95,202,0.15);
    opacity: 0.35;
}
.humain-skill-seg.filled { background: rgba(90,95,202,0.2); }
.humain-skill-seg.personal.filled { background: rgba(16,185,129,0.2); }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled {
    animation: humain-fallout-segment 0.25s ease-out forwards;
}
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(1) { animation-delay: 0.03s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(2) { animation-delay: 0.06s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(3) { animation-delay: 0.09s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(4) { animation-delay: 0.12s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(5) { animation-delay: 0.15s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(6) { animation-delay: 0.18s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(7) { animation-delay: 0.21s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(8) { animation-delay: 0.24s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(9) { animation-delay: 0.27s; }
.humain-pro-visible .humain-skills-grid .humain-skill-seg.filled:nth-child(10) { animation-delay: 0.3s; }
@keyframes humain-fallout-segment {
    0% { opacity: 0.2; background: rgba(90,95,202,0.2); box-shadow: none; }
    70% { opacity: 1; background: linear-gradient(180deg, #5A5FCA 0%, #4A4FB8 100%); box-shadow: 0 0 8px rgba(90,95,202,0.6); }
    100% { opacity: 1; background: linear-gradient(180deg, #5A5FCA 0%, #4A4FB8 100%); box-shadow: 0 0 4px rgba(90,95,202,0.4); }
}
.humain-progression-visible .humain-skill-seg.personal.filled {
    animation: humain-fallout-personal 0.25s ease-out forwards;
}
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(1) { animation-delay: 0.03s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(2) { animation-delay: 0.06s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(3) { animation-delay: 0.09s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(4) { animation-delay: 0.12s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(5) { animation-delay: 0.15s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(6) { animation-delay: 0.18s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(7) { animation-delay: 0.21s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(8) { animation-delay: 0.24s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(9) { animation-delay: 0.27s; }
.humain-progression-visible .humain-skill-seg.personal.filled:nth-child(10) { animation-delay: 0.3s; }
@keyframes humain-fallout-personal {
    0% { opacity: 0.2; background: rgba(16,185,129,0.2); box-shadow: none; }
    70% { opacity: 1; background: linear-gradient(180deg, #10B981 0%, #059669 100%); box-shadow: 0 0 8px rgba(16,185,129,0.6); }
    100% { opacity: 1; background: linear-gradient(180deg, #10B981 0%, #059669 100%); box-shadow: 0 0 4px rgba(16,185,129,0.4); }
}
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(1) { animation-delay: 0.03s; }
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(2) { animation-delay: 0.06s; }
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(3) { animation-delay: 0.09s; }
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(4) { animation-delay: 0.12s; }
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(5) { animation-delay: 0.15s; }
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(6) { animation-delay: 0.18s; }
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(7) {
    animation: humain-chant-explode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.55s;
}
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(8) {
    animation: humain-chant-explode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.65s;
}
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(9) {
    animation: humain-chant-explode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.75s;
}
.humain-progression-visible .humain-chant-bar-wrap .humain-skill-seg.personal.filled:nth-child(10) {
    animation: humain-chant-explode 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.85s;
}
@keyframes humain-chant-explode {
    0% { opacity: 0.2; transform: scale(0.3); background: rgba(16,185,129,0.2); box-shadow: none; }
    50% { opacity: 1; transform: scale(1.4); background: linear-gradient(180deg, #10B981 0%, #059669 100%); box-shadow: 0 0 14px rgba(16,185,129,0.9), 0 0 24px rgba(16,185,129,0.5); }
    100% { opacity: 1; transform: scale(1); background: linear-gradient(180deg, #10B981 0%, #059669 100%); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
}

.humain-progression-block {
    margin-top: 2rem;
    padding: 1.75rem;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 1rem;
}
[data-theme="light"] .humain-progression-block {
    background: rgba(16,185,129,0.04);
    border-color: rgba(16,185,129,0.2);
}
.humain-progression-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #10B981;
    margin: 0 0 1.25rem 0;
}
.humain-progression-title .humain-title-icon,
.humain-progression-bonus-label .humain-title-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}
.humain-progression-title .humain-title-icon svg,
.humain-progression-bonus-label .humain-title-icon svg {
    width: 100%;
    height: 100%;
}
.humain-progression-bonus-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #10B981;
    margin: 1.5rem 0 0.75rem 0;
}
[data-theme="light"] .humain-progression-title { color: #059669; }
.humain-progression-grid {
    display: grid;
    gap: 1rem 0;
}
@media (min-width: 640px) { .humain-progression-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; } }
@media (min-width: 1024px) { .humain-progression-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; } }
.humain-progression-item { margin-bottom: 0; }
.humain-progression-row .humain-skill-label { color: #94A3B8; }
[data-theme="light"] .humain-progression-row .humain-skill-label { color: #334155; }
.humain-skill-seg.personal { background: rgba(16,185,129,0.12); }
.humain-skill-seg.personal.filled {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
}
.humain-progression-desc {
    font-size: 0.8rem;
    color: #64748B;
    margin: 0.25rem 0 0 0;
    font-style: italic;
}
.humain-progression-desc[hidden] { display: none; }
[data-theme="light"] .humain-progression-desc { color: var(--text-muted, #64748b); }
.humain-progression-bonus-grid { max-width: none; }
/* Barre « Oreille de ma blonde » : 9 segments en forme de larmes (oreillers qui pleurent) */
.humain-oreille-bar {
    display: flex;
    gap: 4px;
    flex: 1;
    min-width: 0;
    align-items: flex-end;
    height: 28px;
}
.humain-oreille-seg {
    flex: 1;
    min-width: 8px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background: rgba(239, 68, 68, 0.22);
    border-radius: 4px 4px 8px 8px;
    overflow: hidden;
}
.humain-oreille-fill {
    width: 100%;
    min-height: 4px;
    /* Forme larme : rond en bas, légèrement pointu en haut */
    border-radius: 2px 2px 50% 50%;
    background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%);
    transition: height 0.35s ease-out;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
}
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(1) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.05s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(2) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.1s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(3) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.15s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(4) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.2s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(5) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.25s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(6) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.3s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(7) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.35s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(8) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.4s forwards; }
.humain-progression-visible .humain-oreille-bar .humain-oreille-seg:nth-child(9) .humain-oreille-fill { animation: humain-oreille-fill 0.3s ease-out 0.45s forwards; }
@keyframes humain-oreille-fill {
    0% { opacity: 0.3; box-shadow: none; }
    100% { opacity: 1; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
}
[data-theme="light"] .humain-oreille-seg { background: rgba(239, 68, 68, 0.2); }
[data-theme="light"] .humain-oreille-fill { background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #b91c1c 100%); box-shadow: 0 1px 3px rgba(220, 38, 38, 0.4); }
.humain-founder-timeline-btn {
    display: inline-block;
    margin-top: 1.5rem;
}

/* Page Humain : wrapper pleine largeur, pas de sidebar */
.vitrine-humain-wrap { max-width: none; padding: 0; }
.vitrine-humain-wrap.has-sidebar { grid-template-columns: 1fr; }
