/* ============================================
   Saxho.net — Portfolio & Project Detail
   ============================================ */

/* --- Portfolio Hero (utilise .page-hero de layout.css + degrade propre) --- */
.page-hero.page-hero--portfolio {
    background: linear-gradient(135deg, #0D0D1A 0%, #D94F70 60%, #F5A623 100%);
}

/* --- Portfolio Intro (entre hero et contenu) --- */
.portfolio-intro {
    padding: var(--sp-2xl) 0;
    text-align: center;
}

.portfolio-intro__text {
    font-size: var(--fs-body-lg);
    color: var(--c-medium);
    line-height: var(--lh-relaxed);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Timeline — Neural Pulse Style --- */
.portfolio-timeline {
    padding: var(--sp-3xl) 0;
    background: #111827;
    overflow: hidden;
}

.portfolio-timeline__title {
    font-family: var(--ff-display);
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--c-white);
    text-align: center;
    margin-bottom: var(--sp-3xl);
    letter-spacing: var(--ls-tight);
}

.portfolio-timeline__track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.portfolio-timeline__milestone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 0;
}

/* --- Node: dot + pulse connector --- */
.portfolio-timeline__node {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    height: 40px;
    margin-bottom: var(--sp-lg);
}

.portfolio-timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--c-secondary);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(217, 79, 112, 0.5), 0 0 24px rgba(217, 79, 112, 0.2);
}

/* Glow halo animé autour du dot */
.portfolio-timeline__dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(217, 79, 112, 0.3) 0%, transparent 70%);
    animation: dotPulse 3s ease-in-out infinite;
}

/* Coloration progressive des dots : rose → corail → ambre */
.portfolio-timeline__milestone:nth-child(1) .portfolio-timeline__dot { background: #D94F70; box-shadow: 0 0 12px rgba(217, 79, 112, 0.5); }
.portfolio-timeline__milestone:nth-child(2) .portfolio-timeline__dot { background: #E06A60; box-shadow: 0 0 12px rgba(224, 106, 96, 0.5); }
.portfolio-timeline__milestone:nth-child(3) .portfolio-timeline__dot { background: #E58250; box-shadow: 0 0 12px rgba(229, 130, 80, 0.5); }
.portfolio-timeline__milestone:nth-child(4) .portfolio-timeline__dot { background: #EA9A3D; box-shadow: 0 0 12px rgba(234, 154, 61, 0.5); }
.portfolio-timeline__milestone:nth-child(5) .portfolio-timeline__dot { background: #F0A830; box-shadow: 0 0 12px rgba(240, 168, 48, 0.5); }
.portfolio-timeline__milestone:nth-child(6) .portfolio-timeline__dot { background: #F5A623; box-shadow: 0 0 12px rgba(245, 166, 35, 0.5); }

/* Pulse halo : même dégradé de couleur */
.portfolio-timeline__milestone:nth-child(1) .portfolio-timeline__dot::before { background: radial-gradient(circle, rgba(217, 79, 112, 0.3) 0%, transparent 70%); }
.portfolio-timeline__milestone:nth-child(2) .portfolio-timeline__dot::before { background: radial-gradient(circle, rgba(224, 106, 96, 0.3) 0%, transparent 70%); }
.portfolio-timeline__milestone:nth-child(3) .portfolio-timeline__dot::before { background: radial-gradient(circle, rgba(229, 130, 80, 0.3) 0%, transparent 70%); }
.portfolio-timeline__milestone:nth-child(4) .portfolio-timeline__dot::before { background: radial-gradient(circle, rgba(234, 154, 61, 0.3) 0%, transparent 70%); }
.portfolio-timeline__milestone:nth-child(5) .portfolio-timeline__dot::before { background: radial-gradient(circle, rgba(240, 168, 48, 0.3) 0%, transparent 70%); }
.portfolio-timeline__milestone:nth-child(6) .portfolio-timeline__dot::before { background: radial-gradient(circle, rgba(245, 166, 35, 0.3) 0%, transparent 70%); }

/* --- Pulse connector (impulse electrique entre dots) --- */
.portfolio-timeline__pulse {
    position: absolute;
    left: calc(50% + 8px);
    top: 50%;
    width: calc(100% - 16px);
    height: 2px;
    transform: translateY(-50%);
    z-index: 1;
    overflow: visible;
}

/* Ligne de base (subtile) */
.portfolio-timeline__pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
}

/* Impulsion lumineuse qui traverse */
.portfolio-timeline__pulse::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -20%;
    width: 40%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--c-secondary) 30%, var(--c-tertiary) 70%, transparent 100%);
    box-shadow: 0 0 8px rgba(217, 79, 112, 0.6), 0 0 16px rgba(245, 166, 35, 0.3);
    animation: neuralPulse 3s ease-in-out infinite;
    opacity: 0;
}

/* Décalage progressif des impulsions (cascade) */
.portfolio-timeline__milestone:nth-child(1) .portfolio-timeline__pulse::after { animation-delay: 0s; }
.portfolio-timeline__milestone:nth-child(2) .portfolio-timeline__pulse::after { animation-delay: 0.5s; }
.portfolio-timeline__milestone:nth-child(3) .portfolio-timeline__pulse::after { animation-delay: 1.0s; }
.portfolio-timeline__milestone:nth-child(4) .portfolio-timeline__pulse::after { animation-delay: 1.5s; }
.portfolio-timeline__milestone:nth-child(5) .portfolio-timeline__pulse::after { animation-delay: 2.0s; }

/* Décalage du pulse halo sur chaque dot */
.portfolio-timeline__milestone:nth-child(1) .portfolio-timeline__dot::before { animation-delay: 0.15s; }
.portfolio-timeline__milestone:nth-child(2) .portfolio-timeline__dot::before { animation-delay: 0.65s; }
.portfolio-timeline__milestone:nth-child(3) .portfolio-timeline__dot::before { animation-delay: 1.15s; }
.portfolio-timeline__milestone:nth-child(4) .portfolio-timeline__dot::before { animation-delay: 1.65s; }
.portfolio-timeline__milestone:nth-child(5) .portfolio-timeline__dot::before { animation-delay: 2.15s; }
.portfolio-timeline__milestone:nth-child(6) .portfolio-timeline__dot::before { animation-delay: 2.65s; }

/* --- Content below dots --- */
.portfolio-timeline__content {
    padding: 0 var(--sp-sm);
}

.portfolio-timeline__label {
    font-family: var(--ff-display);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--c-white);
    margin-bottom: var(--sp-xs);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

/* Couleurs des labels — même dégradé */
.portfolio-timeline__milestone:nth-child(1) .portfolio-timeline__label { color: #D94F70; }
.portfolio-timeline__milestone:nth-child(2) .portfolio-timeline__label { color: #E06A60; }
.portfolio-timeline__milestone:nth-child(3) .portfolio-timeline__label { color: #E58250; }
.portfolio-timeline__milestone:nth-child(4) .portfolio-timeline__label { color: #EA9A3D; }
.portfolio-timeline__milestone:nth-child(5) .portfolio-timeline__label { color: #F0A830; }
.portfolio-timeline__milestone:nth-child(6) .portfolio-timeline__label { color: #F5A623; }

.portfolio-timeline__desc {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.55);
    line-height: var(--lh-relaxed);
}

/* --- Keyframes --- */
@keyframes neuralPulse {
    0%   { left: -20%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes neuralPulseVertical {
    0%   { top: -20%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- Badge couleurs par phase (dégradé rose → ambre, cohérent avec la timeline) --- */
.badge--phase-rose    { background: rgba(217, 79, 112, 0.12); color: #D94F70; }
.badge--phase-corail  { background: rgba(224, 106, 96, 0.12); color: #E06A60; }
.badge--phase-orange  { background: rgba(229, 130, 80, 0.12); color: #D07040; }
.badge--phase-ambre   { background: rgba(234, 154, 61, 0.12); color: #C88520; }
.badge--phase-gold    { background: rgba(240, 168, 48, 0.12); color: #B8890A; }
.badge--phase-warm    { background: rgba(245, 166, 35, 0.12); color: #A87508; }

/* Badge domaine — neutre chaud, discret */
.badge--domain {
    background: rgba(74, 85, 104, 0.08);
    color: var(--c-medium);
    font-weight: var(--fw-medium);
}

/* --- Filters --- */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    justify-content: center;
    padding: var(--sp-xl) 0;
    border-bottom: 1px solid var(--c-surface);
    margin-bottom: var(--sp-2xl);
}

.portfolio-filters__btn {
    display: inline-block;
    padding: var(--sp-xs) var(--sp-lg);
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-surface);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.portfolio-filters__btn:hover {
    background: #D94F70;
    color: var(--c-white);
}

.portfolio-filters__btn--active {
    background: #D94F70;
    color: var(--c-white);
    border-color: #D94F70;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
    padding-bottom: var(--sp-3xl);
}

/* --- Project Card (Member — full) --- */
.project-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--c-surface);
}

.project-card__image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card__image-placeholder span {
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.project-card__body {
    padding: var(--sp-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-md);
}

.project-card__name {
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--c-heading);
    margin-bottom: var(--sp-sm);
}

.project-card__pitch {
    font-size: var(--fs-small);
    color: var(--c-text);
    line-height: var(--lh-relaxed);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card__footer {
    padding-top: var(--sp-md);
    margin-top: var(--sp-md);
    border-top: 1px solid var(--c-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card__status {
    font-size: var(--fs-xs);
}

.project-card__link {
    font-size: var(--fs-small);
    color: var(--c-primary);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

.project-card__link:hover {
    color: var(--c-primary-light);
}

/* --- Blurred Project Card (Visitor) --- */
.project-card--blurred {
    position: relative;
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
    min-height: 280px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.project-card--blurred:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card__visible {
    margin-bottom: var(--sp-lg);
}

.project-card__domain {
    display: inline-block;
    margin-bottom: var(--sp-sm);
}

.project-card__phase {
    display: inline-block;
    margin-left: var(--sp-sm);
}

.project-card__blurred-content {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.project-card__blurred-content .placeholder-line {
    height: 14px;
    background: var(--c-surface);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-sm);
}

.project-card__blurred-content .placeholder-line:nth-child(1) { width: 70%; }
.project-card__blurred-content .placeholder-line:nth-child(2) { width: 100%; }
.project-card__blurred-content .placeholder-line:nth-child(3) { width: 85%; }
.project-card__blurred-content .placeholder-line:nth-child(4) { width: 60%; }

.project-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 26, 0.7);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--transition-normal);
    padding: var(--sp-xl);
    text-align: center;
}

.project-card--blurred:hover .project-card__overlay {
    opacity: 1;
}

.project-card__overlay-text {
    color: var(--c-white);
    font-size: var(--fs-small);
    margin-bottom: var(--sp-lg);
    line-height: var(--lh-relaxed);
}

/* --- Portfolio Empty --- */
.portfolio-empty {
    text-align: center;
    padding: var(--sp-4xl) 0;
    color: var(--c-muted);
    font-size: var(--fs-lg);
}

/* ============================================
   Project Detail Page
   ============================================ */

.project-detail {
    padding-bottom: var(--sp-4xl);
}

.project-detail__back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    padding: var(--sp-lg) 0;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 2;
}

.project-detail__back:hover {
    color: var(--c-white);
}

/* ── Header ── */
.project-detail__header {
    position: relative;
    overflow: hidden;
    padding: var(--sp-4xl) 0 var(--sp-3xl);
    text-align: center;
    margin-bottom: var(--sp-3xl);
}

/* Default phase gradient backgrounds (no cover image) */
.project-detail__header[data-phase-color="phase-rose"] {
    background: linear-gradient(135deg, #0D0D1A 0%, #1a1020 30%, rgba(217, 79, 112, 0.4) 100%);
}
.project-detail__header[data-phase-color="phase-corail"] {
    background: linear-gradient(135deg, #0D0D1A 0%, #1a1520 30%, rgba(224, 106, 96, 0.4) 100%);
}
.project-detail__header[data-phase-color="phase-orange"] {
    background: linear-gradient(135deg, #0D0D1A 0%, #1a1518 30%, rgba(229, 130, 80, 0.4) 100%);
}
.project-detail__header[data-phase-color="phase-ambre"] {
    background: linear-gradient(135deg, #0D0D1A 0%, #1a1815 30%, rgba(234, 154, 61, 0.4) 100%);
}
.project-detail__header[data-phase-color="phase-gold"] {
    background: linear-gradient(135deg, #0D0D1A 0%, #1a1a12 30%, rgba(240, 168, 48, 0.4) 100%);
}
.project-detail__header[data-phase-color="phase-warm"] {
    background: linear-gradient(135deg, #0D0D1A 0%, #1a1810 30%, rgba(245, 166, 35, 0.4) 100%);
}

/* Cover image (absolute, fills hero) */
.project-detail__cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* When cover image present: taller hero */
.project-detail__header--cover {
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--sp-3xl);
}

/* Phase-colored gradient overlay on cover image */
.project-detail__header--cover[data-phase-color="phase-rose"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 13, 26, 0.15) 0%,
        rgba(217, 79, 112, 0.25) 40%,
        rgba(13, 13, 26, 0.80) 100%);
    z-index: 1;
}
.project-detail__header--cover[data-phase-color="phase-corail"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 13, 26, 0.15) 0%,
        rgba(224, 106, 96, 0.25) 40%,
        rgba(13, 13, 26, 0.80) 100%);
    z-index: 1;
}
.project-detail__header--cover[data-phase-color="phase-orange"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 13, 26, 0.15) 0%,
        rgba(229, 130, 80, 0.25) 40%,
        rgba(13, 13, 26, 0.80) 100%);
    z-index: 1;
}
.project-detail__header--cover[data-phase-color="phase-ambre"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 13, 26, 0.15) 0%,
        rgba(234, 154, 61, 0.25) 40%,
        rgba(13, 13, 26, 0.80) 100%);
    z-index: 1;
}
.project-detail__header--cover[data-phase-color="phase-gold"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 13, 26, 0.15) 0%,
        rgba(240, 168, 48, 0.25) 40%,
        rgba(13, 13, 26, 0.80) 100%);
    z-index: 1;
}
.project-detail__header--cover[data-phase-color="phase-warm"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13, 13, 26, 0.15) 0%,
        rgba(245, 166, 35, 0.25) 40%,
        rgba(13, 13, 26, 0.80) 100%);
    z-index: 1;
}

/* Content above image + overlay */
.project-detail__header .container {
    position: relative;
    z-index: 2;
}

/* ── Header badges — variantes lisibles sur fond sombre ── */
.project-detail__badges .badge--domain {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--fw-semibold);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-detail__badges .badge--success {
    background: rgba(16, 185, 129, 0.25);
    color: #6EE7B7;
    font-weight: var(--fw-semibold);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-detail__badges .badge--warning {
    background: rgba(245, 166, 35, 0.25);
    color: #FCD34D;
    font-weight: var(--fw-semibold);
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.project-detail__badges .badge--muted {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-weight: var(--fw-semibold);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-detail__name {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    margin-bottom: var(--sp-lg);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.project-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    justify-content: center;
}

/* Phase Progress */
.project-detail__phase {
    max-width: 700px;
    margin: 0 auto var(--sp-3xl);
    padding: 0 var(--sp-lg);
}

/* ── Timeline portfolio — palette rose/corail (pas bleu) ── */
.project-detail__phase .step--active .step__dot {
    background-color: #D94F70;
    border-color: #e8799a;
    box-shadow: 0 0 10px rgba(217, 79, 112, 0.35);
}

.project-detail__phase .step--active .step__label {
    color: #D94F70;
}

.project-detail__phase .step--done .step__dot {
    background-color: #E06A60;
    border-color: #E06A60;
}

.project-detail__phase .step--done:not(:last-child)::after {
    background-color: #E06A60;
}

/* ── Fiche projet (sheet) — présentation homogène ── */
.project-detail__sheet {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--sp-2xl) var(--sp-2xl);
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.project-detail__sheet-title {
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--c-heading);
    margin-bottom: var(--sp-lg);
}

/* Meta line — badges left, dates right */
.project-detail__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
}

.project-detail__meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    align-items: center;
}

.project-detail__meta-right {
    display: flex;
    gap: var(--sp-xl);
    align-items: center;
}

.project-detail__meta-date {
    font-family: var(--ff-mono);
    font-size: var(--fs-small);
    color: var(--c-heading);
    font-weight: var(--fw-medium);
}

.project-detail__meta-date-label {
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: var(--sp-xs);
}

/* Divider */
.project-detail__divider {
    border: none;
    height: 1px;
    background: var(--c-surface);
    margin: 0 0 var(--sp-2xl);
}

/* Sections */
.project-detail__section {
    margin-bottom: var(--sp-2xl);
}

.project-detail__section:last-child {
    margin-bottom: 0;
}

.project-detail__section-title {
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--c-heading);
    margin-bottom: var(--sp-md);
    padding-bottom: var(--sp-xs);
    border-bottom: 2px solid #D94F70;
    display: inline-block;
}

.project-detail__text {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--c-text);
    white-space: pre-line;
}

/* Pitch — slightly larger, emphasis */
.project-detail__text--pitch {
    font-size: var(--fs-body-lg);
    color: var(--c-heading);
    font-weight: var(--fw-medium);
    line-height: var(--lh-relaxed);
}

/* ── Solution blurée (toujours confidentielle) ── */
.project-detail__solution-blur {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 120px;
}

.project-detail__solution-fake {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    padding: var(--sp-lg);
    background: var(--c-surface);
    border-radius: var(--radius-md);
    line-height: var(--lh-relaxed);
    color: var(--c-text);
    font-size: var(--fs-base);
}

.project-detail__solution-fake p {
    margin-bottom: var(--sp-md);
}

.project-detail__solution-fake p:last-child {
    margin-bottom: 0;
}

.project-detail__solution-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    background: rgba(248, 247, 244, 0.4);
    backdrop-filter: blur(1px);
}

.project-detail__solution-lock {
    width: 32px;
    height: 32px;
    color: var(--c-muted);
    opacity: 0.6;
}

.project-detail__solution-lock svg {
    width: 100%;
    height: 100%;
}

.project-detail__solution-message {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--c-muted);
    text-align: center;
    font-style: italic;
    max-width: 320px;
    line-height: var(--lh-relaxed);
}

/* ── Needs (competences + investissement) ── */
.project-detail__need {
    margin-bottom: var(--sp-xl);
    padding-left: var(--sp-lg);
    border-left: 3px solid #E06A60;
}

.project-detail__need:last-child {
    margin-bottom: 0;
}

.project-detail__need-label {
    font-family: var(--ff-display);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: #D94F70;
    margin-bottom: var(--sp-sm);
}

/* Actions */
.project-detail__actions {
    display: flex;
    gap: var(--sp-lg);
    justify-content: center;
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-2xl);
    border-top: 1px solid var(--c-surface);
}

.project-detail__actions .btn {
    min-width: 220px;
}

/* Boutons portfolio — palette rose/corail (pas bleu) */
.project-detail__actions .btn--primary {
    background: #D94F70;
    border-color: #D94F70;
    color: var(--c-white);
}

.project-detail__actions .btn--primary:hover {
    background: #c4425f;
    border-color: #c4425f;
}

.project-detail__actions .btn--secondary {
    background: transparent;
    border: 2px solid #D94F70;
    color: #D94F70;
}

.project-detail__actions .btn--secondary:hover {
    background: rgba(217, 79, 112, 0.08);
    border-color: #c4425f;
    color: #c4425f;
}

/* ============================================
   Interest Modal
   ============================================ */

.interest-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.interest-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.interest-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 26, 0.6);
    backdrop-filter: blur(4px);
}

.interest-modal__box {
    position: relative;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--sp-2xl);
    box-shadow: var(--shadow-xl);
}

.interest-modal__close {
    position: absolute;
    top: var(--sp-md);
    right: var(--sp-md);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--c-muted);
    line-height: 1;
    padding: var(--sp-xs);
    transition: color var(--transition-fast);
}

.interest-modal__close:hover {
    color: var(--c-heading);
}

.interest-modal__title {
    font-family: var(--ff-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--c-heading);
    margin-bottom: var(--sp-xs);
}

.interest-modal__type {
    font-size: var(--fs-small);
    color: var(--c-primary);
    font-weight: var(--fw-medium);
    margin-bottom: var(--sp-xl);
}

.interest-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
}

.interest-form__group {
    margin-bottom: var(--sp-md);
}

.interest-form__label {
    display: block;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--c-heading);
    margin-bottom: var(--sp-xs);
}

.interest-form__input,
.interest-form__select,
.interest-form__textarea {
    width: 100%;
    padding: var(--sp-sm) var(--sp-md);
    border: 1px solid var(--c-surface-hover);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    color: var(--c-text);
    background: var(--c-white);
    transition: border-color var(--transition-fast);
}

.interest-form__input:focus,
.interest-form__select:focus,
.interest-form__textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(27, 58, 158, 0.1);
}

.interest-form__textarea {
    resize: vertical;
    min-height: 80px;
}

.interest-form__section {
    display: none;
}

.interest-form__section.is-visible {
    display: block;
}

.interest-form__section-title {
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: var(--sp-lg) 0 var(--sp-md);
    padding-top: var(--sp-md);
    border-top: 1px solid var(--c-surface);
}

.interest-form__footer {
    margin-top: var(--sp-xl);
    display: flex;
    gap: var(--sp-md);
    justify-content: flex-end;
}

.interest-form__message {
    padding: var(--sp-md);
    border-radius: var(--radius-sm);
    font-size: var(--fs-small);
    margin-bottom: var(--sp-lg);
    display: none;
}

.interest-form__message--success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.interest-form__message--error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Timeline vertical sur mobile */
    .portfolio-timeline__track {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: var(--sp-xl);
    }

    .portfolio-timeline__milestone {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .portfolio-timeline__node {
        flex-direction: column;
        width: 40px;
        height: auto;
        margin-bottom: 0;
        margin-right: var(--sp-lg);
        flex-shrink: 0;
    }

    .portfolio-timeline__pulse {
        position: relative;
        left: auto;
        top: auto;
        width: 2px;
        height: 40px;
        transform: none;
        margin: var(--sp-xs) auto;
    }

    .portfolio-timeline__pulse::before {
        inset: 0;
    }

    .portfolio-timeline__pulse::after {
        top: -20%;
        left: -1px;
        width: 4px;
        height: 40%;
        background: linear-gradient(180deg, transparent 0%, var(--c-secondary) 30%, var(--c-tertiary) 70%, transparent 100%);
        animation-name: neuralPulseVertical;
    }

    .portfolio-timeline__content {
        padding: var(--sp-xs) 0 var(--sp-lg) 0;
    }

    .portfolio-intro__text {
        font-size: var(--fs-body);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .portfolio-filters {
        gap: var(--sp-xs);
    }

    .project-detail__header {
        padding: var(--sp-3xl) 0 var(--sp-2xl);
    }

    .project-detail__sheet {
        padding: var(--sp-xl) var(--sp-lg);
    }

    .project-detail__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-detail__meta-right {
        flex-direction: column;
        gap: var(--sp-sm);
    }

    .project-detail__actions {
        flex-direction: column;
        align-items: center;
    }

    .project-detail__actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .interest-form__row {
        grid-template-columns: 1fr;
    }

    .interest-modal__box {
        width: 95%;
        padding: var(--sp-xl);
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .project-card__body {
        padding: var(--sp-md);
    }

    .project-detail__sheet {
        padding: var(--sp-lg) var(--sp-md);
    }
}
