/* ============================================================
   Les Planches Courbes — Réalisations
   Style sobre pour démo : sans-serif système, grille régulière,
   pas d'ornements, pas de fond papier, pas d'animations.
   ============================================================ */

.lpc-app{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    color: #222;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.5;
}
.lpc-app *,
.lpc-app *::before,
.lpc-app *::after { box-sizing: border-box; }

.lpc-app button{
    font: inherit; color: inherit;
    background: none; border: none; padding: 0;
    cursor: pointer; text-align: inherit;
}
.lpc-app img{ max-width: 100%; height: auto; display: block; }


/* ---------- Breadcrumb ---------- */
.lpc-crumb{
    font-size: 14px;
    margin-bottom: 32px;
    color: #666;
    min-height: 1.2em;
}
.lpc-crumb button{
    color: #444;
    text-decoration: underline;
}
.lpc-crumb button:hover{ color: #000; }
.lpc-crumb .sep{ margin: 0 8px; color: #ccc; }
.lpc-crumb .here{ color: #000; font-weight: 500; }


/* ---------- Stage transitions ---------- */
.lpc-stage{ transition: opacity .2s ease; }
.lpc-stage.is-out{ opacity: 0; }


/* ============================================================
   View 1 — Catégories
   ============================================================ */
.v-cats__head{ margin-bottom: 36px; }
.v-cats__kicker{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 6px;
}
.v-cats__title{
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px;
}
.v-cats__title em{ font-style: normal; }
.v-cats__lede{
    color: #555;
    max-width: 640px;
    margin: 0;
    font-size: 15px;
}

.cats-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}
.cat{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.cat__frame{
    display: block;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
}
.cat__img{
    width: 100%; height: 100%;
    object-fit: cover;
}
.cat__placeholder{
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 4px;
    font-size: 14px; color: #999;
}
.cat__placeholder small{ color: #bbb; font-size: 11px; }
.cat__meta{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.cat__name{ font-weight: 500; font-size: 16px; }
.cat__count{ font-size: 13px; color: #888; }
.cat:hover .cat__frame{ border-color: #999; }


/* ============================================================
   View 2 — Pièces dans une catégorie
   ============================================================ */
.v-projects__head{ margin-bottom: 32px; }
.v-projects__count{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 6px;
}
.v-projects__title{
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px;
}
.v-projects__lede{
    color: #555; max-width: 640px;
    margin: 0; font-size: 15px;
}

.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}
.project{
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.project__num{
    font-size: 11px;
    color: #aaa;
    letter-spacing: .05em;
}
.project__frame{
    display: block;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}
.project__img{
    width: 100%; height: 100%;
    object-fit: cover;
}
.project__title{ font-size: 15px; font-weight: 500; }
.project__title em{
    font-style: normal;
    color: #888;
    font-weight: 400;
    margin-left: 4px;
}
.project__sub{ font-size: 13px; color: #888; }
.project:hover .project__frame{ border-color: #999; }


/* ============================================================
   View 3 — Pièce unique (déroulé)
   ============================================================ */
.v-single__intro{ margin-bottom: 28px; }
.v-single__num{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 8px;
}
.v-single__title{
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.v-single__title em{
    font-style: normal;
    color: #888;
    font-weight: 400;
    margin-left: 8px;
}

.specs{
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 16px 0;
    margin-bottom: 32px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
}
.specs__cell{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.specs__label{
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.specs__value{ color: #222; }

.descr{ margin-bottom: 40px; max-width: 720px; }
.descr__kicker{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #888;
    margin-bottom: 12px;
}
.descr__body p{ margin: 0 0 12px; }
.descr__quote{
    margin: 20px 0 0;
    padding: 8px 0 8px 16px;
    border-left: 3px solid #ddd;
    color: #555;
    font-style: italic;
    font-size: 15px;
}

.scroll-strip{
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}
.scroll-strip__shot{ margin: 0; }
.scroll-strip__shot img{ width: 100%; height: auto; }
.scroll-strip__caption{
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.lpc-pagenav{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}
.lpc-pagenav button{
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 14px;
    color: #444;
}
.lpc-pagenav button:last-child{
    text-align: right;
    align-items: flex-end;
}
.lpc-pagenav .lbl{ font-size: 12px; color: #888; }
.lpc-pagenav .nm{ font-weight: 500; }
.lpc-pagenav button:hover{ color: #000; }


/* ---------- Responsive ---------- */
@media (max-width: 640px){
    .lpc-app{ padding: 24px 16px; }
    .v-cats__title{ font-size: 24px; }
    .v-projects__title{ font-size: 22px; }
    .v-single__title{ font-size: 24px; }
    .cats-grid,
    .projects-grid{
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    .specs{ gap: 16px 24px; }
}
