/* ==========================================================================
   Page publique de detail projet (Portfolio / Portefeuille)
   La feuille Tailwind du template est pre-compilee : ce fichier ecrit a la
   main tout le style de la page. Il est pilote par --pj-accent, definie en
   ligne sur le wrapper a partir de la couleur d'accent du projet.
   ========================================================================== */

.pj {
    --pj-accent: #44AA9C;
    --pj-accent-soft: color-mix(in srgb, var(--pj-accent) 12%, transparent);
    --pj-accent-line: color-mix(in srgb, var(--pj-accent) 35%, transparent);
    --pj-text: #ffffff;
    --pj-muted: rgba(255, 255, 255, 0.62);
    --pj-surface: rgba(255, 255, 255, 0.04);
    --pj-surface-strong: rgba(255, 255, 255, 0.07);
    --pj-border: rgba(255, 255, 255, 0.12);
    --pj-radius: 14px;

    color: var(--pj-text);
    overflow: hidden;
}

html.light .pj {
    --pj-text: #191b1d;
    --pj-muted: rgba(25, 27, 29, 0.65);
    --pj-surface: #f7f9fb;
    --pj-surface-strong: #ffffff;
    --pj-border: rgba(25, 27, 29, 0.1);
}

/* ---------- Rythme vertical ---------- */

.pj-section {
    padding: 60px 0;
}

.pj-section--tight {
    padding: 40px 0;
}

@media (width >= 768px) {
    .pj-section {
        padding: 90px 0;
    }

    .pj-section--tight {
        padding: 60px 0;
    }
}

@media (width >= 1200px) {
    .pj-section {
        padding: 120px 0;
    }
}

.pj-section--alt {
    background-color: var(--pj-surface);
}

.pj-section__head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.pj-section__head--start {
    margin-left: 0;
    text-align: start;
}

.pj-title {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--pj-text);
}

.pj-lead {
    font-size: 16px;
    line-height: 1.75;
    color: var(--pj-muted);
    margin: 0;
}

@media (width >= 768px) {
    .pj-title {
        font-size: 38px;
    }

    .pj-lead {
        font-size: 17px;
    }
}

.pj-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pj-accent);
    margin-bottom: 12px;
}

/* ---------- Banniere ---------- */

.pj-hero {
    position: relative;
    background-color: var(--pj-accent);
    background-image: url("../images/noise-overlay.png");
    background-blend-mode: overlay;
    padding: 140px 0 60px;
    color: #ffffff;
}

@media (width >= 992px) {
    .pj-hero {
        padding: 220px 0 100px;
    }
}

.pj-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 45%);
    pointer-events: none;
}

.pj-hero > .container {
    position: relative;
    z-index: 2;
}

.pj-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (width >= 992px) {
    .pj-hero__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 50px;
    }

    .pj-hero__grid--solo {
        grid-template-columns: minmax(0, 1fr);
        max-width: 860px;
    }
}

.pj-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
}

.pj-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.pj-breadcrumb span[aria-current] {
    color: #ffffff;
}

/* Cadre en equerre facon Volkeno */
.pj-hero__frame {
    position: relative;
    padding: 30px 0 30px 25px;
}

.pj-hero__frame::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-top: 2px solid rgba(255, 255, 255, 0.55);
}

.pj-hero__frame::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 70px;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

.pj-hero__type {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    margin-bottom: 18px;
}

.pj-hero__title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: #ffffff;
}

@media (width >= 768px) {
    .pj-hero__title {
        font-size: 52px;
    }
}

@media (width >= 1200px) {
    .pj-hero__title {
        font-size: 62px;
    }
}

.pj-hero__subtitle {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 560px;
}

.pj-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.pj-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pj-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    background-color: #191b1d;
    color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pj-store:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.pj-store i {
    font-size: 26px;
    line-height: 1;
}

.pj-store__label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.pj-store strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.pj-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pj-hero__link:hover {
    background-color: #ffffff;
    color: var(--pj-accent);
}

/* ---------- A propos ---------- */

.pj-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (width >= 992px) {
    .pj-about__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 50px;
    }
}

.pj-about__grid--solo {
    grid-template-columns: minmax(0, 1fr);
}

@media (width >= 992px) {
    .pj-about__grid--solo {
        grid-template-columns: minmax(0, 1fr);
    }

    .pj-about__grid--solo .pj-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pj-about__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--pj-radius);
}

.pj-highlights {
    display: grid;
    gap: 20px;
}

.pj-highlight {
    display: flex;
    gap: 15px;
    padding: 22px;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    background-color: var(--pj-surface-strong);
}

.pj-highlight__icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: var(--pj-accent);
}

.pj-highlight__icon svg {
    width: 100%;
    height: 100%;
}

.pj-highlight h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--pj-text);
}

.pj-highlight p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pj-muted);
    margin: 0;
}

.pj-prose {
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--pj-muted);
}

.pj-prose h2,
.pj-prose h3,
.pj-prose h4 {
    color: var(--pj-text);
    margin: 25px 0 12px;
}

.pj-prose p {
    margin: 0 0 15px;
}

.pj-prose ul,
.pj-prose ol {
    margin: 0 0 15px;
    padding-left: 20px;
    list-style: revert;
}

.pj-prose a {
    color: var(--pj-accent);
    text-decoration: underline;
}

/* ---------- Fonctionnalites ---------- */

.pj-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (width >= 576px) {
    .pj-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 992px) {
    .pj-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pj-feature {
    padding: 20px;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    background-color: var(--pj-surface-strong);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pj-feature:hover {
    transform: translateY(-5px);
    border-color: var(--pj-accent);
}

.pj-feature__icon {
    display: block;
    width: 22px;
    height: 22px;
    color: var(--pj-accent);
    margin-bottom: 12px;
}

.pj-feature__icon svg {
    width: 100%;
    height: 100%;
}

.pj-feature h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--pj-text);
}

.pj-feature p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--pj-muted);
    margin: 0;
}

/* ---------- Technologies ---------- */

.pj-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.pj-tech__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 160px;
    min-height: 110px;
    padding: 20px;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    background-color: var(--pj-surface-strong);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pj-tech__item:hover {
    transform: translateY(-5px);
    border-color: var(--pj-accent);
}

.pj-tech__item img {
    max-width: 90px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pj-tech__item span {
    font-size: 13px;
    color: var(--pj-muted);
    text-align: center;
}

/* ---------- Video ---------- */

.pj-video {
    background-color: var(--pj-accent);
    background-image: url("../images/noise-overlay.png");
    background-blend-mode: overlay;
    color: #ffffff;
}

.pj-video .pj-title,
.pj-video .pj-lead {
    color: #ffffff;
}

.pj-video .pj-lead {
    opacity: 0.85;
}

.pj-video__frame {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--pj-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.pj-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Galerie / slider ---------- */

.pj-gallery {
    position: relative;
}

.pj-gallery .swiper {
    overflow: hidden;
}

.pj-gallery .swiper-slide {
    height: auto;
}

.pj-gallery__item {
    display: block;
    border-radius: var(--pj-radius);
    overflow: hidden;
    border: 1px solid var(--pj-border);
    background-color: var(--pj-surface-strong);
}

.pj-gallery__item img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top center;
}

@media (width >= 768px) {
    .pj-gallery__item img {
        height: 340px;
    }
}

.pj-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: -40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background-color: var(--pj-accent);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pj-gallery__nav:hover {
    transform: scale(1.08);
}

.pj-gallery__nav[disabled],
.pj-gallery__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.pj-gallery__nav--prev {
    left: 0;
}

.pj-gallery__nav--next {
    right: 0;
}

/* Au-dela de la largeur du conteneur (1360px), les fleches passent a l'exterieur. */
@media (width >= 1500px) {
    .pj-gallery__nav--prev {
        left: -26px;
    }

    .pj-gallery__nav--next {
        right: -26px;
    }
}

.pj-gallery__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pj-gallery__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--pj-accent);
    opacity: 0.3;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.pj-gallery__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 26px;
    border-radius: 999px;
}

/* ---------- Fiche projet ---------- */

.pj-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--pj-border);
    border-radius: var(--pj-radius);
    overflow: hidden;
    background-color: var(--pj-surface-strong);
}

@media (width >= 768px) {
    .pj-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pj-fact {
    padding: 20px 24px;
    border-bottom: 1px solid var(--pj-border);
}

@media (width >= 768px) {
    .pj-fact:nth-child(odd) {
        border-right: 1px solid var(--pj-border);
    }

    /* Un nombre impair d'entrees : la derniere occupe toute la largeur. */
    .pj-fact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: 0;
    }
}

.pj-fact dt {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pj-muted);
    margin-bottom: 6px;
}

.pj-fact dd {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--pj-text);
    word-break: break-word;
}

.pj-fact a:hover {
    color: var(--pj-accent);
}

.pj-facts__client {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pj-facts__client img {
    max-height: 34px;
    width: auto;
}

/* ---------- CTA ---------- */

.pj-cta {
    background-color: var(--pj-accent);
    background-image: url("../images/background/pic1.png");
    background-blend-mode: multiply;
    background-size: cover;
    text-align: center;
    color: #ffffff;
}

.pj-cta .pj-title {
    color: #ffffff;
}

.pj-cta p {
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.pj-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.pj-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    background-color: #ffffff;
    color: #191b1d;
    border: 1px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pj-btn:hover {
    background-color: transparent;
    color: #ffffff;
}

.pj-btn--ghost {
    background-color: transparent;
    color: #ffffff;
}

.pj-btn--ghost:hover {
    background-color: #ffffff;
    color: #191b1d;
}
