/* ============================================================
   PROJET — styles de la page cas d'étude (project detail)
   ============================================================ */

@import './style.css';


/* ── Body ─────────────────────────────────────────────────── */

#projet-body {
    background: #ffffff;
}


/* ══════════════════════════════════════════════════════════
   HERO — image pleine largeur avec dégradés haut/bas
═══════════════════════════════════════════════════════════ */

.projet-hero {
    position: relative;
    height: 40vh;
    overflow: hidden;
    background: #030214;
}

.projet-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:  center;
    opacity: 0.2;
    display: block;
}

/* Dégradé : obscurcit le haut (nav) et le bas (titre) */
.projet-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 2, 20, 0.60) 0%,
        transparent 28%,
        transparent 48%,
        rgba(3, 2, 20, 0.72) 72%,
        rgba(3, 2, 20, 0.96) 100%
    );
    z-index: 1;
}

.projet-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3em 9%;
    z-index: 2;
    color: #ffffff;
}

.projet-hero-meta {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    align-items: center;
}

/* override global `span` font-family */
.projet-hero-meta span {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.projet-meta-cat {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.projet-meta-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.projet-meta-year {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.projet-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}


/* ══════════════════════════════════════════════════════════
   CONTENU PRINCIPAL — fond blanc
═══════════════════════════════════════════════════════════ */

.projet-main {
    background: #ffffff;
    padding-bottom: 8em;
}


/* ── Intro — tagline + description / détails ──────────────── */

.projet-intro {
    width: 82%;
    margin: 0 auto;
    padding: 5em 0 2em;
}

.projet-tagline {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 600;
    color: #030214;
    line-height: 1.25;
    max-width: 680px;
    margin-bottom: 3.5em;
}

.projet-intro-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5em;
    align-items: start;
}

.projet-intro-text {
    font-size: var(--text-md);
    color: rgba(3, 2, 20, 0.65);
    line-height: 1.8;
    margin: 0;
}

/* Détails projet — à droite */
.projet-details {
    display: flex;
    flex-direction: column;
    gap: 1.6em;
    padding-top: 0.25em;
    border-top: 1px solid rgba(3, 2, 20, 0.1);
}

.projet-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.detail-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: rgba(221, 67, 4, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.detail-value {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: #030214;
    font-weight: 400;
}

.projet-live-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #030214;
    text-decoration: none;
    padding-top: 1.2em;
    border-top: 1px solid rgba(3, 2, 20, 0.1);
    margin-top: 0.4em;
    transition: color 0.25s ease;
}

.projet-live-link:hover {
    color: #dd4304;
}

.projet-live-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.projet-live-link:hover svg {
    transform: translate(2px, -2px);
}


/* ══════════════════════════════════════════════════════════
   SECTIONS ÉDITORIALES — label gauche, contenu droite
═══════════════════════════════════════════════════════════ */

.projet-section {
    width: 82%;
    margin: 0 auto;
    padding: 4.5em 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4em;
    border-top: 1px solid rgba(3, 2, 20, 0.08);
    align-items: start;
}

.section-label {
    font-family: var(--font-title);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #030214;
    margin: 0;
    padding-top: 0.15em;
    position: sticky;
    top: 80px;
}

.section-content p {
    font-size: var(--text-md);
    color: rgba(3, 2, 20, 0.65);
    line-height: 1.82;
    margin: 0 0 1.2em;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Callout — mise en avant d'un élément clé */
.section-callout {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25em;
    margin-top: 2em;
    padding: 1.2em 1.8em;
    border-left: 3px solid #dd4304;
    background: rgba(221, 67, 4, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.section-callout p {
    font-size: var(--text-base) !important;
    color: rgba(3, 2, 20, 0.8) !important;
    font-style: italic;
    margin: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   IMAGES
═══════════════════════════════════════════════════════════ */

.projet-image-full {
    width: 82%;
    margin: 0.5em auto 0.5em;
}

.projet-image-full img {
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
    background: #e8e8e8;
}

.projet-image-grid {
    width: 82%;
    margin: 0.5em auto 0.5em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
}

.projet-image-grid img {
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
    background: #e8e8e8;
}


/* ══════════════════════════════════════════════════════════
   CTA — lien vers le projet live
═══════════════════════════════════════════════════════════ */

.projet-cta {
    width: 82%;
    margin: 0 auto;
    padding-top: 5em;
    border-top: 1px solid rgba(3, 2, 20, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.projet-cta-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(3, 2, 20, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.projet-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--font-title);
    font-size: var(--text-xl);
    font-weight: 600;
    color: #030214;
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}

.projet-cta-link:hover {
    color: #dd4304;
    gap: 1em;
}

.projet-cta-link svg {
    width: 20px;
    height: 20px;
}


/* ── Navigation retour ───────────────────────────────────── */

.projet-nav-bottom {
    width: 82%;
    margin: 3em auto 0;
}

.projet-back-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: rgba(3, 2, 20, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.projet-back-link:hover {
    color: #030214;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .projet-intro-grid {
        grid-template-columns: 1fr 280px;
        gap: 3.5em;
    }

    .projet-section {
        grid-template-columns: 160px 1fr;
        gap: 3em;
    }
}

@media (max-width: 768px) {
    .projet-hero            { height: 65vh; }
    .projet-hero-content    { padding: 2.5em 5%; }
    .projet-title           { font-size: clamp(2.5rem, 10vw, 3.5rem); }

    .projet-intro,
    .projet-section,
    .projet-image-full,
    .projet-image-grid,
    .projet-cta,
    .projet-nav-bottom {
        width: 90%;
    }

    .projet-intro           { padding: 3.5em 0 1.5em; }
    .projet-tagline         { margin-bottom: 2em; }

    .projet-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }

    .projet-section {
        grid-template-columns: 1fr;
        gap: 0.8em;
        padding: 3em 0;
    }

    .section-label {
        position: static;
        font-size: var(--text-base);
        color: #dd4304;
    }

    .projet-image-grid {
        grid-template-columns: 1fr;
    }

    .projet-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
        padding-top: 3.5em;
    }

    .projet-cta-link        { font-size: var(--text-lg); }
}
