.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    background:
        linear-gradient(135deg, rgba(14,42,59,.96), rgba(23,106,83,.86)),
        url('../img/about.jpg') center/cover no-repeat;
}
.home-hero::before, .home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.home-hero::before {
    top: -180px; right: -120px; width: 450px; height: 450px;
    background: rgba(255,255,255,.05);
}
.home-hero::after {
    bottom: -220px; left: -120px; width: 480px; height: 480px;
    background: rgba(40,160,120,.15);
}
.home-hero-content { position: relative; z-index: 2; }
.home-hero-label {
    display: inline-block; margin-bottom: 20px; padding: 9px 18px;
    border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
    background: rgba(255,255,255,.09); color: #fff; font-size: .82rem;
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.home-hero-title {
    color: #fff; font-size: clamp(3rem,7vw,5.5rem);
    font-weight: 700; line-height: 1.05;
}
.home-hero-subtitle {
    max-width: 800px; margin: 0 auto 24px; color: rgba(255,255,255,.92);
    font-size: clamp(1.25rem,2.5vw,1.8rem); font-weight: 500; line-height: 1.45;
}
.home-hero-description {
    max-width: 760px; margin: 0 auto 34px; color: rgba(255,255,255,.72);
    font-size: 1.04rem; line-height: 1.8;
}
.home-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; }
.home-hero-actions .btn { min-width: 195px; padding: 14px 23px; border-radius: 9px; font-weight: 700; }
.home-section { padding: 90px 0; }
.home-section-soft {
    background:
        radial-gradient(circle at 8% 12%, rgba(40,160,120,.12), transparent 32%),
        linear-gradient(135deg,#f3faf7,#fff);
}
.home-about-image {
    width: 100%; height: 100%; min-height: 520px; border-radius: 18px;
    object-fit: cover; box-shadow: 0 15px 38px rgba(0,0,0,.13);
}
.home-intro { color: #525f66; font-size: 1.04rem; line-height: 1.85; }
.home-stat-grid {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px; margin-top: 30px;
}
.home-stat { min-height: 150px; padding: 23px 15px; border-radius: 14px; text-align: center; }
.home-stat-number {
    display: block; margin-bottom: 9px; color: #fff; font-size: 2.15rem;
    font-weight: 700; line-height: 1.1;
}
.home-stat-label {
    margin: 0; color: rgba(255,255,255,.94); font-size: .78rem;
    font-weight: 700; line-height: 1.45; text-transform: uppercase;
}
.home-private-link, .home-private-link:hover { color: #fff; }
.home-private-link:hover { text-decoration: underline; }

.expertise-card, .project-card, .tool-card {
    height: 100%; overflow: hidden; border: 1px solid rgba(40,160,120,.13);
    border-radius: 17px; background: #fff;
    box-shadow: 0 10px 28px rgba(15,81,50,.07);
    transition: transform .25s ease, box-shadow .25s ease;
}
.expertise-card:hover, .project-card:hover, .tool-card:hover {
    transform: translateY(-5px); box-shadow: 0 17px 38px rgba(15,81,50,.13);
}
.expertise-card { padding: 30px 25px; }
.expertise-icon, .project-icon, .tool-icon, .path-icon {
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.expertise-icon { width: 68px; height: 68px; margin-bottom: 22px; border-radius: 17px; font-size: 1.65rem; }
.expertise-card h3 { margin-bottom: 14px; color: #17252a; font-size: 1.28rem; }
.expertise-card p { margin-bottom: 19px; color: #647078; line-height: 1.7; }
.expertise-list { margin: 0; padding: 0; list-style: none; }
.expertise-list li { position: relative; margin-bottom: 9px; padding-left: 22px; color: #45545c; }
.expertise-list li::before { content: "✓"; position: absolute; left: 0; color: #28a078; font-weight: 700; }
.project-card { display: flex; flex-direction: column; padding: 27px; }
.project-icon { width: 62px; height: 62px; margin-bottom: 20px; border-radius: 15px; font-size: 1.45rem; }
.project-card h3 { margin-bottom: 13px; color: #17252a; font-size: 1.2rem; }
.project-card p { color: #65727a; line-height: 1.7; }
.project-card .project-footer { margin-top: auto; padding-top: 18px; }
.tech-badge {
    display: inline-block; margin: 3px 3px 3px 0; padding: 5px 10px;
    border-radius: 999px; background: rgba(40,160,120,.11); color: #17664e;
    font-size: .75rem; font-weight: 700;
}
.tool-card { display: flex; flex-direction: column; }
.tool-card-body { display: flex; flex: 1; flex-direction: column; padding: 27px; }
.tool-icon { width: 58px; height: 58px; margin-bottom: 18px; border-radius: 14px; font-size: 1.35rem; }
.tool-card h3 { margin-bottom: 12px; color: #17252a; font-size: 1.18rem; }
.tool-card p { color: #65727a; line-height: 1.7; }
.tool-card .btn { margin-top: auto; border-radius: 8px; }
.home-path {
    height: 100%; padding: 24px; border: 1px solid #e5efeb;
    border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.home-path-link { display: flex; align-items: center; color: inherit; }
.home-path-link:hover { color: inherit; text-decoration: none; }
.path-icon { min-width: 58px; height: 58px; margin-right: 18px; border-radius: 14px; }
.home-callout {
    padding: 42px; border-radius: 20px;
    background: linear-gradient(135deg,rgba(17,55,71,.98),rgba(40,160,120,.94));
    color: #fff; box-shadow: 0 17px 38px rgba(15,81,50,.18);
}
.home-callout h2 { color: #fff; }
.home-callout p { max-width: 720px; color: rgba(255,255,255,.78); line-height: 1.7; }
.home-callout .btn { border-radius: 8px; font-weight: 700; }

/* Dashboard de démonstration */
.demo-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(40,160,120,.12), transparent 30%),
        linear-gradient(135deg,#f6faf8,#fff 55%,#f2f7ff);
}
.demo-shell {
    overflow: hidden; border: 1px solid #dce9e4; border-radius: 22px;
    background: #fff; box-shadow: 0 20px 55px rgba(15,55,45,.12);
}
.demo-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    padding: 20px 25px; border-bottom: 1px solid #e7efec; background: #fbfdfc;
}
.demo-label {
    display: inline-flex; align-items: center; gap: 8px; color: #236b53;
    font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.demo-label-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #35a77c;
    box-shadow: 0 0 0 4px rgba(53,167,124,.12);
}
.demo-fictional { color: #78878a; font-size: .78rem; text-align: right; }
.demo-content { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.5fr); }
.demo-workflow { padding: 28px; }
.demo-workflow h3 { margin-bottom: 8px; color: #18332d; font-size: 1.16rem; font-weight: 700; }
.demo-workflow-intro { margin-bottom: 23px; color: #73817d; font-size: .92rem; line-height: 1.6; }
.demo-steps { display: grid; gap: 9px; }
.demo-step {
    display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 10px;
    width: 100%; min-height: 64px; padding: 10px 12px;
    border: 1px solid #e3ebe7; border-radius: 13px; color: #5e706b;
    background: #fff; cursor: pointer; text-align: left; transition: .2s ease;
}
.demo-step:hover { border-color: #83bea8; background: #f5fbf8; }
.demo-step.active { border-color: #28a078; background: #eff9f4; box-shadow: 0 0 0 3px rgba(40,160,120,.1); }
.demo-step-number {
    display: flex; align-items: center; justify-content: center; grid-row: span 2;
    width: 29px; height: 29px; border-radius: 9px; color: #17664e;
    background: #e4f4ec; font-size: .8rem; font-weight: 800;
}
.demo-step.active .demo-step-number { color: #fff; background: #28a078; }
.demo-step-title { color: #243b35; font-size: .82rem; font-weight: 800; }
.demo-step-subtitle { margin-top: 3px; color: #788783; font-size: .7rem; line-height: 1.35; }
.demo-step-detail { min-height: 102px; margin-top: 17px; padding: 17px; border-radius: 13px; background: #f5f8f7; }
.demo-step-detail strong { display: block; margin-bottom: 5px; color: #1b5745; font-size: .94rem; }
.demo-step-detail p { margin: 0; color: #687874; font-size: .88rem; line-height: 1.65; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 18px; }
.demo-run {
    padding: 11px 17px; border: 0; border-radius: 9px; color: #fff;
    background: #21845f; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.demo-run:hover { color: #fff; background: #176b4c; transform: translateY(-1px); }
.demo-run:disabled { opacity: .7; cursor: wait; transform: none; }
.demo-state { color: #71807b; font-size: .82rem; }
.demo-dashboard { min-width: 0; padding: 24px; border-left: 1px solid #e7efec; background: #f4f7f8; }

.pbi-dashboard {
    position: relative; overflow: hidden; padding: 20px; border: 1px solid #25384a;
    border-radius: 18px; color: #f3f6fa; background: #111c2b;
    box-shadow: 0 18px 45px rgba(11,26,42,.28);
}
.pbi-dashboard::before {
    content: ""; position: absolute; top: -150px; right: -100px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(42,153,112,.12); pointer-events: none;
}
.pbi-dashboard-inner { position: relative; z-index: 1; }
.pbi-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.pbi-brand { display: flex; align-items: center; gap: 11px; }
.pbi-brand-mark {
    display: flex; align-items: flex-end; justify-content: center; gap: 3px;
    width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: #ffbf38;
}
.pbi-brand-mark span { width: 5px; border-radius: 2px 2px 0 0; background: #624800; }
.pbi-brand-mark span:nth-child(1) { height: 10px; }
.pbi-brand-mark span:nth-child(2) { height: 16px; }
.pbi-brand-mark span:nth-child(3) { height: 21px; }
.pbi-brand-title { display: block; color: #f7f9fc; font-size: .98rem; font-weight: 800; }
.pbi-brand-subtitle { display: block; margin-top: 3px; color: #95a4b5; font-size: .7rem; }
.pbi-header-right { display: flex; align-items: center; gap: 8px; }
.pbi-live {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px;
    border: 1px solid #314456; border-radius: 999px; color: #a9bbca; font-size: .65rem;
}
.pbi-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #43d19e; box-shadow: 0 0 9px #43d19e; }
.pbi-demo-badge { padding: 6px 9px; border-radius: 999px; color: #ffd66d; background: rgba(255,191,56,.13); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.pbi-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pbi-periods { display: flex; gap: 4px; padding: 4px; border: 1px solid #283a4c; border-radius: 9px; background: #172536; }
.pbi-period { padding: 7px 10px; border: 0; border-radius: 6px; color: #a3b2c1; background: transparent; cursor: pointer; font-size: .68rem; font-weight: 700; }
.pbi-period.active, .pbi-period:hover { color: #fff; background: #23835f; }
.pbi-filter { padding: 8px 10px; border: 1px solid #304356; border-radius: 8px; color: #d7e1eb; background: #172536; font-size: .68rem; }
.pbi-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 10px; }
.pbi-kpi, .pbi-card { min-width: 0; border: 1px solid #2a3c4e; border-radius: 12px; background: linear-gradient(145deg,#1b2b3d,#172536); }
.pbi-kpi { min-height: 94px; padding: 12px; }
.pbi-kpi-label { display: block; color: #98aabc; font-size: .66rem; line-height: 1.35; }
.pbi-kpi-value { display: block; margin-top: 8px; color: #f7f9fc; font-size: 1.48rem; font-weight: 800; line-height: 1; }
.pbi-kpi-change { display: block; margin-top: 7px; color: #54d5a4; font-size: .63rem; font-weight: 700; }
.pbi-kpi-change.neutral { color: #b1bfcb; }
.pbi-main-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(190px,.8fr); gap: 10px; }
.pbi-card { padding: 14px; }
.pbi-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pbi-chart-heading { margin: 0; color: #e8eef4; font-size: .75rem; font-weight: 800; }
.pbi-chart-subheading { margin: 3px 0 0; color: #8397a9; font-size: .61rem; }
.pbi-chart-key { display: flex; gap: 10px; color: #9aabba; font-size: .59rem; }
.pbi-key-item { display: inline-flex; align-items: center; gap: 5px; }
.pbi-key-dot { width: 7px; height: 7px; border-radius: 50%; background: #4bd3a0; }
.pbi-key-dot.secondary { background: #e8ad42; }
.pbi-trend-wrap { position: relative; }
.pbi-trend-svg { display: block; width: 100%; height: 168px; overflow: visible; }
.pbi-grid-line { stroke: #2b3c4d; stroke-width: 1; stroke-dasharray: 3 5; }
.pbi-axis-label { fill: #7f94a7; font-size: 9px; }
.pbi-area-primary { fill: url(#demoGreenGradient); opacity: .22; }
.pbi-line-primary, .pbi-line-secondary { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pbi-line-primary { stroke: #4bd3a0; stroke-width: 3; }
.pbi-line-secondary { stroke: #e8ad42; stroke-width: 2; stroke-dasharray: 5 5; }
.pbi-chart-point { fill: #111c2b; stroke: #64e0b1; stroke-width: 2.5; cursor: crosshair; }
.pbi-tooltip {
    position: absolute; z-index: 4; display: none; min-width: 100px; padding: 8px 10px;
    border: 1px solid #415468; border-radius: 8px; color: #edf4f8;
    background: #0c1622; box-shadow: 0 8px 20px rgba(0,0,0,.25);
    font-size: .65rem; pointer-events: none;
}
.pbi-tooltip strong { display: block; margin-bottom: 3px; color: #61deb0; font-size: .7rem; }
.pbi-status-layout { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 168px; }
.pbi-donut {
    display: grid; flex: 0 0 auto; width: 112px; height: 112px; place-items: center;
    border-radius: 50%; background: conic-gradient(#43cc97 0 72%,#e8ad42 72% 90%,#5b7c9b 90% 100%);
    transition: background .4s ease;
}
.pbi-donut-hole { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 76px; height: 76px; border-radius: 50%; background: #172536; }
.pbi-donut-value { color: #f6f8fb; font-size: 1.05rem; font-weight: 800; }
.pbi-donut-caption { color: #8ea1b3; font-size: .58rem; }
.pbi-legend { display: grid; gap: 9px; }
.pbi-legend-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #a6b5c3; font-size: .63rem; }
.pbi-legend-name { display: inline-flex; align-items: center; gap: 6px; }
.pbi-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #43cc97; }
.pbi-legend-dot.progress { background: #e8ad42; }
.pbi-legend-dot.followup { background: #5b7c9b; }
.pbi-legend-item strong { color: #eff4f8; font-size: .66rem; }
.pbi-bottom-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 10px; margin-top: 10px; }
.pbi-ranking-row { display: grid; grid-template-columns: 78px 1fr 28px; align-items: center; gap: 8px; margin-top: 11px; color: #a0b0be; font-size: .62rem; }
.pbi-ranking-track { height: 7px; overflow: hidden; border-radius: 99px; background: #263849; }
.pbi-ranking-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4bd3a0,#21845f); transition: width .5s ease; }
.pbi-ranking-value { color: #edf4f8; text-align: right; }
.pbi-heatmap { display: grid; grid-template-columns: 56px repeat(7,1fr); gap: 4px; align-items: center; margin-top: 10px; }
.pbi-heat-label { color: #8fa2b3; font-size: .57rem; }
.pbi-heat-cell { height: 15px; border-radius: 4px; background: rgba(61,198,145,.16); }
.pbi-heat-cell.l2 { background: rgba(61,198,145,.31); }
.pbi-heat-cell.l3 { background: rgba(61,198,145,.52); }
.pbi-heat-cell.l4 { background: rgba(61,198,145,.78); }
.pbi-heat-cell.warn { background: rgba(232,173,66,.63); }
.pbi-week-label { color: #778da0; font-size: .5rem; text-align: center; }
.pbi-footnote { margin: 10px 0 0; color: #8294a5; font-size: .61rem; line-height: 1.45; }
.pbi-footnote strong { color: #ffcf5c; }
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.demo-actions .btn { padding: 12px 20px; border-radius: 9px; font-weight: 700; }

@media (max-width: 991.98px) {
    .home-section { padding: 65px 0; }
    .home-about-image { min-height: 400px; }
    .demo-content { grid-template-columns: 1fr; }
    .demo-dashboard { border-top: 1px solid #e7efec; border-left: 0; }
}
@media (max-width: 767.98px) {
    .home-hero-actions { flex-direction: column; }
    .home-hero-actions .btn { width: 100%; }
    .home-stat-grid { grid-template-columns: 1fr; }
    .home-about-image { min-height: 330px; }
    .home-callout { padding: 30px 22px; text-align: center; }
    .demo-topbar { align-items: flex-start; flex-direction: column; }
    .demo-fictional { text-align: left; }
    .demo-workflow, .demo-dashboard { padding: 19px; }
    .pbi-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pbi-main-grid, .pbi-bottom-grid { grid-template-columns: 1fr; }
    .pbi-status-layout { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .pbi-dashboard { padding: 13px; }
    .pbi-header { align-items: flex-start; }
    .pbi-header-right { align-items: flex-end; flex-direction: column; }
    .pbi-toolbar { align-items: flex-start; flex-direction: column; }
    .pbi-periods, .pbi-filter { width: 100%; }
    .pbi-period { flex: 1; }
    .pbi-kpi { padding: 10px; }
    .pbi-kpi-value { font-size: 1.25rem; }
    .pbi-status-layout { gap: 10px; }
    .pbi-donut { width: 94px; height: 94px; }
    .pbi-donut-hole { width: 64px; height: 64px; }
    .pbi-heatmap { grid-template-columns: 45px repeat(7,1fr); gap: 3px; }
    .pbi-heat-cell { height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}