/* ===================================
   Reset & Base Styles
   =================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --muted-color: #333333;
    --card-bg: #f5f5f5;
    --border-color: #000000;
    --nl-section-bg: #ffffff;
    --nl-title-color: #000000;
    --nl-input-bg: #ffffff;
    --nl-input-text: #000000;
    --nl-border: #000000;
    --nl-placeholder: #888888;
    --nl-btn-bg: #000000;
    --nl-btn-text: #f5f5f5;
    --nl-btn-hover: #333333;
}

body.theme-dark {
    --bg-color: #0f0f10;
    --text-color: #f5f5f5;
    --muted-color: #ffffff;
    --card-bg: #1b1b1d;
    --border-color: #f5f5f5;
    --nl-section-bg: #000000;
    --nl-title-color: #ffffff;
    --nl-input-bg: #111111;
    --nl-input-text: #ffffff;
    --nl-border: #ffffff;
    --nl-placeholder: #bbbbbb;
    --nl-btn-bg: #ffffff;
    --nl-btn-text: #000000;
    --nl-btn-hover: #dddddd;
}

body {
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography - Myriad Pro
   =================================== */
@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Regular.woff2') format('woff2'),
         url('../fonts/MyriadPro-Regular.woff') format('woff'),
         url('https://fonts.cdnfonts.com/s/12755/MyriadPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    line-height: 1.2;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    position: relative;
    left: 0;
    transform: none;
    z-index: 10;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 30px;
}

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

.menu-list li {
    position: relative;
}

.menu-list li a {
    font-size: 14px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

.menu-list li.has-submenu > a::after {
    display: none;
}

.portfolio-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 10px;
}

.menu-list li.has-submenu:hover .portfolio-submenu,
.menu-list li.has-submenu.active .portfolio-submenu {
    display: block;
}

.portfolio-submenu li {
    list-style: none;
    margin: 0;
}

.portfolio-submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #000000;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.portfolio-submenu li a:hover {
    background-color: #f5f5f5;
    padding-left: 25px;
}

.menu-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.menu-list li a:hover::after,
.menu-list li a.active::after {
    width: 100%;
}

.shop-icon {
    font-size: 20px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.shop-icon:hover {
    transform: translateY(-2px);
}

.shop-icon.active {
    opacity: 0.7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
    display: block;
}

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

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

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

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    z-index: 999;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-list li a {
    font-size: 16px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.35);
}

.menu-tools,
.mobile-menu-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-tool-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 18px;
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.menu-tool-btn.active {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.mobile-portfolio-parent {
    position: relative;
}

.mobile-portfolio-submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.mobile-portfolio-parent.active .mobile-portfolio-submenu {
    display: block;
}

.mobile-portfolio-submenu li a {
    font-size: 14px;
    padding: 8px 0;
    text-transform: none;
    letter-spacing: 1px;
}

.mobile-menu-list li a:hover {
    padding-left: 10px;
}

.mobile-shop-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-shop-link i {
    font-size: 18px;
}

/* ===================================
   Slider
   =================================== */
.slider-section {
    margin-top: 100px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-style: italic;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1.6;
    max-width: 90%;
    z-index: 10;
}

.slide-text p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-section .slide-text,
.slider-section .slide-text p {
    color: #ffffff !important;
}

/* ===================================
   Categories Section
   =================================== */
.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
}

.category-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 33px;
    cursor: pointer;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.category-overlay h2 {
    color: #ffffff;
    font-size: 48px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}

.category-card:hover img {
    transform: none;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter-section {
    padding: 100px 0;
    background-color: var(--nl-section-bg);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 14px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: var(--nl-title-color);
    line-height: 1.5;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section .form-group {
    display: flex;
    gap: 0;
    border: 2px solid var(--nl-border);
    border-radius: 25px;
    overflow: hidden;
}

.newsletter-section .form-group input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    background-color: var(--nl-input-bg);
    color: var(--nl-input-text);
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    border-radius: 25px 0 0 25px;
}

.newsletter-section .form-group input[type="email"]::placeholder {
    color: var(--nl-placeholder);
}

.newsletter-section .submit-btn {
    padding: 15px 40px;
    background-color: var(--nl-btn-bg);
    color: var(--nl-btn-text);
    border: none;
    cursor: pointer;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 25px;
}

.newsletter-section .submit-btn:hover {
    background-color: var(--nl-btn-hover);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 60px 0 30px;
    background-color: #ffffff;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-icons a {
    font-size: 24px;
    color: #000000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
    width: auto;
    margin: 0 auto;
    opacity: 0.7;
}

.copyright {
    font-size: 12px;
    color: #666666;
    letter-spacing: 1px;
}

/* ===================================
   Page Content
   =================================== */
.page-content {
    margin-top: 100px;
    min-height: calc(100vh - 300px);
    padding: 60px 0;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .categories-grid {
        max-width: 90%;
    }
    
    .category-card {
        height: 400px;
    }
    
    .category-overlay h2 {
        font-size: 36px;
    }
    
    .category-card img {
        object-fit: contain;
    }

    .home-works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .portfolio-grid,
    .portfolio-grid.few-items,
    .portfolio-grid.many-items {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .portfolio-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 15px 0;
    }
    
    .logo {
        position: relative;
        transform: none;
        left: 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        margin-left: 0;
    }
    
    .menu-list {
        display: none;
    }
    
    .shop-icon {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .slider-section {
        margin-top: 80px;
    }
    
    .slider-container {
        height: 50vh;
        min-height: 400px;
    }
    
    .slide-text {
        font-size: 18px;
        bottom: 30px;
        padding: 0 20px;
    }
    
    .categories-section {
        padding: 60px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
        gap: 30px;
    }
    
    .category-card {
        height: 350px;
    }
    
    .category-overlay h2 {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-content h2 {
        font-size: 12px;
        padding: 0 20px;
    }
    
    .newsletter-section .form-group {
        flex-direction: column;
        border: none;
        border-radius: 0;
        max-width: 100%;
    }
    
    .newsletter-section .form-group input[type="email"] {
        border: 2px solid var(--nl-border);
        border-bottom: none;
        border-radius: 25px 25px 0 0;
        width: 100%;
    }
    
    .newsletter-section .submit-btn {
        border: 2px solid var(--nl-border);
        border-top: none;
        border-radius: 0 0 25px 25px;
        width: 100%;
    }
    
    .social-icons {
        gap: 25px;
    }
    
    .social-icons a {
        font-size: 20px;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
        justify-content: center;
        margin: 0 auto;
    }
    
    .about-image {
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .about-image img {
        margin: 0 auto;
    }
    
    .about-content {
        width: 100%;
        max-width: 600px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }
    
    .cv-download-btn {
        margin: 40px auto 0;
        display: block;
    }
    
    .about-content h2,
    .about-content h3,
    .about-content p {
        text-align: center;
    }
    
    .slider-controls {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-controls.prev {
        left: 10px;
    }
    
    .slider-controls.next {
        right: 10px;
    }
    
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .contact-form-section {
        padding: 60px 20px;
    }
    
    .about-section {
        padding: 60px 20px;
    }
    
    .portfolio-grid,
    .portfolio-grid.few-items,
    .portfolio-grid.many-items {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 0 12px;
    }
    
    .newsletter-form {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 10px;
        border: none;
    }

    .newsletter-form .form-group input[type="email"] {
        border: 2px solid #000000;
        border-radius: 25px;
    }

    .newsletter-form .form-group .submit-btn {
        width: 100%;
        border: 2px solid #000000;
        border-radius: 25px;
    }
    
    .portfolio-topbar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .portfolio-sidebar h1 {
        margin-bottom: 20px;
    }
    .portfolio-categories-nav,
    .oeuvre-categories-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 0 auto;
    }

    .portfolio-categories-nav .category-button {
        padding: 6px 12px;
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .portfolio-gallery h1 {
        font-size: 32px;
        margin-bottom: 36px;
        letter-spacing: 2px;
    }

    .media-gallery h1 {
        font-size: 32px;
        margin-bottom: 36px;
        letter-spacing: 2px;
    }

    .news-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
        letter-spacing: 1.5px;
    }

    .graphisme-section h2 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .home-works-heading {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .active-title {
        font-size: 22px;
    }

    .category-button {
        padding: 8px 16px;
        font-size: 11px;
    }

    .home-works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .news-card h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .news-card p {
        font-size: 11px;
        line-height: 1.4;
    }

    .news-card img {
        margin-bottom: 8px;
    }

    .media-caption {
        font-size: 11px;
        line-height: 1.4;
        margin-top: 8px;
    }

    .oeuvre-overlay span {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .slide-text {
        font-size: 14px;
    }
    
    .slide-text p {
        font-size: 14px;
    }
    
    .category-overlay h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .newsletter-content h2 {
        font-size: 12px;
        padding: 0 15px;
    }

    .portfolio-grid,
    .portfolio-grid.few-items,
    .portfolio-grid.many-items {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 0 8px;
    }
    
    .about-section {
        padding: 100px 15px 40px;
    }
    
    .about-image {
        width: 90%;
    }
    
    .newsletter-section .form-group {
        border-radius: 3px;
    }
    
    .newsletter-section .form-group input[type="email"] {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .newsletter-section .submit-btn {
        padding: 12px 30px;
        font-size: 12px;
    }

    .home-works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .news-card h3 {
        font-size: 11px;
    }

    .news-card p {
        font-size: 9px;
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .media-caption {
        font-size: 9px;
    }

    .portfolio-gallery h1 {
        font-size: 24px;
        margin-bottom: 24px;
        letter-spacing: 1.5px;
    }

    .media-gallery h1 {
        font-size: 24px;
        margin-bottom: 24px;
        letter-spacing: 1.5px;
    }

    .news-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
        letter-spacing: 1px;
    }

    .graphisme-section h2 {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .active-title {
        font-size: 18px;
    }

    .category-button {
        padding: 6px 12px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .portfolio-categories-nav,
    .oeuvre-categories-nav {
        gap: 8px;
        padding: 0 8px;
    }

    .portfolio-categories-nav .category-button {
        padding: 5px 10px;
        font-size: 8px;
        letter-spacing: 0.6px;
    }

    .oeuvre-overlay span {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .graphisme-section {
        margin-bottom: 36px;
    }
}

/* ===================================
   Slider Controls
   =================================== */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.3s ease;
    font-size: 24px;
    color: #ffffff;
    pointer-events: auto;
}

.slider-controls:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-controls:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-controls.prev {
    left: 20px;
}

.slider-controls.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1.5px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #ffffff;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-section h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
    color: #000000;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #000000;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #000000;
    border-radius: 25px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: #000000;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #333333;
}

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

.contact-form .submit-btn {
    padding: 15px 40px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.contact-form .submit-btn:hover {
    background-color: #333333;
}

/* ===================================
   About Page
   =================================== */
.about-section {
    padding: 120px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 40px;
}

.about-image {
    width: 45%;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-content {
    width: 55%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #000000;
    text-transform: none;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #333333;
}

.about-content .section-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #000000;
}

.cv-download-btn {
    display: block;
    margin: 40px auto 0;
    padding: 15px 40px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: fit-content;
}

.cv-download-btn:hover {
    background-color: transparent;
    color: var(--text-color);
    transform: translateY(-2px);
}

/* ===================================
   Media Gallery
   =================================== */
.media-gallery {
    padding: 100px 0;
}

.media-gallery h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 60px;
    color: #000000;
    text-transform: uppercase;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.media-card {
    display: flex;
    flex-direction: column;
}

.media-item {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-caption {
    font-size: 14px;
    color: var(--muted-color);
    margin-top: 12px;
    line-height: 1.5;
}

/* Portfolio Works Overlay */
.oeuvre-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.oeuvre-overlay span {
    color: #ffffff !important;
    font-size: 24px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.oeuvre-item:hover .oeuvre-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.oeuvre-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
    aspect-ratio: 1;
}

.oeuvre-item:hover {
    transform: translateY(-5px);
}

.oeuvre-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.oeuvre-item:not(.portfolio-grid .oeuvre-item) img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.portfolio-gallery {
    padding: 60px 0;
}

.portfolio-gallery h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 60px;
    color: #000000;
    text-transform: uppercase;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-grid.few-items,
.portfolio-grid.many-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-grid.few-items .oeuvre-item,
.portfolio-grid.many-items .oeuvre-item {
    aspect-ratio: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-grid.few-items .oeuvre-item img,
.portfolio-grid.many-items .oeuvre-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-grid.masonry {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 10px;
}

.portfolio-grid .oeuvre-item {
    grid-row-end: span var(--row-span, 20);
}

/* ===================================
   Image Modal
   =================================== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow: auto;
    padding: 40px 20px;
}

.image-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-image-container {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-info {
    margin-top: 30px;
    text-align: center;
    color: #ffffff !important;
    max-width: 800px;
}

.modal-info h3,
#modalTitle,
#oeuvreModalTitle {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    text-transform: capitalize;
}

.modal-info .modal-year,
#modalYear,
#oeuvreModalYear {
    font-size: 14px;
    color: #cccccc !important;
    margin-bottom: 15px;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.modal-info .modal-description,
#modalDescription,
#oeuvreModalDescription {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff !important;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    text-transform: capitalize;
}

/* Portfolio Oeuvre Modal */
#oeuvreModal {
    display: none;
}

#oeuvreModal.active {
    display: flex;
}

/* ===================================
   Accordion (Portfolio / Graphisme)
   =================================== */
.accordion {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.accordion-item {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 30px;
    margin-top: 30px;
}

.accordion-item:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.accordion-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    color: #000000;
    text-transform: uppercase;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.accordion-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #000000;
    opacity: 0.8;
}

.accordion-content {
    padding-top: 30px;
}

.accordion-footer {
    display: flex;
    justify-content: center;
    padding: 30px 0 10px;
}

.accordion-footer a,
.accordion-footer button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 6px;
    font-size: 18px;
}

.graphisme-grid .oeuvre-item {
    border-radius: 8px;
}

/* ===================================
   Home / Portfolio Refresh
   =================================== */
.home-works-section {
    padding: 80px 0 40px;
}

.home-works-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 32px;
    text-align: center;
}

.active-title {
    font-size: 28px;
    letter-spacing: 1px;
}

.category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.category-button:hover {
    background-color: transparent;
    color: var(--text-color);
}

.home-works-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    padding: 0;
}

.news-section {
    padding: 60px 0 30px;
}

.news-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card a {
    display: block;
}

.news-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.news-card p {
    font-size: 15px;
    color: #333333;
}

.portfolio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.portfolio-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.portfolio-sidebar h1 {
    font-size: 40px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.portfolio-categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.portfolio-categories-nav a {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.portfolio-categories-nav .category-button {
    padding: 7px 16px;
    font-size: 11px;
    letter-spacing: 1px;
    border-width: 1px;
}

.portfolio-categories-nav .category-button::after {
    display: none;
}

.oeuvre-categories-nav {
    justify-content: center;
    margin: 0 auto 28px;
}

.portfolio-categories-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: width 0.3s ease;
}

.portfolio-categories-nav a:hover::after {
    width: 100%;
}

.about-video iframe {
    width: 100%;
    border: 0;
    height: 100%;
    border-radius: 4px;
}

.about-top .about-content {
    display: flex;
    flex-direction: column;
}

.about-top .about-image {
    display: flex;
}

.about-top .about-image img {
    height: 100%;
    object-fit: cover;
}

.about-top .about-content p {
    margin-bottom: 12px;
}

.about-top .about-video {
    flex: 1;
}

.about-bottom .about-content {
    justify-content: flex-start;
}

.about-bottom .cv-download-btn {
    margin: 14px auto 0;
}

.about-bottom .about-content p {
    margin-bottom: 0;
    flex: 0;
}

.article-page {
    max-width: 900px;
    margin: 0 auto;
}

.article-page h1 {
    font-weight: 700;
}

.article-page .article-meta {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
}

.article-page .article-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ===================================
   Final Theme Polish
   =================================== */
body.theme-dark .footer {
    background-color: #000000;
}

body.theme-dark .header {
    background-color: #000000;
}

body.theme-dark p,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark .copyright,
body.theme-dark .news-card p,
body.theme-dark .media-caption,
body.theme-dark .about-content p,
body.theme-dark .article-page .article-meta,
body.theme-dark .menu-list li a,
body.theme-dark .mobile-menu-list li a {
    color: #ffffff;
}

body:not(.theme-dark) p,
body:not(.theme-dark) h1,
body:not(.theme-dark) h2,
body:not(.theme-dark) h3,
body:not(.theme-dark) h4,
body:not(.theme-dark) h5,
body:not(.theme-dark) h6,
body:not(.theme-dark) .copyright,
body:not(.theme-dark) .news-card p,
body:not(.theme-dark) .media-caption,
body:not(.theme-dark) .about-content p,
body:not(.theme-dark) .article-page .article-meta {
    color: #000000;
}

body.theme-dark .social-icons a {
    color: #ffffff;
}

body:not(.theme-dark) .social-icons a {
    color: #000000;
}

body.theme-dark .mobile-menu-toggle span {
    background-color: #ffffff;
}

body.theme-dark .news-section h2,
body.theme-dark .portfolio-gallery h1,
body.theme-dark .media-gallery h1,
body.theme-dark .accordion-title,
body.theme-dark .accordion-chevron {
    color: #ffffff;
}

body.theme-dark .about-content .section-title {
    color: #ffffff;
}

body.theme-dark .contact-form-section h2,
body.theme-dark .contact-form label {
    color: #ffffff;
}

body.theme-dark .contact-form input,
body.theme-dark .contact-form textarea {
    background-color: #111111;
    color: #ffffff;
    border-color: #ffffff;
}

body.theme-dark .contact-form .submit-btn {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

body.theme-dark .contact-form .submit-btn:hover {
    background-color: #dddddd;
}

body:not(.theme-dark) .news-section h2,
body:not(.theme-dark) .portfolio-gallery h1,
body:not(.theme-dark) .media-gallery h1,
body:not(.theme-dark) .accordion-title,
body:not(.theme-dark) .accordion-chevron {
    color: #000000;
}

/* ===================================
   Preloader
   =================================== */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.site-preloader.visible {
    opacity: 1;
}

.site-preloader.hide {
    opacity: 0;
}

body.theme-dark .image-modal .modal-info h3,
body.theme-dark .image-modal .modal-info .modal-year,
body.theme-dark .image-modal .modal-info .modal-description,
body.theme-dark .image-modal #modalTitle,
body.theme-dark .image-modal #modalYear,
body.theme-dark .image-modal #modalDescription,
body.theme-dark .image-modal #oeuvreModalTitle,
body.theme-dark .image-modal #oeuvreModalYear,
body.theme-dark .image-modal #oeuvreModalDescription {
    color: #ffffff !important;
}

body.theme-dark .modal-close {
    color: #ffffff;
}

.graphisme-section {
    margin-bottom: 60px;
}

.graphisme-section h2 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

body.theme-dark .graphisme-section h2 {
    color: #ffffff;
}

body:not(.theme-dark) .graphisme-section h2 {
    color: #000000;
}

body.theme-dark .site-preloader {
    background: #000000;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: preloaderPulse 1.1s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}
/* ===================================
   UNIFICATION DES ESPACES DES GRILLES (GAP)
   =================================== */

/* 1. Écrans d'ordinateur (Desktop) */
.home-works-grid,
.portfolio-grid,
.portfolio-grid.few-items,
.portfolio-grid.many-items,
.media-grid,
.news-grid,
.categories-grid {
    /* La propriété "gap" avec une seule valeur applique le même espace en vertical et en horizontal */
    gap: 24px !important; 
}

/* 2. Forcer les images à remplir 100% de la cellule pour éviter les espaces vides visuels */
.oeuvre-item, 
.media-item, 
.category-card {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.oeuvre-item img, 
.media-item img, 
.category-card img {
    display: block;
    width: 100%;
    height: 100% !important; /* Force l'image à prendre toute la hauteur */
    object-fit: cover !important; /* Coupe l'image pour qu'elle remplisse l'espace sans se déformer */
}

/* ===================================
   RESPONSIVE : Ajustement proportionnel de l'espace (toujours égal partout)
   =================================== */

/* Tablette */
@media (max-width: 1024px) {
    .home-works-grid,
    .portfolio-grid,
    .portfolio-grid.few-items,
    .portfolio-grid.many-items,
    .media-grid,
    .news-grid,
    .categories-grid {
        gap: 18px !important; 
    }
}

/* Mobile (Paysage & Grand Mobile) */
@media (max-width: 768px) {
    .home-works-grid,
    .portfolio-grid,
    .portfolio-grid.few-items,
    .portfolio-grid.many-items,
    .media-grid,
    .news-grid,
    .categories-grid {
        gap: 12px !important; 
    }
}

/* Petit Mobile */
@media (max-width: 480px) {
    .home-works-grid,
    .portfolio-grid,
    .portfolio-grid.few-items,
    .portfolio-grid.many-items,
    .media-grid,
    .news-grid,
    .categories-grid {
        gap: 8px !important; 
    }
}