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

body {
    background: #F5EDE8;
    color: #111;
}

/* Back link */
.pd-back {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #111;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.pd-back:hover { opacity: 1; }

/* Main wrapper */
.pd-main {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 120px;
}

/* ── Title ── */
.pd-title-section {
    margin-bottom: 40px;
    overflow: hidden;
}

.pd-title {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #111;
    transform: translateY(100%);
    opacity: 0;
}

/* ── Metadata bar ── */
.pd-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding: 14px 0;
    margin-bottom: 40px;
    opacity: 0;
}

.pd-meta-item {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
}

/* ── Hero image band ── */
.pd-hero {
    background: #F0709A;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 420px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(40px);
}

.pd-hero-img {
    width: 80%;
    max-width: 700px;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ── Body ── */
.pd-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.pd-name {
    font-size: 28px;
    font-weight: 800;
    color: #D4547A;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-intro {
    font-size: 15px;
    font-style: italic;
    color: #555;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
}

/* ── Right info blocks ── */
.pd-info-block {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-info-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.pd-info-text {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

/* ── Divider ── */
.pd-divider {
    margin-top: 80px;
    height: 1px;
    background: rgba(0,0,0,0.12);
}

/* ── Section title (shared) ── */
.pd-section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #D4547A;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

/* ── The Concept ── */
.pd-concept {
    margin-top: 80px;
}

.pd-concept-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pd-concept-subtitle {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #111;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
}

.pd-concept-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    opacity: 0;
    transform: translateY(16px);
}

.pd-concept-img-wrap {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

.pd-concept-img {
    width: 100%;
    max-width: 320px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: #F0709A;
    min-height: 280px;
    object-fit: cover;
}

/* ── Personae ── */
.pd-personae {
    margin-top: 80px;
}

.pd-persona-grid {
    display: grid;
    grid-template-columns: 220px 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pd-persona-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.pd-persona-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #F0709A;
    margin: 0 auto 16px;
    overflow: hidden;
}

.pd-persona-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-persona-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.pd-persona-tag {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.pd-persona-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-persona-traits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-persona-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-persona-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.pd-persona-box ul {
    padding-left: 16px;
}

.pd-persona-box ul li {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 6px;
}

.pd-trait {
    margin-bottom: 12px;
}

.pd-trait span {
    font-size: 12px;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

.pd-trait-bar {
    height: 4px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.pd-trait-fill {
    height: 100%;
    background: #D4547A;
    border-radius: 4px;
}

.pd-persona-quote {
    background: #E0C9BF;
    border-radius: 12px;
    padding: 24px 20px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-persona-quote p {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    font-style: italic;
}

/* ── Usage Scenario ── */
.pd-scenario { margin-top: 80px; }

.pd-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pd-scenario-card {
    border: 2px solid #D4547A;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.pd-scenario-card--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pd-scenario-card--wide p {
    padding: 20px;
    font-size: 13px;
    line-height: 1.65;
    color: #444;
    align-self: center;
}

.pd-scenario-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5e8e4;
    overflow: hidden;
}

.pd-scenario-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-scenario-card > p {
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

/* ── User Flow ── */
.pd-userflow { margin-top: 80px; }

.pd-flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(20px);
}

/* ─ Upper section (right-aligned) ─ */
.pd-flow-upper {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    margin-bottom: 8px;
}

.pd-flow-upper-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.pd-flow-node {
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.pd-flow-start {
    background: #F0A0B8;
    color: #111;
}

.pd-flow-outline {
    border: 1px solid #bbb;
    background: #fff;
    color: #444;
    font-weight: 400;
    font-size: 12px;
}

.pd-flow-pink {
    background: #F0A0B8;
    color: #111;
    margin-bottom: 16px;
}

.pd-flow-vline {
    width: 1px;
    height: 24px;
    background: #bbb;
}

/* Decision diamond row */
.pd-flow-decision-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-flow-d-label {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

.pd-flow-diamond {
    width: 18px;
    height: 18px;
    background: #F0A0B8;
    border: 1.5px solid #D4547A;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Auth row */
.pd-flow-auth-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 0;
}

.pd-flow-auth-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Onboarding list beside S'inscrire */
.pd-flow-onboarding {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 20px;
    border-left: 1px solid #bbb;
    margin-top: 8px;
}

.pd-flow-onboarding span {
    font-size: 11px;
    color: #888;
}

/* ─ Lower section (three branches) ─ */
.pd-flow-lower {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1.5px solid #ccc;
    padding-top: 24px;
    margin-top: 24px;
}

.pd-flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Horizontal children row */
.pd-flow-h-children {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #ccc;
    padding-top: 14px;
    width: 100%;
}

.pd-flow-child-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pd-flow-child-node {
    display: block;
    font-size: 12px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 14px;
    white-space: nowrap;
}

.pd-flow-sub-node {
    display: block;
    font-size: 11px;
    color: #888;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* ── Understanding the App ── */
.pd-understanding {
    padding: 80px 0 40px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-understanding-title {
    font-family: var(--font-sans);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    color: #D4547A;
    margin-bottom: 28px;
}

.pd-understanding-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    max-width: 700px;
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(16px);
}

.pd-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(24px);
}

.pd-feature-label {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    text-align: center;
}

/* iPhone-style phone mockup */
.pd-phone-frame {
    width: 220px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 14px 10px;
    box-shadow: 0 0 0 2px #3a3a3a, 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
}

.pd-phone-notch {
    width: 80px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
    position: relative;
    z-index: 2;
}

.pd-phone-screen {
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
}

.pd-phone-screen img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Reversed: text left, phone right */
.pd-feature--reverse {
    direction: rtl;
}
.pd-feature--reverse > * {
    direction: ltr;
}

.pd-feature-text {
    text-align: center;
}

.pd-feature-problem {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #111;
    margin-bottom: 14px;
    margin-top: 0;
}

.pd-feature-solution {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #111;
    margin-top: 32px;
    margin-bottom: 14px;
}

.pd-feature-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* ── Visual Identity ── */
.pd-visual-identity {
    padding: 80px 0 40px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-vi-title {
    font-family: var(--font-sans);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 500;
    color: #D4547A;
    margin-bottom: 50px;
    font-style: italic;
}

.pd-vi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pd-vi-card {
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.pd-vi-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ── Video Description ── */
.pd-video {
    padding: 80px 0 40px;
    opacity: 0;
    transform: translateY(20px);
}

.pd-video-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    max-width: 700px;
    margin-bottom: 50px;
}

.pd-qr-wrap {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
}

.pd-qr {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

/* ── Next Project ── */
.pd-next {
    padding: 80px 0 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.pd-next-thumb {
    width: 220px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.pd-next-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.pd-next-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-next-label {
    font-family: var(--font-sans);
    font-size: clamp(40px, 7vw, 90px);
    font-weight: 800;
    color: #111;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pd-next-arrow-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pd-next-arrow {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 300;
    color: #111;
    line-height: 1;
}

.pd-next:hover .pd-next-label,
.pd-next:hover .pd-next-arrow {
    color: #D4547A;
    transition: color 0.3s ease;
}
