html {
    background-color: var(--adp-bg);
}

body {
    background-color: transparent;
    color: var(--adp-black);
    margin: 0;
    font-family: var(--adp-font-body);
    overflow-x: hidden;
    position: relative;
}

/* Specific background for project pages if needed */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.project-hero {
    height: 85vh;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: var(--adp-blue-dark);
    padding-top: var(--adp-nav-height);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    z-index: 0;
    transition: transform 8s ease;
}

.project-hero:hover .hero-img {
    transform: scale(1.04);
}

/* Dégradé bas pour lisibilité du texte */
.project-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11,47,91,0.85) 0%,
        rgba(11,47,91,0.3) 45%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: left;
    padding: 3rem clamp(1.5rem, 4vw, 4rem);
    position: relative;
    z-index: 2;
    color: var(--adp-white);
    max-width: var(--adp-container);
    width: 100%;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--adp-font-heading);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    font-family: var(--adp-font-body);
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.container {
    max-width: var(--adp-container);
    margin: 0 auto;
    padding: 4rem clamp(1.5rem, 4vw, 4rem);
}

.project-description {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .project-description {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.desc-text p {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--adp-gray-text);
    margin-bottom: 1.5rem;
    font-family: var(--adp-font-body);
}

.desc-text h2 {
    font-family: var(--adp-font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--adp-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-specs {
    background: var(--adp-surface);
    padding: 2rem;
    border-radius: 12px;
    height: fit-content;
}

.spec-item {
    margin-bottom: 1.5rem;
}

.spec-label {
    display: block;
    font-size: 0.72rem;
    font-family: var(--adp-font-body);
    font-weight: 600;
    color: var(--adp-blue);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    letter-spacing: 0.15em;
}

.spec-value {
    font-family: var(--adp-font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--adp-black);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--adp-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--adp-surface);
    transition: var(--adp-transition-mid);
}

.gallery-item:hover {
    box-shadow: var(--adp-shadow-lg);
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Carte featured : span 2 colonnes */
.gallery-item[style*="grid-column"] {
    aspect-ratio: 16/9;
}

@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-item[style*="grid-column"] { grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 560px) {
    .gallery { grid-template-columns: 1fr; gap: 0.75rem; }
    .gallery-item, .gallery-item[style*="grid-column"] {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

.back-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--adp-black);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: none;
}

.btn-back:hover {
    background: var(--adp-blue);
    color: #ffffff;
}

.project-footer {
    text-align: center; 
    padding: 4rem 3vw; 
    color: var(--adp-gray-muted);
    border-top: 1px solid #eee;
}

/* Curseur géré par adp-shared.css */
@media (pointer: fine) {
    * { cursor: none; }
}
