/*
Theme Name: Virgile Portfolio
Author: Virgile Lhomme
Version: 1.0
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Works Archive */
.works-archive {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.works-archive h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.work-item a {
    text-decoration: none;
    color: inherit;
}

.work-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-item h2 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: #333;
}

.work-meta {
    padding: 0 20px;
    font-size: 0.9rem;
    color: #666;
}

.work-meta span {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

.work-resume {
    padding: 10px 20px 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Single Work Page - Full Dark Background */
body.single-work {
    background: #2a2a2a;
    color: #f4f4f8;
}

body.single-work * {
    color: #f4f4f8;
}

body.single-work a {
    color: #e8e8f0;
}

body.single-work h1,
body.single-work h2,
body.single-work h3 {
    color: #ffffff;
}

/* Work Detail Page */
.work-container {
    padding-top: 30px;
}
.work-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #f4f4f8;
}

.work-detail h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #ffffff;
}

.work-affiche {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.work-meta {
    list-style: none;
    margin-bottom: 30px;
}

.work-meta li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.work-video {
    margin-bottom: 40px;
    text-align: center;
    max-width: 1450px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.work-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

@media (max-width: 1024px) {
    .work-video {
        width: min(100vw, 1200px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .work-video {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0;
    }
}

.work-resume,
.work-synopsis,
.work-content {
    margin-bottom: 30px;
}

.work-resume h2,
.work-synopsis h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* background: linear-gradient(135deg, #261825 0%, #350861 100%); */
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.navbar-brand a:hover {
    opacity: 0.8;
}

.brand-initial {
    font-size: 2.2rem;
    font-weight: 900;
    margin-right: 5px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 25px 18px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-color: white;
}

.navbar-link.active {
    color: white;
    border-bottom-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-cta {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 20px !important;
    margin: 0 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.navbar-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== CONTENT WRAPPER ===== */
main {
    margin-top: 70px;
}

/* ===== PAGE HEADER STYLES ===== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* ===== PAGE CONTENT STYLES ===== */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.page-content h3 {
    font-size: 1.3rem;
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-content p {
    margin-bottom: 15px;
    color: #555;
}

.page-content strong {
    color: #333;
    font-weight: 600;
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===== ACTUALITES/BLOG STYLES ===== */
.posts-archive {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-item {
    background: white;
    border-left: 5px solid #667eea;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.post-item a {
    text-decoration: none;
    color: inherit;
}

.post-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.post-item h2 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.post-item:hover h2 {
    color: #667eea;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.read-more {
    display: inline-block;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
    margin-right: -5px;
}

.read-more::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.3s ease;
}

.post-item:hover .read-more::after {
    transform: translateX(5px);
}

/* ===== TEAM/COLLECTIF STYLES ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    background: white;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #667eea;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
}

.team-member .role {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-member p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header/Navbar */
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        text-align: center;
        transition: 0.3s;
        width: 100%;
        border-radius: 0;
        gap: 0;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-link {
        display: block;
        padding: 20px !important;
        width: 100%;
        transition: 0.3s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .navbar-link.active {
        background: rgba(255, 255, 255, 0.15);
    }

    .navbar-cta {
        margin: 10px 0 !important;
        border-radius: 0;
        padding: 20px !important;
    }

    /* Content */
    main {
        margin-top: 70px;
    }

    .page-header {
        padding: 40px 20px 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Form */
    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }

    .form-submit {
        padding: 12px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .works-list {
        grid-template-columns: 1fr;
    }

    .work-detail h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .navbar-brand a {
        font-size: 1.4rem;
    }
}
