/* =============================================
   STYLE.CSS — OPHELIA PORTFOLIO
   CSS centralisé pour toutes les pages
   ============================================= */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream-bg: #F0F2E6;
    --dark: #1a1a1a;
    --red-accent: #e63329;
    --white: #ffffff;
    --sage: #9CAF88;
    --terracotta: #E07A5F;
    --cream: #F4F1DE;
    --light: #FEFCF8;
}

body {
    font-family: 'Georgia', serif;
    background: var(--cream-bg);
    color: var(--dark);
    line-height: 1.6;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--dark);
    padding: 0 4%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #4caf50;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-character {
    width: 97px;
    height: 87px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 24px;
}

.nav-character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-character-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #444;
    border: 2px dashed #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
    color: #888;
    text-align: center;
}

.nav-title {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4caf50;
}

/* =============================================
   SECTIONS GÉNÉRIQUES — accueil uniquement
   (les pages projet utilisent .pj-hero, .pj-main)
   ============================================= */
#projets,
#contact {
    padding: 8rem 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4rem;
    color: var(--dark);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--red-accent);
}

/* =============================================
   HERO — PAGE ACCUEIL
   ============================================= */
section.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 8%;
    margin-top: 80px;
}

.hero-text h1 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-text h2 {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    margin-bottom: 3rem;
    max-width: 480px;
}

.cta-button {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: transparent;
    color: var(--black);
    text-decoration: none;
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--red-accent);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--white);
    color: var(--dark);
}


.button1 {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.button1:hover {
    background: var(--white);
    color: var(--dark);
}

/* =============================================
   SECTION À PROPOS — PAGE ACCUEIL
   ============================================= */
#about {
    padding: 8rem 8%;
    background: var(--cream-bg);
    max-width: 100%;
}

.about-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.about-photo-cutout {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    clip-path: polygon(
        5% 0%, 95% 0%, 100% 2%, 100% 98%, 95% 100%,
        5% 100%, 0% 98%, 0% 2%
    );
    background: transparent !important;
    background-color: transparent !important;
}

.about-photo-cutout img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    object-position: top center;
}

.about-photo-cutout video {
    background: transparent !important;
    background-color: transparent !important;
}

.about-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.about-text-col {
    position: relative;
}

.about-title-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-title-row h2 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1;
    white-space: nowrap;
}

.about-character {
    width: 20%;
    height: 20%;
    flex-shrink: 0;
}

.about-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-character-placeholder {
    width: 70px;
    height: 70px;
    background: #ddd;
    border: 2px dashed #aaa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #aaa;
    text-align: center;
    flex-shrink: 0;
}

.about-red-line {
    width: 80px;
    height: 3px;
    background: var(--red-accent);
    margin-bottom: 2.5rem;
}

.about-text-col p {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.about-cv-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 40px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.about-cv-btn:hover {
    background: #333;
}

/* =============================================
   PROJETS GRID — PAGE ACCUEIL
   ============================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.project-card * {
    text-decoration: none !important;
    border-color: #2D2D2A;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, var(--cream-bg), rgba(26,26,26,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay::before {
    content: '→';
    font-family: "kuhlman-vf", sans-serif;
    font-size: 2rem;
    color: var(--red-accent);
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 0 2rem;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.project-info {
    padding: 2rem;
    background: white;
    height: 30%;
    border-top: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.project-card:hover .project-info {
    border-top-color: var(--red-accent);
}

.project-info h3 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.project-tag {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =============================================
   CONTACT — PAGE ACCUEIL
   ============================================= */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > p {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item { font-size: 1.2rem; }

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--red-accent);
    transition: color 0.3s ease;
    font-family: "ltc-octic-gothic-two", sans-serif;
}

.contact-item a:hover { color: var(--red-accent); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--dark);
    color: var(--cream);
    text-align: center;
    padding: 3rem 8%;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* =============================================
   PAGES PROJET — ÉLÉMENTS COMMUNS
   Utilisés par projet1.html → projet6.html
   ============================================= */

/* ---- Lien retour ---- */
.pj-back {
    position: fixed;
    top: 100px;
    left: 4%;
    z-index: 500;
}

.pj-back a {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

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

/* ---- Hero projet ---- */
section.pj-hero {
    min-height: 55vh;
    padding: 11rem 8% 5rem;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-end;
    background: var(--cream-bg);
    position: relative;
    overflow: hidden;
}

.pj-hero::before {
    content: 'PROJET';
    position: absolute;
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 18vw;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    text-transform: uppercase;
    letter-spacing: -4px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.pj-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: 4rem;
}

.pj-category {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--red-accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pj-category::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--red-accent);
}

.pj-hero h1 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: -3px;
    line-height: 1;
}

.pj-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
}

.pj-meta span {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #888;
}

.pj-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--red-accent) 80px, rgba(0,0,0,0.1) 80px);
    margin: 0;
}

/* ---- Layout principal ---- */
.pj-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 8%;
}

/* ---- Intro grid ---- */
.pj-intro {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 6rem;
    margin-bottom: 7rem;
}

.pj-about h2 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.pj-about .pj-red-line {
    width: 50px;
    height: 2px;
    background: var(--red-accent);
    margin-bottom: 2rem;
}

.pj-about p {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.2rem;
}

/* ---- Sidebar infos ---- */
.pj-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pj-sidebar-title {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.5rem;
}

.pj-info-item {
    padding: 1.2rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pj-info-item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pj-info-label {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red-accent);
}

.pj-info-value {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--dark);
}

.pj-tools {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.pj-tool-tag {
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--dark);
    color: var(--dark);
}

/* ---- En-tête galerie (commun) ---- */
.pj-gallery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.pj-gallery-title {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 0.4rem;
}

.pj-gallery-count {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #999;
}

/* ---- Bloc téléchargement / CTA dark ---- */
.pj-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4rem;
    background: var(--dark);
    margin-bottom: 7rem;
}

.pj-download-text h3 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    letter-spacing: -1px;
}

.pj-download-text p {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
}

.pj-download-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pj-download-btn:hover {
    background: white;
    color: var(--dark);
}

/* ---- CTA contact bas de page projet ---- */
.pj-cta {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 6rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
}

.pj-cta h2 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: -2px;
    line-height: 1.1;
}

.pj-cta h2 span {
    color: var(--red-accent);
}

.pj-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    font-family: "ltc-octic-gothic-two", sans-serif;
}

.back-link:hover { color: var(--red-accent); }

/* ---- Lightbox commune ---- */
.pj-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(10,10,10,0.97);
    align-items: center;
    justify-content: center;
}

.pj-lightbox.active { display: flex; }

.pj-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.pj-lb-close {
    position: fixed;
    top: 2rem;
    right: 2.5rem;
    color: white;
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.pj-lb-close:hover { opacity: 1; }

/* ---- Lightbox avec navigation (projet4) ---- */
.pj-lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.pj-lb-img-wrap img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.pj-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s;
    font-family: "ltc-octic-gothic-two", sans-serif;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.pj-lb-nav:hover { opacity: 1; }
.pj-lb-prev { left: 2rem; }
.pj-lb-next { right: 2rem; }

.pj-lb-counter {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* =============================================
   GALERIE PROJET 1 & PROJET 3 — grille portrait
   (projet1.html, projet3.html)
   ============================================= */
.pj-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 7rem;
}

.pj-gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #e8ead8;
}

.pj-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.pj-gallery-item::after {
    content: 'VOIR';
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.7);
    color: white;
    font-family: "ltc-octic-gothic-two", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pj-gallery-item:hover::after {
    opacity: 1;
}

/* Disposition asymétrique — Projet 1 (identité visuelle) */
#page-projet1 .pj-gallery-item:nth-child(1) { grid-column: 1 / 8; aspect-ratio: 4/3; }
#page-projet1 .pj-gallery-item:nth-child(2) { grid-column: 8 / 13; aspect-ratio: 3/4; }
#page-projet1 .pj-gallery-item:nth-child(3) { grid-column: 1 / 5; aspect-ratio: 3/4; }
#page-projet1 .pj-gallery-item:nth-child(4) { grid-column: 5 / 13; aspect-ratio: 16/9; }

/* Disposition portrait égale — Projet 3 (affiches déco) */
#page-projet3 .pj-gallery-item:nth-child(1) { grid-column: 1 / 5; aspect-ratio: 2/3; }
#page-projet3 .pj-gallery-item:nth-child(2) { grid-column: 5 / 9; aspect-ratio: 2/3; }
#page-projet3 .pj-gallery-item:nth-child(3) { grid-column: 9 / 13; aspect-ratio: 2/3; }

/* =============================================
   GALERIE PROJET 2 — captures web (paysage)
   (projet2.html)
   ============================================= */
.pj-gallery-web {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 7rem;
}

.pj-gallery-web-item {
    overflow: hidden;
    position: relative;
    background: #e8ead8;
    cursor: pointer;
}

.pj-gallery-web-item:nth-child(1) { grid-column: 1 / 13; aspect-ratio: 16/7; }
.pj-gallery-web-item:nth-child(2) { grid-column: 1 / 7;  aspect-ratio: 16/9; }
.pj-gallery-web-item:nth-child(3) { grid-column: 7 / 13; aspect-ratio: 16/9; }

.pj-gallery-web-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pj-gallery-web-item:hover img { transform: scale(1.03); }

/* =============================================
   GALERIE PROJET 4 — grille masonry photo
   (projet4.html)
   ============================================= */
.pj-photo-grid {
    columns: 3;
    column-gap: 1rem;
    margin-bottom: 7rem;
}

.pj-photo-grid-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: block;
}

.pj-photo-grid-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pj-photo-grid-item:hover img { transform: scale(1.03); }

.pj-photo-grid-item::after {
    content: '↗';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: white;
    color: var(--dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.pj-photo-grid-item:hover::after { opacity: 1; }

/* =============================================
   GALERIE PROJET 5 — captures vidéo interview
   (projet5.html)
   ============================================= */
.pj-gallery-video {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 7rem;
}

.pj-gallery-video-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
}

.pj-gallery-video-item:nth-child(1) { grid-column: 1 / 13; aspect-ratio: 16/6; }
.pj-gallery-video-item:nth-child(2) { grid-column: 1 / 5;  aspect-ratio: 16/9; }
.pj-gallery-video-item:nth-child(3) { grid-column: 5 / 9;  aspect-ratio: 16/9; }
.pj-gallery-video-item:nth-child(4) { grid-column: 9 / 13; aspect-ratio: 16/9; }

.pj-gallery-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pj-gallery-video-item:hover img { transform: scale(1.03); }

.pj-gallery-video-item::after {
    content: '▶';
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.6);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pj-gallery-video-item:hover::after { opacity: 1; }

/* ---- Bloc lecteur vidéo (projet5) ---- */
.pj-video-block {
    margin-bottom: 7rem;
}

.pj-video-block h3 {
    font-family: "kuhlman-vf", sans-serif;
    font-variation-settings: "SEED" 0, "wdth" 100;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 0.4rem;
}

.pj-video-line {
    width: 50px;
    height: 2px;
    background: var(--red-accent);
    margin-bottom: 2rem;
}

.pj-video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--dark);
    overflow: hidden;
}

.pj-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   GALERIE PROJET 6 — peinture (2 items côte à côte)
   (projet6.html)
   ============================================= */
#page-projet6 .pj-gallery {
    grid-template-columns: repeat(8, 1fr);
}

#page-projet6 .pj-gallery-item:nth-child(1) { grid-column: 1 / 5; aspect-ratio: 2/3; }
#page-projet6 .pj-gallery-item:nth-child(2) { grid-column: 5 / 9; aspect-ratio: 2/3; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 576px) {

    /* Nav */
    nav { padding: 0 5%; }
    .nav-links { gap: 1.5rem; }

    /* Sections génériques */
    section { padding: 5rem 5%; }

    /* Hero accueil */
    .hero-text h1 { font-size: 3.5rem; }

    /* À propos accueil */
    .about-inner { grid-template-columns: 1fr; gap: 3rem; }
    .about-title-row h2 { font-size: 2.5rem; }

    /* Projets grid */
    .projects-grid { grid-template-columns: 1fr; }

    /* Pages projet — commun */
    .pj-back { position: static; padding: 6rem 5% 1rem; }
    .pj-hero { padding: 2rem 5% 4rem; min-height: auto; }
    .pj-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .pj-meta { align-items: flex-start; }
    .pj-main { padding: 4rem 5%; }
    .pj-intro { grid-template-columns: 1fr; gap: 3rem; }
    .pj-download { flex-direction: column; gap: 2rem; padding: 2.5rem; text-align: center; }
    .pj-cta { grid-template-columns: 1fr; gap: 2.5rem; }
    .pj-cta-actions { align-items: flex-start; }

    /* Galerie projet 1 & 3 */
    .pj-gallery { grid-template-columns: 1fr; gap: 1rem; }
    #page-projet1 .pj-gallery-item:nth-child(n),
    #page-projet3 .pj-gallery-item:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4/3; }

    /* Galerie projet 2 */
    .pj-gallery-web { grid-template-columns: 1fr; gap: 1rem; }
    .pj-gallery-web-item:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 16/9; }

    /* Galerie projet 3 (portrait) */
    #page-projet3 .pj-gallery { grid-template-columns: 1fr 1fr; gap: 1rem; }
    #page-projet3 .pj-gallery-item:nth-child(n) { grid-column: auto; aspect-ratio: 2/3; }

    /* Galerie projet 4 */
    .pj-photo-grid { columns: 2; }

    /* Galerie projet 5 */
    .pj-gallery-video { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .pj-gallery-video-item:nth-child(n) { grid-column: auto; aspect-ratio: 16/9; }
    .pj-gallery-video-item:nth-child(1) { grid-column: 1 / -1; }

    /* Galerie projet 6 */
    #page-projet6 .pj-gallery { grid-template-columns: 1fr 1fr; gap: 1rem; }
    #page-projet6 .pj-gallery-item:nth-child(n) { grid-column: auto; aspect-ratio: 2/3; }
}

/* =============================================
   MENU BURGER — MOBILE
   ============================================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 578px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
    }
}