/*
* Projet.css - Harmonisé avec About.css
* Utilise les mêmes polices, couleurs et styles
*/

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Glacial+Indifference&display=swap');

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream-light: #FFF8F0;
    --cream-medium: #F5EBE0;
    --cream-dark: #E8D7C3;
    --accent-primary: #a20b1d;
    --accent-secondary: #8a0916;
    --accent-light: #c94d5a;
    --text-dark: #2C2416;
    --text-medium: #5C4F3D;
    --text-light: #8B7E6A;
    --white: #FFFFFF;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --shadow-bordeaux: rgba(162, 11, 29, 0.3);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-family: 'Glacial Indifference', sans-serif;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'League Gothic', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-primary);
    transition: var(--transition);
}

h2:hover::after {
    width: 100%;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    font-family: 'Glacial Indifference', sans-serif;
    color: var(--text-medium);
}

a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Glacial Indifference', sans-serif;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

/* === LAYOUT === */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    min-height: 70vh;
    padding: 2rem 0;
}

/* === PROJECT HEADER === */
.project-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.header-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Pas de filtre rouge sur les images */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badge projet */
.project-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Métas */
.project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cream-dark);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.meta-value {
    font-weight: 600;
    color: var(--accent-secondary);
    font-size: 1.05rem;
}

/* Tags */
.header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background-color: var(--cream-medium);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid var(--cream-dark);
    transition: var(--transition);
}

.tag:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--white);
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px var(--shadow-bordeaux);
}

/* === PROJECT CONTENT === */
.project-container {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.project-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 11, 29, 0.1), transparent);
    transition: left 0.5s;
}

.project-container:hover::before {
    left: 100%;
}

.project-description p {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* === SKILLS === */
.project-skills {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill-item {
    padding: 0.7rem 1.2rem;
    background-color: var(--cream-medium);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--cream-dark);
}

.skill-item:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--white);
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px var(--shadow-bordeaux);
}

/* === VIDEO === */
.project-video {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.video-container {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Masquer le lien YouTube sous la vidéo */
.video-link {
    display: none;
}

.video-icon {
    display: none;
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: var(--transition);
    background-color: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* === BUTTONS === */
.project-links-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-dark);
}

.links-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn,
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow-bordeaux);
}

.btn:hover,
.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-bordeaux);
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.btn svg,
.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-5px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-header,
.project-container,
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .project-header {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .header-image {
        height: 300px;
    }

    .header-content {
        padding: 2rem;
    }

    .project-container {
        padding: 2rem;
    }

    .video-container iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 2rem 1.5rem;
    }

    .container {
        width: 90%;
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .header-content {
        padding: 1.5rem;
    }

    .project-container {
        padding: 1.5rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-container iframe {
        height: 250px;
    }

    .btn,
    .back-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .header-image {
        height: 200px;
    }

    .project-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .tag,
    .skill-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .video-container iframe {
        height: 200px;
    }
}

/* === ACCESSIBILITY === */
.btn:focus,
.back-btn:focus,
.gallery-item:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .project-header,
    .project-container {
        box-shadow: none;
        border: 1px solid var(--cream-dark);
    }

    .btn,
    .back-btn {
        display: none;
    }
}